XenapiNFS: Glance integration
Make XenapiNFS volume driver to be able to create a volume from a glance image.
Blueprint information
- Status:
- Complete
- Approver:
- John Griffith
- Priority:
- Low
- Drafter:
- None
- Direction:
- Approved
- Assignee:
- Mate Lakat
- Definition:
- Approved
- Series goal:
- Accepted for grizzly
- Implementation:
- Implemented
- Milestone target:
- 2013.1
- Started by
- John Griffith
- Completed by
- Thierry Carrez
Related branches
Related bugs
Sprints
Whiteboard
There are two entry points for creating a volume from an image:
driver.
driver.
And for the other direction:
copy_volume_
# copy_image_
The entry point "copy_image_
https:/
The driver does the following:
- Create a new volume
- Call the xapi plugin to overwrite the created volume's vhd
- Resize the volume
# copy_volume_
The required parameters for the glance plugin are:
- vdi_uuids
- image_id
- glance_host
- glance_port
- glance_use_ssl
- sr_path
- auth_token
- properties: This is a dictionary to set x-image-
These parameters are present at the place of call, so it is straightforward to do the implementation.
# copy_image_
What if we wanted to copy traditional images to the volume, like qcow or raw ones? In this case the glance image could not be used, so another approach is needed. At this point, the existing "image_
#4 copy_volume_
More investigation is needed on this point
Notes:
As the XenServer like images ar tgz -ed vhd files, they cannot be simply "streamed" into a volume. The existing xenapi plugins could be used, as they are implementing exactly the same functionality.
The entry point "clone_image" does not seem to be useful at the moment, as it seems to get a None value for image_location for the normal glance based copy case. Thus, shelve the use of this entry point until more knowledge is gained on it.
Gerrit topic: https:/
Addressed by: https:/
XenAPINFS: Copy image from glance
Addressed by: https:/
XenAPINFS: Copy volume to glance
Gerrit topic: https:/
Work Items
Work items:
look at ways how to invoke xenapi plugin: DONE
copy_image_
copy_volume_
copy_image_
copy_volume_
Dependency tree
* Blueprints in grey have been implemented.