dking | Good morning. Is it possible for one element to override the source-repositories entry from another element? | 13:50 |
---|---|---|
dking | Oh, nevermind. It looks like DIB_REPOREF_* can do what I need. | 13:52 |
JayF | yep :) | 15:12 |
JayF | that's true for literally anything dib pulls from git (well, I guess with the caveat it is being pulled in the correct way) | 15:12 |
JayF | there are ones you can set (I can look up exactly if you want) which point to a preexisting checkout on disk, too | 15:13 |
JayF | I always use that when developing against ipa | 15:13 |
opendevreview | Joel Capitao proposed openstack/diskimage-builder master: DNM Testing on KVM https://review.opendev.org/c/openstack/diskimage-builder/+/936024 | 16:53 |
opendevreview | Joel Capitao proposed openstack/diskimage-builder master: DNM Testing on KVM https://review.opendev.org/c/openstack/diskimage-builder/+/936024 | 17:50 |
opendevreview | Dmitriy Rabotyagov proposed openstack/diskimage-builder master: Add support for DNF5-based systems https://review.opendev.org/c/openstack/diskimage-builder/+/936301 | 18:59 |
opendevreview | Dmitriy Rabotyagov proposed openstack/diskimage-builder master: Add support for DNF5-based systems https://review.opendev.org/c/openstack/diskimage-builder/+/934332 | 19:00 |
opendevreview | Dmitriy Rabotyagov proposed openstack/diskimage-builder master: Add support for DNF5-based systems https://review.opendev.org/c/openstack/diskimage-builder/+/934332 | 19:01 |
NobodyCam | Good morning Dib folks | 19:30 |
NobodyCam | any pointers on solving `/tmp/ramdisk-build/common-functions: line 110: get_image_element_array: command not found` | 19:31 |
clarkb | NobodyCam: that function appears to be exported by a python function in diskimage_builder/element_dependencies.py | 19:36 |
clarkb | you may need to work backwards from there to see what calls that to export the function and then work forward in your logs to determine why that isn't happening | 19:36 |
NobodyCam | ++ will give that a try, Thank you clarkb | 19:37 |
clarkb | NobodyCam: looks like the bash function in common-functions called arg_to_elements calls the python which then will load the new function | 19:39 |
clarkb | so presumably arg_to_elements isn't being called in your dib run so the function never gets defined | 19:39 |
NobodyCam | oh let me check | 19:43 |
NobodyCam | I see arg_to_elements being called and completing with out error | 20:15 |
clarkb | NobodyCam: maybe that happens in another process? | 20:37 |
clarkb | so they don't share or inherit the env? | 20:37 |
NobodyCam | humm | 20:37 |
NobodyCam | I do see the export -f function | 20:37 |
NobodyCam | I echoed the result | 20:37 |
clarkb | huh so it is defined but then when it is used it fails? | 20:38 |
NobodyCam | yea | 20:38 |
NobodyCam | I can paste[bin] a log if that would help with context | 20:38 |
clarkb | it might. I half wonder if we're not using bash and so function export/load is different | 20:39 |
clarkb | separately /tmp/ramdisk-build is a really weird path to have common-functions in | 20:40 |
clarkb | maybe it has to do with your installation? | 20:40 |
clarkb | I think typically you pip install diskimage builder and then it puts all the files it needs into the python env where it wants to find them | 20:40 |
NobodyCam | install was pip3 install diskimage-builder | 20:42 |
clarkb | is /tmp/ramdisk-build within a build then? | 20:44 |
clarkb | anyway a full trace would probably be helpful | 20:44 |
NobodyCam | I'm not sure where that is coming from | 20:44 |
NobodyCam | checking | 20:44 |
NobodyCam | ahh gots to be here: https://github.com/openstack/diskimage-builder/blob/master/diskimage_builder/elements/ramdisk-base/extra-data.d/01-inject-ramdisk-build-files | 20:46 |
NobodyCam | looks like I do have TMP_MOUNT_PATH set | 20:48 |
NobodyCam | oh I see we get all the way to https://github.com/openstack/diskimage-builder/blob/master/diskimage_builder/elements/ramdisk/post-install.d/99-build-ramdisk | 20:56 |
clarkb | ya so in there you should probably be calling arg_to_elements before trying to use the specially exported function | 20:59 |
clarkb | whcih is maybe happening based on your previous statement? and that does have a shebang for bash | 21:00 |
clarkb | it shouldb't be dash or similar in that case | 21:00 |
opendevreview | Dmitriy Rabotyagov proposed openstack/diskimage-builder master: Add support for DNF5-based systems https://review.opendev.org/c/openstack/diskimage-builder/+/934332 | 21:31 |
*** iurygregory__ is now known as iurygregory | 23:37 |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!