Bug#996580: Acknowledgement (vmdb2 hangs in the mkpart plugin after a lvcreate because of device mapper paths)

2023-11-11 Thread Gunnar Wolf
I am sorry for not reacting earlier to your bug.

I have found some apparent race condition or intermitent failure due
to me interrupting things at the wrong time that seem to match what
you report... but cannot really pin-point it to anything specific.

I have *not* fixed the bug. But please confirm to me: Do you still see
this bug nowadays? Is it repeatable? 



Bug#996580: Acknowledgement (vmdb2 hangs in the mkpart plugin after a lvcreate because of device mapper paths)

2021-10-16 Thread Josip Rodin


Hm, actually loop doesn't work well either, because the same piece of code
tries to access /dev/loop01 instead of the actual /dev/loop0p1

Once I fix that, it still later fails with:

Exec: ['blkid', '-c', '/dev/null', '-o', 'value', '-s', 'UUID', '/dev/loop0p1']
Installing GRUB for BIOS
ERROR: Do not understand partition device name /dev/loop0p1
ERROR: Exception('Do not understand partition device name /dev/loop0p1')
Something went wrong, cleaning up!

I found in the code that I could override that in the grub plugin by
specifying:

image-dev: "/dev/mapper/vg0-myvm--root"

However, even this failed with:

2021-10-16 22:09:37 INFO Exec: ['chroot', '/tmp/tmpy9lcantw', 'grub-install', 
'--target=i386-pc', '--no-nvram', '--force-extra-removable', '--no-floppy', 
'--modules=part_msdos part_gpt', '--grub-mkdevicemap=/boot/grub/device.map', 
'/dev/mapper/vg0-myvm--root']
2021-10-16 22:09:37 DEBUG STDOUT:
2021-10-16 22:09:37 DEBUG STDERR: Installing for i386-pc platform.
grub-install: error: diskfilter writes are not supported.

2021-10-16 22:09:37 ERROR Program failed: 1

So, uhh, I'm a bit stuck here. This used to work under vmdebootstrap...

-- 
Josip Rodin



Bug#996580: Acknowledgement (vmdb2 hangs in the mkpart plugin after a lvcreate because of device mapper paths)

2021-10-16 Thread Josip Rodin
On Sat, Oct 16, 2021 at 10:42:38PM +0200, Josip Rodin wrote:
> Installing GRUB for BIOS
> ERROR: Do not understand partition device name /dev/loop0p1
> ERROR: Exception('Do not understand partition device name /dev/loop0p1')
> Something went wrong, cleaning up!
> 
> I found in the code that I could override that in the grub plugin by
> specifying:
> 
> image-dev: "/dev/mapper/vg0-myvm--root"
> 
> However, even this failed with:
> 
> 2021-10-16 22:09:37 INFO Exec: ['chroot', '/tmp/tmpy9lcantw', 'grub-install', 
> '--target=i386-pc', '--no-nvram', '--force-extra-removable', '--no-floppy', 
> '--modules=part_msdos part_gpt', '--grub-mkdevicemap=/boot/grub/device.map', 
> '/dev/mapper/vg0-myvm--root']
> 2021-10-16 22:09:37 DEBUG STDOUT:
> 2021-10-16 22:09:37 DEBUG STDERR: Installing for i386-pc platform.
> grub-install: error: diskfilter writes are not supported.
> 
> 2021-10-16 22:09:37 ERROR Program failed: 1

As it happens, this actually does work with:

image-dev: "{{ image }}"

The log then simply says:

Exec: ['chroot', '/tmp/tmp65a32lou', 'grub-install', '--target=i386-pc', 
'--no-nvram', '--force-extra-removable', '--no-floppy', '--modules=part_msdos 
part_gpt', '--grub-mkdevicemap=/boot/grub/device.map', '/dev/loop0']

-- 
Josip Rodin