Thursday, 2017-09-28

openstackgerritMerged openstack-infra/zuul-jobs master: Expand docs for fetch-sphinx-output role  https://review.openstack.org/50799900:41
*** lennyb has quit IRC01:11
*** lennyb has joined #zuul01:11
*** huangtianhua has joined #zuul02:44
*** zhuli has joined #zuul02:45
zhulihi folks, how to integrate zuul with github? after install zuul from feature/zuulv3 branch and follow the quick start guide of official doc, I encounter a problem when starting the zuul-scheduler service that it raised an AttributeError said 'Github' object has no attribute 'session'03:06
zhuli# cat /etc/zuul/zuul.conf03:11
zhuli[scheduler]03:11
zhulitenant_config=/etc/zuul/main.yaml03:11
zhuli[gearman_server]03:11
zhulistart=true03:11
zhuli[gearman]03:11
zhuliserver=127.0.0.103:11
zhuli[connection github]03:11
zhulidriver=github03:11
zhuliserver=github.com03:11
zhuliapi_token=xxxxxxxxxxxxxxxxxxxxxxxxxx03:11
zhulisshkey=/home/zuul/.ssh/id_rsa03:11
zhuliand this is my configuration03:12
mordredjlk: ^^03:30
mordredzhuli: as soon as the rollout is done this week we'll be working on more documentation to help folks get up and going03:32
mordredzhuli: I think I remember someone else having the session isue and it turned out to be a too-old version of Github3.py ...03:32
mordredzhuli: we unfortunately depend on an unreleased version of the library for the moment (waiting on a release)03:32
* mordred isn't really here - goes back to being AFK03:33
zhulimordred thanks, I will update the Github3 and try again to see if this error go away03:41
*** pbrobinson has quit IRC03:54
*** pbrobinson has joined #zuul03:59
openstackgerritMerged openstack-infra/zuul-jobs master: Emit a message about the final tox invocation  https://review.openstack.org/50799004:39
*** bhavik1 has joined #zuul04:57
*** bhavik1 has quit IRC05:23
*** xinliang has quit IRC07:51
*** xinliang has joined #zuul08:05
*** xinliang has quit IRC08:05
*** xinliang has joined #zuul08:05
*** electrofelix has joined #zuul08:05
*** hashar has joined #zuul08:20
kklimondawhat's the high availability story with zuul-scheduler?08:24
kklimondaI can probably run two gerrit instances, and I can run a ZK cluster, zuul executors are dumb anyway, and nodepool-launchers seem to be pretty self contained too08:25
*** jesusaur has quit IRC08:40
*** jesusaur has joined #zuul08:48
tobiashkklimonda: zuul-scheduler is currently a single point of failure08:53
tobiashkklimonda: there are thoughts to eventually change zuul-scheduler in v4 into a scale out component synced via zookeeper08:54
kklimondatobiash: you just brightened my day with a mention of zuulv4 ;)08:55
tobiashkklimonda: but that's probably a long term roadmap entry ;)08:56
*** smyers has quit IRC09:03
*** smyers has joined #zuul09:14
*** _ari_ has quit IRC10:08
*** _ari_ has joined #zuul10:13
*** jkilpatr has quit IRC10:35
*** jkilpatr has joined #zuul10:52
*** yolanda has quit IRC10:54
*** yolanda has joined #zuul11:08
pabelangerzhuli: you have the wrong version of github.py installed. You need to install git+https://github.com/sigmavirus24/github3.py.git@develop#egg=Github3.py12:00
pabelangerfor some reason pip install doesn't install it correctly12:00
zhulipabelanger: thanks, it works now :)12:40
*** dkranz has quit IRC13:25
*** yolanda has quit IRC14:08
*** yolanda has joined #zuul14:08
*** isaacb has joined #zuul14:15
*** dkranz has joined #zuul14:41
*** SpamapS is now known as Zuulv214:43
*** Zuulv2 is now known as SpamapS14:43
*** nhicher has joined #zuul14:46
SpamapSWhen the dust settles on the migration...14:55
SpamapShttp://paste.openstack.org/show/622163/14:55
SpamapSI would really like to see that ansible problem sent to the user.14:55
SpamapSPretty simple "oops I forgot to git add roles/k8s-certs" since I could read the debug log14:55
SpamapSbut from the outside, it looked like the playbook was invisible.14:55
*** isaacb has quit IRC15:10
openstackgerritJames E. Blair proposed openstack-infra/zuul feature/zuulv3: Remove "Applying template" log line  https://review.openstack.org/50820315:32
*** jkilpatr has quit IRC15:34
rbergeronI'll just share this for team spirit while y'all get things done:15:44
rbergeronhttps://www.infoworld.com/article/3228171/devops/why-ansible-is-the-future-of-red-hatand-automated-devops.html15:44
*** hashar is now known as hasharAway15:51
openstackgerritMerged openstack-infra/zuul feature/zuulv3: Remove "Applying template" log line  https://review.openstack.org/50820316:06
openstackgerritDavid Shrewsbury proposed openstack-infra/nodepool feature/zuulv3: Add debug line for deleting unlocked nodes  https://review.openstack.org/50823516:56
openstackgerritJames E. Blair proposed openstack-infra/zuul feature/zuulv3: Improve debug logging around dynamic layout loading  https://review.openstack.org/50823716:57
openstackgerritJames E. Blair proposed openstack-infra/zuul feature/zuulv3: Improve debug logging around dynamic layout loading  https://review.openstack.org/50823717:02
openstackgerritJames E. Blair proposed openstack-infra/zuul feature/zuulv3: Add ZK session timeout option  https://review.openstack.org/50825117:35
harlowjatimeouts i hear :-P17:44
*** jkilpatr has joined #zuul18:14
openstackgerritJames E. Blair proposed openstack-infra/zuul feature/zuulv3: Wait up to 30s to lock a node  https://review.openstack.org/50826018:19
openstackgerritMerged openstack-infra/zuul feature/zuulv3: Add ZK session timeout option  https://review.openstack.org/50825118:25
openstackgerritMerged openstack-infra/zuul feature/zuulv3: Improve debug logging around dynamic layout loading  https://review.openstack.org/50823718:25
openstackgerritMerged openstack-infra/zuul feature/zuulv3: Wait up to 30s to lock a node  https://review.openstack.org/50826018:25
openstackgerritMonty Taylor proposed openstack-infra/zuul feature/zuulv3: Parent legacy jobs with artifacts legacy-publish-openstack-artifacts  https://review.openstack.org/50826518:26
openstackgerritMonty Taylor proposed openstack-infra/zuul feature/zuulv3: Set BUILD_TIMEOUT environment variable in zuul_legacy_vars  https://review.openstack.org/50826618:26
openstackgerritMonty Taylor proposed openstack-infra/zuul feature/zuulv3: Set BUILD_TIMEOUT environment variable in zuul_legacy_vars  https://review.openstack.org/50826618:26
*** hasharAway is now known as hashar18:27
openstackgerritMerged openstack-infra/zuul feature/zuulv3: Set BUILD_TIMEOUT environment variable in zuul_legacy_vars  https://review.openstack.org/50826618:32
openstackgerritMerged openstack-infra/nodepool feature/zuulv3: Add debug line for deleting unlocked nodes  https://review.openstack.org/50823518:44
openstackgerritMonty Taylor proposed openstack-infra/zuul-jobs master: Remove the right file in revoke-sudo  https://review.openstack.org/50827419:11
openstackgerritJeremy Stanley proposed openstack-infra/zuul-jobs master: Remove the right file in revoke-sudo  https://review.openstack.org/50827419:25
openstackgerritJeremy Stanley proposed openstack-infra/zuul-jobs master: Remove the right file in revoke-sudo  https://review.openstack.org/50827419:36
openstackgerritJeremy Stanley proposed openstack-infra/zuul-jobs master: Remove the right file in revoke-sudo  https://review.openstack.org/50827419:53
openstackgerritJeremy Stanley proposed openstack-infra/zuul-jobs master: Stop running ansible-lint on playbooks  https://review.openstack.org/50828519:53
*** hashar has quit IRC19:53
*** weshay has quit IRC20:10
openstackgerritMonty Taylor proposed openstack-infra/zuul feature/zuulv3: Only add BUILD_TIMEOUT if there is a timeout  https://review.openstack.org/50829020:11
*** weshay has joined #zuul20:11
openstackgerritJeremy Stanley proposed openstack-infra/zuul-jobs master: Stop running ansible-lint on playbooks  https://review.openstack.org/50828520:15
openstackgerritJeremy Stanley proposed openstack-infra/zuul-jobs master: Remove the right file in revoke-sudo  https://review.openstack.org/50827420:15
openstackgerritMonty Taylor proposed openstack-infra/zuul feature/zuulv3: Only add BUILD_TIMEOUT if there is a timeout  https://review.openstack.org/50829020:22
openstackgerritMerged openstack-infra/zuul feature/zuulv3: Parent legacy jobs with artifacts legacy-publish-openstack-artifacts  https://review.openstack.org/50826520:35
openstackgerritMonty Taylor proposed openstack-infra/zuul feature/zuulv3: Only add BUILD_TIMEOUT if there is a timeout  https://review.openstack.org/50829020:35
openstackgerritMerged openstack-infra/zuul feature/zuulv3: Only add BUILD_TIMEOUT if there is a timeout  https://review.openstack.org/50829021:08
kklimondado you see any issue with making sure that we add user aux groups when we drop root privileges for zuul-executor?21:08
kklimondaI'm thinking of using puppet CA and certs to authenticate gearman connections, adding zuul user to the puppet group so it can read certs.21:09
dmsimardjeblair, mordred: I was pointing out to mnaser that his attempt at uploading logs should probably not be working.. but then it worked and I'm not sure I understand what's going on21:10
dmsimardthe play is here http://logs.openstack.org/96/508296/2/check/puppet-openstack-integration-scenario004-ubuntu-xenial-puppet-4/c30f8bf/ara/file/02f6cfdf-e9a7-4487-800c-ec6bdabbcf53/#line-321:10
dmsimardand the result is here: http://logs.openstack.org/96/508296/2/check/puppet-openstack-integration-scenario004-ubuntu-xenial-puppet-4/c30f8bf/ara/result/3c5a2558-f993-482d-ba70-48986d380892/21:10
jeblairkklimonda: nothing jumps out at me right now, but i'm distracted; SpamapS would be a good person to think about that21:11
dmsimardit looks like it ran against 'ubuntu-xenial', not localhost or anything..21:11
jeblairdmsimard: that task is slightly misnamed21:11
jeblairdmsimard: that's "pull log files from worker onto executor"21:11
jeblairdmsimard: then the base job handles uploading21:11
mordredyah21:11
dmsimardthat play is not from the base job though I think21:12
jeblairdmsimard: correct; it's auto-converted21:12
jeblairdmsimard: any job can pull log files onto the executor21:12
jeblairthen whatever they pull, base job uploads21:12
dmsimardokay, I thought that was limited to the base job21:13
dmsimardi.e, that an untrusted playbook could not run https://review.openstack.org/#/c/508296/4/playbooks/upload-logs.yaml21:13
jeblairdmsimard: all jobs get a build-specific workspace on the executor in which they can do (almost) whatever they want.  so logs all go to a scratch space.21:13
dmsimardis it a DoS vector to pull a series of huge files on the executor or something ?21:14
jeblairdmsimard: yep.  if you exceed a certain size the job will be killed.21:14
dmsimardok21:14
dmsimardthanks for clarifying21:14
jeblairi only hope i did :)21:14
dmsimardyeah I was mistakenly thinking we did not authorize pulls :)21:15
dmsimardmnaser: ^ fwiw you can "manually" upload things beyond what ends up being in the "logs" directory21:15
mnasernice :>21:16
*** dkranz has quit IRC21:45
openstackgerritMerged openstack-infra/zuul-jobs master: Stop running ansible-lint on playbooks  https://review.openstack.org/50828522:23
SpamapSkklimonda: You should be fine. The executor is just a plain old python daemon at the gearman level.22:42
SpamapS2017-09-28 22:33:30.287774 | control | failed: [localhost] (item=control) => {"changed": false, "checksum": "82e1fe58c157d7df7d63b5f9cbdf2c91b9e0451e", "failed": true, "item": "control", "msg": "Aborting, target uses selinux but python bindings (libselinux-python) aren't installed!"}22:43
SpamapSwell that's a new one on me :-P22:43
openstackgerritJames E. Blair proposed openstack-infra/zuul-jobs master: Fix post log location  https://review.openstack.org/50834622:49
SpamapSdmsimard: https://dmsimard.com/2016/01/08/selinux-python-virtualenv-chroot-and-ansible-dont-play-nice/ <-- ARGH22:52
SpamapSW  T  F22:52
dmsimardSpamapS: that again? :)22:52
SpamapSyep22:52
dmsimardSpamapS: I should probably edit that post22:52
* SpamapS decides it's not worth it and just installs ansible in system python land22:52
dmsimardSpamapS: it holds true for anything that can't be pip installed basically22:53
dmsimardSpamapS: libselinux-python, rpm-python are two examples I know offhand22:53
* SpamapS grumbles something about maybe somebody should make those pip installable22:53
dmsimardSpamapS: depending on the situation, you can also selectively set the ansible_python_interpreter per task22:53
SpamapSyeah no I want this to be simple22:53
SpamapSwhy does it even care? No selinux, don't set selinux. Done.22:53
dmsimardbecause it tries to import selinux to check if selinux is there22:54
dmsimard:D22:54
SpamapSwe have this amazing thing22:54
SpamapStry22:54
dmsimardmaybe it's worth revisiting upstream22:55
dmsimardif I'm not mistaken bcoca said it wasn't a bug :p22:55
SpamapSI mean, if I have to fix my PR's to work with python2.6, they should have to fix their modules to work with virtualenv'd pythons22:55
dmsimardmaybe some core Ansible folks would have a better idea22:56
dmsimardShrews, mordred ^22:56
openstackgerritMerged openstack-infra/zuul-jobs master: Remove the right file in revoke-sudo  https://review.openstack.org/50827422:59
SpamapSdmsimard: your bug report and bcoca's response were accurate. The bug, however, is trying to use selinux when it's unnecessary, IMO.23:00
* SpamapS is reading the file action now23:00
dmsimardSpamapS: it doesn't know if it has to use selinux until it's able to check if selinux is activated and it does that with the libselinux-python lib23:00
SpamapSdmsimard: right... but if libselinux-python isn't available......... that's a sign. ;)23:02
dmsimardSpamapS: I'm not sure libselinux-python is a requirement of selinux23:06
SpamapShm23:08
SpamapSit looks like it is already conditional23:08
SpamapSyeah... it's as I expected23:09
SpamapSdmsimard: selinux _is_ enabled on the box I'm testing on. Doh.23:09
dmsimardಠ_ಠ23:10
dmsimardAlso, it's localhost, not remote host23:11
openstackgerritMerged openstack-infra/zuul-jobs master: Fix post log location  https://review.openstack.org/50834623:14
SpamapSdmsimard: I guess if you build a centos-minimal and don't disable selinux, you get selinux ;)23:16
SpamapSand I'm fine with that. It doesn't seem to be breaking stuff yet23:16
dmsimardthere's a dib element to disable selinux23:16
SpamapSCI should run with selinux enabled if you can swing it ;)23:16
SpamapShave always felt that the only reason everybody disables it is that they start with it turned off23:17
SpamapSoh also nobody knows how to use the tools23:17
dmsimardrunning selinux in prod is awesome and not that hard, you just need to understand how it works23:17
dmsimardthere's even a tool that is able to write policies automatically if you're not able to do it yourself23:17
SpamapSit's more the bleary eyed 3am 'somfinkbroke' that gets it turned off23:18
dmsimardStuff isn't supposed to break at 3am suddenly cause of selinux :)23:22
dmsimardIt'll break in broad daylight long before that23:22
ShrewsSpamapS: the last time i was bleary eyed at 3am, i was with you... in Atl... in some dark corner of the city23:30

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