[2.0-b6] Deploying a trusty (but not xenial) node frequently fails during storage setup of curtin
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Invalid
|
Undecided
|
Unassigned | ||
curtin |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Steps to reproduce:
1. Edit a node storage setup to unmount and unformat all existing VGs, partitions, etc.
2. Create a single VG (vg0) on the only available device ('sda' in my case)
3. Create a couple of LVs (vg-root - 60GB - or half the available space, ext4, mounted at /; vg-ceph - 60GB - the other half, ext4, mounted at /srv/ceph-osd)
4. Make sure MAAS has the latest trusty images
5. Deploy the node with 'trusty' (expect success; no issues with xenial on every attempt)
6. Then release the node and try to deploy it again with trusty.
Now, with the previous 2.0.0-rc1+bzr5059 at that point the node transitioned to 'Failed deployment' and the installation log on the UI shows this: http://
With 2.0.0-beta6+bzr5060 it's actually worse, because it still fails by *does not* transition to 'Failed deployment' but is stuck in 'Deploying'. Installation did fail, as it's apparent from the node event log having these last 2 lines:
-8<-------
Node installation - 'curtin' failed: configuring disk: sda
Node installation - 'curtin' failed: configuring storage
-8<-------
It looks like the issue is with curtin trying and failing to reformat existing partitions, LVs / VGs ?
As suggested, I'm adding the output of 'maas <profile> machine get-curtin-config <system-id>':
(just to demonstrate I did 2 deployments with xenial first on the same node)
http://
http://
http://
Contents of /var/log/maas/* is attached.
# dpkg -l '*maas'* | cat
Desired=
| Status=
|/ Err?=(none)
||/ Name Version Architecture Description
+++-===
ii maas 2.0.0~beta6+
ii maas-cli 2.0.0~beta6+
rc maas-cluster-
ii maas-common 2.0.0~beta6+
ii maas-dhcp 2.0.0~beta6+
ii maas-dns 2.0.0~beta6+
ii maas-proxy 2.0.0~beta6+
ii maas-rack-
ii maas-region-api 2.0.0~beta6+
ii maas-region-
rc maas-region-
un python-django-maas <none> <none> (no description available)
un python-maas-client <none> <none> (no description available)
un python-
ii python3-django-maas 2.0.0~beta6+
ii python3-maas-client 2.0.0~beta6+
ii python3-
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: | |
status: | New → Confirmed |
Changed in maas: | |
status: | New → Invalid |
tags: | added: curtin-clear-holders curtin-sru |
Changed in curtin: | |
status: | Confirmed → Fix Committed |
Can you include:
1. pvs, vgs, lvs output from the node prior to being deployed via maas
2. Can attach maas <session> node get-curtin-config <system-id> output, I didn't see it in the var/log/maas output; I'm mostly interested in the curtin input and log from the node.