Monday, 2020-07-06

openstackgerritMerged openstack/diskimage-builder master: add more python selections to gentoo  https://review.opendev.org/73544803:00
openstackgerritMerged openstack/diskimage-builder master: Revert "Make ipa centos8 job non-voting"  https://review.opendev.org/73872805:37
*** dtantsur|afk is now known as dtantsur07:25
openstackgerritCarlos Goncalves proposed openstack/diskimage-builder master: Install yum and yum-utils on Red Hat family hosts  https://review.opendev.org/73513608:33
openstackgerritRiccardo Pittau proposed openstack/diskimage-builder master: Convert multi line if statement to case  https://review.opendev.org/73447909:45
openstackgerritRadosÅ‚aw Piliszek proposed openstack/diskimage-builder master: [CI] Do not run functionality tests on docs change  https://review.opendev.org/73936710:38
openstackgerritMerged openstack/diskimage-builder master: Install yum and yum-utils on Red Hat family hosts  https://review.opendev.org/73513611:27
*** priteau has joined #openstack-dib12:21
openstackgerritRafael Folco proposed openstack/diskimage-builder master: Enable py3 on dib centos/rhel 7  https://review.opendev.org/73642112:28
openstackgerritMerged openstack/diskimage-builder master: Stop bringing the test environment into the mocks  https://review.opendev.org/73530913:28
*** rajinir_ has joined #openstack-dib15:02
rm_workso if I make a virtualenv and install dib deps, then run DIB to build an image from inside that virtualenv... it should use all the packages from that virtualenv right?15:47
rm_workit seems to be giving me an error about failing to import yaml, when I can import yaml successfully from python within that virtualenv15:48
rm_workcgoncalves: have you run into this?15:48
rm_work(yes, this is specifically octavia)15:48
cgoncalvesrm_work, it should work. there were some recent patches merged that touched virtualenv detection. are you running latest DIB?15:50
rm_workdiskimage-builder-3.1.015:56
cgoncalvesrm_work, that's recent. just noticed the yaml part. you probably have python-yaml (as in py2) installed and it conflicts. we had that problem in the amphora build job and we fixed it in https://review.opendev.org/#/c/714680/16:07
*** priteau has quit IRC16:14
rm_workah so like... need to ... remove that16:19
rm_workthere IS no python3-yaml for my platform16:19
rm_worklet me see if python-yaml is installed16:19
rm_workhmm python-yaml is the ubuntu package, looks like it's PyYAML in centos?16:20
rm_workbut removing that would also remove cloud-init apparently, lll16:20
rm_work*lol16:20
rm_workmaybe i need to pull dib from master?16:53
*** dtantsur is now known as dtantsur|afk16:54
rm_workhmm didn't help16:57
*** priteau has joined #openstack-dib17:22
*** priteau has quit IRC18:07
rm_workcgoncalves: https://pastebin.com/dcXH4caV18:19
rm_worki'm reading it right, right?18:19
yoctozeptorm_work: it probably ran outside the venv18:36
rm_workhmmm18:36
rm_workhow do I force it to run INSIDE the venv? :D18:37
yoctozeptono idea, I would say it's a bug in that the environment gets reset and this script runs outside it18:44
yoctozeptomost scripts are bash so they are simply not affected that much18:44
yoctozeptoby a quick search it seems it's the only extra-data that is a python script18:45
yoctozepto:D18:45
rm_workhmm18:46
yoctozeptoyup, it resets environment18:48
yoctozeptowell, more like overwrites18:48
yoctozeptolooks like an edge case here18:48
rm_workseeing if i can work around it...18:52
openstackgerritMerged openstack/diskimage-builder master: add musl profile to gentoo  https://review.opendev.org/73739418:52
openstackgerritMerged openstack/diskimage-builder master: Switch to newer openstackdocstheme and reno versions  https://review.opendev.org/73249018:52
rm_workmaybe like... export my venv/bin path into the front of $PATH lol18:52
rm_workwill see if that works out heh18:53
rm_worknope18:53
yoctozeptorm_work: I suggest you report the issue for now19:01
yoctozeptorm_work: as a workaround you can just edit that script in dib and set the shebang to your python and be done with it ;-)19:01
rm_workwhich one? :D19:05
rm_workwait19:07
rm_workmaybe DIB_PYTHON_EXEC?19:07
yoctozeptorm_work: 10-merge-svc-map-files19:10
yoctozeptoit's that python script that has issues19:10
rm_workah19:10
yoctozeptorm_work: still log a bug against dib, it should generally work19:10
yoctozeptorm_work: https://bugs.launchpad.net/diskimage-builder19:21
rm_workyep ok it worked19:29
yoctozeptothis looks related too https://bugs.launchpad.net/diskimage-builder/+bug/176085319:47
openstackLaunchpad bug 1760853 in diskimage-builder "/tmp/in_target.d/finalise.d/50-dracut-regenerate: ImportError: No module named 'yaml'" [Undecided,In progress] - Assigned to Bharat Kunwar (brtknr)19:47
rm_workyeah prolly the same19:47
yoctozeptobut that was inside the chroot so it's a different one19:48
yoctozeptoso it deserves a new bug report19:49
rm_workah19:51

Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!