Wednesday, 2019-01-23

pabelangerfor the most part, it is close, but not 100%. However, if you are used to ARA, that output will be the same00:00
SpamapSParsectiX: For most cases I'd recommend writing very simple playbooks that mostly just call things your developers would run directly.00:04
pabelangerSpamapS: when you have cycles, do you mind sharing your ngnix? I have one up now, but it is pretty basic. Going to look into apache one and try to covert and update docs00:13
SpamapSpabelanger: sure I have it right here..00:18
SpamapSpabelanger: http://paste.openstack.org/show/743138/00:19
SpamapSwhite labeled for the GoodMoney tenant.00:19
*** spsurya has quit IRC00:26
pabelangerSpamapS: thanks!00:26
*** rlandy has quit IRC01:00
*** ParsectiX has quit IRC01:42
openstackgerritMerged openstack-infra/zuul master: Fix secondary exception in fingergw  https://review.openstack.org/63258203:08
*** bhavikdbavishi has joined #zuul05:22
*** saneax has joined #zuul05:28
*** saneax has quit IRC05:51
*** spsurya has joined #zuul06:08
openstackgerritTristan Cacqueray proposed openstack-infra/zuul-jobs master: add-build-sshkey: remove previously authorized build-sshkey  https://review.openstack.org/63262006:24
*** quiquell|off is now known as quiquell06:26
quiquellHello06:54
quiquellIs this ok now https://review.openstack.org/62329406:54
quiquellAJaeger, clarkb, tristanC: ^06:55
tristanCquiquell: lgtm, but is there a job log that validate the new role works as expected?06:59
quiquelltristanC: we have a job at RDO that exercise that, have to fix it, will paste when finished07:02
quiquellIt uses static nodepool provider07:03
quiquellAnd was working fine07:03
tristanCquiquell: adding the link as review comment would likely help07:09
quiquellSure but yesterday the job broke for unrelated issues have to fix it, make it pass07:09
AJaegerquiquell: this needs testing inside OpenStack, see the previous links I gave to the review. We need to ensure it does not break our multinode jobs.07:19
quiquellAJaeger: ack, will do a testing review07:20
quiquellAja07:21
quiquellAJaeger: tripleo multinode job is good option?07:21
quiquellOr is there less complex job to run07:22
quiquellAJaeger: ahh ok the policy link, will check thanks07:25
*** bjackman has joined #zuul07:27
*** saneax has joined #zuul07:29
AJaegerquiquell: devstack job perhaps? Sorry, can't help further here this week.07:32
*** saneax has quit IRC07:36
quiquellAJaeger: no problem will test it right, thanks07:37
quiquelltristanC, AJaeger: btw, do you know if there are limitations at sshkeys for the gerrit connection ? looks like some no-password encrypted keys are not working07:38
*** saneax has joined #zuul07:38
quiquellsome of them works, the different is calling ssh-keygen from within the container zuul quickstart container <- this ones always work07:38
tristanCquiquell: what is not working?07:54
*** hashar has joined #zuul08:08
*** jpena|off is now known as jpena08:14
*** themroc has joined #zuul08:25
*** panda|off is now known as panda08:28
quiquelltristanC: is exactly this https://github.com/paramiko/paramiko/issues/101508:35
quiquelltristanC: there is a bug at paramiko about RSA keys with header BEGIN OPENSSH PRIVATE KEY08:35
quiquelltristanC: in this key it thinks that it's not a RSA but a ed25519 key08:35
quiquelltristanC: solution is to regenerate key with ssh-keygen -m PEM -t rsa08:50
quiquelltristanC: do you know if there is any fix for that at zuul or a paramiko alternative ?08:51
quiquelltristanC: created bug with alternatives of solutions https://storyboard.openstack.org/#!/story/200484209:06
tobiashquiquell: I think we should update docs and monitor how paramiko reacts on this09:31
quiquelltobiash: I suspect no one has yet use zuul with new versions of openssh09:32
quiquelltobiash: I can put a review for the doc, where is the proper doc for this ?09:32
quiquelltobiash: I mean with a key generated by new versions of openssh09:33
tobiashquiquell: you can grep for ssh-keygen but I'm not sure if there is a proper place in the docs that will be read by people facing this issue09:38
tobiashquiquell: maybe we should just wait a bit to see if paramiko has a solution and update it then09:38
quiquelltobiash: well the issue is from 2017, looks like it needs a big refactor :-(09:39
openstackgerritQuique Llorente proposed openstack-infra/zuul-jobs master: Default private_ipv4 to use public_ipv4 address when null  https://review.openstack.org/62329409:40
openstackgerritQuique Llorente proposed openstack-infra/zuul-jobs master: DNM: Test multinode  https://review.openstack.org/63267209:40
quiquelltobiash: this is good to test multinode after a change at the related role ? https://review.openstack.org/#/c/63267209:41
tobiashquiquell: yes, many changes to zuul-jobs are currently tested by using the roles via depends-on09:43
quiquelltobiash: ok let's see if devstack-multinode passes I think review is ready to merge09:43
quiquelltobiash: thanks09:43
tobiashquiquell: once it passes you should note that with a link in a comment09:45
quiquelltobiash: ack09:46
quiquelltobiash: also for the current sprint we need this https://review.openstack.org/#/c/630649/09:46
quiquelltobiash: is there any testing missing there ?09:46
tobiashquiquell: you have a +2 from me but you need more reviews ;)09:48
quiquellAJaeger, tobiash: +2? https://review.openstack.org/#/c/630649/ ?09:48
quiquellcorvus: ^09:49
quiquelltobiash: I always forgot about time zones09:49
quiquelltobiash: another one, we were thingking about adding an option to zuul autohold or zuul.conf to bypass job result filter09:49
quiquelltobiash: wdyt ?09:49
tobiashquiquell: I see that pabelanger and SpamapS already had a look at this change so they probably want to have a second look on it09:50
tobiashquiquell: you want to hold successful builds?09:50
quiquelltobiash: yep09:51
quiquellpanda: ^09:51
*** bjackman has quit IRC09:51
tobiashwhat's your use case for holding successful builds?09:53
tobiashwhat's the criteria you want to filter?09:53
quiquelltobiash: is a local zuul node to run tripleo CI we always want to poke at nodes after they finish09:54
tobiashisn't that contradicting automated ci?09:55
*** bjackman has joined #zuul09:55
quiquelltobiash: maybe, but this is about using zuul to debug tripleo jobs09:56
quiquelltobiash: sometimes even with a success job you wan't to check if it was doing the correect thing or do you want to test stuff at the final stage09:56
tobiashfor debugging you can add a fail task to the last playbook and filter for failed jobs then ;)09:56
quiquelltobiash: yep that was our plan, but was thinking that maybe it's better to put this option upstream at zuul09:57
pandatobiash: quiquell I'm working on this https://review.openstack.org/63249809:57
pandatobiash: quiquell I was preparing an email to discuss the use cases09:57
quiquellpanda: ack, then all the info is there, I will shut up09:58
quiquellpanda: let's just discuss at e-mail09:58
*** bhavikdbavishi has quit IRC10:00
tobiashSpamapS: what permissions on aws does the ec2 driver require?10:00
*** jpena is now known as jpena|brb10:08
quiquelltobiash: this multinode failures is related to the  changes of the review ? http://logs.openstack.org/72/632672/1/check/devstack-multinode/aa85096/job-output.txt.gz10:12
tobiashquiquell: I'm not familiar with these jobs10:13
tobiashAJaeger: ^10:13
*** bjackman has quit IRC10:23
*** bjackman has joined #zuul10:28
*** pcaruana has joined #zuul10:37
*** andreaf has quit IRC10:54
*** andreaf has joined #zuul10:56
*** hashar has quit IRC11:01
*** jpena|brb is now known as jpena11:07
sshnaidmwhat does mean message " INFO - Configuration syntax error in dynamic layout"11:12
sshnaidmhow can I find where exactly the "syntax error"  in zuul config?11:13
sshnaidmtogether with "INFO - Configuration syntax error not related to change context. Error won't be reported."11:13
*** avass has joined #zuul11:19
tobiashsshnaidm: during startup?11:21
sshnaidmtobiash, when submitting a patch to gerrit11:24
sshnaidmtobiash, zuuls doesn't run jobs and posts these messages11:24
tobiashhrm, that's weird, normally the configuration errors should be there11:24
sshnaidmjust curious where to look for more meaningful message11:24
tobiashmaybe the debug log holds the real errors11:25
quiquellAJaeger, tristanC, tobiash: So devstack-multinode is passing https://review.openstack.org/#/c/632672/11:53
*** bhavikdbavishi has joined #zuul11:54
quiquellHumm to use finger at my zuul instance do I have to open port 79 ?12:04
quiquellNah is here https://zuul-ci.org/docs/zuul/admin/components.html12:10
openstackgerritTobias Henkel proposed openstack-infra/nodepool master: Improve connection timeout log message  https://review.openstack.org/63270412:11
*** hashar has joined #zuul12:11
pabelangerquiquell: yes, you will get parmiko issue on fedora with out -m PEM, since it is a newer version of SSH.  Agree with tobiash we should document this and work upstream to properly fix RFC 471612:13
quiquellpabelanger: thanks so much12:14
*** bjackman has quit IRC12:18
quiquellpabelanger: this looks good to you ? https://review.openstack.org/#/c/623294/ it has multinode testing review at the latest comments12:23
quiquellpabelanger: also this https://review.openstack.org/#/c/630649/ it has already a +212:24
quiquellpabelanger: thanks12:24
pabelangerquiquell: not sure on the multi-node-bridge job, I haven't reallhy been involved with it. clarkb might be a good person to review12:26
quiquellpabelanger: the nodepool one ?12:26
pabelangerwill review 630649 again this morning after coffee12:26
quiquellpabelanger: ack thanks again12:26
*** panda is now known as panda|launch12:32
*** jpena is now known as jpena|lunch12:33
openstackgerritJesse Pretorius (odyssey4me) proposed openstack-infra/nodepool master: openstack: Implement user data configuration  https://review.openstack.org/63270612:37
*** gtema has joined #zuul12:40
odyssey4meheh, I see someone else already did it12:51
odyssey4meI've posed a question in https://review.openstack.org/630649 - perhaps mordred is best qualified to answer.12:52
*** panda|launch is now known as panda12:53
quiquellsshnaidm: ^12:55
sshnaidmodyssey4me, hi, it's my patch, userdata is valid12:56
sshnaidmodyssey4me, tested with cloud config12:56
openstackgerritTobias Henkel proposed openstack-infra/nodepool master: WIP: Support userdata for instances in aws  https://review.openstack.org/63271212:56
odyssey4messhnaidm yeah, I see that - good patch :)12:58
sshnaidmodyssey4me, well, you're partially correct, but: https://github.com/openstack/python-novaclient/blob/master/novaclient/v2/servers.py#L662-L66312:59
sshnaidmodyssey4me, zuul uses nova client and this gets "userdata"12:59
odyssey4meok, so the nova library will change it - but as far as I know nodepool uses the openstacksdk, not the nova client library12:59
sshnaidmodyssey4me, I thin it's the same in this case13:00
odyssey4messhnaidm https://github.com/openstack/openstacksdk/blob/7f4b2b4068b004d1c82af267e32cb3eeb90f016a/openstack/compute/v2/server.py#L12213:00
pabelangerodyssey4me: sshnaidm: seems to say user_data: https://docs.openstack.org/openstacksdk/latest/user/model.html#server13:02
pabelangerI think that is the normalized data structure13:02
openstackgerritTobias Henkel proposed openstack-infra/nodepool master: WIP: Make public ip configurable in aws  https://review.openstack.org/63271513:02
sshnaidmodyssey4me, isn't it output?13:03
sshnaidmpabelanger, odyssey4me  https://github.com/openstack-infra/nodepool/blob/master/nodepool/driver/openstack/provider.py#L34013:03
sshnaidmpabelanger, no, it's "userdata" sure, because it works :)13:03
odyssey4messhnaidm I think user_data is the correct argument, and userdata is a shim13:03
pabelangerwill defer to mordred :)13:05
odyssey4meso here's the path: https://github.com/openstack-infra/nodepool/blob/master/nodepool/driver/openstack/provider.py#L340 -> https://github.com/openstack/openstacksdk/blob/46cbbfd372d4ba63c2256bca8e8359a045ae455b/openstack/compute/v2/_proxy.py#L423-L433 -> https://github.com/openstack/openstacksdk/blob/46cbbfd372d4ba63c2256bca8e8359a045ae455b/openstack/compute/v2/server.py#L12213:06
odyssey4meI think userdata is working, because openstacksdk will load the nova client if it's there to load, and the nova client has an alias for user_data called userdata13:07
sshnaidmodyssey4me, hmm.. it's used even in test: https://github.com/openstack/openstacksdk/blob/ec90fb64020bf41b5935bb78a62f323958c742fe/openstack/tests/unit/cloud/test_create_server.py#L41013:10
odyssey4meyeah, I suspect mordred will know the history better - this may even induce some rage against inconsistencies :p13:11
pabelangerI believe non underscore variables are legacy, and variables with underscore are new way moving forward. I seem to recall mordred saying they may be removed in future13:11
odyssey4meclearly both are used, and quite honestly I would rather not use anything that comes out of the service client libraries if possible... openstacksdk is lighter and better13:12
Shrewsactually, the correct path is here: http://git.openstack.org/cgit/openstack/openstacksdk/tree/openstack/cloud/openstackcloud.py#n678713:12
Shrewsuserdata is correct as a parameter to create_server() there13:12
odyssey4meheh, thanks Shrews13:13
odyssey4meit seems that perhaps 'userdata' is the non-encoded parameter, which http://git.openstack.org/cgit/openstack/openstacksdk/tree/openstack/cloud/openstackcloud.py#n6906 then encodes13:14
odyssey4meand adds as a user_data argument13:14
odyssey4mewhich is totally not confusing at all :p13:15
sshnaidmodyssey4me, yeah, better to be userdata64 in this case :)13:15
sshnaidmso userdata is good to go?13:15
odyssey4meyeah, it seems so - I'll +1 and comment on my own question13:15
odyssey4meoh, I see that tobiash already commented13:16
sshnaidmpabelanger, can you vote please? https://review.openstack.org/#/c/630649/13:17
*** rlandy has joined #zuul13:27
*** jpena|lunch is now known as jpena13:34
openstackgerritBenedikt Löffler proposed openstack-infra/zuul master: Report retried builds in a build set via mqtt.  https://review.openstack.org/63272714:01
mordredodyssey4me: fwiw, openstacksdk will _not_ load python-novaclient under any circumstances14:01
odyssey4memordred ah, I was thinking of ye olde shade :p14:02
* mordred is still reading/digesting scrollback14:02
mordredodyssey4me: yah - thank goodness we're off of the client libs now!14:02
*** panda is now known as panda|brb14:03
quiquellmordred: Can you help with https://review.openstack.org/#/c/623294/ it's already working and testing patches testing multinode is working too14:06
*** panda|brb is now known as panda14:08
mordredquiquell: lgtm14:08
quiquellmordred: AJaeger, clarkb maybe you can help too to merge that ^14:09
*** badboy has joined #zuul14:14
openstackgerritMonty Taylor proposed openstack-infra/zuul master: Use node v10 instead of node v8  https://review.openstack.org/63216514:14
badboymordred: I've been struggling to setup a working proof of concept of Zuul on a single machine and digging through the docs14:17
badboymordred: unfortunately there are a few things missing i.e. no gearman and zookeeper info14:17
badboymordred: would it be possible to mention that you need to install those yourself if you don't have them anywhere on the network?14:18
badboymordred: or maybe a simple guide on how to install these?14:18
badboymordred: just my two cents ;)14:18
*** avass has quit IRC14:20
*** avass has joined #zuul14:21
pabelangerbadboy: have you looked at the quick-start tutorial? https://zuul-ci.org/docs/zuul/admin/quick-start.html that is likey best working example today14:22
badboypabelanger: yes, the docker example works just fine but replicating that behavior on a non-contenerized environment is that simple14:23
badboys/is that/in't that/14:24
badboywell isn't14:24
Shrewsthose are also mentioned in https://zuul-ci.org/docs/zuul/admin/installation.html#external-dependencies14:24
badboyShrews: true, are mentioned except Zookeeper14:25
Shrewsbadboy: 2nd paragraph under Nodepool14:25
Shrewsbut perhaps deserves a section of its own, too14:26
badboyShrews: +114:26
badboybut there's also an Installation from scratch doc which describes installing nodepool and zuul14:26
badboymaybe adding installation guide of gearman and zookeper would be a good idea?14:27
quiquellShrews: Can you help +w this https://review.openstack.org/#/c/623294/ ? <- multinode zuul-jobs role14:28
openstackgerritMonty Taylor proposed openstack-infra/zuul master: Use node v10 instead of node v8  https://review.openstack.org/63216514:30
pabelangerbadboy: you can get gearman from zuul-scheduler today, with a config setting. But yah, zookeeper is hard dependency14:32
pabelangerhttps://zuul-ci.org/docs/zuul/admin/components.html#attr-gearman_server.start14:32
*** quiquell is now known as quiquell|lunch14:33
openstackgerritDavid Shrewsbury proposed openstack-infra/zuul master: Explicitly callout ZooKeeper as ext dependency  https://review.openstack.org/63273214:33
openstackgerritDavid Shrewsbury proposed openstack-infra/zuul master: Explicitly callout ZooKeeper as ext dependency  https://review.openstack.org/63273214:34
openstackgerritMerged openstack-infra/nodepool master: Support userdata for instances in openstack  https://review.openstack.org/63064914:36
mordredtobiash, Shrews, corvus: https://review.openstack.org/#/c/632577 is green, so I think the stack leading up to it is good to review/land (I wanted to see the quick-start working with the new images first)14:37
tobiashmordred: what is that awk magic supposed to do: https://review.openstack.org/#/c/632577/2/playbooks/quick-start/run.yaml ?14:37
openstackgerritMonty Taylor proposed openstack-infra/zuul master: Allow nodepool to use zuul-*-image jobs  https://review.openstack.org/63218614:38
openstackgerritMonty Taylor proposed openstack-infra/zuul master: Stop building an explicit zuul-base image  https://review.openstack.org/63218914:39
mordredtobiash: that's finding the names of all of the local images that start with zuul or nodepool but don't start with zuul/14:40
tobiashmordred: I ran that docker build locally and my local images don't have a name at all, just ids14:41
tobiashthat's why I'm confused14:41
Shrewsmordred: https://review.openstack.org/631840 commit message seems outdated w/o the curl/gnupg2 stuff14:41
mordredtobiash: oh? hrm. maybe I was wrong/sad about that working - let me retry locally14:41
tobiashand I cannot find any evidence in the build log that it tagged these images14:42
mordredtobiash: yeah - I thnik you're almost certainly right - I thnik my tagged images may have been from a different build :(14:42
tobiashmordred: I think you need to go through the target build cycle14:43
mordredyeah. grump. oh well14:43
tobiashbut the overhead of that should be minimal due to the cache14:43
mordredoh - totally - I'm just grumpy that I need to do it :)14:44
tobiash:)14:44
openstackgerritBenedikt Löffler proposed openstack-infra/zuul master: Report retried builds in a build set via mqtt.  https://review.openstack.org/63272714:45
openstackgerritMonty Taylor proposed openstack-infra/zuul master: Use node v10 instead of node v8  https://review.openstack.org/63216514:45
Shrewsmordred: did you want to correct that commit message, or just let it go?14:53
*** hashar has quit IRC14:54
openstackgerritMonty Taylor proposed openstack-infra/zuul master: Build zuul containers with dockerfile not pbrx  https://review.openstack.org/63184014:54
openstackgerritMonty Taylor proposed openstack-infra/zuul master: Remove zuul-migrate and zuul-bwrap images  https://review.openstack.org/63216714:54
openstackgerritMonty Taylor proposed openstack-infra/zuul master: Switch to zuul-jobs docker jobs  https://review.openstack.org/63217314:54
openstackgerritMonty Taylor proposed openstack-infra/zuul master: Update quick-start job to build images with dockerfile  https://review.openstack.org/63257714:54
mordredShrews: corrected14:54
openstackgerritMonty Taylor proposed openstack-infra/zuul master: Use node v10 instead of node v8  https://review.openstack.org/63216514:54
mordredand lets see if that version of the quick-start job patch works14:54
tobiashSpamapS: are you using custom AMIs or the default ones provided by amazon?14:56
*** badboy has quit IRC15:01
*** quiquell|lunch is now known as quiquell15:03
pabelangerCI related news, looks like travisCI has new overlords15:08
*** bjackman has joined #zuul15:10
openstackgerritMerged openstack-infra/zuul-jobs master: Add docker image build jobs  https://review.openstack.org/63217215:16
openstackgerritMerged openstack-infra/zuul master: Replace build-essential with gcc/g++  https://review.openstack.org/63257615:23
*** saneax has quit IRC15:25
*** themroc has quit IRC15:28
*** bjackman has quit IRC15:28
*** quiquell is now known as quiquell|off15:30
*** themroc has joined #zuul15:30
openstackgerritMonty Taylor proposed openstack-infra/zuul master: Update quick-start job to build images with dockerfile  https://review.openstack.org/63257715:42
*** bjackman has joined #zuul15:58
*** ParsectiX has joined #zuul16:05
*** ParsectiX has quit IRC16:05
*** ParsectiX has joined #zuul16:05
*** ParsectiX has quit IRC16:06
*** luizbag has joined #zuul16:27
*** sshnaidm is now known as sshnaidm|afk16:46
*** themroc has quit IRC16:46
corvusmordred, tobiash, Shrews: i'd like to restart openstack's zuul, check that it's working, make a release, then dive back into images with ya'll16:47
tobiash:)16:48
mordredcorvus: I would also like all of those things16:48
SpamapStobiash: I am using Ubuntu's stock AMI's16:48
*** hashar has joined #zuul16:48
SpamapStobiash: I update to the latest ones manually every once in a while (thanks for the reminder, it's been a few weeks)16:49
tobiashSpamapS: how do you install python on these?16:49
SpamapSI did take a stab at making nodepool-builder work with EC2.. it's actually not hard at all and I had it half-working before I got distracted16:49
SpamapStobiash: I have site variables that set ansible_python_interpreter=/usr/bin/python316:49
tobiashah ok16:50
tobiashthat works?16:50
SpamapSquite well yes16:50
SpamapSI had to fix one bug, but that landed months ago16:50
tobiashso maybe we don't need ansible_python_interpreter anymore?16:50
SpamapS(we weren't using site variables on the ansible -m setup call)16:50
SpamapSNo you still have to set that.16:51
SpamapSAnsible just doesn't know what to do with a python3-only box.16:51
tobiashthat makes me sad16:51
SpamapSI'm guessing that's one of those things they won't be able to solve until 3.016:51
mordredyeah - but we could potentially stop setting it to python216:51
openstackgerritMonty Taylor proposed openstack-infra/zuul master: Update quick-start job to build images with dockerfile  https://review.openstack.org/63257716:52
tobiashmaybe we get autodetection in 2.8: https://github.com/ansible/ansible/issues/4585216:53
SpamapSOh yeah that'd be nice, I kind of expected it'd have to wait until some interface changes.16:53
tobiashmaybe we just have to wait until python2 is not supported anymore ;)16:55
*** avass has quit IRC17:07
corvusi'm going to tag 9e679eadedf2b64955b0511cada91018a1a0e30a as zuul 3.5.017:11
tobiash++17:12
mordred++17:12
pabelanger++17:23
pabelangerSpamapS: tobiash: good to know about site var for ansible_python_interpreter, going to try that out myself17:25
pabelangerbut would also be nice to expose that at job level17:25
tobiashwhat do you think about adding provider/pool specific hostvars in nodepool?17:26
SpamapSIIRC it has to be done at the site var level because zuul runs -m setup early on, before job vars are in the picture.17:26
corvusokay, 3.5.0 and the release/security announcements are out17:26
SpamapStobiash: I'd think nodesets are the better place for that.17:26
pabelangercorvus: thanks! going to try updating now17:27
tobiashSpamapS: I'm not sure, nodesets are typically job focused so having infrastructure related hostvars could make sense17:27
tobiashcorvus: cool :)17:28
SpamapSAnything that the ansible fact gathering doesn't already set that you can think of?17:28
tobiashpython interpreter, maybe proxy vars17:28
tobiashor mirror urls17:29
SpamapSYeah that all makes sense.17:29
SpamapSthe interpreter not so much, I'd think that's image-specific.17:30
SpamapS(but having image vars is also not an awful idea)17:30
tobiashyeah17:30
SpamapSThough for that, there's always userdata, which IIRC is landing in openstack now or has landed.17:31
tobiashit has landed17:33
tobiashSpamapS: what do you think about InstanceInitiatedShutdownBehavior='stop'|'terminate' in the aws driver?17:35
pabelangercorvus: fungi: at what point do we start publishing CVE for zuul? Or guidelines around it?17:36
tobiashSpamapS: forget it17:36
tobiashI've read that wrong17:36
pabelangerwas just asked about it downstream, and don't really know17:36
fungipabelanger: we have instructions in the user documentation about how to report suspected vulnerabilities. for requesting a cve assignment, it's a judgement call and anyone can do that17:37
fungii started drafting instructions for zuul maintainers on process for triaging and handling reported vulnerabilities but need to pick that back up17:38
pabelangerfungi: okay, thanks. I'm guessing, doing a CVE has pros and cons too? Like look, we have a security issue but also, look a security issue17:38
fungithough the process the openstack vmt uses is fairly applicable, i think (with a few minor tweaks anyway)17:39
corvusapparently people can request cves for things in systems that they don't maintain that aren't even security vulnerabilities17:40
*** gtema has quit IRC17:41
fungiyes, that's exactly true17:41
mordredcough *yaml* cough17:41
fungiand anyone else can dispute them too17:41
corvuspabelanger: would requesting cves be helpful?17:41
fungithe point of the cve databse seems to be lost on a lot of people. it's really for making sure there's a short reference identifier multiple parties can use as a reference when discussing or collaborating around the same vulnerability17:43
pabelangercorvus: I am not sure, I can ask more with internal humans. It was just the first question asked when I indicated a new security issue was found, should upgrade to 3.5.017:44
corvusfungi: you mean it's not a scorecard?17:45
fungiright, whether or not that unique id maps to an actual vulnerability or a mistake is somewhat orthogonal17:46
fungis/mistake/mistaken report/17:46
mordredtobiash, corvus, Shrews: woot! https://review.openstack.org/#/c/632577 is green now - this time legitimately and for real I think17:46
fungia lot of people incorrectly assume that an unaddressed cve for a piece of software is a sign the software is insecure somehow17:47
corvusmordred: it depends on a nodepool change17:47
corvusmordred: and that nodepool change is going to need updating to copy the zuul secret/job/etc17:48
corvusbut i'll go ahead and start looking at the zuul change :)17:48
mordredcorvus: yeah - it's mostly to show that the zuul change will work with compose ... however ..17:49
mordredI think it's still not solid17:49
pabelangercorvus: seems CVE request was more just to find addional info, like sha1 for potential cherry-pick. However, ML discussion also worked for today. So, think we are okay on that front for now17:49
corvusmordred: ooh, tell me what it's missing before i add my +2 :)17:50
mordred(the compose change, not the dockerfile change)17:50
corvuspabelanger: oh, sorry, we usually point to the gerrit change in our security announcements, i forgot to do that.17:50
mordredcorvus: in the compose change, we're only tagging as change_xxx and not as latest, so docker compose is still pulling latest17:50
mordredcorvus: I think I need to add tag: latest to the build variables17:50
corvusmordred: is there a compose change up?17:51
mordredcorvus: yes - https://review.openstack.org/#/c/63257717:51
corvusthx17:51
mordredcorvus: but I think it's still bong17:51
mordreds/I think//17:52
corvusmordred: what does that have to do with compose?17:52
corvusthat uses the build-docker-image role...17:52
mordredcorvus: compose/quick-start17:52
mordredgah17:52
mordreds/compose/quick-start/17:52
corvusok.  that makes sense.17:53
mordredsorry - the comose invocation in that change is not consuming the images built by the build step17:53
corvusi thought you were talking about using docker-compose to build.  which is a thing that can be done.17:53
mordredyeah - I started looking at that too ... and I think I might have to17:54
corvusmordred: i think we can have build-docker-image tag the images latest as well17:54
corvusmordred: or, rather, have it tag the images it builds with whatever is is docker_images[].tag  (which defaults to latest)17:54
mordredcorvus: which do you think is better here? for compose, are we ok growing a dependency on the nodepool source being cloned adjacent to the zuul source?17:55
corvusi don't think having the extra local tags will affect the operation of the other 2 roles, and it would make things more consistent between the local and eventual upstream env.  and it would make this work, yeah?17:55
mordredcorvus: yah17:55
corvusmordred: for the purposes of quick-start, i think no.17:55
mordredcorvus: yah. so in that case, I think putting build things into the compose file is going to make things less good - let's do the build role thing17:56
corvus(we don't expect people to *do* anything with the zuul source code, we only have zuul cloned because that's where it happens to live)17:56
mordredyah17:56
corvus(and if someone said "we should put quick-start in a repo of it's own" i think that's compelling enough we'd have a serious conversation about it)17:56
openstackgerritMonty Taylor proposed openstack-infra/zuul-jobs master: Apply requested tags locally for docker build  https://review.openstack.org/63279018:01
mordredcorvus: ^^18:01
tobiashSpamapS: is it correct that ec2 picks the availability zone by the selecting the subnet?18:01
tobiashas I understood each az has its own subnets?18:01
tobiashso if I want nodepool to spread over az's in aws I'd have to either don't define a subnet or have three pools?18:03
openstackgerritMonty Taylor proposed openstack-infra/zuul master: Update quick-start job to build images with dockerfile  https://review.openstack.org/63257718:03
mordredcorvus: ^^ and there is the quick-start change with depends-on on that zuul-jobs change added18:04
*** hashar is now known as hasharDinner18:04
mordredcorvus: I think it might be nice to put $something into the quick-start job to verify that the compose used the image we built - but I'm not sure what atm18:04
corvusmordred: small fix needed on 79018:05
mordredcorvus: ++18:06
corvusmordred: what does it look like if the job doesn't use it?  does the local image registry have extra zuul images?  maybe we could do a docker image list and make sure it looks right?18:06
openstackgerritMonty Taylor proposed openstack-infra/zuul-jobs master: Apply requested tags locally for docker build  https://review.openstack.org/63279018:06
mordredcorvus: yeah - I think that would work18:07
mordredcorvus: look for images with change_ in their tags18:07
mordredcorvus: and make sure the sha of those matches the :latest versions of the same images18:07
corvusmordred: ya, i think that would do it18:07
corvusmordred: while you're there, can you have the quick-start job emit docker image list into the logs?18:08
corvus(that'll help us double check this and identify problems in the future)18:08
mordredcorvus: yeah. in fact, why don't I do that real quick while I work on the other thing18:08
corvuscool, then we'll have something to compare18:09
*** saneax has joined #zuul18:11
*** saneax has quit IRC18:11
openstackgerritMonty Taylor proposed openstack-infra/zuul master: Update quick-start job to build images with dockerfile  https://review.openstack.org/63257718:11
SpamapStobiash: correct, subnets do not span az's18:15
SpamapStobiash: note that if you specify multiple AZ's in OpenStack, they don't spread either. You get one AZ for all your nodes for each request (which is particularly broken if you have large node requests and multiple AZ's, because min-ready's choose a random AZ)18:17
*** bhavikdbavishi has quit IRC18:17
SpamapStobiash: so arguably it's better to have 1:1 pool:AZ18:17
*** bhavikdbavishi has joined #zuul18:18
*** saneax has joined #zuul18:18
*** saneax has quit IRC18:18
tobiashSpamapS: got it18:19
*** ssbarnea|bkp2 has joined #zuul18:28
*** ssbarnea|rover has quit IRC18:29
*** gtema has joined #zuul18:29
*** themroc has joined #zuul18:41
corvusmordred: good news and bad news!18:44
*** jpena is now known as jpena|off18:44
corvusmordred: good news: we're using the built container images now!  http://logs.openstack.org/77/632577/7/check/zuul-quick-start/90b3631/job-output.txt.gz#_2019-01-23_18_26_19_01904318:45
mordredyes!18:45
*** bhavikdbavishi has quit IRC18:45
corvusmordred: bad news is they don't work18:45
mordredI agree - they were definitely correctly used18:45
corvusmordred: http://logs.openstack.org/77/632577/7/check/zuul-quick-start/90b3631/container_logs/executor.log18:45
corvus(but even that is good news -- testing is working!)18:45
corvus2019-01-23 18:27:53,112 DEBUG zuul.AnsibleJob: [build: d80f72a4e2dc45ac86481294ba7611ca] Ansible output: b'/usr/local/bin/python: error while loading shared libraries: libpython3.7m.so.1.0: cannot open shared object file: No such file or directory'18:45
corvus(sorry, can't deep link that one, but that's from that executor log ^)18:46
mordredooh. well that's certainly weird18:46
mordredcorvus: I am investigating that locally18:49
mrhillsmanq: static driver does not accept range of ip addresses; i have to create one entry per ip?18:53
tobiashmrhillsman: currently yes18:54
mrhillsmanif yes does anyone have a snazzy way to manage that or ideas/implementations of how they are managing that18:54
tobiashmrhillsman: you could use yaml anchors to simplify it at least a little bit18:55
*** mugsie has quit IRC18:55
mrhillsmanwill look into that; ty sir18:56
*** mugsie has joined #zuul18:57
tobiashyw18:57
tobiashmordred: corvus: I guess that's because /usr/local is not mounted into the bwrap18:58
tobiashthat probably needs to be either added to the (un)trusted-ro-paths or added into zuul as default mount18:59
tobiashhrm, I lied, the whole /usr is mounted19:01
pabelanger3.5 deployed and restarted! thanks19:05
pabelangerHmm, I thought we included the version number of zuul in jobs someplace19:06
*** gtema has quit IRC19:07
*** electrofelix has quit IRC19:11
corvuspabelanger: no, but it's on the status page19:26
*** spsurya has quit IRC19:55
*** dkehn has joined #zuul19:58
*** themr0c has joined #zuul20:10
*** themroc has quit IRC20:13
*** luizbag has quit IRC20:21
Shrewssoooo, if folks are feeling adventurous, i think we have 2 nodepool reviews up that we should get in and restart the openstack builders and launchers with them: https://review.openstack.org/614370 and https://review.openstack.org/62992320:39
Shrewsthose would be worthy of tagging a new nodepool release if there are no issues found20:39
Shrewsor not20:40
tobiashoh the port revert revert :)20:48
corvuswe usually like to wait for 4 reverts before adding new features... ;)20:52
tobiashShrews: I just noticed that I'll have to adapt my dib wrapper for windows image builds due to --logfile, good to know20:53
tobiashShrews: am I reading this correctly that we don't kill dib on a timeout?20:54
Shrewstobiash: right. i think our signal handling up front prevents that from working20:55
corvusShrews: that seems strange... zuul-executor kills ansible all the time.20:56
Shrewscorvus: that's weird. both p.kill() and p.terminate() caused tests to hang for me20:56
Shrewshow does zuul-executor kill the subprocess?20:57
tobiashShrews:                 pgid = os.getpgid(self.proc.pid)20:58
tobiash                os.killpg(pgid, signal.SIGKILL)20:58
corvusi think we start ansible in a new process group20:59
corvusmaybe we need to do that here20:59
tobiashmore context here: https://git.zuul-ci.org/cgit/zuul/tree/zuul/executor/server.py#n177520:59
*** themr0c has quit IRC20:59
Shrewscorvus: would that affect killing the subprocess if we kill the builder process itself? i thought that was the reason for the current design (copied from v2)21:00
Shrews(signal propogates to the child something something)21:01
corvusShrews: that's unclear to me right now.  what we do in zuul, however, would end up sending the signal to all the *dib* subprocesses, which probably isn't what we want21:01
corvusiiuc, we want to send dib a nice friendly signal to tell it to start killing its subprocesses21:01
corvus(if, instead, we just want to give up on dib ever doing anything useful after that point, and kill it all, then we should do what zuul is doing)21:01
corvus(we do it this way in zuul because, in the case of a job timeout, there is not ansible cleanup we want to run, and we know we can clean up behind ansible.  but we're not doing things like mounting filesystems.)21:02
corvusShrews: if i wanted to replicate what you saw, what test should i run?21:03
Shrewscorvus: the newly added test21:03
corvusk.  imma gonna poke at that a bit.21:03
Shrewscorvus: add the p.kill() call to the "except subprocess.TimeoutExpired" section21:04
* Shrews gladly accepts additional code poking21:05
*** hasharDinner is now known as hashar21:09
*** rlandy is now known as rlandy|brb21:10
Shrewscorvus: oh, hrm, i'm seeing something different when using ttrun instead of tox.21:16
corvusShrews: yeah, i'm looking at whether we need to adjust wait_for_builds21:16
* tobiash just ran an experimental job on a 72 core vm in aws21:18
tobiashhtop looks awesome...21:18
corvusShrews: i'm also seeing that sometimes wait_for_builds sees dib files, but sometimes it doesn't.  i'm wondering if, with the pkill, we kill the process before it writes the files that waitForBuild is looking for21:20
corvussorry, i made up 'wait_for_builds' it's waitForBuild21:21
Shrewscorvus: agreed. the fake dib doesn't write the manifest until the end of the script21:21
corvusShrews: maybe we should skip checking for the file if the state isn't ready?21:21
Shrewscorvus: i'm going to try a flag to override that test21:21
Shrewsor that21:22
corvusShrews: based on me hacking out that section of the code, it's looking very promising locally.  :)21:23
corvusi'll leave a review comment for posterity and leave it to you to push up a new ps21:23
Shrewscorvus: yeah. thx for the 2nd pair of eyes there21:25
corvusShrews: np, glad it wasn't actually signal handler debugging :)21:26
Shrewsi'm mad i missed that the first time21:26
openstackgerritDavid Shrewsbury proposed openstack-infra/nodepool master: Add a timeout for the image build  https://review.openstack.org/62992321:27
mordredin case anyone was wondering, /bin/bah is not a valid command21:34
Shrewsmordred: /sbin/bah?21:35
corvuslol21:36
Shrewsmordred: ah, you must install the bah package. it also gives you /bin/flerp21:36
*** hashar has quit IRC21:39
mordredShrews: ++21:43
mordredcorvus: so - python and ansible both work fine in the image21:43
mordredI haven'21:43
mordredI haven't gotten it to break in the same way it's breaking when running zuul-executor21:43
mordredso I'm guessing it has something to do with the run when it's setup in zuul - which means perhaps either our callback plugin or the ara callback plugin21:44
corvusmordred: there's a playbook to run the zuul-quick-start job locally21:45
mordredyeah. I'm getting close to doing that21:45
corvusmordred: playbooks/quick-start/localtest.yaml21:46
mordredcorvus: I was hoping I could trigger it just by running simple python or ansible things ... you know, if it was linker related or something21:46
corvusmordred: it could be an inside bwrap thing21:46
mordredyeah. could be21:46
corvusmordred: running zuul-bwrap in the image might be helpful21:46
mordredgood call21:46
corvusit's not entirely straightforward, lemme conjure an invocation21:46
mordredmight just be easier to run the localtest playbook21:47
corvusmordred: actually it might be easy for this case21:47
corvusmordred: "zuul-bwrap /tmp python" might work21:47
corvusmordred: or "zuul-bwrap /tmp ansible ..."21:47
corvus(it gets trickier to run zuul-bwrap if you want to mount secrets or deal with ssh-agent, etc, but i don't think we need all that for this)21:49
SpamapSTIL that unlabeling an approved PR in github does *not* prevent Zuul from merging it.21:49
SpamapSI wonder if I don't have the right requirements on the pipeline21:50
SpamapShrm no, I guess we don't check requirements after gate tests pass.21:50
corvusSpamapS: i think the requirements are validated only on entry21:50
SpamapSwhy does removing +A on gerrit prevent merge?21:50
SpamapS(or does it?)21:50
corvusSpamapS: because gerrit enforces it21:50
SpamapSOhhhhhhh21:50
*** rlandy|brb is now known as rlandy21:51
SpamapSI wonder if closing the PR would prevent the merge21:51
SpamapSkinda need a way for my users to stop the presses :-P21:51
corvuswe *could* evaluate requirements after entry as well, though we'd need a way to maintain the current behavior too (openstack, for example, relies on it for the "clean check" behavior, where a change must have a zuul+1 to enqueue into gate)21:52
mordredSpamapS: does closing the PR cancel the jobs? I know in gerrit abandoning a change does21:52
SpamapSI don't know, that's worth playing around with a bit.21:53
corvuswhether it currently behaves that way or not, it sounds entirely reasonable :)21:53
mordredyeah. in fact, I'd say if it _doesn't_ currently behave that way - it should21:58
pabelangerSpamapS: Yah, I ran into that issue too, haven't fixed it yet either23:04
pabelangertoo bad branch protections don't enforce labels, would be another way to do it23:05
*** bjackman has quit IRC23:06
*** bjackman has joined #zuul23:07
*** rlandy is now known as rlandy|bbl23:29

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