Wednesday, 2019-03-06

*** hwoarang has quit IRC00:05
*** hwoarang has joined #openstack-dib00:09
*** sm806 has quit IRC00:22
*** sm806 has joined #openstack-dib00:23
*** sm806 has quit IRC00:27
*** sm806 has joined #openstack-dib00:28
*** jesusaur has quit IRC00:30
*** jesusaur has joined #openstack-dib00:34
*** hwoarang has quit IRC02:14
*** hwoarang has joined #openstack-dib02:16
*** hwoarang has quit IRC03:12
*** hwoarang has joined #openstack-dib03:16
*** hwoarang has quit IRC04:12
*** hwoarang has joined #openstack-dib04:18
*** hwoarang has quit IRC06:26
*** hwoarang has joined #openstack-dib06:28
*** sm806 has quit IRC07:42
*** sm806 has joined #openstack-dib07:43
*** pVito has joined #openstack-dib08:08
*** sm806 has quit IRC08:48
*** sm806 has joined #openstack-dib08:49
*** sm806 has quit IRC09:37
*** sm806 has joined #openstack-dib09:38
*** sm806 has quit IRC10:49
*** sm806 has joined #openstack-dib10:50
*** sm806 has quit IRC11:08
*** sm806 has joined #openstack-dib11:09
*** pVito has quit IRC11:17
*** pVito has joined #openstack-dib11:17
jangutteryolanda: I'm trying to pare down my config to the barest minimum and I found something "interesting" with the block-device-efi element + centos7.12:24
jangutteryolanda: with the partition layout as is, it seems two partitions pick up the cloudimg-rootfs label.12:24
jangutteryolanda: meaning that the root=LABEL=cloudimg-rootfs cmdline makes systemd sad.12:25
jangutteryolanda: specifically "BSP" and "root" get detected by blkid as LABEL="cloudimg-rootfs"12:26
jangutterianw: you might also be interested12:27
yolandamm that's interesting... see that i specifically add a LABEL here http://git.openstack.org/cgit/openstack/tripleo-image-elements/tree/elements/overcloud-secure-uefi/block-device-default.yaml#n5712:41
yolandajangutter, can you try modifying the yaml you use here http://git.openstack.org/cgit/openstack/diskimage-builder/tree/diskimage_builder/elements/block-device-efi/block-device-default.yaml and add a label as i do?12:41
yolandait may be getting wrong defaults12:41
jangutteryolanda: I tried adding cloudimg-rootfs as label to the fs, and that didn't seem to work.12:42
yolandacan you compare with the element i pasted you? it's the one i use it and seems to behave properly12:43
jangutteryolanda: it did work if I used explicit --root-label in create-disk-image, I think... (will have to check my notes)12:43
jangutteryolanda: is the BSP partition required? It looks like it's the one screwing up.12:44
jangutteryolanda: I think the problem is likely that lsblk gets confused by an "empty" partition or something. Maybe the BSP partition isn't properly zeroed out or something.12:46
yolandajangutter, i'd say is needed but i don't know the details12:49
yolandalooking at the type, it's the BIOS boot partition12:50
jangutterheh: turns out removing it also makes the system boot.12:51
jangutterBUT, I'd be hesitant to sell it as a "fix". as you say, it might be needed in cases I'm not testing.12:52
jangutteryolanda: is there an easy way to get dib to "zero it out", or is it zeroed out by default?12:54
jangutteryolanda in the block-device-default.yaml I mean.12:54
jangutterOh, this is the reason why you've got img-rootfs and block-device-efi has cloudimg-rootfs: https://github.com/openstack/diskimage-builder/blob/master/diskimage_builder/block_device/blockdevice.py#L208-L21912:59
*** TheJulia_sick is now known as TheJulia13:05
*** sm806 has quit IRC13:33
*** sm806 has joined #openstack-dib13:33
jangutteryolanda: I can confirm that just setting label: cloudimg-rootfs and name: cloudimg-rootfs in block-device-efi/block-device-default.yaml still confuses the bootup.13:35
jangutteryolanda, but if I do cat /dev/zero > /dev/sda2 in the rescue prompt and reboot, everything works fine.13:35
*** mjturek has joined #openstack-dib13:37
*** mjturek has quit IRC13:40
yolandawell good to know that it worked. However i didn't get that problem, i wonder what's different13:56
jangutteryolanda: I think I traced it down. Somehow the cloudimg-rootfs label gets associated with the BSP partition. It's either a bug in blkid, or the BSP partition really should be zeroed out (or be missing).13:58
jangutteryolanda: if I submit a workaround to the element that zeroes out the partition, would it be acceptable?13:59
*** sm806 has quit IRC14:16
*** sm806 has joined #openstack-dib14:17
*** mjturek has joined #openstack-dib14:30
*** sm806 has quit IRC14:43
*** sm806 has joined #openstack-dib14:44
*** sm806 has quit IRC14:55
*** sm806 has joined #openstack-dib14:55
yolandajangutter, i'd need to check and investigate more about it. I wonder why with a similar block device config, i don't hit that15:20
yolandain which OS do you hit it?15:20
jangutteryolanda: centos7 (not centos7-minimal)15:21
jangutteryolanda: I built a quick element that fixes it from my side. Let me send up a review.15:23
yolandajangutter, cool , i'll take a look asap15:39
yolandai also use centos15:39
*** sm806 has quit IRC15:46
*** sm806 has joined #openstack-dib15:46
*** openstackgerrit has joined #openstack-dib15:50
openstackgerritJan Gutter proposed openstack/diskimage-builder master: Clean the BSP partition for the EFI layout  https://review.openstack.org/64142615:50
jangutteryolanda ^15:50
jangutteryolanda: other workarounds include just removing the BSP partition or passing --root-label to disk-image-create15:51
clarkbjangutter: I left a question on ^ about tidying up that non zero exit code15:59
*** sm806 has quit IRC16:00
*** sm806 has joined #openstack-dib16:00
*** pVito has quit IRC16:02
jangutterclarkb: blockdev --getsize64  <---- you think this is a good idea maybe?16:09
clarkbjangutter: ya then divide by 512?16:11
clarkbsomething like that so that we can have a successful dd exit code on successful updates16:11
jangutterclarkb: facepalm moment: blockdev --getsz already divides by 51216:11
jangutterclarkb - it's a sign that people have already been down this road before.16:12
clarkbindeed16:12
*** sm806 has quit IRC16:27
*** sm806 has joined #openstack-dib16:28
jangutterlogan- is it possible to generate a dual-boot dib with EFI and BIOS boot? (is it a valid use case)16:31
logan-afaik it is a pretty common disk layout for efi installs, I think that's why it is the default layout in that element. I know I rely on that capability for bare metal images16:33
jangutterlogan- hahaha, this particular usecase _is_ bare metal on my part!16:35
logan-if your metal is all EFI capable and configured to boot EFI, then you probably don't need a BSP or bios compat at all. if you use your images across a pretty wide range of hardware/configs, its more of a concern16:35
jangutterlogan- yep... in fact, the _safest_ way to do this is to zero out the BSP partition just after it's created.16:37
logan-i'm curious if this finding applies to centos-minimal and other distros also16:37
jangutterlogan- but, that would only work if nothing in the world actually _depends_ on this kind of deal.16:37
jangutterlogan- I can check on centos-minimal. (I just want to finish the blockdev --getsz version.)16:38
openstackgerritJan Gutter proposed openstack/diskimage-builder master: [DNM] Clean the BSP partition for the EFI layout  https://review.openstack.org/64142616:43
logan-jangutter: there shouldn't be a filesystem on the BSP at all, much less one labelled 'cloudimg-rootfs'. something is definitely off with that image build.16:46
jangutterlogan- yeah, share your sentiment. hence my hamfisted fix (hamfix). If 'twere up to me I'd just whack the BSP element.16:48
jangutter*partition16:48
logan-yeah I wonder if it is something related to how the cloud image element works, since it is not building a partition layout from scratch. if you could share a full DIB log with debug mode enabled of your image build that might be interesting to dig thru.16:49
jangutterlogan- I could do that.... just normal '-x' is enough? disclaimer: this is running on software-factory so it's not master.16:50
logan-yeah I think -x16:51
jangutterlogan-: it's really not super high priority from my side due to the plethora of workarounds....16:53
jangutterlogan-: but it's such an interesting issue to trace!16:54
jangutterlogan-: centos-minimal  does not have the same issue!17:12
jangutterlogan-: let me just verify that I didn't accidentally add any workaround.17:12
logan-interesting17:12
jangutterlogan-: ah, facepalm. it's still in place.17:13
jangutterlogan-: this is really weeird.17:34
jangutter/dev/sda2: LABEL="cloudimg-rootfs" UUID="553934fe-094d-47be-8fbf-7b9e4751e02c" TYPE="ext4" PARTLABEL="BSP" PARTUUID="a624dc82-997a-4ab4-b902-25740c7a1e70"17:34
jangutter/dev/sda3: LABEL="cloudimg-rootfs" UUID="2cd0ae33-1ac6-4f74-bd8a-92679bfee76c" TYPE="ext4" PARTLABEL="root" PARTUUID="b5556d99-28a2-44e5-9987-b64911228d3c"17:34
jangutterand yet, the centos-minimal based image boots.17:34
jangutterlogan-: summary centos7 and centos-minimal exhibit the same partition layout and labelling. centos-minimal seems to be able to tolerate it to some extent (systemd-fsck-root.service complains though)17:38
logan-is there actually an ext4 filesystem present in that partition? ie can you mount it or run 'tune2fs -l /dev/<bsp part>'17:41
jangutterlogan-: full log's at - http://paste.openstack.org/show/747369/17:43
jangutterlogan-: checking....17:44
jangutterlogan-: to my astonishment, it appears tune2fs -l recognises _something_??17:45
jangutterlogan-: EXT4-fs (sda2): bad geometry: block count 556544 exceeds size of device (2048 blocks) so it's definitely a superblock or something on it in busted form.17:46
jangutterlogan-: argh, hit the line limit at paste.openstack.org17:48
jangutterlogan-: full log at https://file.io/aSoi1h17:51
jangutterlogan-: sorry I'm just full of fail. PM-ing you the ephemeral link17:53
*** irclogbot_0 has joined #openstack-dib18:12
*** irclogbot_0 has quit IRC18:36
*** mjturek has quit IRC18:51
*** mjturek has joined #openstack-dib19:13
*** mjturek has quit IRC20:06
*** mjturek has joined #openstack-dib20:07
*** pVito has joined #openstack-dib20:08
*** mjturek has quit IRC20:11
*** mjturek has joined #openstack-dib20:12
*** irclogbot_0 has joined #openstack-dib21:09
*** mjturek has quit IRC21:16
*** pVito has quit IRC21:24
*** pVito has joined #openstack-dib21:26
*** irclogbot_0 has quit IRC21:28
*** pVito has quit IRC21:34
*** mjturek has joined #openstack-dib21:39
*** pVito has joined #openstack-dib21:45
*** pVito has quit IRC21:52
*** sm806 has quit IRC22:07
*** sm806 has joined #openstack-dib22:07
*** irclogbot_0 has joined #openstack-dib22:20
*** irclogbot_0 has quit IRC22:34
*** irclogbot_0 has joined #openstack-dib22:36
*** irclogbot_0 has quit IRC22:44
*** mjturek has quit IRC22:51

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