Configdrive can't be bigger than 64MB

Bug #1435237 reported by Lucas Alvares Gomes
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ironic-python-agent
Won't Fix
Medium
Mario Villaplana

Bug Description

When Nova generates a configdrive with the "iso9660" format (default) it doesn't contain a specific size. Only when the format is "vfat" the configdrive will be 64MB[1] and that's for legacy reasons[2].

Right now IPA is hardcoding the size of the configdrive partiton on 64MB[3] we need to make it flexible so that if a configdrive generate with the "iso9660" format is bigger than 64MB we don't break IPA.

[1] https://github.com/openstack/nova/blob/master/nova/virt/configdrive.py#L120-L123
[2] http://docs.openstack.org/user-guide/content/enable_config_drive.html#config_drive_format
[3] https://github.com/openstack/ironic-python-agent/blob/master/ironic_python_agent/shell/copy_configdrive_to_disk.sh#L62

Changed in ironic:
importance: Undecided → Medium
Dmitry Tantsur (divius)
tags: added: agent
Changed in ironic:
status: New → Triaged
Changed in ironic:
assignee: nobody → Mario Villaplana (mario-villaplana-j)
Revision history for this message
Mario Villaplana (mario-villaplana-j) wrote :

I have a fix up in my fork that looks like it works:

https://github.com/supermari0/ironic-python-agent/commit/bf3349f4c9a5696a280d2665a0c5733f1aa12f5f

It seems like depending on the hardware, though, that I sometimes get this message when creating the partition:

"Warning: The resulting partition is not properly aligned for best performance."

This happens when using a small configdrive (<1MB), when the code creates a 1 MB partition.

Any ideas for how to better calculate an optimal alignment before creating the partition? I thought partitioning in increments of 1MB would always be considered "optimal" but apparently I'm wrong.

Dmitry Tantsur (divius)
affects: ironic → ironic-python-agent
summary: - IPA: Configdrive can't be bigger than 64MB
+ Configdrive can't be bigger than 64MB
tags: removed: agent
Revision history for this message
Jay Faulkner (jason-oldos) wrote :

Consensus of project team on vPTG bug triage call is:
* passing around >64MB blobs is a bad idea
* any use case that needs >64MB files should bootstrap into real config management

Changed in ironic-python-agent:
status: Triaged → Won't Fix
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.