Friday, 2016-05-27

*** openstackgerrit has quit IRC02:36
*** openstackgerrit has joined #openstack-watcher02:42
*** openstackgerrit has quit IRC02:56
*** thorst_ has joined #openstack-watcher03:07
*** openstackgerrit has joined #openstack-watcher03:18
*** thorst_ has quit IRC03:38
*** thorst_ has joined #openstack-watcher03:39
*** thorst_ has quit IRC03:48
*** vtech has quit IRC04:26
*** thorst_ has joined #openstack-watcher04:45
*** thorst_ has quit IRC04:52
*** thorst_ has joined #openstack-watcher05:50
*** thorst_ has quit IRC05:57
*** ecelik has joined #openstack-watcher06:08
*** thorst_ has joined #openstack-watcher06:55
*** thorst_ has quit IRC07:02
*** vtech has joined #openstack-watcher07:10
*** vincentfrancoise has joined #openstack-watcher07:27
openstackgerritDavid TARDIVEL proposed openstack/watcher: Update Watcher documentation  https://review.openstack.org/32049307:40
*** alexchadin has joined #openstack-watcher07:54
alexchadinvincentfrancoise: good morning07:54
vincentfrancoisealexchadin: morning07:54
alexchadinvincentfrancoise: I tested algorithm on bare metal07:55
vincentfrancoisesweet! How is it performing?07:56
alexchadin92% of overall time is on ceilometer queries07:56
vincentfrancoiselol07:56
alexchadinDisgusting07:56
alexchadinCeilometer is really slow07:57
alexchadinBut I didn't optimize Mongo and so on07:57
alexchadinOur senior engineer says it will help to get 60-70%, no more07:58
vincentfrancoiseSo I guess we really have to test monasca/ceilosca07:58
*** thorst_ has joined #openstack-watcher08:00
alexchadinvincentfrancoise: Do you use devstack to develop watcher?08:02
*** thorst_ has quit IRC08:07
openstackgerritDavid TARDIVEL proposed openstack/python-watcherclient: Use goal name as strategy list filter  https://review.openstack.org/32199908:08
*** alexchadin has quit IRC08:12
*** alexchadin has joined #openstack-watcher08:14
openstackgerritVincent Françoise proposed openstack/python-watcherclient: Update Watcher CLI documentation  https://review.openstack.org/32045108:19
vincentfrancoisealexchadin: I started reviewing your code on periodic audits08:39
alexchadinvincentfrancoise: good! I'm already reviewing yours08:40
vincentfrancoiseI have some questions on how you did it with the next_launch field08:40
alexchadinvincentfrancoise: feel free to ask08:40
vincentfrancoisein https://review.openstack.org/#/c/321411/1/watcher/decision_engine/audit/default.py08:40
vincentfrancoiseYou are actually making requests to the DB everytime to execute the jobs08:41
vincentfrancoiseSo it feels quite computationally expensive08:42
alexchadin61 line?08:42
vincentfrancoiseyep08:42
alexchadinbut launch_audits_periodically function is called once per minute08:43
vincentfrancoiseI would better see an in-memory catalogue of jobs that is loaded at once08:43
vincentfrancoiseah08:43
alexchadinwe can specify frequency of calling this function08:44
alexchadinin conf file08:44
vincentfrancoiseyou could then wrap the execute() in a lambda that sleeps before executing08:45
vincentfrancoiseWhat bugs me is the next launch field in DB08:45
vincentfrancoiseIMHO, this bit of information should not be stored08:46
vincentfrancoiseBut if you don't, many problems arise08:46
vincentfrancoisebecause you have to keep in-sync the an in-memory catalogue of jobs with their database counterpart08:48
alexchadinhm08:51
vincentfrancoiseI was thinking about the case where the service is restarted08:52
vincentfrancoisethe next_launch date could be in the past08:53
vincentfrancoiseand also in the case where someone cancels the periodic audit08:53
vincentfrancoisewe would need to notify the job to stop08:53
*** alexchadin has quit IRC08:54
*** alexchadin has joined #openstack-watcher08:55
alexchadinI'm here, sorry08:55
*** ecelik has quit IRC08:56
alexchadinwe would need to notify the job to stop - is it your last message?08:56
vincentfrancoiseyep08:56
openstackgerritEdwin Zhai proposed openstack/watcher: Enable strategy parameters  https://review.openstack.org/29755608:57
alexchadinif someone cancels the periodic audit08:57
alexchadinfunction just won't be called again08:58
vincentfrancoisegzhai2: Hi, FYI I started reviewing your code but I didn't finish yet08:58
alexchadinand next_launch field won't be updated08:59
alexchadinuntil we activate periodic calls again09:00
vincentfrancoisenot sure I see where the job doesn't get called09:02
vincentfrancoisein launch_audits_periodically()09:02
alexchadinperiodic_task.periodic_task09:02
vincentfrancoiseyou don't verify the state of the audit09:02
vincentfrancoiseSo how would the periodic task know if you can cancelled it or not ?09:04
alexchadinAh09:04
alexchadinsorry09:04
*** thorst_ has joined #openstack-watcher09:05
alexchadinI got what you mean09:05
alexchadinWe were talking of different things:)09:05
alexchadinOkay, I will add verifying of cancelled audits09:05
vincentfrancoisecool :)09:06
vincentfrancoisefor the next_launch field09:07
vincentfrancoisecan you do something like self.executor.submit(lamdba: time.sleep(DELTA);self.execute, audit.uuid, context)09:09
vincentfrancoisewhere DELTA is kind of your next launch09:10
vincentfrancoise?09:10
alexchadinlet me think, pls09:11
alexchadinokay09:12
*** thorst_ has quit IRC09:12
alexchadinyou want to rid of next_launch, right?09:13
vincentfrancoiseyes09:13
alexchadinand just leave period field09:13
vincentfrancoiseexactly09:13
vincentfrancoisealso, you said that the period is 60 seconds right?09:14
alexchadinBy default09:14
alexchadinWe can specify this parameter09:15
alexchadinhm09:15
alexchadinwait09:15
alexchadinyou speak about audit's period?09:15
vincentfrancoiseno the "refresh rate" of the periodic task09:15
alexchadinyes, 60 seconds09:15
vincentfrancoiseso I have a question09:17
vincentfrancoisewhat if someone cancels the audit job09:17
vincentfrancoisebut the period of the job is 30 seconds09:17
vincentfrancoisethe time.sleep will still run the audit09:18
vincentfrancoiseso we need to add a condition to the audit handler09:19
vincentfrancoisebefore https://review.openstack.org/#/c/321411/1/watcher/decision_engine/audit/default.py line 11909:20
vincentfrancoisewhich checks the state of the audit09:20
vincentfrancoiseso that only ONGOING audits should be executed09:20
vincentfrancoiseor actually audits that are not CANCELLED09:21
vincentfrancoisewell if we look at https://factory.b-com.com/www/watcher/doc/watcher/architecture.html#audit-state-machine09:22
alexchadinso that only ONGOING audits should be executed - but we set ONGOING state on 119 line09:23
vincentfrancoiseonly PENDING and ONGOING should be allowed09:23
vincentfrancoisewhere PENDING audits should be updated to ONGOING and already ONGOING should stay ONGOING09:23
alexchadinlet's sum it overall09:26
alexchadinWe launch audit09:26
vincentfrancoiseok09:26
alexchadinonly if it is in PENDING state or ONGOING state09:26
vincentfrancoiseyes09:27
alexchadingood09:27
vincentfrancoisethe problem with that09:27
vincentfrancoiseis that we will query cancelled audits over and over again to see that they are cancelled09:28
vincentfrancoiseso add a filter on the state maybe09:28
alexchadinI have just thought of it09:29
alexchadinthank you09:29
vincentfrancoise{'type': 'CONTINUOUS', 'state': ('PENDING', 'ONGOING')}09:29
vincentfrancoisethe sql IN operation is not handled currently09:29
vincentfrancoiseby the objects filters09:30
alexchadinI'll make these changes and commit them ASAP09:31
vincentfrancoisecool :009:31
vincentfrancoise:)09:31
vincentfrancoisethanks for answering my concerns :)09:32
vincentfrancoiseI'll link the conversation log into the review for the others09:32
*** alexchadin has quit IRC09:38
openstackgerritEdwin Zhai proposed openstack/python-watcherclient: Enable strategy parameter  https://review.openstack.org/29755709:41
*** alexchadin has joined #openstack-watcher09:48
*** alexchadin has quit IRC09:54
*** alexchadin has joined #openstack-watcher09:56
openstackgerritMerged openstack/watcher: Updated from global requirements  https://review.openstack.org/31989310:05
alexchadinvincentfrancoise: how will I know that continuous audit is already waiting for execute?10:07
vincentfrancoisebecause there is already a job for that audit in the pipe10:08
*** thorst_ has joined #openstack-watcher10:09
alexchadinhow may I check the content of the pipe?10:09
vincentfrancoisegood question10:09
*** ecelik has joined #openstack-watcher10:11
vincentfrancoiseI guess we need to monitor the jobs we put in the queue10:15
gzhai2vincentfrancoise: Thanks for review my code. Just uploaded new one to fit current infrastructure well.10:15
vincentfrancoisegzhai2: I didn't finish the reviews because I have a question about your code which I cannot answer yet10:16
vincentfrancoisegzhai2: how do you make sure that the parameters that are given by the operator are compliant with the constraints?10:17
openstackgerritDavid TARDIVEL proposed openstack/watcher: Add goal name as filter for strategy list cmd  https://review.openstack.org/32205410:17
*** thorst_ has quit IRC10:18
gzhai2vincentfrancoise: if not comply with the contraints, exception raised and audit's state become 'FAILED'10:21
gzhai2operator can check the STATE for it.10:22
gzhai2vincentfrancoise:vincentfrancoise: Another alternative is change the input value to default if constrain broken. But this silent failure is not good.10:32
alexchadinvincentfrancoise: we also need to check SUCCEEDED type10:40
alexchadinvincentfrancoise: when we get list of audits10:41
*** alexchadin has quit IRC10:45
*** openstackgerrit has quit IRC10:47
*** openstackgerrit has joined #openstack-watcher10:48
*** thorst_ has joined #openstack-watcher11:16
*** thorst_ has quit IRC11:25
*** alexchadin has joined #openstack-watcher11:35
*** alexchadin has quit IRC11:36
*** thorst_ has joined #openstack-watcher11:42
*** alexchadin has joined #openstack-watcher11:46
*** openstackgerrit has quit IRC11:47
*** openstackgerrit has joined #openstack-watcher11:48
*** vtech has quit IRC12:04
*** vtech has joined #openstack-watcher12:07
*** acabot_ has joined #openstack-watcher12:11
openstackgerritMerged openstack/watcher: Added cold VM migration support  https://review.openstack.org/29992712:33
openstackgerritAlexander Chadin proposed openstack/watcher-specs: Add Watcher Continuosly Optimization spec  https://review.openstack.org/31555112:37
*** openstackgerrit has quit IRC12:48
*** openstackgerrit has joined #openstack-watcher12:48
alexchadinjed56: hello?12:55
jed56alexchadin: hello12:55
jed56how are you ?12:55
alexchadinI'm good, how are you?12:56
jed56good :-)12:57
alexchadin:-)12:57
alexchadinI found out that hardware.cpu.util is standard metric12:57
alexchadinI added it with SNMP support12:58
jed56ah sorry, can please send to me the  link ?12:58
jed56you12:58
alexchadinhttps://github.com/openstack/ceilometer/blob/master/ceilometer/hardware/pollsters/data/snmp.yaml13:00
alexchadintake a look13:00
alexchadinI use it cause it comes with node_1 name13:01
alexchadinnot node_1_node_1 as it comes with compute.node.cpu.percent13:01
*** edleafe is now known as figleaf13:02
jed56Okay!  you don't have take into account my comment13:02
jed56I think the documentation of ceilometer is deprecated13:02
jed56I didn't take the time to look at the code13:02
alexchadinNo problem!13:03
jed56alexchadin:  do you think that you will have the time to address my other comments today ?13:03
acabot_jwcroppe_ : I just +2 https://review.openstack.org/315551, if you can have a look and W+1 if OK13:04
jed56we are releasing watcher on monday13:04
alexchadinI hope so13:04
vincentfrancoiseacabot_: I just -1'd it13:04
alexchadinwait a sec13:04
jed56we wants to have your strategy in this release13:04
acabot_vincentfrancoise : ok ;-)13:05
acabot_vincentfrancoise : ok I agree about the state machine13:06
openstackgerritAlexander Chadin proposed openstack/watcher-specs: Add Watcher Continuosly Optimization spec  https://review.openstack.org/31555113:07
vincentfrancoisealexchadin: I +1'd it ;)13:09
alexchadin:)13:09
alexchadinI'm working on strategy13:09
alexchadinwill be commited very soon13:09
openstackgerritAlexander Chadin proposed openstack/watcher: Add Overload standard deviation strategy  https://review.openstack.org/29759013:16
*** hvprash has joined #openstack-watcher13:17
*** hvprash_ has joined #openstack-watcher13:18
*** acabot_ has quit IRC13:18
*** hvprash has quit IRC13:21
*** alexchadin has quit IRC13:21
openstackgerritAlexander Chadin proposed openstack/watcher: Add continuously optimization  https://review.openstack.org/32141113:22
*** alexchadin has joined #openstack-watcher13:22
*** alexchadin has quit IRC13:22
*** acabot_ has joined #openstack-watcher13:25
*** acabot_ has quit IRC13:28
*** hvprash_ has quit IRC13:29
*** hvprash has joined #openstack-watcher13:30
*** ecelik has quit IRC13:51
*** hvprash has quit IRC13:56
*** hvprash has joined #openstack-watcher13:56
*** acabot_ has joined #openstack-watcher14:07
*** acabot_ has quit IRC14:14
*** openstackgerrit has quit IRC14:18
*** openstackgerrit has joined #openstack-watcher14:18
*** lrensing has joined #openstack-watcher14:22
openstackgerritJinquan Ni proposed openstack/watcher: Destination selectors plugin rst  https://review.openstack.org/31917614:43
*** acabot_ has joined #openstack-watcher14:48
*** acabot_ has quit IRC14:51
openstackgerritVincent Françoise proposed openstack/watcher: Added EfficacyIndicator object  https://review.openstack.org/31817815:21
openstackgerritVincent Françoise proposed openstack/watcher: Added efficacy indicators to /action_plans  https://review.openstack.org/31817915:21
openstackgerritVincent Françoise proposed openstack/watcher: Added EfficacyIndicator model in DB  https://review.openstack.org/31817615:21
openstackgerritVincent Françoise proposed openstack/watcher: Added efficacy specification to /goals  https://review.openstack.org/31817715:21
openstackgerritVincent Françoise proposed openstack/watcher: Documentation on goal and efficacy  https://review.openstack.org/31927515:21
openstackgerritVincent Françoise proposed openstack/watcher: Decoupled Goal from Strategy  https://review.openstack.org/31817515:21
openstackgerritVladimir Ostroverkhov proposed openstack/python-watcherclient: Add support continuously-optimization  https://review.openstack.org/32142115:30
*** vmahe has quit IRC15:42
openstackgerritMerged openstack/python-watcherclient: Replaced UUID of goal and strategy with name  https://review.openstack.org/31198515:50
openstackgerritMerged openstack/python-watcherclient: Use goal name as strategy list filter  https://review.openstack.org/32199915:51
openstackgerritMerged openstack/python-watcherclient: Update Watcher CLI documentation  https://review.openstack.org/32045115:51
openstackgerritMerged openstack/watcher: Add goal_name & strategy_name in /audit_templates  https://review.openstack.org/31173315:51
openstackgerritMerged openstack/watcher: Add goal name as filter for strategy list cmd  https://review.openstack.org/32205415:51
openstackgerritVincent Françoise proposed openstack/watcher: Watcher plugins table in Guru meditation reports  https://review.openstack.org/32052915:55
openstackgerritVincent Françoise proposed openstack/watcher: Enabled config parameters to plugins  https://review.openstack.org/31403615:55
openstackgerritVincent Françoise proposed openstack/watcher: Documentation for plugins-parameters  https://review.openstack.org/31403715:55
openstackgerritMerged openstack/watcher: Update Watcher documentation  https://review.openstack.org/32049315:58
*** vtech has quit IRC16:01
openstackgerritVincent Françoise proposed openstack/watcher: Added EfficacyIndicator object  https://review.openstack.org/31817816:03
openstackgerritVincent Françoise proposed openstack/watcher: Added efficacy indicators to /action_plans  https://review.openstack.org/31817916:03
openstackgerritVincent Françoise proposed openstack/watcher: Added EfficacyIndicator model in DB  https://review.openstack.org/31817616:03
openstackgerritVincent Françoise proposed openstack/watcher: Added efficacy specification to /goals  https://review.openstack.org/31817716:03
openstackgerritVincent Françoise proposed openstack/watcher: Documentation on goal and efficacy  https://review.openstack.org/31927516:03
openstackgerritVincent Françoise proposed openstack/watcher: Decoupled Goal from Strategy  https://review.openstack.org/31817516:03
*** vincentfrancoise has quit IRC16:18
openstackgerritDavid TARDIVEL proposed openstack/watcher: Enabled config parameters to plugins  https://review.openstack.org/31403616:25
openstackgerritDavid TARDIVEL proposed openstack/watcher: Watcher plugins table in Guru meditation reports  https://review.openstack.org/32052916:25
openstackgerritDavid TARDIVEL proposed openstack/watcher: Documentation for plugins-parameters  https://review.openstack.org/31403716:26
*** hvprash_ has joined #openstack-watcher16:34
*** hvprash has quit IRC16:37
*** thorst_ has quit IRC16:42
*** thorst_ has joined #openstack-watcher16:44
*** hvprash_ has quit IRC16:46
*** hvprash has joined #openstack-watcher16:46
*** thorst_ has quit IRC16:48
*** alexchadin has joined #openstack-watcher17:08
*** vtech has joined #openstack-watcher17:08
alexchadinjed56: I commited new PS for strategy17:08
*** hvprash has quit IRC17:25
*** hvprash has joined #openstack-watcher17:26
*** hvprash_ has joined #openstack-watcher17:27
*** alexchadin has quit IRC17:29
*** hvprash has quit IRC17:30
*** wootehfoot has joined #openstack-watcher17:46
*** alexchadin has joined #openstack-watcher17:49
*** thorst_ has joined #openstack-watcher17:49
*** thorst_ has quit IRC17:50
*** thorst_ has joined #openstack-watcher17:50
*** wootehfoot has quit IRC17:50
*** alexchadin has quit IRC17:54
*** vtech has quit IRC17:57
*** wootehfoot has joined #openstack-watcher17:58
*** vtech has joined #openstack-watcher18:14
*** lrensing has quit IRC18:17
*** vtech has quit IRC18:19
*** hvprash has joined #openstack-watcher18:20
*** hvprash_ has quit IRC18:23
*** vtech has joined #openstack-watcher18:29
jwcroppe_acabot_: +W'd18:30
openstackgerritMerged openstack/watcher-specs: Add Watcher Continuosly Optimization spec  https://review.openstack.org/31555118:33
*** hvprash_ has joined #openstack-watcher18:34
*** hvprash has quit IRC18:37
*** wootehfoot has quit IRC18:51
*** wootehfoot has joined #openstack-watcher19:00
*** hvprash has joined #openstack-watcher19:33
*** hvprash__ has joined #openstack-watcher19:35
*** hvprash_ has quit IRC19:36
*** hvprash has quit IRC19:38
*** hvprash__ has quit IRC19:41
*** openstack has joined #openstack-watcher21:42

Generated by irclog2html.py 2.14.0 by Marius Gedminas - find it at mg.pov.lt!