LVM fails to deploy in Trusty - An error occured handling 'vgroot-lvroot': ProcessExecutionError
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
curtin |
Fix Released
|
High
|
Unassigned |
Bug Description
Need to get 2101 kB of archives.
After this operation, 6836 kB of additional disk space will be used.
Get:1 http://
Get:2 http://
Get:3 http://
Get:4 http://
Get:5 http://
Get:6 http://
Get:7 http://
Get:8 http://
Preconfiguring packages ...
Fetched 2101 kB in 4s (502 kB/s)
Selecting previously unselected package libdevmapper-
(Reading database ... 56007 files and directories currently installed.)
Preparing to unpack .../libdevmappe
Unpacking libdevmapper-
Selecting previously unselected package libreadline5:amd64.
Preparing to unpack .../libreadline
Unpacking libreadline5:amd64 (5.2+dfsg-2) ...
Selecting previously unselected package bcache-tools.
Preparing to unpack .../bcache-
Unpacking bcache-tools (1.0.7-1~14.04) ...
Selecting previously unselected package watershed.
Preparing to unpack .../archives/
Unpacking watershed (7) ...
Selecting previously unselected package lvm2.
Preparing to unpack .../lvm2_
Unpacking lvm2 (2.02.98-6ubuntu2) ...
Selecting previously unselected package mdadm.
Preparing to unpack .../mdadm_
Unpacking mdadm (3.2.5-5ubuntu4.2) ...
Selecting previously unselected package ssl-cert.
Preparing to unpack .../ssl-
Unpacking ssl-cert (1.0.33) ...
Selecting previously unselected package postfix.
Preparing to unpack .../postfix_
Unpacking postfix (2.11.0-1ubuntu1) ...
Processing triggers for man-db (2.6.7.1-1) ...
Processing triggers for ureadahead (0.100.0-16) ...
Processing triggers for ufw (0.34~rc-0ubuntu2) ...
Setting up libdevmapper-
Setting up libreadline5:amd64 (5.2+dfsg-2) ...
Setting up bcache-tools (1.0.7-1~14.04) ...
update-initramfs: deferring update (trigger activated)
Setting up watershed (7) ...
update-initramfs: deferring update (trigger activated)
Setting up lvm2 (2.02.98-6ubuntu2) ...
update-initramfs: deferring update (trigger activated)
Setting up mdadm (3.2.5-5ubuntu4.2) ...
Generating mdadm.conf... done.
Removing any system startup links for /etc/init.
update-initramfs: deferring update (trigger activated)
/usr/sbin/
invoke-rc.d: policy-rc.d denied execution of start.
Setting up ssl-cert (1.0.33) ...
hostname: Name or service not known
make-ssl-cert: Could not get FQDN, using "acidic-vest".
make-ssl-cert: You may want to fix your /etc/hosts and/or DNS setup and run
make-ssl-cert: make-ssl-cert generate-
make-ssl-cert: again.
Setting up postfix (2.11.0-1ubuntu1) ...
Adding group `postfix' (GID 112) ...
Done.
Adding system user `postfix' (UID 106) ...
Adding new user `postfix' (UID 106) with group `postfix' ...
Not creating home directory `/var/spool/
Creating /etc/postfix/
Adding tcp map entry to /etc/postfix/
Adding sqlite map entry to /etc/postfix/
Adding group `postdrop' (GID 113) ...
Done.
setting myhostname: acidic-vest
setting alias maps
setting alias database
mailname is not a fully qualified domain name. Not changing /etc/mailname.
setting destinations: localdomain, localhost, localhost.
setting relayhost:
setting mynetworks: 127.0.0.0/8 [::ffff:
setting mailbox_size_limit: 0
setting recipient_
setting inet_interfaces: all
setting inet_protocols: all
/etc/aliases does not exist, creating it.
WARNING: /etc/aliases exists, but does not have a root alias.
Postfix is now set up with a default configuration. If you need to make
changes, edit
/etc/postfix/
values, see postconf(1).
After modifying main.cf, be sure to run '/etc/init.
Running newaliases
invoke-rc.d: policy-rc.d denied execution of restart.
Processing triggers for libc-bin (2.19-0ubuntu6.3) ...
Processing triggers for initramfs-tools (0.103ubuntu4.2) ...
update-initramfs: Generating /boot/initrd.
cryptsetup: WARNING: failed to detect canonical device of /media/root-ro/
cryptsetup: WARNING: could not determine root device from /etc/fstab
W: mdadm: /etc/mdadm/
Processing triggers for ureadahead (0.100.0-16) ...
Processing triggers for ufw (0.34~rc-0ubuntu2) ...
mdadm: No arrays found in config file or automatically
File descriptor 3 (socket:[9041]) leaked on vgcreate invocation. Parent PID 1493: python2
File descriptor 4 (/curtin/
File descriptor 5 (/curtin/
File descriptor 6 (/curtin/
File descriptor 7 (/curtin/
File descriptor 8 (/curtin/
File descriptor 9 (/curtin/
File descriptor 10 (/var/log/
File descriptor 11 (/var/log/
File descriptor 12 (/curtin/
No physical volume label read from /dev/sda1
Physical volume "/dev/sda1" successfully created
Volume group "vgroot" successfully created
File descriptor 3 (socket:[9041]) leaked on lvcreate invocation. Parent PID 1493: python2
File descriptor 4 (/curtin/
File descriptor 5 (/curtin/
File descriptor 6 (/curtin/
File descriptor 7 (/curtin/
File descriptor 8 (/curtin/
File descriptor 9 (/curtin/
File descriptor 10 (/var/log/
File descriptor 11 (/var/log/
File descriptor 12 (/curtin/
Logical volume "lvroot" created
Error: /dev/dm-0: unrecognised disk label
An error occured handling 'vgroot-lvroot': ProcessExecutio
Command: ['partprobe', '/dev/vgroot/
Exit code: 1
Reason: -
Stdout: ''
Stderr: ''
Unexpected error while running command.
Command: ['partprobe', '/dev/vgroot/
Exit code: 1
Reason: -
Stdout: ''
Stderr: ''
Installation failed with exception: Unexpected error while running command.
Command: ['curtin', 'block-meta', 'custom']
Exit code: 3
Reason: -
Related branches
- Scott Moser: Pending requested
-
Diff: 12 lines (+1/-1)1 file modifiedcurtin/commands/block_meta.py (+1/-1)
summary: |
- An error occured handling 'vgroot-lvroot': ProcessExecutionError - - Unexpected error while running command. + LVM fails to deploy in Trusty - An error occured handling 'vgroot- + lvroot': ProcessExecutionError |
Changed in curtin: | |
status: | Confirmed → Fix Committed |
importance: | Undecided → High |
OK, I can reproduce in a trusty vm curtin/launch and this config:
% cat partprobe.yml repository" , "-y", "ppa:maas- maintainers/ experimental" ]
early_commands:
add_repo: ["add-apt-
partitioning_ commands: f70a-4826- bd7c-5639476f71 20 1e72-4807- 8ed7-70465626bf 1f lvroot_ format f7c7-485a- b2b8-eabce888d4 e1 lvroot_ format
builtin:
- curtin
- block-meta
- custom
storage:
config:
- grub_device: true
id: sda
model: TOSHIBA THNSNH12
name: sda
ptable: msdos
path: /dev/vdc
type: disk
wipe: superblock
- device: sda
id: sda-part1
name: sda-part1
number: 1
offset: 2097152B
size: 128032530432B
type: partition
uuid: 19a4ba9c-
wipe: superblock
- devices:
- sda-part1
id: vgroot
name: vgroot
type: lvm_volgroup
uuid: 884d7eb2-
- id: vgroot-lvroot
name: lvroot
size: 128031129600B
type: lvm_partition
volgroup: vgroot
- fstype: ext4
id: vgroot-
label: root
type: format
uuid: a83e1778-
volume: vgroot-lvroot
- device: vgroot-
id: vgroot-lvroot_mount
path: /
type: mount
version: 1
% ./tools/launch -n user,mac= c0:d6:9f: 2c:e8:80 -d test1.img:128G ~/download/ trusty- server- cloudimg- amd64-disk1. qcow2 -- curtin install --config= partprobe. yml cp:///