Ask Your Question
1

service cinder-volumes fails to start

asked 2016-03-11 10:50:41 -0600

adendukuri gravatar image

updated 2016-03-11 14:50:43 -0600

service cinder-volume restart fails

on controller node cinder service-list lists only scheduler service and volume service

root@controller:/home/stack/scripts/controller/v0.2# cinder service-list
+------------------+------------+------+---------+-------+----------------------------+-----------------+
|      Binary      |    Host    | Zone |  Status | State |         Updated_at         | Disabled Reason |
+------------------+------------+------+---------+-------+----------------------------+-----------------+
| cinder-scheduler | controller | nova | enabled |   up  | 2016-03-11T16:47:09.000000 |       None      |
+------------------+------------+------+---------+-------+----------------------------+-----------------+


on the blkstorage node (10.0.0.41) 

cinder-volume.log has following traces

2016-03-11 17:31:31.696 27695 TRACE cinder Traceback (most recent call last):
2016-03-11 17:31:31.696 27695 TRACE cinder   File "/usr/bin/cinder-volume", line 10, in <module>
2016-03-11 17:31:31.696 27695 TRACE cinder     sys.exit(main())
2016-03-11 17:31:31.696 27695 TRACE cinder   File "/usr/lib/python2.7/dist-packages/cinder/cmd/volume.py", line 73, in main
2016-03-11 17:31:31.696 27695 TRACE cinder     binary='cinder-volume')
2016-03-11 17:31:31.696 27695 TRACE cinder   File "/usr/lib/python2.7/dist-packages/cinder/service.py", line 249, in create
2016-03-11 17:31:31.696 27695 TRACE cinder     service_name=service_name)
2016-03-11 17:31:31.696 27695 TRACE cinder   File "/usr/lib/python2.7/dist-packages/cinder/service.py", line 129, in __init__
2016-03-11 17:31:31.696 27695 TRACE cinder     *args, **kwargs)
2016-03-11 17:31:31.696 27695 TRACE cinder   File "/usr/lib/python2.7/dist-packages/cinder/volume/manager.py", line 211, in __init__
2016-03-11 17:31:31.696 27695 TRACE cinder     context.get_admin_context())
2016-03-11 17:31:31.696 27695 TRACE cinder   File "/usr/lib/python2.7/dist-packages/cinder/volume/manager.py", line 284, in _set_voldb_empty_at_startup_indicator
2016-03-11 17:31:31.696 27695 TRACE cinder     vol_entries = self.db.volume_get_all(ctxt, None, 1, filters=None)
2016-03-11 17:31:31.696 27695 TRACE cinder   File "/usr/lib/python2.7/dist-packages/cinder/db/api.py", line 208, in volume_get_all
2016-03-11 17:31:31.696 27695 TRACE cinder     sort_dirs=sort_dirs, filters=filters)
2016-03-11 17:31:31.696 27695 TRACE cinder   File "/usr/lib/python2.7/dist-packages/cinder/db/sqlalchemy/api.py", line 163, in wrapper
2016-03-11 17:31:31.696 27695 TRACE cinder     return f(*args, **kwargs)
2016-03-11 17:31:31.696 27695 TRACE cinder   File "/usr/lib/python2.7/dist-packages/cinder/db/sqlalchemy/api.py", line 1353, in volume_get_all
2016-03-11 17:31:31.696 27695 TRACE cinder     return query.all()
2016-03-11 17:31:31.696 27695 TRACE cinder   File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 2320, in all
2016-03-11 17:31:31.696 27695 TRACE cinder     return list(self)
2016-03-11 17:31:31.696 27695 TRACE cinder   File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 2438, in __iter__
2016-03-11 17:31:31.696 27695 TRACE cinder     return self._execute_and_instances(context)
2016-03-11 17:31:31.696 27695 TRACE cinder   File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 2453, in _execute_and_instances
2016-03-11 17:31:31.696 27695 TRACE cinder     result = conn.execute(querycontext.statement, self._params)
2016-03-11 17:31:31.696 27695 TRACE cinder   File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 729, in execute
2016-03-11 17:31:31.696 27695 TRACE cinder     return ...
(more)
edit retag flag offensive close merge delete

Comments

Seems like a database connection/sync issue. Did you make a cinder-manage db sync?

Eduardo Gonzalez gravatar imageEduardo Gonzalez ( 2016-03-11 14:52:50 -0600 )edit

Yes Did,

proble is something different. volume group created using vgcreate and value of volume_group in cinder.conf file did not match. Once I changed the value in cinder.conf the error has gone away. but still I dont see th cinder-volume in cinder service-list

Arun

adendukuri gravatar imageadendukuri ( 2016-03-11 15:35:26 -0600 )edit

1 answer

Sort by » oldest newest most voted
1

answered 2016-06-29 00:56:37 -0600

kd akane gravatar image

I faced similar issue installing mitaka on centos 7. “systemctl status openstack-cinder-volume.service” always end up failed. Run into this one https://bugs.launchpad.net/openstack-manuals/+bug/1575549 (https://bugs.launchpad.net/openstack-...) Solved it by installing python-keystonemiddleware on block storage node and restart openstack-cinder-volume.service. Akane

edit flag offensive delete link more

Comments

Hi, I have exactly same problem with akane and solve with his solution(yum install python-keystonemiddleware). Thank :)

grkim gravatar imagegrkim ( 2016-10-10 07:08:59 -0600 )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: 2016-03-11 10:50:41 -0600

Seen: 1,819 times

Last updated: Jun 29 '16