Skip to content

Commit

Permalink
Glance add fails in juno when image added from horizon
Browse files Browse the repository at this point in the history
Closes-Bug: #1457704
Issue: When an image added with http client, glance add fails.
Fix: The known store configuration is set to use only rbd.
    This causes even the glance client to use only rbd, blocking
    http access.

Change-Id: Icc7ae461eb8e6300c29ad81a5657b602ce266ab4
  • Loading branch information
Jeya ganesh babu J committed May 22, 2015
1 parent 119aa07 commit bbf3e6a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions contrail_provisioning/storage/storagefs/setup.py
Expand Up @@ -2262,7 +2262,8 @@ def do_configure_glance_rbd(self):
#Glance configuration on the storage master
local('sudo openstack-config --set %s DEFAULT default_store rbd'
%(GLANCE_API_CONF))
local('sudo openstack-config --set %s DEFAULT known_stores glance.store.rbd.Store'
local('sudo openstack-config --set %s DEFAULT known_stores \
glance.store.rbd.Store,glance.store.filesystem.Store,glance.store.http.Store'
%(GLANCE_API_CONF))
local('sudo openstack-config --set %s DEFAULT show_image_direct_url True'
%(GLANCE_API_CONF))
Expand All @@ -2286,8 +2287,8 @@ def do_configure_glance_rbd(self):
run('sudo openstack-config --set %s DEFAULT \
default_store rbd'
%(GLANCE_API_CONF))
run('sudo openstack-config --set %s DEFAULT \
known_stores glance.store.rbd.Store'
run('sudo openstack-config --set %s DEFAULT known_stores \
glance.store.rbd.Store,glance.store.filesystem.Store,glance.store.http.Store'
%(GLANCE_API_CONF))
run('sudo openstack-config --set %s DEFAULT \
show_image_direct_url True'
Expand Down

0 comments on commit bbf3e6a

Please sign in to comment.