cinder service-list return invalid choice

Bug #1672692 reported by Serguei Bezverkhi
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
python-openstackclient
Invalid
Undecided
Unassigned

Bug Description

Hello, one of our gate jobs is collecting cinder service-list command. It was working on for a long time, but since March 14th it started failing.

Here is the log:

2017-03-12 00:14:02.428800 | + cinder service-list
2017-03-12 00:14:03.282902 | +------------------+------------------------------------------+------+---------+-------+----------------------------+-----------------+
2017-03-12 00:14:03.282983 | | Binary | Host | Zone | Status | State | Updated_at | Disabled Reason |
2017-03-12 00:14:03.283032 | +------------------+------------------------------------------+------+---------+-------+----------------------------+-----------------+
2017-03-12 00:14:03.283078 | | cinder-scheduler | cinder-scheduler-0 | nova | enabled | up | 2017-03-12T00:14:02.000000 | - |
2017-03-12 00:14:03.283135 | | cinder-volume | centos-7-osic-cloud1-s3500-7831975@lvm-1 | nova | enabled | up | 2017-03-12T00:13:54.000000 | - |
2017-03-12 00:14:03.283179 | +------------------+------------------------------------------+------+---------+-------+----------------------------+-----------------+

2017-03-14 05:19:06.828271 | + cinder service-list
2017-03-14 05:19:07.584587 | usage: cinder [--version] [-d] [--os-auth-system <auth-system>]
2017-03-14 05:19:07.585197 | [--service-type <service-type>] [--service-name <service-name>]
2017-03-14 05:19:07.585225 | [--volume-service-name <volume-service-name>]
2017-03-14 05:19:07.585245 | [--os-endpoint-type <os-endpoint-type>]
2017-03-14 05:19:07.585264 | [--endpoint-type <endpoint-type>]
2017-03-14 05:19:07.585284 | [--os-volume-api-version <volume-api-ver>]
2017-03-14 05:19:07.585305 | [--bypass-url <bypass-url>] [--retries <retries>]
2017-03-14 05:19:07.585324 | [--os-auth-strategy <auth-strategy>]
2017-03-14 05:19:07.585348 | [--os-username <auth-user-name>] [--os-password <auth-password>]
2017-03-14 05:19:07.585368 | [--os-tenant-name <auth-tenant-name>]
2017-03-14 05:19:07.585392 | [--os-tenant-id <auth-tenant-id>] [--os-auth-url <auth-url>]
2017-03-14 05:19:07.585409 | [--os-user-id <auth-user-id>]
2017-03-14 05:19:07.585429 | [--os-user-domain-id <auth-user-domain-id>]
2017-03-14 05:19:07.585450 | [--os-user-domain-name <auth-user-domain-name>]
2017-03-14 05:19:07.585468 | [--os-project-id <auth-project-id>]
2017-03-14 05:19:07.585487 | [--os-project-name <auth-project-name>]
2017-03-14 05:19:07.585508 | [--os-project-domain-id <auth-project-domain-id>]
2017-03-14 05:19:07.585531 | [--os-project-domain-name <auth-project-domain-name>]
2017-03-14 05:19:07.585553 | [--os-region-name <region-name>] [--os-token <token>]
2017-03-14 05:19:07.585577 | [--os-url <url>] [--insecure] [--os-cacert <ca-certificate>]
2017-03-14 05:19:07.585602 | [--os-cert <certificate>] [--os-key <key>] [--timeout <seconds>]
2017-03-14 05:19:07.585626 | <subcommand> ...
2017-03-14 05:19:07.585677 | error: argument <subcommand>: invalid choice: u'service-list'
2017-03-14 05:19:07.585699 | Try 'cinder help ' for more information.
2017-03-14 05:19:07.618038 | ++ tests/bin/gate_capture_logs.sh 2
2017-03-14 05:19:07.619933 | Capturing error logs.
2017-03-14 05:20:16.863752 | [Zuul] standard output/error still open after child exited2017-03-14 05:20:16.863917 | [Zuul] Task exit code: 255

Revision history for this message
Serguei Bezverkhi (sbezverk) wrote :
Download full text (4.0 KiB)

