Use logical partition to create configdrive if no more primary partitions could be created

Bug #1561283 reported by Shivanand Tendulker
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ironic
Fix Released
Low
Unassigned

Bug Description

When primary partitions are not available, Ironic should check if configdrive partition could be created as a logical partition.

The disk could have 3 primary partitions and 1 extended one which would allow you to create the config drive as a logical partition.
So the 4 partitions thing only is a blocker if they are 4 primary partitions
https://en.wikipedia.org/wiki/Extended_boot_record

Haomeng,Wang (whaom)
Changed in ironic:
assignee: nobody → Haomeng,Wang (whaom)
Revision history for this message
Haomeng,Wang (whaom) wrote :

Want to confirm your case first:

1. Your images have 4 primary partitions already
2. Run ironic to deploy the image to baremetal
3. IPA run out of error which can not add configdrive partition

Correct me if my understanding is wrong.

Changed in ironic:
status: New → Incomplete
Revision history for this message
Haomeng,Wang (whaom) wrote :

And can you provide more details, such as which driver are you using and how the images do you create?

Revision history for this message
Haomeng,Wang (whaom) wrote :

And can you help to check your image partitions with below command, and paste the result here for investigation to see if it is MBR or GPT ?

# gdisk -l <img>

Revision history for this message
Dmitry Tantsur (divius) wrote :

I also can't quite understand this bug.. Ironic is expected to wipe the partition table, so you can't really have so many partitions there..

Also why not use GPT?

Revision history for this message
Shivanand Tendulker (stendulker) wrote :

This was for the BIOS only whole disk image, so cannot replace it with GPT. This defect was raised wrt Lucas's comment. I think nobody has hit it, but a possible scenario.

Dmitry Tantsur (divius)
Changed in ironic:
status: Incomplete → Triaged
importance: Undecided → Low
Haomeng,Wang (whaom)
Changed in ironic:
assignee: Haomeng,Wang (whaom) → nobody
Revision history for this message
Julia Kreger (juliaashleykreger) wrote :

We do this on the GPT path, and that is the default path at this point. Marking fix released.

Changed in ironic:
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.