Skip to content

Commit

Permalink
Enable showing multiple locations for ceph plugin
Browse files Browse the repository at this point in the history
Currently glance v2 doesn't allow to specify custom
locations for image by default, it returns 403.
To enable this 'show_multiple_locations' param must
be set to True.

When Nova is doing snapshots with Ceph it provides
location to activate image, which fails when we use
Glance v2.

To fix it we change the default param to True.
'show_image_direct_url' will be overridden.

Related to blueprint use-glance-v2-api

Change-Id: Id0f1c398b8b48f2ffc2488b29bc7cbd279069337
  • Loading branch information
Mike Fedosin committed Feb 12, 2016
1 parent 1aa1907 commit 62ea04c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion devstack/lib/ceph
Expand Up @@ -470,7 +470,7 @@ sudo tee ${CEPH_CONF_DIR}/ceph.client.${GLANCE_CEPH_USER}.keyring
sudo chown ${STACK_USER}:$(id -g -n $whoami) \
${CEPH_CONF_DIR}/ceph.client.${GLANCE_CEPH_USER}.keyring

iniset $GLANCE_API_CONF DEFAULT show_image_direct_url True
iniset $GLANCE_API_CONF DEFAULT show_multiple_locations True
iniset $GLANCE_API_CONF glance_store default_store rbd
iniset $GLANCE_API_CONF glance_store stores "file, http, rbd"
iniset $GLANCE_API_CONF glance_store rbd_store_ceph_conf $CEPH_CONF_FILE
Expand Down

0 comments on commit 62ea04c

Please sign in to comment.