Ask Your Question
0

How to configure Cinder as the glance store for image

asked 2017-01-29 00:14:11 -0500

Tenma gravatar image

Hi all,

I tried to configure Cinder as the glance backend store to store the image instead of storing them on the master node disk. However, I did not find an official introduction document. Is there anyone who can give me some hints? The openstack version is Mitaka on Ubuntu.

The following is the configure in glance_api.conf:

[glance_store]
stores = cinder,file,http
default_store = cinder
#filesystem_store_datadir = /var/lib/glance/images/
#cinder_api_insecure = False
#cinder_ca_certificates_file = None
#cinder_catalog_info = volumev2::http://svr-A7-A-U1:8776
#cinder_endpoint_template = http://svr-A7-A-U1:8776/v2/%(tenant)s
#cinder_http_retries = 3
#cinder_os_region_name = regionOne
#cinder_state_transition_timeout = 300
#cinder_store_auth_address = http://svr-A7-A-U1:5000
#cinder_store_password = qweasd
#cinder_store_project_name = service
#cinder_store_user_name = cinder

The error in the cinder node is as following:

2017-01-29 01:03:20.117 13893 ERROR cinder.volume.targets.iscsi [req-04867c82-b0b7-4c33-a2f6-8a46423fcf2d b511841129d2400b95b5eb2c42bf2e69 d233f331f83a4a4f8306585046b35cda - - -] The volume driver requires the iSCSI initiator name in the connector.

2017-01-29 01:03:20.118 13893 ERROR oslo_messaging.rpc.dispatcher [req-04867c82-b0b7-4c33-a2f6-8a46423fcf2d b511841129d2400b95b5eb2c42bf2e69 d233f331f83a4a4f8306585046b35cda - - -] Exception during message handling: Invalid input received: Connector doesn't have required information: initiator
2017-01-29 01:03:20.118 13893 ERROR oslo_messaging.rpc.dispatcher Traceback (most recent call last):
2017-01-29 01:03:20.118 13893 ERROR oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 138, in _dispatch_and_reply
2017-01-29 01:03:20.118 13893 ERROR oslo_messaging.rpc.dispatcher     incoming.message))
2017-01-29 01:03:20.118 13893 ERROR oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 185, in _dispatch
2017-01-29 01:03:20.118 13893 ERROR oslo_messaging.rpc.dispatcher     return self._do_dispatch(endpoint, method, ctxt, args)
2017-01-29 01:03:20.118 13893 ERROR oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 127, in _do_dispatch
2017-01-29 01:03:20.118 13893 ERROR oslo_messaging.rpc.dispatcher     result = func(ctxt, **new_args)
2017-01-29 01:03:20.118 13893 ERROR oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/dist-packages/cinder/volume/manager.py", line 1433, in initialize_connection
2017-01-29 01:03:20.118 13893 ERROR oslo_messaging.rpc.dispatcher     raise exception.InvalidInput(reason=six.text_type(err))
2017-01-29 01:03:20.118 13893 ERROR oslo_messaging.rpc.dispatcher InvalidInput: Invalid input received: Connector doesn't have required information: initiator
2017-01-29 01:03:20.118 13893 ERROR oslo_messaging.rpc.dispatcher 
2017-01-29 01:03:20.120 13893 ERROR oslo_messaging._drivers.common [req-04867c82-b0b7-4c33-a2f6-8a46423fcf2d b511841129d2400b95b5eb2c42bf2e69 d233f331f83a4a4f8306585046b35cda - - -] Returning exception Invalid input received: Connector doesn't have required information: initiator to caller

Thanks in advance, Fei

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2017-01-29 02:58:42 -0500

It's in the admin guide, strangely in the Block Storage section instead of the Image section (the guide has no image section). This is for Newton; should be the same for Mitaka: http://docs.openstack.org/admin-guide....

edit flag offensive delete link more

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: 2017-01-29 00:14:11 -0500

Seen: 690 times

Last updated: Jan 29 '17