Tuesday, 2024-11-26

dkingGood morning. Is it possible for one element to override the source-repositories entry from another element?13:50
dkingOh, nevermind. It looks like DIB_REPOREF_* can do what I need.13:52
JayFyep :) 15:12
JayFthat'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
JayFthere are ones you can set (I can look up exactly if you want) which point to a preexisting checkout on disk, too15:13
JayFI always use that when developing against ipa15:13
opendevreviewJoel Capitao proposed openstack/diskimage-builder master: DNM Testing on KVM  https://review.opendev.org/c/openstack/diskimage-builder/+/93602416:53
opendevreviewJoel Capitao proposed openstack/diskimage-builder master: DNM Testing on KVM  https://review.opendev.org/c/openstack/diskimage-builder/+/93602417:50
opendevreviewDmitriy Rabotyagov proposed openstack/diskimage-builder master: Add support for DNF5-based systems  https://review.opendev.org/c/openstack/diskimage-builder/+/93630118:59
opendevreviewDmitriy Rabotyagov proposed openstack/diskimage-builder master: Add support for DNF5-based systems  https://review.opendev.org/c/openstack/diskimage-builder/+/93433219:00
opendevreviewDmitriy Rabotyagov proposed openstack/diskimage-builder master: Add support for DNF5-based systems  https://review.opendev.org/c/openstack/diskimage-builder/+/93433219:01
NobodyCamGood morning Dib folks19:30
NobodyCamany pointers on solving `/tmp/ramdisk-build/common-functions: line 110: get_image_element_array: command not found`19:31
clarkbNobodyCam: that function appears to be exported by a python function in diskimage_builder/element_dependencies.py19:36
clarkbyou 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 happening19:36
NobodyCam++ will give that a try, Thank you clarkb 19:37
clarkbNobodyCam: looks like the bash function in common-functions called arg_to_elements calls the python which then will load the new function19:39
clarkbso presumably arg_to_elements isn't being called in your dib run so the function never gets defined19:39
NobodyCamoh let me check19:43
NobodyCamI see arg_to_elements being called and completing with out error20:15
clarkbNobodyCam: maybe that happens in another process?20:37
clarkbso they don't share or inherit the env?20:37
NobodyCamhumm20:37
NobodyCamI do see the export -f function20:37
NobodyCamI echoed the result20:37
clarkbhuh so it is defined but then when it is used it fails?20:38
NobodyCamyea20:38
NobodyCamI can paste[bin] a log if that would help with context 20:38
clarkbit might. I half wonder if we're not using bash and so function export/load is different20:39
clarkbseparately /tmp/ramdisk-build is a really weird path to have common-functions in20:40
clarkbmaybe it has to do with your installation?20:40
clarkbI 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 them20:40
NobodyCaminstall was pip3 install diskimage-builder20:42
clarkbis /tmp/ramdisk-build within a build then?20:44
clarkbanyway a full trace would probably be helpful20:44
NobodyCamI'm not sure where that is coming from20:44
NobodyCamchecking 20:44
NobodyCamahh gots to be here: https://github.com/openstack/diskimage-builder/blob/master/diskimage_builder/elements/ramdisk-base/extra-data.d/01-inject-ramdisk-build-files20:46
NobodyCamlooks like I do have TMP_MOUNT_PATH set20:48
NobodyCamoh 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-ramdisk20:56
clarkbya so in there you should probably be calling arg_to_elements before trying to use the specially exported function20:59
clarkbwhcih is maybe happening based on your previous statement? and that does have a shebang for bash21:00
clarkbit shouldb't be dash or similar in that case21:00
opendevreviewDmitriy Rabotyagov proposed openstack/diskimage-builder master: Add support for DNF5-based systems  https://review.opendev.org/c/openstack/diskimage-builder/+/93433221:31
*** iurygregory__ is now known as iurygregory23:37

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