Wednesday, 2016-12-07

*** hamzy has joined #openstack-third-party-ci00:00
*** Apoorva has quit IRC00:03
*** devlaps has quit IRC00:37
*** devlaps has joined #openstack-third-party-ci00:38
*** Apoorva has joined #openstack-third-party-ci01:02
*** Apoorva has quit IRC01:02
*** Apoorva has joined #openstack-third-party-ci01:04
*** Apoorva has quit IRC01:04
*** viks has quit IRC02:06
*** Apoorva has joined #openstack-third-party-ci02:20
*** Apoorva has quit IRC02:34
*** rajinir has quit IRC03:46
*** devlaps has quit IRC03:58
*** watanabe_isao has joined #openstack-third-party-ci04:22
*** krtaylor has quit IRC05:16
*** krtaylor has joined #openstack-third-party-ci05:28
*** fdegir has quit IRC05:35
*** fdegir has joined #openstack-third-party-ci05:35
*** eandersson has joined #openstack-third-party-ci09:22
*** eandersson has quit IRC09:28
*** s-shiono has quit IRC10:23
*** rfolco has joined #openstack-third-party-ci11:06
*** stakeda has quit IRC12:04
*** stakeda has joined #openstack-third-party-ci12:05
*** watanabe_isao has quit IRC13:28
*** isaacb has joined #openstack-third-party-ci13:57
isaacbmmedvede: here?13:58
mmedvedeisaacb: yes13:58
isaacbIs there a way to queue jos in jenkins?13:59
isaacb*jobs*14:00
mmedvedeyes, one of the things zuul does is queue jobs14:00
mmedvededo you use zuul?14:01
isaacbsure.14:01
mmedvedeisaacb: so are you asking how to manually add a job to zuul queue?14:02
isaacbis there any parameter in zuul to configure what should be the queue for a single job?14:02
mmedvedezuul uses layout config file to figure out what which job to run for each patch14:03
mmedvedeisaacb: for example, https://github.com/openstack-infra/project-config-example/blob/master/zuul/layout.yaml14:05
isaacbmmedvede: I know. suppose you have a provider in nodepool that can hold 10 VMs14:05
isaacbmmedvede: if you have more than 10 commits in short period of time how you can queue them?14:06
mmedvedezuul holds the queue14:06
mmedvedewell, technically, zuul uses gearman server, which in turn hold the job queue14:07
isaacbmmedvede: the problem is that gearman triggers a job in jenkins.14:08
isaacbmmedvede: jenkins does not have enough slaves, so he tries to reuse a slave14:09
isaacbmmedvede: which cause failures14:09
mmedvedeisaacb: I see14:09
isaacbmmedvede: is there a way to queue the triggers to jenkins?14:11
mmedvedeyes, that is what zuul should normally do. It seems it does not happen in your setup for whatever reason14:11
mmedvedethis is how it normally happens for zuul/nodepool/jenkins setup:14:12
mmedvedezuul has a patch come in, and adds jobs it into appropriate queues. Nodepool boots VMs according to demand, and registers each VM with jenkins14:13
mmedvedethen jenkins registers workers with the queue. You should have one gearman worker registered per VM14:14
isaacbmmedvede: how zuul knows the max capacity of nodepool?14:15
mmedvedewhen there are more jobs than workers (i.e. more jobs than VMs to run them), jobs should just sit on gearman queue until more workers are available14:15
mmedvedeisaacb: zuul does not know max capacity14:15
mmedvedeisaacb: zuul only knows about gearman server14:17
mmedvedesidenote: I am not talking about zuul v3 or zuul v2.5 here14:18
mmedvedeI think some of it is changing there14:18
mmedvedeisaacb: you can check gearman queue status with 'echo status | nc <gearmanserver> 473014:19
isaacbmmedvede: yes. I know. for example i see the following:14:21
isaacbbuild:xiv-tempest-dsvm-full-iscsi                       3  3  914:21
isaacbmmedvede: but what happen if there are more jobs than free workers?14:21
mmedvedeisaacb: then, for your example, you would see:14:22
mmedvedebuild:xiv-tempest-dsvm-full-iscsi                       20  9  914:22
mmedvedewhich would mean you have 9 workers, all 9 are being used, and you have 11 queued and waiting for a worker14:23
isaacbmmedvede: ok.14:23
mmedvedeisaacb: what sorts of failures you see?14:24
mmedvedeare they due to VM being reused again? e.g. with dirty state?14:25
isaacbmmedvede: from jenkins point of view, is there a chance that he tries to run a job on a slave which he already use rather than a slave that is idle?14:25
mmedvedeisaacb: yes, it is possible14:25
mmedvedeisaacb: for example, if it does not delete a VM on completion14:26
mmedvedeisaacb: also, if you manually rebuild from jenkins, it could cause problems14:26
isaacbmmedvede: I see that jenkins is trying to use the same slave twice. during normal execution14:27
isaacbmmedvede: (no manual rebuild)14:28
*** krtaylor has quit IRC14:28
isaacbmmedvede: this happens only if I get to the maximum capacity of nodepool14:28
*** krtaylor has joined #openstack-third-party-ci14:29
mmedvedeisaacb: do you set OFFLINE_NODE_WHEN_COMPLETE=1 ?14:30
mmedvedeisaacb: you can check by going to any build, "Parameters"14:30
isaacbI can't see this parameter.14:32
isaacbmmedvede: who sets this parameter?14:33
mmedvedezuul14:33
mmedvedeisaacb: do you see any parameters there?14:34
mmedvedee.g. ZUUL_PROJECT?14:34
isaacbyes14:34
isaacbmmedvede: I see many ZUUL's parameters but not this one14:35
mmedvedeisaacb: https://github.com/openstack-infra/project-config-example/blob/master/zuul/openstack_functions.py#L3414:35
mmedvedeand the py file hooked up here https://github.com/openstack-infra/project-config-example/blob/master/zuul/layout.yaml#L314:36
isaacbmmedvede: ok14:36
mmedvedeisaacb: and also need to set the function to use https://github.com/openstack-infra/project-config-example/blob/master/zuul/layout.yaml#L314:38
isaacb:q15:09
isaacbmmedvede: are you sure I should see OFFLINE_NODE_WHEN_COMPLETE in the parameters list in jenkins?15:11
mmedvedeyes. If it is not there, it is not being set15:11
*** asselin has joined #openstack-third-party-ci15:17
*** asselin_ has quit IRC15:20
isaacbmmedvede: I didn't have the jobs section in the layout file. that's why the function in openstack_function.py wasn't called15:33
isaacbmmedvede: hope now I'll get this parameter15:34
mmedvedegood, let me know if it solves the original problem15:35
*** isaacb_ has joined #openstack-third-party-ci16:21
*** isaacb_ has quit IRC16:22
*** isaacb has quit IRC16:25
*** devlaps has joined #openstack-third-party-ci16:43
*** Apoorva has joined #openstack-third-party-ci17:38
*** rajinir has joined #openstack-third-party-ci17:39
*** strigazi is now known as strigazi_AFK17:46
*** krtaylor has quit IRC18:06
*** krtaylor has joined #openstack-third-party-ci19:17
*** rfolco has quit IRC20:18
*** krtaylor has quit IRC21:58
*** krtaylor has joined #openstack-third-party-ci22:42
*** rfolco has joined #openstack-third-party-ci23:15
*** rfolco has quit IRC23:15
*** viks_ has joined #openstack-third-party-ci23:45
*** stakeda has quit IRC23:48
*** stakeda has joined #openstack-third-party-ci23:51

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