Package: vmdb2 Version: 0.13.2+git20190215-1 Hi,
I'm switching from vmdebootstrap, and I always used to lvcreate beforehand, so I was pleasantly surprised to see this facility in vmdb2. Unfortunately, it seems not to work at all on the fresh Debian 10 system where I tried it like this: The first step in foo-bar-1.vmdb.yml was: - lvcreate: vg0 name: "{{ image }}" size: 4G The invocation was: % sudo vmdb2 foo-bar-1.vmdb.yml --image /dev/vg0/foo-bar-1-root --verbose --log=foo-bar-1.vmd.log The log said: 2019-11-27 11:19:02 DEBUG Python version: 3.7.3 (default, Apr 3 2019, 05:39:12) [GCC 8.3.0] 2019-11-27 11:19:02 INFO Load spec file foo-bar-1.vmdb.yml 2019-11-27 11:19:02 INFO Running step: {'lvcreate': 'vg0', 'name': '/dev/vg0/foo-bar-1-root', 'size': '4G'} 2019-11-27 11:19:02 INFO Calling <bound method LvcreateStepRunner.run of <lvm2_plugin.LvcreateStepRunner object at 0x7fc7530ca748>> 2019-11-27 11:19:02 INFO Exec: ['lvcreate', '--name', '/dev/vg0/foo-bar-1-root', '--size', '4G', 'vg0'] 2019-11-27 11:19:02 DEBUG run external command: [['lvcreate', '--name', '/dev/vg0/foo-bar-1-root', '--size', '4G', 'vg0']] 2019-11-27 11:19:02 DEBUG STDOUT: b' Logical volume "foo-bar-1-root" created.\n' 2019-11-27 11:19:02 ERROR Traceback (most recent call last): File "/usr/lib/python3/dist-packages/vmdb/app.py", line 107, in run_steps_helper method(step, self.settings, state) File "/usr/lib/python3/dist-packages/vmdb/plugins/lvm2_plugin.py", line 74, in run assert os.path.exists(lvdev) AssertionError 2019-11-27 11:19:02 INFO Something went wrong, cleaning up! 2019-11-27 11:19:02 INFO Running teardown: {'lvcreate': 'vg0', 'name': '/dev/vg0/foo-bar-1-root', 'size': '4G'} 2019-11-27 11:19:02 INFO Calling <bound method StepRunnerInterface.teardown of <lvm2_plugin.LvcreateStepRunner object at 0x7fc7530ca748>> 2019-11-27 11:19:02 ERROR An error occurred, exiting with non-zero exit code It's as if it ran lvcreate with --noudevsync or something, but that shouldn't be... Please fix it. TIA. -- Josip Rodin