Update Nova to allow using either Glance V1 or V2 API

Registered by Eddie Sheffield

Nova should be configurable via a configuration parameter to use either Glance V1 or V2 API. Due to differences in the workflow exposed by the API, the image service layer will need to be able to present a consistent interface to Nova while performing necessary translations to interact with the configured Glance API version.

Blueprint information

Status:
Complete
Approver:
John Garbutt
Priority:
High
Drafter:
Flavio Percoco
Direction:
Approved
Assignee:
Mike Fedosin
Definition:
Approved
Series goal:
Accepted for newton
Implementation:
Implemented
Milestone target:
milestone icon newton-2
Started by
John Garbutt
Completed by
Sean Dague

Whiteboard

Spec has been approved, and cleared out the confusing history here. --johnthetubaguy 6th October 2015

https://review.openstack.org/#/q/topic:+bp/use-glance-v2-api,n,z

use helper method to remove version hardcoding
https://review.openstack.org/228578

add helper method to obtain image client version
https://review.openstack.org/222150

Gerrit topic: https://review.openstack.org/#q,topic:bp/use-glance-v2-api,n,z

Addressed by: https://review.openstack.org/228578
    Remove version hardcoding for 'show' method

Addressed by: https://review.openstack.org/238309
    Remove version hardcoding for 'detail', 'download' and 'delete' methods

Addressed by: https://review.openstack.org/259097
    Remove version hardcoding for 'create' and 'update' methods

Addressed by: https://review.openstack.org/254944
    glance: secure https when getting client version

Sorry, we have now hit the Non-Priority Feature Freeze for Mitaka. For more details please see: http://docs.openstack.org/releases/schedules/mitaka.html#m-nova-npff and http://docs.openstack.org/developer/nova/process.html#non-priority-feature-freeze
--johnthetubaguy 2016.02.10

Addressed by: https://review.openstack.org/274203
    Prevent creating kernel and ramdisk ids with 'None' value

Addressed by: https://review.openstack.org/266933
    Make Xenplugin to work with glance v2 api

Addressed by: https://review.openstack.org/315419
    Remove the auto discovery of glance client version

Addressed by: https://review.openstack.org/315963
    Introduce a CONF flag to determine glance client version

Addressed by: https://review.openstack.org/315968
    Revert "glance:add helper method to get client version"

Addressed by: https://review.openstack.org/316007
    split the glance API path based on config

Addressed by: https://review.openstack.org/316440
    [WIP] Glance v2 support in Nova

Addressed by: https://review.openstack.org/321166
    Add 'show' method to GlanceImageServiceV2

Addressed by: https://review.openstack.org/321167
    Add 'download' method to GlanceImageServiceV2

Addressed by: https://review.openstack.org/321168
    Add 'delete' method to GlanceImageServiceV2

Addressed by: https://review.openstack.org/321169
    Add 'detail' method to GlanceImageServiceV2

Addressed by: https://review.openstack.org/321170
    Add 'create' method to GlanceImageServiceV2

Addressed by: https://review.openstack.org/321171
    Add 'update' method to GlanceImageServiceV2

Addressed by: https://review.openstack.org/321551
    [DNM] Test glance v2 in Nova

Addressed by: https://review.openstack.org/324536
    Make Xenplugin to work with glance v2 api

Addressed by: https://review.openstack.org/324670
    Make Hyper-V to work with glance v2 api

Addressed by: https://review.openstack.org/326858
    get rid of the old _vhd methods

Gerrit topic: https://review.openstack.org/#q,topic:(detached,n,z

(?)

Work Items

Dependency tree

* Blueprints in grey have been implemented.

This blueprint contains Public information 
Everyone can see this information.