Thursday, 2019-07-25

openstackgerritIan Wienand proposed openstack/diskimage-builder master: journal-to-console: element to send systemd journal to console  https://review.opendev.org/66978401:25
*** zufar has joined #openstack-dib04:16
zufarHello all, I try to create image for baremetal ironic using fedora but get an error04:16
zufarhttp://paste.opensuse.org/view//8859495504:17
zufarthe error is like disk-image-create cannot find the files in fedora repository. I check the repository, there missing fedora 27.04:18
zufaranyone know how to fix this?04:18
*** yolanda has quit IRC04:21
*** yolanda has joined #openstack-dib04:22
*** zufar has quit IRC04:37
*** zufar has joined #openstack-dib04:50
prometheanfireianw: if you have questions...  but I do see an issue with running portageq outside of chroot04:58
ianwpromethanfire: yeah, i dunno.  since the environment.d's are sourced everywhere ... that $BASH_SOURCE hack in dib-init-system seemed to come in a long time ago05:00
prometheanfirereally that environment.d needs to be set at the START of chroot05:01
ianwzufar: fedora 27 is very old, is there a reason you're setting that?05:01
prometheanfirethat'd simplify things, so 00_00_gentoo-setvars.sh in pre-install.d05:02
prometheanfireI think that's about as early as I can go05:02
prometheanfireand add export there05:02
prometheanfireand prerm,etc05:02
prometheanfirenot sure if there's a pre-chroot type function05:02
ianwanother idea might be to use the environment file, but do a "-f" check for a file in the chroot and set it when you're in chroot only05:03
prometheanfireotherwise fall through to a default?05:03
ianwi feel like we might have prior art for that approach, but i can't remember where05:03
ianwor just leave it, if it has no sensible value outside the chroot05:04
prometheanfiresince gentoo is a moving target I'd like to have it 'auto' updating05:04
prometheanfireya, outside the chroot it kinda doesn't, kinda does05:04
prometheanfirebecause it can be used for finding dirs to remove05:04
prometheanfirecleanup05:04
ianwyou could maybe leave a stamp file or something in /tmp to know where to clean?05:06
ianwi guess if you had some well known variable that gave the phase, you could check which phase you're in ,and know to either call the binary or inspect it in the chroot05:07
prometheanfireya, that's possible05:08
ianw ... but that gets ugly, you'd end up doing manual chroot calls to run the binary so it can find it's libraries05:08
prometheanfireenv.d is souced everywhere in every phase :|05:08
prometheanfirethe dir that the chroot is extracted to should work  for env.d running (run from the chroot path refrencing the chroot path stuff)05:09
ianwor you could do the very early setvars thing inside the chroot, and save it to temp file, and then in the env file source that file, if it exists (implicitly only in the chroot)05:09
ianwthen you've also got the stamp file telling you where to cleanup05:10
prometheanfirethat could help, though root.d does env.d stuff, before I can even access the chroot05:10
prometheanfiresomething closer to https://review.opendev.org/#/c/671530/6/diskimage_builder/elements/gentoo/root.d/50-gentoo-cache is what I'm thinking05:11
ianwi think the thing there is that you're running ${TMP_MOUNT_PATH}/usr/bin/portageq on the host system ... it will likely not like the libc at least, let alone have other libraries available?05:12
prometheanfireeh, I think we'll be fine there, as it's forgiving (mostly)05:14
prometheanfireworked for musl builds (on glibc host)05:14
openstackgerritMatthew Thode proposed openstack/diskimage-builder master: support alternate portage directories  https://review.opendev.org/67153005:15
prometheanfirelet's try this ^05:15
prometheanfirejust makes it more root.d like05:15
ianwis portageq a binary or a script?05:16
prometheanfirepython script05:17
prometheanfire/usr/lib/python-exec/python3.7/portageq05:17
prometheanfire#!/usr/bin/python3.7 -b05:18
ianwyeah so if that's called not in a complete chroot() environment, i don't see that it will work?05:19
ianwi think the init system example might just happen to work because it's bash05:19
prometheanfirehmm05:19
prometheanfireI guess we'll see, the actual binary is a symlink to enter into the gentoo python install05:20
prometheanfireguess we'll see05:20
ianwi think making it write a file that can be ". file" sourced in the environment.d as early as possible is probably the best bet05:21
ianwbut yeah, see, maybe i'm missing something05:21
prometheanfirewhat would write the file before root.d though?05:21
prometheanfirethe earliest the profile of the tarball can be determined is then05:21
prometheanfireso maybe within root.d itself?05:21
ianwyeah, you don't need it before then?05:22
prometheanfirethat's the earliest we can inspect the tarball05:22
prometheanfirethe goal is to inspect the fetched tarball for configuration of where dirs are05:23
prometheanfirewithin the tarball (configurable)05:23
prometheanfirethat's what portageq fetches05:23
ianwevery phase after that could source the file it creates telling it where the dirs are05:24
prometheanfireya, env.d could optionally source it (since it's not created when root.d runs env.d05:25
prometheanfireand cleanup.d remove the tmpfile05:25
ianwyep, something like that05:29
prometheanfireif this doesn't work that'll be the idea then05:30
prometheanfireis there a var that says what stage we are in (root.d won't do the source, all others will)05:30
ianwdiskimage_builder/elements/openstack-ci-mirrors/environment.d/11-dib-distribution-mirror.bash is what i'm thinking about that has a bit of in/out chroot switching05:30
prometheanfiresomething like that, but I'd rather just base it off the phase I'm in (root.d or not)05:32
prometheanfireit's more of a 'positive' indicator than if file05:34
*** brault has quit IRC05:35
zufarianw: how to change the version? I just follow the step05:43
ianwzufar: try setting DIB_RELEASE=2905:45
ianwin the environment05:45
zufarianw: I get error Unsupported Fedora release05:49
ianwahh, i see you're using diskimage-builder version 2.16.005:50
zufaryes05:51
ianwwe're up to like 2.24.0 now ... 2.16.0 probably doesn't have support for 29, but 27 is gone upstream ... so you're really in a situation where you have to upgrade if you want to use fedora05:51
zufarshould I increase the version, but this is the default version installed via yum in centos 7.605:51
ianwi would suggest creating a virtualenv and installing dib in that, then you'll have the latest version05:53
zufarianw: how to install via repository? just like this via pip? `pip install git+https://github.com/openstack/diskimage-builder.git`05:55
ianwzufar: see https://docs.openstack.org/diskimage-builder/latest/developer/invocation.html#dev-install05:56
openstackgerritMerged openstack/diskimage-builder master: Enable nodepool debugging for functional tests  https://review.opendev.org/67260806:00
zufarianw: okey I create the virtualenv, I think the script is working now. thank you06:01
openstackgerritKartikeya Jain proposed openstack/diskimage-builder master: Adding new dib element  https://review.opendev.org/57877306:18
openstackgerritKartikeya Jain proposed openstack/diskimage-builder master: Adding support for SLES 15 in element 'sles'  https://review.opendev.org/61918606:38
*** zufar has quit IRC07:35
*** brault has joined #openstack-dib07:43
*** brault has quit IRC07:43
*** brault has joined #openstack-dib07:43
*** priteau has joined #openstack-dib07:45
*** brault has quit IRC09:00
*** ivve has joined #openstack-dib09:08
*** lennyb has joined #openstack-dib09:16
*** brtknr has quit IRC10:27
*** brtknr has joined #openstack-dib10:33
*** brtknr has quit IRC10:56
*** brtknr has joined #openstack-dib10:56
*** Vorrtex has joined #openstack-dib14:19
openstackgerritMatthew Thode proposed openstack/diskimage-builder master: support alternate portage directories  https://review.opendev.org/67153014:42
*** brault has joined #openstack-dib15:03
*** altlogbot_0 has quit IRC15:48
*** altlogbot_0 has joined #openstack-dib15:49
*** brault has quit IRC16:04
*** brault has joined #openstack-dib16:05
*** brault has quit IRC16:09
*** ivve has quit IRC17:01
*** sabedevops has joined #openstack-dib17:25
*** priteau has quit IRC18:13
*** brault has joined #openstack-dib18:23
*** brault has quit IRC18:27
*** brault has joined #openstack-dib18:27
*** ivve has joined #openstack-dib18:35
*** dasp has quit IRC19:51
*** dasp has joined #openstack-dib19:54
sabedevopsHey everyone...can someone point me in the right direction here? I have an element I'm writing, and everything seems to work except the bash script in extra-data.d. I've literally placed `exit 1` at the top of the script...but it doesn't seem to be running20:01
*** priteau has joined #openstack-dib20:50
*** priteau has quit IRC20:50
*** sabedevops has quit IRC20:55
*** Vorrtex has quit IRC21:03
*** sabedevops has joined #openstack-dib21:08
*** ivve has quit IRC21:30
*** sabedevops has quit IRC21:35
*** brault has quit IRC21:36
*** brault has joined #openstack-dib23:36
*** brault has quit IRC23:40

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