openstackgerrit | Merged openstack/diskimage-builder master: add more python selections to gentoo https://review.opendev.org/735448 | 03:00 |
---|---|---|
openstackgerrit | Merged openstack/diskimage-builder master: Revert "Make ipa centos8 job non-voting" https://review.opendev.org/738728 | 05:37 |
*** dtantsur|afk is now known as dtantsur | 07:25 | |
openstackgerrit | Carlos Goncalves proposed openstack/diskimage-builder master: Install yum and yum-utils on Red Hat family hosts https://review.opendev.org/735136 | 08:33 |
openstackgerrit | Riccardo Pittau proposed openstack/diskimage-builder master: Convert multi line if statement to case https://review.opendev.org/734479 | 09:45 |
openstackgerrit | Radosław Piliszek proposed openstack/diskimage-builder master: [CI] Do not run functionality tests on docs change https://review.opendev.org/739367 | 10:38 |
openstackgerrit | Merged openstack/diskimage-builder master: Install yum and yum-utils on Red Hat family hosts https://review.opendev.org/735136 | 11:27 |
*** priteau has joined #openstack-dib | 12:21 | |
openstackgerrit | Rafael Folco proposed openstack/diskimage-builder master: Enable py3 on dib centos/rhel 7 https://review.opendev.org/736421 | 12:28 |
openstackgerrit | Merged openstack/diskimage-builder master: Stop bringing the test environment into the mocks https://review.opendev.org/735309 | 13:28 |
*** rajinir_ has joined #openstack-dib | 15:02 | |
rm_work | so 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_work | it seems to be giving me an error about failing to import yaml, when I can import yaml successfully from python within that virtualenv | 15:48 |
rm_work | cgoncalves: have you run into this? | 15:48 |
rm_work | (yes, this is specifically octavia) | 15:48 |
cgoncalves | rm_work, it should work. there were some recent patches merged that touched virtualenv detection. are you running latest DIB? | 15:50 |
rm_work | diskimage-builder-3.1.0 | 15:56 |
cgoncalves | rm_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 IRC | 16:14 | |
rm_work | ah so like... need to ... remove that | 16:19 |
rm_work | there IS no python3-yaml for my platform | 16:19 |
rm_work | let me see if python-yaml is installed | 16:19 |
rm_work | hmm python-yaml is the ubuntu package, looks like it's PyYAML in centos? | 16:20 |
rm_work | but removing that would also remove cloud-init apparently, lll | 16:20 |
rm_work | *lol | 16:20 |
rm_work | maybe i need to pull dib from master? | 16:53 |
*** dtantsur is now known as dtantsur|afk | 16:54 | |
rm_work | hmm didn't help | 16:57 |
*** priteau has joined #openstack-dib | 17:22 | |
*** priteau has quit IRC | 18:07 | |
rm_work | cgoncalves: https://pastebin.com/dcXH4caV | 18:19 |
rm_work | i'm reading it right, right? | 18:19 |
yoctozepto | rm_work: it probably ran outside the venv | 18:36 |
rm_work | hmmm | 18:36 |
rm_work | how do I force it to run INSIDE the venv? :D | 18:37 |
yoctozepto | no idea, I would say it's a bug in that the environment gets reset and this script runs outside it | 18:44 |
yoctozepto | most scripts are bash so they are simply not affected that much | 18:44 |
yoctozepto | by a quick search it seems it's the only extra-data that is a python script | 18:45 |
yoctozepto | :D | 18:45 |
rm_work | hmm | 18:46 |
yoctozepto | yup, it resets environment | 18:48 |
yoctozepto | well, more like overwrites | 18:48 |
yoctozepto | looks like an edge case here | 18:48 |
rm_work | seeing if i can work around it... | 18:52 |
openstackgerrit | Merged openstack/diskimage-builder master: add musl profile to gentoo https://review.opendev.org/737394 | 18:52 |
openstackgerrit | Merged openstack/diskimage-builder master: Switch to newer openstackdocstheme and reno versions https://review.opendev.org/732490 | 18:52 |
rm_work | maybe like... export my venv/bin path into the front of $PATH lol | 18:52 |
rm_work | will see if that works out heh | 18:53 |
rm_work | nope | 18:53 |
yoctozepto | rm_work: I suggest you report the issue for now | 19:01 |
yoctozepto | rm_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_work | which one? :D | 19:05 |
rm_work | wait | 19:07 |
rm_work | maybe DIB_PYTHON_EXEC? | 19:07 |
yoctozepto | rm_work: 10-merge-svc-map-files | 19:10 |
yoctozepto | it's that python script that has issues | 19:10 |
rm_work | ah | 19:10 |
yoctozepto | rm_work: still log a bug against dib, it should generally work | 19:10 |
yoctozepto | rm_work: https://bugs.launchpad.net/diskimage-builder | 19:21 |
rm_work | yep ok it worked | 19:29 |
yoctozepto | this looks related too https://bugs.launchpad.net/diskimage-builder/+bug/1760853 | 19:47 |
openstack | Launchpad 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_work | yeah prolly the same | 19:47 |
yoctozepto | but that was inside the chroot so it's a different one | 19:48 |
yoctozepto | so it deserves a new bug report | 19:49 |
rm_work | ah | 19:51 |
Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!