Ask Your Question
0

devstack cinder-manage error

asked 2014-05-06 06:00:16 -0500

Ignacio Mulas gravatar image

I have a problem with my devstack installation, specifically with cinder component. While running devstack I get this error:

2014-05-06 10:13:33.505 | + echo_summary 'Configuring Cinder'
2014-05-06 10:13:33.516 | + [[ -t 3 ]]
2014-05-06 10:13:33.523 | + echo -e Configuring Cinder
2014-05-06 10:13:33.531 | + init_cinder
2014-05-06 10:13:33.538 | Configuring Cinder
2014-05-06 10:13:33.544 | ++ sed s/osapi_volume,//
2014-05-06 10:13:33.549 | ++ echo ec2,osapi_compute,metadata
2014-05-06 10:13:33.557 | + NOVA_ENABLED_APIS=ec2,osapi_compute,metadata
2014-05-06 10:13:33.565 | + is_service_enabled mysql postgresql
2014-05-06 10:13:33.571 | + return 0
2014-05-06 10:13:33.581 | + recreate_database cinder utf8
2014-05-06 10:13:33.588 | + local db=cinder
2014-05-06 10:13:33.597 | + local charset=utf8
2014-05-06 10:13:33.605 | + recreate_database_mysql cinder utf8
2014-05-06 10:13:33.617 | + local db=cinder
2014-05-06 10:13:33.624 | + local charset=utf8
2014-05-06 10:13:33.633 | + mysql -uroot -pstackdb -h127.0.0.1 -e 'DROP DATABASE IF EXISTS cinder;'
2014-05-06 10:13:33.641 | + mysql -uroot -pstackdb -h127.0.0.1 -e 'CREATE DATABASE cinder CHARACTER SET utf8;'
2014-05-06 10:13:33.646 | + /usr/local/bin/cinder-manage db sync
2014-05-06 10:13:34.725 | Traceback (most recent call last):
2014-05-06 10:13:34.733 |   File "/usr/local/bin/cinder-manage", line 10, in <module>
2014-05-06 10:13:34.751 |     execfile(__file__)
2014-05-06 10:13:34.765 |   File "/opt/stack/cinder/bin/cinder-manage", line 545, in <module>
2014-05-06 10:13:34.777 |     main()
2014-05-06 10:13:34.784 |   File "/opt/stack/cinder/bin/cinder-manage", line 525, in main
2014-05-06 10:13:34.790 |     version=version.version_string())
2014-05-06 10:13:34.796 |   File "/usr/local/lib/python2.7/dist-packages/oslo/config/cfg.py", line 1635, in __call__
2014-05-06 10:13:34.818 |     else sys.argv[1:])
2014-05-06 10:13:34.827 |   File "/usr/local/lib/python2.7/dist-packages/oslo/config/cfg.py", line 2174, in _parse_cli_opts
2014-05-06 10:13:34.834 |     opt._add_to_cli(self._oparser, group)
2014-05-06 10:13:34.840 |   File "/usr/local/lib/python2.7/dist-packages/oslo/config/cfg.py", line 1016, in _add_to_cli
2014-05-06 10:13:34.847 |     self.handler(subparsers)
2014-05-06 10:13:34.853 |   File "/opt/stack/cinder/bin/cinder-manage", line 461, in add_command_parsers
2014-05-06 10:13:34.858 |     command_object = CATEGORIES[category]()
2014-05-06 10:13:34.864 |   File "/opt/stack/cinder/bin/cinder-manage", line 250, in __init__
2014-05-06 10:13:34.872 |     rpc.init(CONF)
2014-05-06 10:13:34.877 |   File "/opt/stack/cinder/cinder/rpc.py", line 63, in init

The local.conf file contains:

[[local|localrc]]

# Credentials
DATABASE_PASSWORD=devstack
ADMIN_PASSWORD=devstack
SERVICE_PASSWORD=devstack
SERVICE_TOKEN=devstack
RABBIT_PASSWORD=devstack

# Services
ENABLED_SERVICES=rabbit,mysql,key
ENABLED_SERVICES+=,n-api,n-crt,n-obj,n-cpu,n-cond,n-sch,n-novnc,n-cauth
ENABLED_SERVICES+=,neutron,q-svc,q-agt,q-dhcp,q-l3,q-meta,q-lbaas
ENABLED_SERVICES+=,s-proxy,s-object,s-container,s-account
ENABLED_SERVICES+=,g-api,g-reg
ENABLED_SERVICES+=,cinder,c-api,c-vol,c-sch,c-bak
ENABLED_SERVICES+=,heat,h-api,h-api-cfn,h-api-cw,h-eng
ENABLED_SERVICES+=,horizon
ENABLED_SERVICES+=,ceilometer-acompute,ceilometer-acentral,ceilometer-collector, ceilometer-api
ENABLED_SERVICES+=,ceilometer-alarm-notify,ceilometer-alarm-eval

# Images
# Use this image when creating test instances
IMAGE_URLS+=",http://cdn.download.cirros-cloud ...
(more)
edit retag flag offensive close merge delete

Comments

Can you double check the cinder.conf created by devstack (especially the rpc related sections).

unmesh-gurjar gravatar imageunmesh-gurjar ( 2014-05-06 07:50:06 -0500 )edit

The only rpc option enabled in the cinder.conf file is "rpc_backend = cinder.openstack.common.rpc.impl_kombu", all the other rpc options are commented

Ignacio Mulas gravatar imageIgnacio Mulas ( 2014-05-06 08:35:44 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-05-06 09:29:59 -0500

Ignacio Mulas gravatar image

updated 2014-05-06 10:04:40 -0500

Ok I found a fix to this problem. You need to update the python-six package from version 1.5.2 to 1.6.1 in order to make it work. You can download the debian package from here:

https://launchpad.net/ubuntu/+archive/primary/+files/python-six_1.6.1-1_all.deb

Install these packages:

sudo dpkg -i ~/python-six_1.6.1-1_all.deb

After these pre-steps run devstack installation and it should work fine.

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: 2014-05-06 06:00:16 -0500

Seen: 486 times

Last updated: May 06 '14