curtin has trouble removing partitions on redeployment
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
curtin |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Using MAAS Version 1.9.1+bzr4543-
System partitioned using LVM as follows
sda-part1 255.9 MB /boot ext2
vg0-root 10.0 GB /ext4
vg0-tmp 10.0 GB /tmp ext4
vg0-var 10.0 GB /var ext4
sda
299.4 GB
Free: 235.2 GB
Physical rotary
vg0
64.0 GB
Free: 34.0 GB
Volume group
First attempt to deploy after releasing results in this output:
File descriptor 3 (socket:[13883]) leaked on lvremove invocation. Parent PID 11104: python
File descriptor 4 (/tmp/install.log) leaked on lvremove invocation. Parent PID 11104: python
File descriptor 5 (/tmp/install.log) leaked on lvremove invocation. Parent PID 11104: python
Logical volume "root" successfully removed
Logical volume "tmp" successfully removed
Logical volume "var" successfully removed
Volume group "root" not found
Skipping volume group root
File descriptor 3 (socket:[13883]) leaked on vgremove invocation. Parent PID 11104: python
File descriptor 4 (/tmp/install.log) leaked on vgremove invocation. Parent PID 11104: python
File descriptor 5 (/tmp/install.log) leaked on vgremove invocation. Parent PID 11104: python
Volume group "vg0" successfully removed
An error occured handling 'sda': OSError - [Errno 2] No such file or directory: '/sys/devices/
[Errno 2] No such file or directory: '/sys/devices/
Installation failed with exception: Unexpected error while running command.
Command: ['curtin', 'block-meta', 'custom']
Exit code: 3
Reason: -
Stdout: 'File descriptor 3 (socket:[13883]) leaked on lvremove invocation. Parent PID 11104: python\nFile descriptor 4 (/tmp/install.log) leaked on lvremove invocation. Parent PID 11104: python\nFile descriptor 5 (/tmp/install.log) leaked on lvremove invocation. Parent PID 11104: python\n Logical volume "root" successfully removed\n Logical volume "tmp" successfully removed\n Logical volume "var" successfully removed\n Volume group "root" not found\n Skipping volume group root\nFile descriptor 3 (socket:[13883]) leaked on vgremove invocation. Parent PID 11104: python\nFile descriptor 4 (/tmp/install.log) leaked on vgremove invocation. Parent PID 11104: python\nFile descriptor 5 (/tmp/install.log) leaked on vgremove invocation. Parent PID 11104: python\n Volume group "vg0" successfully removed\nAn error occured handling \'sda\': OSError - [Errno 2] No such file or directory: \'/sys/
Stderr: ''
Second attempt succeeds every time.
Related branches
- Server Team CI bot: Approve (continuous-integration)
- Wesley Wiedenmeier (community): Needs Resubmitting
- curtin developers: Pending requested
-
Diff: 2214 lines (+1515/-265)15 files modifiedcurtin/block/__init__.py (+176/-47)
curtin/block/clear_holders.py (+379/-0)
curtin/block/lvm.py (+96/-0)
curtin/commands/block_info.py (+75/-0)
curtin/commands/block_meta.py (+82/-203)
curtin/commands/block_wipe.py (+0/-1)
curtin/commands/clear_holders.py (+48/-0)
curtin/commands/main.py (+4/-3)
curtin/config.py (+2/-3)
curtin/util.py (+35/-8)
doc/devel/clear_holders_doc.txt (+85/-0)
tests/unittests/test_block.py (+99/-0)
tests/unittests/test_block_lvm.py (+94/-0)
tests/unittests/test_clear_holders.py (+321/-0)
tests/unittests/test_util.py (+19/-0)
Changed in curtin: | |
importance: | Undecided → Medium |
status: | New → Triaged |
tags: | added: curtin-clear-holders |
Changed in curtin: | |
status: | Triaged → Fix Committed |
Hi Shawn,
Can you attach the curtin configuration from maas?
maas <maasuser> node get-curtin-config <system id>
Thanks!
Ryan
On Fri, Mar 25, 2016 at 8:58 AM, Shawn Iverson <email address hidden>
wrote:
> Public bug reported: 0ubuntu1 (trusty1) pci0000: 00/0000: 00:03.0/ 0000:09: 00.0/host4/ target4: 2:0/4:2: 0:0/block/ sda/sda2/ holders/ dm-1/holders' pci0000: 00/0000: 00:03.0/ 0000:09: 00.0/host4/ target4: 2:0/4:2: 0:0/block/ sda/sda2/ holders/ dm-1/holders' devices/ pci0000: 00/0000: 00:03.0/ 0000:09: 00.0/host4/ target4: 2:0/4:2: 0:0/block/ sda/sda2/ holders/ dm-1/holders\ '\n[Errno devices/ pci0000: 00/0000: 00:03.0/ 0000:09: 00.0/host4/ target4: 2:0/4:2: 0:0/block/ sda/sda2/ holders/ dm-1/holders\ '\n'
>
> Using MAAS Version 1.9.1+bzr4543-
>
> System partitioned using LVM as follows
>
> sda-part1 255.9 MB /boot ext2
> vg0-root 10.0 GB /ext4
> vg0-tmp 10.0 GB /tmp ext4
> vg0-var 10.0 GB /var ext4
>
> sda
> 299.4 GB
> Free: 235.2 GB
> Physical rotary
>
> vg0
> 64.0 GB
> Free: 34.0 GB
> Volume group
>
>
> First attempt to deploy after releasing results in this output:
>
> File descriptor 3 (socket:[13883]) leaked on lvremove invocation. Parent
> PID 11104: python
> File descriptor 4 (/tmp/install.log) leaked on lvremove invocation. Parent
> PID 11104: python
> File descriptor 5 (/tmp/install.log) leaked on lvremove invocation. Parent
> PID 11104: python
> Logical volume "root" successfully removed
> Logical volume "tmp" successfully removed
> Logical volume "var" successfully removed
> Volume group "root" not found
> Skipping volume group root
> File descriptor 3 (socket:[13883]) leaked on vgremove invocation. Parent
> PID 11104: python
> File descriptor 4 (/tmp/install.log) leaked on vgremove invocation. Parent
> PID 11104: python
> File descriptor 5 (/tmp/install.log) leaked on vgremove invocation. Parent
> PID 11104: python
> Volume group "vg0" successfully removed
> An error occured handling 'sda': OSError - [Errno 2] No such file or
> directory:
> '/sys/devices/
> [Errno 2] No such file or directory:
> '/sys/devices/
> Installation failed with exception: Unexpected error while running command.
> Command: ['curtin', 'block-meta', 'custom']
> Exit code: 3
> Reason: -
> Stdout: 'File descriptor 3 (socket:[13883]) leaked on lvremove invocation.
> Parent PID 11104: python\nFile descriptor 4 (/tmp/install.log) leaked on
> lvremove invocation. Parent PID 11104: python\nFile descriptor 5
> (/tmp/install.log) leaked on lvremove invocation. Parent PID 11104:
> python\n Logical volume "root" successfully removed\n Logical volume
> "tmp" successfully removed\n Logical volume "var" successfully removed\n
> Volume group "root" not found\n Skipping volume group root\nFile
> descriptor 3 (socket:[13883]) leaked on vgremove invocation. Parent PID
> 11104: python\nFile descriptor 4 (/tmp/install.log) leaked on vgremove
> invocation. Parent PID 11104: python\nFile descriptor 5 (/tmp/install.log)
> leaked on vgremove invocation. Parent PID 11104: python\n Volume group
> "vg0" successfully removed\nAn error occured handling \'sda\': OSError -
> [Errno 2] No such file or directory:
> \'/sys/
> 2] No such file or directory:
> \'/sys/
> Stderr: ''
>
> Second attempt succeeds every t...