Specify image-type field while creating instance
There is need to add image-type(i.e linux, windows or other) field while creating a new instance because by the name of the instance we cannot determine type of Operating System it is booted from.
So instead we can have image-type field in the images table of glance database. And add compulsory field in while creating new instance to select the image type from the horizon and automatically the linux and windows type images will be differentiated.
So, the images in glance can be separated according to image-type.
If the image-type is linux only the linux images will be shown and also follows for other as well like we see in VirtualBox they have for(name, type and version).
Blueprint information
- Status:
- Complete
- Approver:
- Brian Rosmaita
- Priority:
- Undefined
- Drafter:
- PRAVIN
- Direction:
- Needs approval
- Assignee:
- PRAVIN
- Definition:
- Obsolete
- Series goal:
- None
- Implementation:
- Unknown
- Milestone target:
- None
- Started by
- Completed by
- Sean McGinnis
Related branches
Related bugs
Sprints
Whiteboard
Hello Pravin,
A few comments:
This is a Cinder blueprint, so I'm not really the appropriate person to approve it (I'm the Glance PTL).
As far as Glance images go, you already have the ability to do what you're asking. You can add custom image properties to any image, and you can use any custom property to filter the image-list response from the Images API v2. In fact, there's a suggested set of "common image properties" [0] that you can use:
http://
I'm pretty sure that if you create a bootable volume in Cinder from a Glance image, the image properties are copied over to the volume as image metadata (check the Cinder API docs for details).
Also, when an instance is created from an image by Nova, Nova actually does copy over all the image metadata (it's stored in the instance_
In short, I think what you're asking for already exists in Glance. To address your use case of knowing what OS is on an instance, you should check with the Nova team to see if they have any plans for exposing the image properties saved when an instance was created via the API.
One final thing ... Cinder, Glance, and Nova have all moved away from using blueprints for design discussions (they're just used for tracking purposes these days). Instead, we use "specs". You can find information about the specs process here:
https:/