Tuesday, 2017-03-21

ianwmmedvede: ok, thanks.00:01
openstackgerritIan Wienand proposed openstack/diskimage-builder master: Create PReP boot partition for PPC  https://review.openstack.org/44773900:21
ianwmmedvede: hmm, this looks wrong -> http://dal05.objectstorage.softlayer.net/v1/AUTH_3d8e6ecb-f597-448c-8ec2-164e9f710dd6/pkvmci/diskimage-builder/39/447739/1/check/dib-dsvm-functests-devstack-xenial/1889351/00:28
ianwdebian-minimal/stable-vm : not a known test (see -l)00:28
mmedvedeianw: yeah, I misunderstood how testcases are derived00:28
mmedvedeianw: I am fixing it now00:29
ianwcool, np :)00:29
mmedvedeI have basically hardcoded the list of testcases00:29
*** pmannidi has quit IRC00:51
*** pmannidi has joined #openstack-dib00:52
*** jamielennox is now known as jamielennox|away01:16
*** pleia2_ is now known as pleia201:25
*** jamielennox|away is now known as jamielennox01:28
openstackgerritIan Wienand proposed openstack/diskimage-builder master: Create PReP boot partition for PPC  https://review.openstack.org/44773901:31
mmedvedeianw: the ppc test succeeded on ^, but it did not actually test the failure mode on Xenial. I am switching back to debian, disabling xenial. Can not have both enabled because ubuntu uses non-default distro mirror url on ppc01:41
ianwhmm, ok03:11
*** jamielennox is now known as jamielennox|away04:12
*** pmannidi has quit IRC05:00
*** pmannidi has joined #openstack-dib05:01
*** aparnav has joined #openstack-dib05:27
*** yolanda has quit IRC06:32
*** yolanda has joined #openstack-dib06:46
*** andreas-f has quit IRC06:48
*** hashar has joined #openstack-dib08:45
*** openstackgerrit has quit IRC09:03
*** pmannidi has quit IRC09:09
*** pmannidi has joined #openstack-dib09:10
*** jamielennox|away is now known as jamielennox10:30
*** jamielennox is now known as jamielennox|away11:05
*** jamielennox|away is now known as jamielennox11:12
yolandaianw, greghaynes , any idea why https://review.openstack.org/#/c/447047/6/diskimage_builder/elements/dracut-regenerate/finalise.d/98-dracut-regenerate is not installing the packages i need?11:25
yolandai check logs and i see it enters on the install-packages part11:26
yolandabut then i inspect the image,and i don't have lvm2 or cryptsetup installed11:26
yolandai added some logging, and there are no errors on the install part11:26
*** yolanda has quit IRC11:52
*** yolanda has joined #openstack-dib11:54
*** openstackgerrit has joined #openstack-dib12:01
openstackgerrityolanda.robla proposed openstack/diskimage-builder master: Add dracut-regenerate elements  https://review.openstack.org/44704712:01
*** radez` is now known as radez12:01
*** aparnav has quit IRC12:34
*** chhavi has joined #openstack-dib13:16
*** pmannidi has quit IRC13:18
*** pmannidi has joined #openstack-dib13:19
openstackgerritMikhail S Medvedev proposed openstack/diskimage-builder master: [DNM] Test boot partition code  https://review.openstack.org/44809913:39
*** dmarlin has joined #openstack-dib14:18
*** hashar has quit IRC14:33
*** hashar has joined #openstack-dib14:35
*** venki has joined #openstack-dib15:16
venkiHi guys...15:16
venkiCan i create deploy-kernal and deploy-initrd (ironic configuration) for Android OS ?15:17
*** chhavi has quit IRC15:28
*** chhavi has joined #openstack-dib15:49
*** makowals_ has joined #openstack-dib16:15
*** chhavi has quit IRC17:10
openstackgerrityolanda.robla proposed openstack/diskimage-builder master: Add dracut-regenerate elements  https://review.openstack.org/44704717:20
*** hashar has quit IRC17:28
openstackgerrityolanda.robla proposed openstack/diskimage-builder master: Add dracut-regenerate elements  https://review.openstack.org/44704718:55
ianwmmedvede: oh good, that vm element test at least seems to get us further19:05
ianwvenki: android ... i don't believe there's been any work on that.  anything's possible i guess19:06
ianwyolanda: hmm, that would not exit with any failure code if the subprocess was creating one?  hiding the failure?19:08
yolandaianw, well, the package install stuff is solved now, i was using install-packages -m <package_name>, i removed the -m flag and worked19:13
yolandahowever, i'm debugging a strange failure now. When regenerating dracut, something happens that causes conflict on iscsi19:14
yolandathe vm cannot boot with an error about "open-iscsi service failed"19:14
ianwohh, that "-m" issue, i have deja vu about that19:14
yolandawhat shall -m do? i copied from some other element, but i realized i was wrong19:15
openstackgerritIan Wienand proposed openstack/diskimage-builder master: Create PReP boot partition for PPC  https://review.openstack.org/44773919:20
openstackgerritIan Wienand proposed openstack/diskimage-builder master: [DNM] Test boot partition code  https://review.openstack.org/44809919:31
ianwyolanda: runs the mapping bit iirc19:36
ianwyolanda: sorry, not much help with iscsi type things :(19:36
openstackgerritIan Wienand proposed openstack/diskimage-builder master: Create PReP boot partition for PPC  https://review.openstack.org/44773919:39
openstackgerritIan Wienand proposed openstack/diskimage-builder master: [DNM] Test boot partition code  https://review.openstack.org/44809919:39
*** hashar has joined #openstack-dib19:53
openstackgerritIan Wienand proposed openstack/diskimage-builder master: Create PReP boot partition for PPC  https://review.openstack.org/44773919:59
openstackgerritIan Wienand proposed openstack/diskimage-builder master: [DNM] Test boot partition code  https://review.openstack.org/44809920:00
mmedvedeianw: I think I know what the regression is. https://review.openstack.org/#/c/425824/6/diskimage_builder/lib/disk-image-create : if IMAGE_BLOCK_DEVICE does not exist, it still ran 'kpartx' if it was on ppc. While in 2.1.0 you get this: https://github.com/openstack/diskimage-builder/blob/52b16b9883ccbb7febaa8fa785cc56e036d86668/diskimage_builder/block_device/level1/partitioning.py#L18820:06
mmedvedeso with the new code, 'kpartx -avs' would never run on ppc if the partition exists20:06
ianwmmedvede: as a first thing, i believe we've dropped actually creating the prep boot partition originally in https://git.openstack.org/cgit/openstack/diskimage-builder/tree/elements/vm/block-device.d/10-partition?h=1.28.0#n1320:07
mmedvedeianw: ok, I missed that20:09
ianwmmedvede: i think now we're creating the partitions -> http://dal05.objectstorage.softlayer.net/v1/AUTH_3d8e6ecb-f597-448c-8ec2-164e9f710dd6/pkvmci/diskimage-builder/99/448099/4/check/dib-dsvm-functests-devstack-xenial/d9bc6a2/20:13
mmedvedeyup, was just looking there \o/20:13
mmedvedeback to the original error20:13
ianwthat's kind of good ... i think we just need to make sure grub is running against the first partition20:15
mmedvedeianw: I guess adding kpartx back in might fix it?20:15
mmedvedeif I talk nonsense, let me know :)20:17
ianwmmedvede: hmm, i think what happens is we set IMAGE_BLOCK_DEVICE to the root partition to be compatible with old versions20:21
ianwbut PPC was basically overriding this20:21
mmedvedeianw: ack20:22
ianwhttps://git.openstack.org/cgit/openstack/diskimage-builder/tree/elements/vm/block-device.d/10-partition?h=1.28.0#n5120:22
* mmedvede still over his head on all the partitioning business20:22
ianwwhere it sets IMAGE_BLOCK_DEVICE to p220:22
ianwhttps://git.openstack.org/cgit/openstack/diskimage-builder/tree/elements/bootloader/finalise.d/50-bootloader?h=1.28.0#n1520:26
ianwyeah, then it overrides it again20:26
openstackgerritIan Wienand proposed openstack/diskimage-builder master: Create PReP boot partition for PPC  https://review.openstack.org/44773920:30
openstackgerritIan Wienand proposed openstack/diskimage-builder master: [DNM] Test boot partition code  https://review.openstack.org/44809920:31
openstackgerrityolanda.robla proposed openstack/diskimage-builder master: WIP: Add lvm management to diskimage-builder  https://review.openstack.org/44440320:34
openstackgerritMikhail S Medvedev proposed openstack/diskimage-builder master: Create PReP boot partition for PPC  https://review.openstack.org/44773920:43
openstackgerritMikhail S Medvedev proposed openstack/diskimage-builder master: [DNM] Test boot partition code  https://review.openstack.org/44809920:44
openstackgerritIan Wienand proposed openstack/diskimage-builder master: Create PReP boot partition for PPC  https://review.openstack.org/44773921:05
openstackgerritIan Wienand proposed openstack/diskimage-builder master: [DNM] Test boot partition code  https://review.openstack.org/44809921:06
ianw^ this one hopefully gives us some more info ...21:06
openstackgerritIan Wienand proposed openstack/diskimage-builder master: Create PReP boot partition for PPC  https://review.openstack.org/44773921:13
ianw2017-03-21 21:11:02.585 | [debian-minimal/stable-vm] Device       Boot  Start     End Sectors   Size Id Type21:13
ianw2017-03-21 21:11:02.585 | [debian-minimal/stable-vm] /dev/loop0p1 *      2048  206847  204800   100M 41 PPC PReP Boot21:13
ianw2017-03-21 21:11:02.586 | [debian-minimal/stable-vm] /dev/loop0p2      206848 1191551  984704 480.8M 83 Linux21:13
ianwi think getting closer ...21:13
openstackgerritIan Wienand proposed openstack/diskimage-builder master: [DNM] Test boot partition code  https://review.openstack.org/44809921:14
*** andreas-f has joined #openstack-dib21:22
ianwahh, so prep is actually a flag, like bootable flag21:30
* mmedvede reads21:42
*** dmarlin has quit IRC22:22
ianw-000001c0  02 00 41 03 20 1f 01 00  00 00 ff 0f 00 00 00 00  |..A. ...........|22:40
ianw+000001c0  02 00 83 03 20 1f 01 00  00 00 ff 0f 00 00 00 00  |.... ...........|22:40
ianwnot quite true ...22:40
ianw"set 1 prep on" just turns the filesystem type to prep (0x41 in the 3rd byte there)22:41
ianwthat's the only difference22:41
ianwergo, we seem to be doing that, but it still doesn't like the partition22:41
bkeroWhat partition table type are you using?22:43
ianwbkero: see 2017-03-21 21:19:22.010 in  http://dal05.objectstorage.softlayer.net/v1/AUTH_3d8e6ecb-f597-448c-8ec2-164e9f710dd6/pkvmci/diskimage-builder/99/448099/8/check/dib-dsvm-functests-devstack-xenial/88860b7/22:47
ianwwe are correctly setting it to prep22:47
bkeroianw: have you run yaboot and diffed the disk to see what that does?22:49
ianwbkero: we're before that ...22:51
ianwbut hang on, i think grub-install wants to work on the whole disk, and finds a prep partition ...22:51
bkero/usr/sbin/grub-install: error: the chosen partition is not a PReP partition.22:52
bkeroyeah22:53
openstackgerritIan Wienand proposed openstack/diskimage-builder master: Create PReP boot partition for PPC  https://review.openstack.org/44773922:53
openstackgerritIan Wienand proposed openstack/diskimage-builder master: [DNM] Test boot partition code  https://review.openstack.org/44809922:53
bkeroHere's how grub determines if the partition is a prep partition: https://github.com/coreos/grub/blob/master/util/grub-install.c#L69722:56
bkeroI'm assuming that '00 41' in your hexdump is 0x41. I'm assuming Disklabel type: dos is synonymous with 'msdos'22:57
ianwbkero: yeah, i don't think it's an issue with disk labels.  but i think what's happening is it sees *if* there is a prep partition, and that will be "install_drive" in that file22:58
bkeroianw: can follow the logic here: https://github.com/coreos/grub/blob/master/util/grub-install.c#L176022:59
ianwthe thing is where it sets install_drive23:00
ianwinstall_device i mean23:00
ianwwell it doesn't like just /dev/loop0 either23:04
bkeroof course not23:08
bkeroianw: I wonder if !dev->disk->partition is returning 0 because it's failing to identify partition type of p223:09
bkerohahahaha wow look at this23:11
bkerohttps://github.com/coreos/grub/blob/grub-2.02-beta2/grub-core/osdep/linux/ofpath.c#L51723:12
bkeroI didn't realize the 'device' string was 'sda1'.23:13
bkeroLooks like it's returning NULL because the device name is 'loop0p1'23:14
ianwyeah i saw that, but i think before we were using /dev/mapper which it also doesn't seem to handle23:14
bkerogrub-probe is likely being called before grub-install and handing it some bogus data23:15
ianwmmedvede: how did we go with an old build log?  that would be quite handy at this point23:16
mmedvedeianw: the last working build was using IMAGE_BLOCK_DEVICE=/dev/mapper/loop0p223:17
ianw2017-03-21 22:58:14.744 | [debian-minimal/stable-vm] Installation finished. No error reported.23:17
mmedvedewhich was mapped with kpartx23:17
ianwsee that in23:17
ianwhttp://dal05.objectstorage.softlayer.net/v1/AUTH_3d8e6ecb-f597-448c-8ec2-164e9f710dd6/pkvmci/diskimage-builder/99/448099/9/check/dib-dsvm-functests-devstack-xenial/4e4cfcd/23:18
ianwthat's interesting, that just "grub-install" called from the post of the .deb install i guess23:18
mmedvedeianw: the old 10-partition log http://paste.openstack.org/show/603705/23:23
ianwhmmm, what really is the difference between the loopback device and the mapper device?23:24
ianwmmedvede: can you find in the logs what the argument to grub-install is then?23:25
ianwis it /dev/mapper/loop0p2?23:25
mmedvede+ /usr/sbin/grub-install --modules=part_msdos --force /dev/mapper/loop0p1 --no-nvram23:25
ianwok ... and that's the prep partition23:27
ianwthat's what i was trying and still getting the failure23:27
mmedvedebut from what we see, it does not seem like grub-install respects the arg anyway23:28
openstackgerritIan Wienand proposed openstack/diskimage-builder master: Create PReP boot partition for PPC  https://review.openstack.org/44773923:31
ianw^ run kpartx and see if install to /dev/mapper works?23:31
openstackgerritIan Wienand proposed openstack/diskimage-builder master: [DNM] Test boot partition code  https://review.openstack.org/44809923:31
ianwmmedvede: can you pastebin the bits around that grub-install.  do we get the "unknown device" message still?23:32
mmedvedeworth a try. Also might have to set one of device path vars to /dev/mapper/loop0p2. Not sure if kpartx on its own would change anything23:34
*** jamielennox is now known as jamielennox|away23:35
mmedvedeianw: there is no warning, http://paste.openstack.org/show/603706/23:35
ianwthe original change doesn't explain why it uses /dev/mapper23:35
ianwhttps://review.openstack.org/#/c/153404/23:35
mmedvedeianw: maybe just copy-paste from the non-ppc branch23:36
mmedvedewhy kpartx was used in the first place?23:36
ianw? is Yogananth still around?23:37
mmedvedelet me check23:38
*** jamielennox|away is now known as jamielennox23:39
ianwarggh, the kpartx is going to stdout and messing up23:44
*** cloudkiller has joined #openstack-dib23:49
ianwit does seem that grub probing has a few different paths for /dev/mapper23:49
openstackgerritIan Wienand proposed openstack/diskimage-builder master: Create PReP boot partition for PPC  https://review.openstack.org/44773923:49
ianwone of them might be important23:50
mmedvedeif he is still at IBM, Yogananthan is not active23:50
*** cloudnull has quit IRC23:50
*** cloudkiller is now known as cloudnull23:50
openstackgerritIan Wienand proposed openstack/diskimage-builder master: [DNM] Test boot partition code  https://review.openstack.org/44809923:50
mmedvedeoriginal reason for using kpartx: "If the loop partition isn't created as a device by the kernel, go ahead and use kpartx to create the device.". After that it got copied as more special cases where added. Maybe ppc happened to work by luck due to how grub probe works23:54
ianwit does seem there was an unfortunate amount of luck holding this all together :)23:55
mmedvedeevolution in action23:56
*** hashar has quit IRC23:56

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