Friday, 2019-02-22

tristanCcorvus: what if you don't gate with every possible variation of the test job...00:00
tristanCi mean, what if you can't because there are too much of them00:00
tristanCthen what Q[AE] do (iiuc) is run those case manually before shipping the fix00:01
corvustristanC: then a change to add the purportedly broken configuration to the gating configuration sounds like a fine change to make.  or maybe, make a change (A) to add the gating configuration, make a change (B) to fix the bug, make a change (C) to add a unit test, make a change (D) to remove the gating configuration because it's now covered by a regression test.00:02
corvustristanC: in the process you describe, is there any testing added for the fix?00:03
tristanCcorvus: i agree, but that's not how Q[AE] currently operate, they don't do git...00:03
corvustristanC: if they don't do git, then what are they testing?  i mean, how do they test the fix, if the fix doesn't include a change to the source code?00:04
tristanCcorvus: dev fixes (upstream if needed), then dev produces a new package which gets validated by Q[AE] (iiuc)00:05
corvustristanC: the purpose of zuul is to have the fix tested as part of the development.00:06
corvustristanC: i have two suggestions of how to proceed:00:06
corvustristanC: 1) since you and i and mordred work at the same company, we should go have some nice internal company meetings about how teams can utilize automated test-centric gating workflows with zuul :)00:08
*** sdake_ has quit IRC00:08
corvustristanC: 2) in the mean time, to enable the kind of sharing of jobs between devs and qe folks, look into using playbooks outside of zuul.  as you know (from working on zuul-runner), zuul basically just sets up some stuff for ansible to run.  so if you make sure that the *playbooks* take the right variables as input, then you can run those playbooks with zuul, or have QEs run them manually.  or maybe use00:10
corvusAWX, or some other way of running them.  i don't know if zuul-runner is far along enough to consider yet, but obviously when that lands, that would be something to consider too.00:10
tristanC1) would be ideal, but it may not be the right approach. There are good arguments to keep q[ae] separated from dev. And I was hoping Zuul could adapt to people workflow, not the other way around...00:13
tristanC2) we are also waiting for zuul-runner to be reviewed, but that doesn't solve the nodepool side of things00:13
tristanCthe proposed webtrigger would work just fine, but if that's not possible, we could build a simple service to manage the creation/deletion of the fake review to run those jobs too...00:14
corvusunderstood00:16
tristanCor maybe, zuul could manage an internal git server to host those fake review and provide (git) history :)00:17
tristanCa bit like how gerrit is now using git to store user's pref00:17
*** sdake has joined #zuul00:24
tristanCcorvus: what about https://review.openstack.org/637666 , this change adds a zuul.amqp job variable with the content of the trigger event, would that be considered a model violation too?00:28
corvustristanC: yes, the thing that's enqueued in a zuul pipeline is a git ref that's provided by a source driver.  so any information about the thing that's enqueued has to come from the source, not from the trigger.00:31
tristanCcorvus: and the source has to be git protocol?00:33
pabelangerIt sounds like there is a new ansible 2.5 / 2.6 / 2.7 security release (2.5.15 in our case) with fetch module. But believe we are likely protected with bwrap.00:34
pabelangerhttps://bugzilla.redhat.com/show_bug.cgi?id=CVE-2019-382800:34
pabelangerI won't have time tonight to dig into it, but wanted to give heads up as just seen it via inbox00:35
corvustristanC: yes, but it can add information.  for instance, information about the gerrit change or github pull request (like whether it's open, or review votes, labels, etc) is in scope.00:35
openstackgerritIan Wienand proposed openstack-infra/nodepool master: Use a pipeline for dib stats  https://review.openstack.org/63826500:37
openstackgerritIan Wienand proposed openstack-infra/nodepool master: Update dib stats  https://review.openstack.org/63853300:37
tristanCcorvus: my bad, i didn't realized non git source would be rejected. Then it seems like we would have to convert external event such as webtrigger or amqp message to git ref and give those to zuul00:39
*** rlandy is now known as rlandy|afk00:49
*** takamatsu_ has joined #zuul01:26
*** takamatsu has quit IRC01:26
tristanCcorvus: thinking though this, i don't think there is value in the web or the amqp trigger, since they are not git based. It seems like we'll have to build tooling around it, some sort of git gateway or a zuul-runner based extra service.01:35
tristanCToo bad, it would have been nice to have this supported by default in zuul...01:36
*** sdake has quit IRC01:44
*** sdake has joined #zuul01:45
*** bhavikdbavishi has joined #zuul02:08
openstackgerritIan Wienand proposed openstack-infra/nodepool master: Update dib stats  https://review.openstack.org/63853302:26
*** rfolco|rover has quit IRC02:30
*** sdake has quit IRC02:32
*** sdake has joined #zuul02:34
*** sdake has quit IRC02:38
*** sdake_ has joined #zuul02:39
*** sdake_ has quit IRC03:03
*** sdake has joined #zuul03:11
*** bhavikdbavishi has quit IRC03:30
*** sdake has quit IRC03:33
*** bhavikdbavishi has joined #zuul04:20
*** rlandy|afk is now known as rlandy04:21
*** swest has joined #zuul05:58
*** saneax has joined #zuul06:06
*** ruffian_sheep has joined #zuul06:26
*** calebb has quit IRC06:27
*** badboy has joined #zuul06:35
*** quiquell|off is now known as quiquell06:59
*** sdake has joined #zuul07:00
*** bhavikdbavishi has quit IRC07:01
openstackgerritTobias Henkel proposed openstack-infra/zuul master: Optionally disable disk_limit_per_job  https://review.openstack.org/63859607:13
*** sdake has quit IRC07:33
*** hashar has joined #zuul07:41
*** cmurphy has left #zuul07:55
*** [GNU] has quit IRC07:56
*** bhavikdbavishi has joined #zuul07:59
*** sdake has joined #zuul08:18
*** gtema has joined #zuul08:28
ruffian_sheep I can do the cmd to clone this project?Isn't mean I set the right ssh key? SpamapS08:43
ruffian_sheepDoes anyone know how to deal it?  git.exc.GitCommandError: Cmd('git') failed due to: exit code(-13)08:43
ruffian_sheepI can do the cmd by myself.But I cannot be used by the service. http://paste.openstack.org/show/745241/08:44
ruffian_sheep I can do the cmd to clone this project?Isn't mean I set the right ssh key?08:44
*** nilashishc has joined #zuul08:56
*** sshnaidm is now known as sshnaidm|off08:56
*** jpena|off is now known as jpena09:02
*** panda|ruck|off is now known as panda|ruck09:24
*** sdake has quit IRC09:26
*** nilashishc has quit IRC09:26
*** nilashishc has joined #zuul09:27
*** electrofelix has joined #zuul09:36
openstackgerritJakub Bielecki proposed openstack-infra/nodepool master: doc bugfix for static provider  https://review.openstack.org/63751809:40
*** swest has quit IRC09:45
jkttristanC, mordred: OK, I'm fine with that -- it's just that I would like to get something running "now"; I can always switch to something less sucking in future09:56
jktI'm a bit lost when it comes to jinja and zuul.projects -- how do I access e.g. src_dir of a project whose name I know?09:57
jktI tried zuul.projects["foo/bar"].src_dir and zuul.projects.foo/bar.src_dir, and neither works09:57
*** nilashishc has quit IRC10:03
*** takamatsu_ has quit IRC10:04
*** takamatsu has joined #zuul10:05
jktah, right, I was just missing my gerrit fqdn as a prefix10:07
*** takamatsu_ has joined #zuul10:23
*** takamatsu has quit IRC10:24
*** takamatsu_ has quit IRC10:48
*** takamatsu has joined #zuul10:49
*** takamatsu has quit IRC10:54
*** takamatsu has joined #zuul10:58
*** ruffian_sheep has quit IRC11:09
*** sdake has joined #zuul11:12
*** bhavikdbavishi has quit IRC11:30
*** sdake has quit IRC12:03
*** AJaeger has quit IRC12:04
*** sdake_ has joined #zuul12:04
*** rfolco|rover has joined #zuul12:06
*** AJaeger has joined #zuul12:17
*** EmilienM is now known as EvilienM12:27
*** jpena is now known as jpena|lunch12:35
*** smyers_ has joined #zuul13:03
*** smyers has quit IRC13:03
*** smyers_ is now known as smyers13:03
*** panda|ruck is now known as panda|lunch13:10
*** quiquell is now known as quiquell|off13:22
*** rlandy has joined #zuul13:34
*** nilashishc has joined #zuul13:50
*** saneax has quit IRC13:51
*** sdake_ has quit IRC13:51
*** jpena|lunch is now known as jpena14:13
*** panda|lunch is now known as panda14:13
*** sdake has joined #zuul14:17
*** jamesmcarthur has joined #zuul14:17
*** panda is now known as panda|rcuk14:21
*** panda|rcuk is now known as panda|ruck14:21
*** jamesmcarthur has quit IRC14:26
*** jamesmcarthur has joined #zuul14:40
*** sdake has quit IRC14:43
*** sdake has joined #zuul14:45
*** bhavikdbavishi has joined #zuul14:55
*** bhavikdbavishi has quit IRC15:14
*** bhavikdbavishi has joined #zuul15:15
corvustristanC: the trigger doesn't have to be git based, it just has to point to a git ref.  so it's fine to have a web trigger that allows someone to say "enqueue nova master" or "enqueue nova stable/pike" or "enqueue nova change 123456 patchset 2"15:21
*** sdake has quit IRC15:21
*** sdake has joined #zuul15:23
*** hashar has quit IRC15:50
SpamapScorvus: thanks for the tip, I missed that part of the promote pipeline. :-P16:24
SpamapScorvus: (regarding your repoly about change vs. sha)16:24
SpamapSreply too16:24
corvusSpamapS: np, let me know how it works :)16:26
mnaserquestion: shouldn't the 'nodes' section be technically moved up to the global tenant list view?16:36
mnasernodes arent necessarily per tenant.. or are they? i know labels are16:36
mnaseror vice versa, i dunno, but it doesn't seem like a tenant construct (the # of vm's available)16:36
openstackgerritJames E. Blair proposed openstack-infra/zuul-preview master: Build docker image  https://review.openstack.org/63703716:37
*** hashar has joined #zuul16:40
*** hashar has quit IRC16:41
mnaseri just thought it would be pretty neat for us to come up with something like `zuul_log` module inside zuul-jobs16:41
mnaserit can be super useful in case i want to log the output of some arbitrary command16:41
mnaserinstead of using shell: foo > bar.x16:42
clarkbmnaser: the zuul console log does already log all shell and command output fwiw16:46
mnaserclarkb: right but im thinking more to log it into a file16:47
mnaserthe console log can get pretty big16:47
corvusmnaser: we'd like to have a javascript+json version of the build log where all of the boring stuff is collapsed by default and interesting stuff is expanded, so it's easy to find things16:53
mnasercorvus: yeah i think travis does this neatly and we can do the same by maybe doing it on a play and task level16:54
corvusmnaser: we already have the .json version of the log to support that.16:54
corvusjust need the javascript16:54
corvustristanC has done some work recently which shows error tasks in the build overview page16:55
mnaseron the subject of logging, figuring out how to buffer last N lines but also allowing to scroll up above before that would be neat not to thrash browsers16:55
corvusmnaser: here's an example failure: http://zuul.openstack.org/build/09fd864397ed4756b311958aafa6136c16:57
corvusthat's parsed live from the json file16:57
dmsimardmnaser: fwiw ara has ara_record17:05
dmsimardNot available in Ansible's Zuul however17:05
dmsimardOr rather Zuul's Ansible17:06
*** takamatsu_ has joined #zuul17:48
*** takamatsu has quit IRC17:48
*** gtema has quit IRC17:51
*** sdake has quit IRC17:54
*** sdake has joined #zuul17:55
*** electrofelix has quit IRC17:58
*** takamatsu_ has quit IRC18:03
*** takamatsu_ has joined #zuul18:06
openstackgerritJames E. Blair proposed openstack-infra/zuul-jobs master: DNM: test  https://review.openstack.org/63873618:07
*** jpena is now known as jpena|off18:07
*** nilashishc has quit IRC18:12
*** josefwells has joined #zuul18:16
josefwellshey zuul-wizards, wondering if there are any reasons to go with a github-application vs webhook configuration18:20
pabelangerIIRC, github app gets you higher rate limit18:21
*** jamesmcarthur has quit IRC18:22
pabelangerhttps://zuul-ci.org/docs/zuul/admin/github_setup.html#configure-github18:22
josefwellsthanks pabelanger, I'm on an enterprise github setup and don't have a rate-limit18:22
josefwellsI can't seem to make the applications work18:23
josefwellsRequest signature does not match calculated payload signature. Check that secret is correct.18:23
josefwellsI'm working with the quick-setup docker images, have added my github, but it doesn't seem to work still18:24
josefwellsI see some mention in the logs like this: scheduler_1     | 2019-02-22 18:09:23,939 INFO zuul.TenantParser: Saving RSA keypair for project zuul/zuul-test-config to /var/lib/ zuul/keys/secrets/project/github/zuul/zuul-test-config/0.pem18:25
josefwellsbut that is the only mention of any .pem I see18:25
pabelangerjosefwells: did you setup a secret in the github app?18:26
josefwellsyes18:26
pabelangeryou'll also need to that that to zuul.conf18:26
josefwellsyeah, I have that, in fact, it all started working when I added a webhook to the organization18:26
josefwellsso the webhook side works18:26
pabelangeryou have 3 settings under your github connection? app_id / app_key / webhook_token?18:27
*** rlandy is now known as rlandy|brb18:28
josefwellssome others as well, user / server / baseurl / sshkey18:28
josefwellsthe app key I had on a bind volume, but tried also to add an ansible task to copy it and leave the user/permissions as root 60018:29
josefwellsI don't ever see anything in the logs about zuul finding it, etc18:30
pabelangerjosefwells: where are you seeing the check that secret is correct message?18:30
josefwellsmaybe I could turn  up the logging,18:30
josefwellsthat shows up on github, if I look at the application's deliveries, it is the 401 response18:31
pabelangerunrelated: damn, I just hit https://review.openstack.org/633314/ again on github. Would great if we could think about zuul release to pick up fixes. Lead to an hour of yak shaving why zuul.yaml changes were not picked up on untrusted jobs18:31
pabelangerjosefwells: and your zuul is on public web so github can reach it?18:31
josefwellshmm, that is a good question18:32
pabelangerI don't think I have see that error before, but maybe tobiash knows more18:32
josefwellsusing the docker images18:32
josefwellsand I notice that I can only see host:9000 from localhost18:32
pabelangeryah, you'll need to expose zuul-web 9000 (I think) to network for your github install18:32
josefwellslet me try that, good idea18:33
pabelangerthat is how zuul gets webhooks18:33
josefwellsodd that the webhook version works18:33
tobiashjosefwells: you need to remove sshkey when using app auth, that's incompatible18:34
josefwellsoh, really?  ok18:35
tobiashyes, that breaks auth18:35
pabelangerOh, ha18:35
pabelangerI didn't know that18:35
tobiashand also remove the user18:36
tobiashyah, we should add a validation about this into zuul and enhance the docs18:36
pabelanger++18:36
tobiashfor app auth you need app_id, app_key and webhook_token18:37
tobiash(and server for github enterprise)18:37
tobiashjosefwells: and btw, I really recommend using app auth ;)18:38
josefwellsare baseurl and server ok?18:38
clarkbpabelanger: re a release I'd defer to corvus, but the code openstack most recently restarted on seems to be stable18:38
tobiashyes18:38
openstackgerritJames E. Blair proposed openstack-infra/zuul-preview master: Build docker image  https://review.openstack.org/63703718:39
josefwellsI get the same thing (redelivering a previous payload from github->zuul)18:41
josefwellsweb_1           | 2019-02-22 18:40:21,574 DEBUG zuul.GithubWebController: Payload Signature: sha1=ac9c87c6b4e27c629b39ba13eb3a755270134e5c web_1           | 2019-02-22 18:40:21,574 DEBUG zuul.GithubWebController: Request Signature: sha1=c2ba653f54983d994350de48f05f54ad3079849618:41
josefwellsI see that in the logs18:41
corvusclarkb, pabelanger: i don't think we're ready for a release.  i think the provides/requires/artifacts stuff is ready.  but someone needs to work on the change.message escaping issue.18:43
corvusi haven't seen a message to the mailing list about that yet18:43
pabelangeris that the jinja2 in commit message issue?18:44
clarkbcorvus: is the missing piece for change message escaping notification to the list? we merged the code fix right?18:44
corvusclarkb: the issue is whether we want to release with that fix, or revert it in favor of a different one18:44
corvusi was hoping that someone working on that would send a message to the list opening the discussion18:45
corvusbut it's looking like that's going to fall to me18:45
*** chandankumar is now known as raukadah18:45
clarkbah (I hadn't followed that very closely)18:45
pabelangeris there a summary of the issue? I missed the discussion18:45
corvuspabelanger: there is in irc.  the next task is literally to summarize the issue to the mailing list to start discussion.18:46
pabelangerah18:46
corvusi guess i should have picked someone and asked them to do it.  i will do that next time.18:47
josefwellsOh wow18:47
josefwellsgetting a shell into docker, my permissions are all screwy on the pem file18:47
josefwellsapparently I need more practice with my ansible machine18:47
josefwells---x-wx--T 1 root root 1679 Feb 22 17:22 zuul.pem18:47
corvusjosefwells: be sure to use a leading 0 or quote octal values in ansible (see the note on "mode" in https://docs.ansible.com/ansible/latest/modules/file_module.html )18:48
josefwellsso, since all this runs as root, can I just put the pem on a bind mount (in /etc/zuul for instance) and if it is owned by the wrong user will zuul be ok with that?18:48
*** jamesmcarthur has joined #zuul18:51
corvusjosefwells: i think as long as zuul can read that, it's okay.18:51
josefwellsI did totally cowboy that ansible task, despite being very unfamiliar.. but I'm a unix guy, I figured it would be ok :(  Anyway, fixed, and I get the same thing18:53
josefwellsI wonder if some of the magic done in /var/ssh by other tasks (/var/ssh/zuul /var/ssh/zuul.pub are interfering, since they exist)18:54
*** rlandy|brb is now known as rlandy18:54
josefwellsit all seems to be gerrit related18:55
*** bhavikdbavishi has quit IRC18:57
openstackgerritMerged openstack-infra/zuul-jobs master: Assure iptables is installed inside multi-node-firewall role  https://review.openstack.org/63841419:06
*** jamesmcarthur has quit IRC19:12
ShrewstristanC: left you a comment on https://review.openstack.org/637338. i like the new PS but curious about your thoughts on the static driver comment19:13
*** nilashishc has joined #zuul19:14
*** jamesmcarthur has joined #zuul19:15
*** jamesmcarthur has quit IRC19:16
*** nilashishc has quit IRC19:29
*** sdake has quit IRC19:31
daniel2Where would be a good place to get support on diskimage-builder?20:02
daniel2Not sure if it would be here, or another channel, or openstack in general, carrier pidgions maybe?20:02
daniel2pigeons*?  Did I butcher that20:02
clarkbdaniel2: #openstack-dib is the official irc channel though I expect many of us here are familiar with it20:02
corvuspabelanger, tobiash, quiquell|off, clarkb: i sent email about escaping text20:09
openstackgerritMerged openstack-infra/nodepool master: doc bugfix for static provider  https://review.openstack.org/63751821:02
openstackgerritMerged openstack-infra/nodepool master: Use a pipeline for dib stats  https://review.openstack.org/63826521:07
openstackgerritJames E. Blair proposed openstack-infra/zuul-jobs master: run-buildset-container: fix username/password for proxy registry  https://review.openstack.org/63876721:23
openstackgerritMerged openstack-infra/zuul-jobs master: run-buildset-container: fix username/password for proxy registry  https://review.openstack.org/63876721:52
*** rlandy has quit IRC22:15
*** sdake has joined #zuul22:37
openstackgerritMerged openstack-infra/zuul-preview master: Build docker image  https://review.openstack.org/63703722:45
josefwellsman, long day glimmer of hope now dashed again22:56
josefwellsI tried creating a new key for the zuul github app22:57
josefwellsbut now I can't even get the scheduler to start22:57
josefwellsI get this:22:57
josefwellsrequests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://github.mydomain.com/api/v3/app/installations22:57
josefwellsand sure enough, I can't wget that URL from the container22:58
josefwellsbut I can hit that url from an incognito window22:58
josefwellsmaybe a more acurate answer is that from an incognito window I get: {   "message": "A JSON web token could not be decoded",   "documentation_url": "https://developer.github.com/enterprise/2.15/v3" }22:59
*** josefwells has quit IRC23:34

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