Migrate to glance v2

Registered by huangtianhua

Glancev1 tagged as deprecated, and now glancev2 is default, I think we should migrate to use glanceclientv2, and we also should to make glance resources(now just one resource: image) compatible for glance v1 and v2.
There are two different between v1 and v2 for image resource in heat:
1. Glance V1 support 'location' parameter in image-create api, but Glance V2 doesn't support 'location' in image-create api, instead provide another api location-add we can set the location after a empty image creation.
2. Glance V1 support 'is_public' parameter in image-create api, instead V2 use 'visibility' to indicate whether is public.

Blueprint information

Status:
Complete
Approver:
None
Priority:
Undefined
Drafter:
huangtianhua
Direction:
Needs approval
Assignee:
huangtianhua
Definition:
Discussion
Series goal:
None
Implementation:
Implemented
Milestone target:
milestone icon next
Started by
Thomas Herve
Completed by
Thomas Herve

Related branches

Sprints

Whiteboard

Gerrit topic: https://review.openstack.org/#q,topic:bp/will,n,z

Addressed by: https://review.openstack.org/240450
    Migrate to use glance v2

Moved to Heat-next (N-release), because need more investigating and collaboration with Glance team

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

Addressed by: https://review.openstack.org/419043
    Deprecate OS::Glance::Image

(?)

Work Items

Dependency tree

* Blueprints in grey have been implemented.

This blueprint contains Public information 
Everyone can see this information.