Ask Your Question
0

glance default storage at cinder

asked 2014-04-02 05:44:47 -0500

Deeptanshu gravatar image

HI ,

I want to store all my images to the cinder storage by default. At the moment glance images are storing on controller node where glance service is configured . We are using Havana version with Ubantu 12.04.

Please suggest the solution for the same.

============================================================================================ We are using "default_store = file" in glance-api.conf. If we put cinder instead of file , will it work?

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2014-04-03 00:33:31 -0500

Deeptanshu gravatar image

updated 2014-04-03 13:13:55 -0500

SamYaple gravatar image

Hi,

Thanks for the valuable update.

Do i need to change the settings in "Cinder Store Options " under glance-api.conf ? Will it automatically take updates from Keystone?

How will i define the Volume location at Cinder to educate glance where it need to store the images ?

Also do i need to enable given Options below glance-api.conf ?

#known_stores = glance.store.filesystem.Store,
#               glance.store.http.Store,
#               glance.store.rbd.Store,
#               glance.store.s3.Store,
#               glance.store.swift.Store,
#               glance.store.sheepdog.Store,
#               glance.store.cinder.Store,
edit flag offensive delete link more

Comments

You should not need to set that option since you are just using cinder as your only store.

SamYaple gravatar imageSamYaple ( 2014-04-03 13:15:23 -0500 )edit
0

answered 2014-04-02 08:34:41 -0500

SamYaple gravatar image

Changing to default_store = cinder should work. This will speak to keystone to get the correct endpointURL. These settings are configurable and overridable in the glance-api.conf

# ============ Cinder Store Options ===============================

# Info to match when looking for cinder in the service catalog
# Format is : separated values of the form:
# <service_type>:<service_name>:<endpoint_type> (string value)
#cinder_catalog_info = volume:cinder:publicURL

# Override service catalog lookup with template for cinder endpoint
# e.g. http://localhost:8776/v1/%(project_id)s (string value)
#cinder_endpoint_template = <None>

# Region name of this node (string value)
#os_region_name = <None>

# Location of ca certicates file to use for cinder client requests
# (string value)
#cinder_ca_certificates_file = <None>

# Number of cinderclient retries on failed http calls (integer value)
#cinder_http_retries = 3

# Allow to perform insecure SSL requests to cinder (boolean value)
#cinder_api_insecure = False
edit flag offensive delete link more

Comments

HI,

We are getting the below error.

Anyone can update on this ?

2014-04-08 14:50:25.570 18473 WARNING glance.store.base [-] Failed to configure store correctly: Store cinder could not be configured corre ctly. Reason: Cinder storage requires a context. Disabling add method. 2014-04-08 14:50:25.571 18473 WARNING glance.store.base [6f62217e-c661-49a2-abad-9761eee52448 None None] Failed to configure store correctl y: Store cinder could not be configured correctly. Reason: Cinder storage requires a service catalog. Disabling add method. 2014-04-08 14:50:25.596 18473 WARNING glance.api.v2.images [-] Could not find schema properties file schema-image.json. Continuing without custom properties

Deeptanshu gravatar imageDeeptanshu ( 2014-04-08 04:22:04 -0500 )edit

Store cinder could not be configured correctly. Reason: Cinder storage requires a service catalog Have you configured a cinder endpoint with keystone?

SamYaple gravatar imageSamYaple ( 2014-04-08 08:12:08 -0500 )edit

Hi ,

I have already configured it. Please check below.

keystone endpoint-list

+----------------------------------+-----------+--------------------------------------------+--------------------------------------------+--------------------------------------------+----------------------------------+ | id | region | publicurl | internalurl | adminurl | service_id | +----------------------------------+-----------+--------------------------------------------+--------------------------------------------+--------------------------------------------+----------------------------------+ | 00dbfb0c9890483b875ee3e0839e6362 | regionOne | http://192.168.1.10:8776/v2/%(tenant_... | http://192.168.1.10:8776/v2/%(tenant_... | http://192.168.1.10:8776/v2/%(tenant_... | 979ed5f48d2f4e35b2c5c88059ea4897 | | 1147b20dbca841f1bf0426d718909d56 | regionOne | http://192.168.1.10:8776/v1/%(tenant_... | http://192.168.1.10:8776/v1/%(tenant_... | http://192.168.1.10:8776/v1/%(tenant_... | 036e8f1a06824fa787c0f14ac4f89bb7 | | 9fb8e4b4e4964e6e998a4026d34651e6 | regionOne | http://192.168.1.10:5000/v2.0 | http://192.168.1.10:5000/v2.0 | http://192.168.1.10:35357/v2.0 | 021975ddd0f442338d63b22d11ba56f4 | | a4620b2c3fc74fc59a4f69c9689c81f9 | regionOne | http://192.168.1.10:9292 | http://192.168.1.10:9292 | http://192.168.1.10:9292 | e9e6a217350c43b8a2c4a7524afc5def | | ad855844117a45ef999f4efd9b4cae4f | regionOne | http://192.168.1.10:9696 | http://192.168.1.10:9696 | http://192.168.1.10:9696 | c1085526d7884a189ae610e3ed60887b | | ae5d507a3deb47ae87511d2f41ae3f41 | regionOne | http://192.168.1.10:8777 | http://192 ...(more)

Deeptanshu gravatar imageDeeptanshu ( 2014-04-08 08:22:28 -0500 )edit

Hi, Once more thing , please update the below setting is correct or not.

#cinder_catalog_info = volume:cinder:http://192.168.1.10:8776/v1/%(tenant_id)s

#cinder_endpoint_template = http://192.168.1.10:8776/v1/%(tenant_...

Deeptanshu gravatar imageDeeptanshu ( 2014-04-08 08:25:09 -0500 )edit

The # symbol in the front of the line should no be there. That is to comment out the line. Is the # in front of the line in your config file?

SamYaple gravatar imageSamYaple ( 2014-04-08 10:44:07 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2014-04-02 05:44:47 -0500

Seen: 950 times

Last updated: Apr 03 '14