Merge lp:~hopem/charms/precise/cinder/trunk into lp:charms/raring/cinder
Status: | Rejected | ||||
---|---|---|---|---|---|
Rejected by: | James Page | ||||
Proposed branch: | lp:~hopem/charms/precise/cinder/trunk | ||||
Merge into: | lp:charms/raring/cinder | ||||
Diff against target: |
74 lines (+26/-4) 4 files modified
README (+3/-3) config.yaml (+9/-0) hooks/cinder-hooks (+13/-0) revision (+1/-1) |
||||
To merge this branch: | bzr merge lp:~hopem/charms/precise/cinder/trunk | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Adam Gandelman (community) | Disapprove | ||
Review via email: mp+169406@code.launchpad.net |
This proposal supersedes a proposal from 2013-06-12.
Description of the change
If Cinder and Glance are using Ceph as a backend store,
the Cinder RBD driver requires Glance API v2 to perform
certain newer actions (as of Grizzly) e.g. copy-on-write
cloning of images. This fix applies, fro Grizzly and up,
glance_api_version to /etc/cinder/
default value of 1 for backwards comaptibility.
Note that Glance must have the following config set for
Cinder/Ceph copy-on-write to work:
show_image_
FIXES: LP1187123
Unmerged revisions
- 23. By Edward Hope-Morley
-
If Cinder and Glance are using Ceph as a backend store,
the Cinder RBD driver requires Glance API v2 to perform
certain newer actions (as of Grizzly) e.g. copy-on-write
cloning of images. This fix applies, fro Grizzly and up,
glance_api_version to /etc/cinder/cinder. conf with a
default value of 1 for backwards comaptibility.Note that Glance must have the following config set for
Cinder/Ceph copy-on-write to work:show_image_
direct_ url = True FIXES: LP1187123
- 22. By Edward Hope-Morley
-
If Cinder and Glance are using Ceph as a backend store,
the Cinder RBD driver requires Glance API v2 to perform
certain newer actions (as of Grizzly) e.g. copy-on-write
cloning of images. This fix applies glance_api_version to
/etc/cinder/cinder. conf with a default value of 2. Note that Glance must have the following config set for
Cinder/Ceph copy-on-write to work:show_image_
direct_ url = True FIXES: LP1187123
Hey Edward, Thanks for the merge. Couple of things:
- Shouldn't to add the os_version_is_gte() to openstack-common, we can take advantage of dpkg's version checking to accomplish the same thing, eg:
if dpkg --compare-versions "$(get_ os_version_ package cinder-volume)" ge 2013.1 ; then
# do some grizzly stuff
fi
Also, you should check for cinder-common's version and not cinder-volume. ATM cinder-common is installed for all cinder services. cinder-volume will only be installed if enabled-services includes volume.
- Not sure the best way to set the glance API is through config. Its potentially error prone eg, settings API v2 but current related glance server only supports v1. Some other options:
* The API setting goes into config glance charms config and api_version= '$(config- get api-version)' is sent to related services via the image-service interface. glance charm can take responsibility of ensuring its configured to support that API version.
* During image-service- relation- changed the cinder charm can inspect the glance endpoint in keystone to set it in cinder.conf accordingly. This may be a simple curl request to the endpoint to list supported API versions (if the api server supports such a request)