Wednesday, 2018-04-04

*** pmannidi has joined #openstack-dib00:03
*** mjturek has quit IRC00:36
openstackgerritMerged openstack/diskimage-builder master: delete unused module  https://review.openstack.org/55816701:04
ianwprometheanfire: why's the gentoo job timing out? http://logs.openstack.org/58/558358/1/check/nodepool-functional-py35-gentoo-src/c7f5612/01:21
prometheanfireprobably updating something01:24
ianwecho 'invalid checksum on downloaded tarball: /opt/dib/cache/gentoo-stage4-systemd.tar.bz2'01:27
ianwthe problem is, even with non-voting, if it takes 1 1/2 hours to timeout, that holds everything up01:28
ianwi think we need to put a retry limit on things, in general01:28
prometheanfiregah...01:28
prometheanfirelet me verify that again01:29
prometheanfireblueness: where are you seeing the invalid checksum? looking at the job output01:35
prometheanfirenot blueness...01:36
prometheanfireianw:  where are you seeing the invalid checksum? looking at the job output now01:36
ianwhttp://logs.openstack.org/58/558358/1/check/nodepool-functional-py35-gentoo-src/c7f5612/controller/logs/builds/gentoo-17-0-systemd-0000000174_log.txt.gz#_2018-04-03_08_53_29_32001:38
ianwwas one01:38
ianwthere's a loop of failed builds in http://logs.openstack.org/58/558358/1/check/nodepool-functional-py35-gentoo-src/c7f5612/controller/logs/builds/01:38
prometheanfirethanks01:38
prometheanfireok, need to bug our infra01:41
*** phuongnh has joined #openstack-dib01:52
*** Sukhdev has joined #openstack-dib03:50
*** Sukhdev has quit IRC03:56
*** tonyb has quit IRC04:45
*** chhagarw has joined #openstack-dib04:47
openstackgerritIan Wienand proposed openstack/diskimage-builder master: Formalise saving of /etc/resolv.conf  https://review.openstack.org/55836205:19
*** pmannidi has quit IRC05:49
*** greghaynes has quit IRC05:52
*** hashar has joined #openstack-dib06:12
openstackgerritMerged openstack/diskimage-builder master: Restore tracing on exit points of block_device_create_config_file  https://review.openstack.org/55835806:13
*** prometheanfire has quit IRC07:12
*** andreas_s has joined #openstack-dib07:12
*** prometheanfire has joined #openstack-dib07:13
*** prometheanfire has quit IRC07:52
*** prometheanfire has joined #openstack-dib07:54
*** pmannidi has joined #openstack-dib09:25
olivierbourdon38Hello everyone. ianw and others, I have a situation where ALL my image creation attempts fails due to some  umount errors (32) but neither lsof nor fuser shows anything. even dmsetup remove loopX fails for the same reason on the same device. Any advice on this issue ?09:43
olivierbourdon38note that I am using xfs on both the building machine and the build image09:48
olivierbourdon38build system is ubuntu xenial amd6409:49
*** phuongnh has quit IRC10:08
*** olivierb- has joined #openstack-dib10:14
*** olivierbourdon38 has quit IRC10:15
ianwoliverbourdon38: it is likely the actual error is before that ... the exit path often has some issues that throw up umount errors, but the real problem happens before that and causes things to abort10:19
ianwbasically scroll up through the logs about 50 lines and check10:19
ianwfeel free to file a bug with the full log, i can take a look in my morning10:19
olivierb-ianw thanks for the info and I understand however the same mechanism was working quite well end of last week so I am currently trying to dig a little bit more to see what has changed from my perspective10:32
*** pmannidi has quit IRC10:40
olivierb-ok after looking into my problem for quite a bit of (unproductive) time I was wonderning why the following is now failing:12:42
olivierb-disk-image-create -o /httpboot/deployment_image.qcow2 -t qcow2 --image-size 60 -p python,python3-yaml,dracut,dnsutils,net-tools,netcat,dnsutils,iputils-ping,traceroute,curl ubuntu-minimal bootloader enable-serial-console dhcp-all-interfaces dracut-regenerate devuser cloud-init-nocloud openssh-server12:42
olivierb-it was working perfectly end of last week12:43
olivierb-the error seems to be:12:43
olivierb-2018-04-04 12:42:32.924 | /tmp/in_target.d/finalise.d/80-update-initramfs: line 30: update-initramfs: command not found12:43
olivierb-putting an absolute path /usr/sbin/update-initramfs in /usr/local/lib/python2.7/dist-packages/diskimage_builder/elements/debootstrap/finalise.d/80-update-initramfs seems to work a little bit better but still fails12:44
olivierb-2018-04-04 12:46:49.812 | subprocess.CalledProcessError: Command 'sudo vgcreate vg /dev/mapper/loop1p1 --force' returned non-zero exit status 312:48
*** vmlinuz has joined #openstack-dib12:49
*** vmlinuz has joined #openstack-dib12:49
olivierb-any clue ?12:55
olivierb-andreas_s seems to be related to http://git.openstack.org/cgit/openstack/diskimage-builder/commit/?id=09e5b2d35786373e77e75c9b6793d1685918a88b which does not seem to work with ubuntu-minimal13:15
olivierb-thanks yolanda for digging this out for me13:15
yolandano problem :)13:15
olivierb-removing 80-update-initramfs file just make everything work back as expected13:17
*** yolanda_ has joined #openstack-dib13:22
*** yolanda has quit IRC13:24
*** hashar is now known as hasharAway13:25
andreas_solivierb-: interesting, for me it was working fine with ubuntu-minimal distro...13:32
*** mjturek has joined #openstack-dib13:33
olivierb-andreas_s may be some of my other options for building the images make this different to your case13:39
andreas_slet me check your command on my system...13:39
andreas_sI wonder if the dracut-regenerate element works with ubuntu-minimal... cause the comment in the commit says, it does not (but that was 6 month ago)13:41
olivierb-it has been working for me for several weeks now13:41
olivierb-and my images are fully functional13:41
olivierb-seems like at least13:42
olivierb-andreas_s just let me know the result of the command on your system13:47
andreas_solivierb-: also running into the "command not found" issue...hhmm13:51
olivierb-as mentioned to yolanda_ privately trying to add package initramfs-tools does not help because it conflicts13:52
olivierb-2018-04-04 13:11:30.982 |  dracut : Conflicts: initramfs-tools but 0.122ubuntu8.11 is to be installed13:53
olivierb-2018-04-04 13:11:30.982 |  initramfs-tools : Conflicts: linux-initramfs-tool13:53
olivierb-2018-04-04 13:11:30.988 | E: Unable to correct problems, you have held broken packages.13:53
andreas_sthis simple command still works disk-image-create -t qcow2  ubuntu-minimal zipl vm   (where zipl is the s390x replacment for bootloader)13:55
andreas_sit's probably one of the additional elements or packages that causes this issue...13:56
andreas_snow trying without dracut...13:56
andreas_solivierb-: removed dracut package and dracut-regenerate element and it succeeded13:58
andreas_sremoved it from your long command13:58
olivierb-however from what yolanda_ told me, I need dracut+dracut-regenerate to have my LVM partitioning to work properly13:59
olivierb-which does13:59
andreas_scan you share your blockdevice json config?14:00
yolanda_he needs to add lvm module to make it work14:00
olivierb-it's yaml but will pastebin it14:00
andreas_sexaclty, add lvm as package and it should work14:00
yolanda_andreas_s, i remember you told me dracut was not intended for ubuntu?14:00
andreas_s-p lvm214:01
olivierb-https://pastebin.com/s7CkJQdT14:01
olivierb-+ some other env variables14:02
andreas_syolanda_, olivierb-: https://github.com/openstack/diskimage-builder/blob/43bc352c5977272ceadc1ca44d96c086cad59f5c/diskimage_builder/elements/debootstrap/finalise.d/80-update-initramfs#L32,L3814:03
andreas_sandreas florath figrued that out...14:03
olivierb-https://pastebin.com/1eBq73jF14:04
andreas_solivierb-: so my experience with building lvm images with ubunt16 was, that it does not work when the boot volume is located on lvm14:05
andreas_sthe image build will succeed, but on first boot it will not be able to lookup the boot disk by label14:06
andreas_sthis is probably the root cause for this: https://bugs.launchpad.net/ubuntu/+source/lvm2/+bug/157398214:07
openstackLaunchpad bug 1573982 in lvm2 (Ubuntu) "LVM boot problem - volumes not activated after upgrade to Xenial" [Undecided,Confirmed]14:07
andreas_sbut it might work if you put the boot volume on a non lvm partition14:07
andreas_s(not sure if I'm mixing up boot and root now - it has been a while since I did some experiments with it)14:08
olivierb-from my experience the image produced with the lvm I pasted seems to boot ok14:08
andreas_sok, then maybe I was taking the wrong approach...14:09
olivierb-I am currently bootstrapping a new env with the latest generated image and will confirm this14:09
yolanda_if you want to boot from lvm, you need that module to be loaded on kernel14:10
olivierb-yes it is14:10
andreas_solivierb-: if you know a way that works, then maybe let's roll back the patch and add some piece of documentation that describes how to create such a lvm image14:10
andreas_sI tried it with adding lvm2 as package and rebuilding the initrd using update-initramfs - inspired by https://bugs.launchpad.net/diskimage-builder/+bug/171568614:11
openstackLaunchpad bug 1715686 in diskimage-builder "using LVM does not create bootable systems" [Undecided,New]14:11
andreas_sor even better, let's add a gate job for it...14:15
olivierb-andreas_s just to confirm that my deployed image generated by dib using command sent earlier in this channel works perfectly booting from LVM however /boot is not a separate partition but resides within / which is a LVM http://www.olivierbourdon/BIFROST/lvm.png snapshot of vncviewer console15:33
andreas_solivierb-: so you're saying it's booting fine when having the dracut stuff in place and the update-initramfs file removed?15:35
olivierb-yes15:35
andreas_scool. So then maybe the solution is to document your approach and undo the update-initramfs patch...15:36
olivierb-were do you want me to document this please ?15:36
olivierb-where sorry ;-)15:36
andreas_smaybe somewhere here: https://docs.openstack.org/diskimage-builder/latest/user_guide/building_an_image.html15:37
andreas_sunder the lvm module15:38
andreas_sI'm not a disk-image-builder guy, so there might be better places...15:38
olivierb-ok will do but most probably tomorrow as I need to wrap up several other stuff todat15:38
andreas_sbut this is the piece of documentation I was looking at when playing around with it...15:38
andreas_sno problem15:38
andreas_smaybe it is already documented? At least there's a sentence about dracut regenerate...15:40
*** andreas_s has quit IRC15:41
olivierb-https://github.com/obourdon/diskimage-builder/commit/1dc945fd84a600d342e76ed61b4ba0d3eb7fc68616:50
*** greghaynes has joined #openstack-dib16:55
*** Sukhdev has joined #openstack-dib18:36
*** Sukhdev has quit IRC18:41
*** hasharAway is now known as hashar19:07
*** Sukhdev has joined #openstack-dib20:29
*** hashar has quit IRC20:48
ianwolivierb-: glad you were able to figure it out :)  are you filing something on the dracut issue?20:53
olivierb-ianw right now I am discussing with Andre Florath to see implications of reverting his change, however doc is ready and will most probably be submitted tomorrow for review as a separate patchset20:55
ianwok, great, thanks20:56
*** Sukhdev has quit IRC21:04
*** vmlinuz has quit IRC21:44
*** chhagarw has quit IRC22:00

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