CentOS fails to deploy with LVM storage layout
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| MAAS |
High
|
Lee Trager | |||
| maas-images |
High
|
Lee Trager | |||
Bug Description
When trying to deploy CentOS using the default LVM layout the deployment fails with the following error
Traceback (most recent call last):
File "/tmp/tmpipnJj9
main()
File "/tmp/tmpipnJj9
devices = get_block_
File "/tmp/tmpipnJj9
(blockdev, part) = block.get_
File "/curtin/
raise ValueError("%s had no syspath (%s)" % (devpath, syspath))
ValueError: /dev/vgroot-lvroot (dm-0) had no syspath (/sys/class/
Unexpected error while running command.
Command: ['/tmp/
Exit code: 1
Reason: -
Stdout: ''
Stderr: ''
Installation failed with exception: Unexpected error while running command.
Command: ['curtin', 'curthooks']
Exit code: 3
Reason: -
Stdout: 'Traceback (most recent call last):\n File "/tmp/tmpipnJj9
Stderr: ''
| Lee Trager (ltrager) wrote : | #1 |
| Lee Trager (ltrager) wrote : | #2 |
The bug is due to the CentOS Curtin script not being able to understand all of the storage options we now have. Since most of the storage code we use for Ubuntu could be used for CentOS we may want to move the Curtin hooks out of maas-images and add CentOS support to Curtin itself.
| affects: | maas → maas-images |
| Changed in maas: | |
| status: | New → Triaged |
| importance: | Undecided → High |
| assignee: | nobody → Lee Trager (ltrager) |
| tags: | added: qa-missing |
| Andres Rodriguez (andreserl) wrote : | #3 |
To use the flat storage layout:
maas <user> node set-storage-layout <node-id> storage_layout=flat
| Sagar Shukla (sa-shukla) wrote : | #4 |
When I try to run above mentioned command in my environment, I get following error message.
# maas root node set-storage-layout node-262e1660-
usage: /usr/lib/
[-h] COMMAND ...
/usr/lib/
Am I missing something?
| Blake Rouse (blake-rouse) wrote : | #5 |
You need to be using MAAS 1.9, also make sure that your client definition of the API endpoint is up-to-date. You can do that with a "maas refresh" command.
| Sagar Shukla (sa-shukla) wrote : | #6 |
is MAAS 1.9 in stable state for deployment? I am managing 70 servers through MAAS, so just wanted to ensure that I do not loose them.
| Sagar Shukla (sa-shukla) wrote : | #7 |
Looking at 1.8.2 and 1.9 differences, 1.8.2 has default storage layout of flat which is in accordance with the requirement for CentOS deployment, so not sure if this is really required with MAAS 1.8.2 . Issue with MAAS 1.8.2 for CentOS deployment seems to be very much different.
Has someone tried CentOS deployment with MAAS 1.8.2
| Blake Rouse (blake-rouse) wrote : | #8 |
All version of 1.8.X use flat layout. Only way to use LVM is to upgrade to 1.9. I would not recommend an upgrade at this time as 1.9 is still in alpha.
| Sagar Shukla (sa-shukla) wrote : | #9 |
I am running into issues with CentOS deployment and on IRC chat, I was recommended to refer to this bug. But this issue appears to be different.
Do you have any suggestions for the issue that I am facing? I have logged bug given below to track my issue:
https:/
| Sagar Shukla (sa-shukla) wrote : | #10 |
okay ... no worries, I found that issue is with function pick_cluster_

Deploying with a flat storage layout allows CentOS to install with no issue.