Code for config drive incorrectly counts primary partitions
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ironic |
Fix Released
|
Medium
|
Lucas Alvares Gomes |
Bug Description
I'm hitting an error when using full disk images, and extended partitions. My disk is having just a primary partition, but also has swap and extended partition. Output from parted is something like:
"BYT;
1:1.00MiB:
2:4768MiB:
3:5722MiB:
5:5722MiB:
6:5865MiB:
7:6247MiB:
When i try to deploy, I hit the error:
Exception: Deploy failed for instance 0c786f46-
That is because code on list_partitions() is just using a simple regex and counting all partitions without considering the type, leading to incorrect interpretation.
Please note that image partitions with ironic is a real use case. Specially in terms of security, having different partitions for /boot, /var, /home, etc... is really needed. So that use case shall be supported.
Changed in ironic: | |
assignee: | nobody → Lucas Alvares Gomes (lucasagomes) |
importance: | Undecided → Medium |
Confirming issue. This is indeed an issue in the code and a common practice in security hardening is to restrict settings at the filesystem level with separate partitions. As far as I can remember, We never expected an ironic user to want to deploy in this case with multiple partitions like this. :(