Diskimage Builder failed volume group creation

Asked by Balaji on 2020-10-05

```
[2020-10-05T04:21:45.006Z] 2020-10-05 04:19:39.354 | DEBUG diskimage_builder.block_device.utils [-] exec_sudo: /dev/mapper/loop13p3 not set up by udev: Falling back to direct node creation. exec_sudo /home/parallel/dib-env/lib/python3.6/site-packages/diskimage_builder/block_device/utils.py:135

[2020-10-05T04:21:45.006Z] 2020-10-05 04:19:39.354 | DEBUG diskimage_builder.block_device.utils [-] exec_sudo: add map loop13p1 (253:41): 0 1048576 linear /dev/loop13 2048 exec_sudo /home/parallel/dib-env/lib/python3.6/site-packages/diskimage_builder/block_device/utils.py:135

[2020-10-05T04:21:45.006Z] 2020-10-05 04:19:39.354 | DEBUG diskimage_builder.block_device.utils [-] exec_sudo: add map loop13p2 (253:42): 0 4089036 linear /dev/loop13 1050624 exec_sudo /home/parallel/dib-env/lib/python3.6/site-packages/diskimage_builder/block_device/utils.py:135

[2020-10-05T04:21:45.006Z] 2020-10-05 04:19:39.354 | DEBUG diskimage_builder.block_device.utils [-] exec_sudo: add map loop13p3 (253:43): 0 36800512 linear /dev/loop13 5140480 exec_sudo /home/parallel/dib-env/lib/python3.6/site-packages/diskimage_builder/block_device/utils.py:135

[2020-10-05T04:21:45.006Z] 2020-10-05 04:19:39.364 | INFO diskimage_builder.block_device.utils [-] Calling [sudo dmsetup --noudevsync mknodes]

[2020-10-05T04:21:45.006Z] 2020-10-05 04:19:39.390 | DEBUG diskimage_builder.block_device.level2.mkfs [-] Creating fs command [['mkfs', '-t', 'ext4', '-L', 'mkfs_boot', '-U', 'b3c8b586-eff2-4fd2-9129-8ad510068e2e', '-q', '/dev/mapper/loop13p1']] create /home/parallel/dib-env/lib/python3.6/site-packages/diskimage_builder/block_device/level2/mkfs.py:132

[2020-10-05T04:21:45.006Z] 2020-10-05 04:19:39.390 | INFO diskimage_builder.block_device.utils [-] Calling [sudo mkfs -t ext4 -L mkfs_boot -U b3c8b586-eff2-4fd2-9129-8ad510068e2e -q /dev/mapper/loop13p1]

[2020-10-05T04:21:45.006Z] 2020-10-05 04:19:39.457 | INFO diskimage_builder.block_device.level1.partitioning [-] Not creating the partitions a second time.

[2020-10-05T04:21:45.006Z] 2020-10-05 04:19:39.458 | INFO diskimage_builder.block_device.level1.partitioning [-] Not creating the partitions a second time.

[2020-10-05T04:21:45.006Z] 2020-10-05 04:19:39.458 | DEBUG diskimage_builder.block_device.level1.lvm [-] Creating pv command [['pvcreate', '/dev/mapper/loop13p3', '--force']] _create /home/parallel/dib-env/lib/python3.6/site-packages/diskimage_builder/block_device/level1/lvm.py:95

[2020-10-05T04:21:45.006Z] 2020-10-05 04:19:39.458 | INFO diskimage_builder.block_device.utils [-] Calling [sudo pvcreate /dev/mapper/loop13p3 --force]

[2020-10-05T04:21:45.006Z] 2020-10-05 04:19:39.533 | DEBUG diskimage_builder.block_device.utils [-] exec_sudo: Physical volume "/dev/mapper/loop13p3" successfully created. exec_sudo /home/parallel/dib-env/lib/python3.6/site-packages/diskimage_builder/block_device/utils.py:135

[2020-10-05T04:21:45.006Z] 2020-10-05 04:19:39.547 | DEBUG diskimage_builder.block_device.level1.lvm [-] Creating vg command [['vgcreate', 'vg', '/dev/mapper/loop13p3', '--force']] _create /home/parallel/dib-env/lib/python3.6/site-packages/diskimage_builder/block_device/level1/lvm.py:146

[2020-10-05T04:21:45.006Z] 2020-10-05 04:19:39.547 | INFO diskimage_builder.block_device.utils [-] Calling [sudo vgcreate vg /dev/mapper/loop13p3 --force]

[2020-10-05T04:21:45.006Z] 2020-10-05 04:19:39.585 | DEBUG diskimage_builder.block_device.utils [-] exec_sudo: A volume group called vg already exists. exec_sudo /home/parallel/dib-env/lib/python3.6/site-packages/diskimage_builder/block_device/utils.py:135

[2020-10-05T04:21:45.006Z] 2020-10-05 04:19:39.610 | ERROR diskimage_builder.block_device.blockdevice [-] Create failed; rollback initiated

[2020-10-05T04:21:45.006Z] 2020-10-05 04:19:39.610 | Traceback (most recent call last):

[2020-10-05T04:21:45.006Z] 2020-10-05 04:19:39.610 | File "/home/parallel/dib-env/lib/python3.6/site-packages/diskimage_builder/block_device/blockdevice.py", line 416, in cmd_create

[2020-10-05T04:21:45.006Z] 2020-10-05 04:19:39.610 | node.create()

[2020-10-05T04:21:45.006Z] 2020-10-05 04:19:39.610 | File "/home/parallel/dib-env/lib/python3.6/site-packages/diskimage_builder/block_device/level1/lvm.py", line 278, in create

[2020-10-05T04:21:45.006Z] 2020-10-05 04:19:39.610 | vgs._create()

[2020-10-05T04:21:45.006Z] 2020-10-05 04:19:39.610 | File "/home/parallel/dib-env/lib/python3.6/site-packages/diskimage_builder/block_device/level1/lvm.py", line 147, in _create

[2020-10-05T04:21:45.006Z] 2020-10-05 04:19:39.610 | exec_sudo(cmd)

[2020-10-05T04:21:45.006Z] 2020-10-05 04:19:39.610 | File "/home/parallel/dib-env/lib/python3.6/site-packages/diskimage_builder/block_device/utils.py", line 143, in exec_sudo

[2020-10-05T04:21:45.006Z] 2020-10-05 04:19:39.610 | raise e
```

Please find above it looks like loopdevice was created and later the same we see it complains and fails. Any help on what we are missing here ?.

Question information

Language:
English Edit question
Status:
Expired
For:
Ubuntu skimage Edit question
Assignee:
No assignee Edit question
Last query:
2020-10-05
Last reply:
2020-10-20
Launchpad Janitor (janitor) said : #1

This question was expired because it remained in the 'Open' state without activity for the last 15 days.