Here is the list of python modules and versions installed:
2017-03-14 12:10:38.506423 | ansible (2.0.2.0)
2017-03-14 12:10:38.506895 | appdirs (1.4.3)
2017-03-14 12:10:38.507379 | asn1crypto (0.21.1)
2017-03-14 12:10:38.507713 | Babel (2.3.4)
2017-03-14 12:10:38.508023 | backports.ssl-match-hostname (3.5.0.1)
2017-03-14 12:10:38.508354 | certifi (2017.1.23)
2017-03-14 12:10:38.508639 | cffi (1.9.1)
2017-03-14 12:10:38.508921 | cliff (2.4.0)
2017-03-14 12:10:38.509203 | cmd2 (0.7.0)
2017-03-14 12:10:38.509529 | cryptography (1.8.1)
2017-03-14 12:10:38.509813 | debtcollector (1.12.0)
2017-03-14 12:10:38.510094 | deprecation (1.0)
2017-03-14 12:10:38.510529 | docker-py (1.10.6)
2017-03-14 12:10:38.510838 | docker-pycreds (0.2.1)
2017-03-14 12:10:38.511232 | enum34 (1.1.6)
2017-03-14 12:10:38.511626 | funcsigs (1.0.2)
2017-03-14 12:10:38.511933 | functools32 (3.2.3.post2)
2017-03-14 12:10:38.512274 | gitdb (0.6.4)
2017-03-14 12:10:38.512580 | gitdb2 (2.0.0)
2017-03-14 12:10:38.512867 | GitPython (2.1.3)
2017-03-14 12:10:38.513152 | httplib2 (0.10.3)
2017-03-14 12:10:38.513581 | idna (2.5)
2017-03-14 12:10:38.513932 | ipaddress (1.0.18)
2017-03-14 12:10:38.514413 | iso8601 (0.1.11)
2017-03-14 12:10:38.514759 | Jinja2 (2.9.5)
2017-03-14 12:10:38.515047 | jsonpatch (1.15)
2017-03-14 12:10:38.515405 | jsonpointer (1.10)
2017-03-14 12:10:38.515774 | jsonschema (2.6.0)
2017-03-14 12:10:38.516146 | keystoneauth1 (2.19.0)
2017-03-14 12:10:38.516532 | kolla-kubernetes (0.5.1.dev46)
2017-03-14 12:10:38.516965 | kubernetes (1.0.0)
2017-03-14 12:10:38.517502 | MarkupSafe (1.0)
2017-03-14 12:10:38.518045 | monotonic (1.2)
2017-03-14 12:10:38.518594 | msgpack-python (0.4.8)
2017-03-14 12:10:38.519110 | netaddr (0.7.19)
2017-03-14 12:10:38.519657 | netifaces (0.10.5)
2017-03-14 12:10:38.520185 | oauth2client (4.0.0)
2017-03-14 12:10:38.520735 | openstacksdk (0.9.14)
2017-03-14 12:10:38.521304 | os-client-config (1.26.0)
2017-03-14 12:10:38.521835 | osc-lib (1.3.0)
2017-03-14 12:10:38.522377 | oslo.config (3.23.0)
2017-03-14 12:10:38.522912 | oslo.context (2.13.0)
2017-03-14 12:10:38.523450 | oslo.i18n (3.14.0)
2017-03-14 12:10:38.523805 | oslo.log (3.21.0)
2017-03-14 12:10:38.524195 | oslo.serialization (2.17.0)
2017-03-14 12:10:38.524724 | oslo.utils (3.23.0)
2017-03-14 12:10:38.525161 | packaging (16.8)
2017-03-14 12:10:38.525616 | paramiko (2.1.2)
2017-03-14 12:10:38.525952 | pbr (2.0.0)
2017-03-14 12:10:38.526309 | pip (9.0.1)
2017-03-14 12:10:38.526639 | positional (1.1.1)
2017-03-14 12:10:38.527017 | prettytable (0.7.2)
2017-03-14 12:10:38.527449 | pyasn1 (0.2.3)
2017-03-14 12:10:38.527869 | pyasn1-modules (0.0.8)
2017-03-14 12:10:38.528186 | pycparser (2.17)
2017-03-14 12:10:38.528491 | pycrypto (2.6.1)
2017-03-14 12:10:38.528771 | pyinotify (0.9.6)
2017-03-14 12:10:38.529051 | pyparsing (2.2.0)
2017-03-14 12:10:38.529361 | python-cinderclient (2.0.0)
2017-03-14 12:10:38.529646 | python-dateutil (2.6.0)
2017-03-14 12:10:38.529928 | python-glanceclient (2.6.0)
2017-03-14 12:10:38.530212 | python-keystoneclient (3.10.0)
2017-03-14 12:10:38.530515 | python-neutronclient (6.1.0)
2017-03-14 12:10:38.530801 | python-novaclient (7.1.0)
2017-03-14 12:10:38.53132...

Read more...

Revision history for this message
lihaijing (lihaijing) wrote :

You can use "cinder --os-volume-api-version 3.7 service-list" or "openstack volume service list" command instead of "cinder service-list".

Revision history for this message
Rui Chen (kiwik-chenrui) wrote :

In openstackclient, we use "openstack volume service list" to show the cinder services statue, like "cinder service list" do, "openstack volume service list" is ok in my latest devstack env, if you face some issue in "cinder service-list", please commit bug report in python-cinderclient project, not python-openstackclient.

Changed in python-openstackclient:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.