Need pass in cutomized properties when "cinder upload-to-volume"

Bug #1341428 reported by Jerry Cai
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
Invalid
Undecided
Unassigned

Bug Description

Cinder has a function of "create a image from a specified volume" with cli: "cinder upload-to-volume". That is to say specify the volume id and new image name, which passes parameter of "container-format", "disk-format" could create a image from a volume.

But one situation is when the volume is SAN storage backends volume, it also need specify the parameter of "os-distro"(rhel, sles or aix), "activation-type"(cloud-init or ae), "ovf"(for user specified ovf file), or the image creation process will be broken.

So is there any way(like --meta in nova boot, or properties set) could be used in "cinder upload-to-volume", that driver could aware for the upload image process? Or this could be a to-do item.

Expected cli will be revised like:
cinder upload-to-image --container-format bare --disk-format raw --meta "os-distro"="rhel" --meta "ovf"="/tmp/rhel.ovf"
which driver could get use of those properties.

Tags: image upload
Revision history for this message
John Griffith (john-griffith) wrote :

Hi Jerry,

Not completely sure I'm following, but I think you're referring to glance image-metadata perhaps? I think we just cleaned that up a bit and may provide what you're asking for. Can you verify we're not missing something here and we can look at getting the missing pieces sorted for you?

Thanks,
John

Revision history for this message
Sean McGinnis (sean-mcginnis) wrote : Bug Cleanup

Closing stale bug. If this is still an issue please reopen.

Changed in cinder:
status: New → Invalid
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.