Ask Your Question
0

cinder service-list outputs ERROR: 'services'

asked 2014-11-12 04:08:06 -0500

buffoon gravatar image

I'm setting up a openstack environment and got stuck at the cinder-volume part.

I just followed the manual to install juno on debian. When I set up cinder-volume first I had some troubles with keystone and rabbitmq but those problems are solved now. However I cannot do cinder commands as they all give errors.

Example:

root@ostack-controller:~# cinder service-list
ERROR: 'services'

Unfortunately nothing else is logged. In the log appear only some already solved problems with keystone and rabbitMQ but nothing else (checked out in cinder-volume.log, cinder-scheduler.log and cinder-api.log)

How can I search for further Information? This error isn't really useful for me...

edit retag flag offensive close merge delete

Comments

If you login as root to mysql and select database cinder can you run :-
MariaDB [cinder]> select * from services ;

dbaxps gravatar imagedbaxps ( 2014-11-12 04:45:45 -0500 )edit

OK, this outputs 2 services. One is cinder-volume and the other is cinder-scheduler. But where's the problem with the cinder command line? This results also in a unusable dashboard so everything is quite unusable right now...

buffoon gravatar imagebuffoon ( 2014-11-12 04:57:34 -0500 )edit

Do export admin credentials before running command ?

export OS_USERNAME=admin
export OS_TENANT_NAME=admin
export OS_PASSWORD=XXXXXXXXXXXXXX
export OS_AUTH_URL=http://192.168.1.127:5000/v2.0/
export OS_REGION_NAME=RegionOne
export PS1='[\u@\h \W(keystone_admin)]\$ '
dbaxps gravatar imagedbaxps ( 2014-11-12 05:06:23 -0500 )edit

Of course, I'm doing it with source admin-openrc.sh. When I'm not doing this I get the following error:

ERROR: You must provide a user name through --os-username or env[OS_USERNAME].
buffoon gravatar imagebuffoon ( 2014-11-12 05:23:31 -0500 )edit

$ vgdisplay | grep cinder-volumes
$ vgs

dbaxps gravatar imagedbaxps ( 2014-11-12 05:31:00 -0500 )edit

2 answers

Sort by ยป oldest newest most voted
0

answered 2014-11-13 05:16:24 -0500

dbaxps gravatar image

updated 2014-11-13 05:19:44 -0500

Verification required by myself

$ keystone user-get cinder
$ keystone tenant-list
I want verify that cinder's tenant is services

Per your the most recent report :-

root@ostack-controller:~# keystone user-get cinder
No user with a name or ID of 'cinder' exists.
root@ostack-controller:~# keystone tenant-list
+----------------------------------+-------+---------+
|                id                |  name | enabled |
+----------------------------------+-------+---------+
| 4d5eb3c2bd79416dbfda8c32530322aa | admin |   True  |
+----------------------------------+-------+---------+

Should look like :-

[root@juno1 glance(keystone_admin)]# keystone user-get cinder
+----------+----------------------------------+
| Property |              Value               |
+----------+----------------------------------+
|  email   |         cinder@localhost         |
| enabled  |               True               |
|    id    | b87360c784924e97a3fe12d93635805d |
|   name   |              cinder              |
| tenantId | 0e70d24f3d4743f78287698a1c7cf05d |
| username |              cinder              |
+----------+----------------------------------+
[root@juno1 glance(keystone_admin)]# keystone tenant-list
+----------------------------------+----------+---------+
|                id                |   name   | enabled |
+----------------------------------+----------+---------+
| 2561f253faca48399d0cc77886574e1d |  admin   |   True  |
| b302ecfaf76740189fca446e2e4a9a6e |   demo   |   True  |
| 7f4d306bd3364edfba21045ce76bb15f | ostenant |   True  |
| 0e70d24f3d4743f78287698a1c7cf05d | services |   True  |
+----------------------------------+----------+---------+

Please set up cinder user and service properly
http://docs.openstack.org/havana/inst...
File /etc/cinder/cinder.conf also requires attention. Sample I've already uploaded.

edit flag offensive delete link more

Comments

OK, so now I've purged the configuration of all cinder services and startet with those from scratch. Most of the stuff I got asked now by debconf all the keystone, database, rabbitmq and so on and now I've got a working cinder setup. I'll mark your answer as correct, as you did good troubleshooting.

buffoon gravatar imagebuffoon ( 2014-11-13 08:01:05 -0500 )edit
0

answered 2014-11-12 05:40:28 -0500

I think, this error raised from the client (cinder-client) itself. That is why it it not generating any error logs.

Do one thing, execute cinder --debug service-list And paste the output. If that is not useful, it is better to re-install the cinder client.

edit flag offensive delete link more

Comments

This may be true. It seems that it's just opening a keystone session and that's it. Or I'm getting something wrong there: http://pastebin.com/HBUVAqfM

buffoon gravatar imagebuffoon ( 2014-11-12 07:01:58 -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-11-12 04:08:06 -0500

Seen: 1,145 times

Last updated: Nov 13 '14