service.list() generated AttributeError

Bug #1315606 reported by John Stanford on 2014-05-03
52
This bug affects 9 people
Affects Status Importance Assigned to Milestone
python-cinderclient
Undecided
Unassigned

Bug Description

The Service.__repr__ method throws an AttributeError when trying to access the 'service' and does not generate the list of services as expected.

Changed in python-cinderclient:
assignee: nobody → John Stanford (e-john-6)

Fix proposed to branch: master
Review: https://review.openstack.org/91946

Changed in python-cinderclient:
status: New → In Progress
Mike Perez (thingee) wrote :

I tried to reproduce this problem, but was unable to. Please let me know what I'm missing.

$ cinder service-list
+------------------+----------------------+------+---------+-------+----------------------------+-----------------+
| Binary | Host | Zone | Status | State | Updated_at | Disabled Reason |
+------------------+----------------------+------+---------+-------+----------------------------+-----------------+
| cinder-scheduler | devstack | nova | enabled | up | 2014-12-23T22:06:14.000000 | None |
| cinder-volume | devstack@lvmdriver-1 | nova | enabled | up | 2014-12-23T22:06:14.000000 | None |
+------------------+----------------------+------+---------+-------+----------------------------+-----------------+

Changed in python-cinderclient:
status: In Progress → Incomplete

Fix proposed to branch: master
Review: https://review.openstack.org/143848

Changed in python-cinderclient:
assignee: John Stanford (e-john-6) → Daniel Snider (daniel-snider)
status: Incomplete → In Progress
Daniel Snider (daniel-snider) wrote :

Hi Mike, you must use the python-cinderclient and not the CLI tool to reproduce the bug. Here is what the bug looks like:

>>> s = cinder_admin.services.list()
>>> s
[Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/dan/Code/portal/env/local/lib/python2.7/site-packages/cinderclient/v1/services.py", line 25, in __repr__
    return "<Service: %s>" % self.service
  File "/home/dan/Code/portal/env/local/lib/python2.7/site-packages/cinderclient/openstack/common/apiclient/base.py", line 463, in __getattr__
    raise AttributeError(k)
AttributeError: service

Changed in python-cinderclient:
assignee: Daniel Snider (daniel-snider) → John Stanford (e-john-6)

Change abandoned by Sean McGinnis (<email address hidden>) on branch: master
Review: https://review.openstack.org/91946
Reason: This review is > 8 weeks without comment, and failed Jenkins the last time it was checked. We are abandoning this for now. Feel free to reactivate the review by pressing the restore button and leaving a 'recheck' comment to get fresh test results.

Change abandoned by Sean McGinnis (<email address hidden>) on branch: master
Review: https://review.openstack.org/143848
Reason: This review is > 8 weeks without comment, and failed Jenkins the last time it was checked. We are abandoning this for now. Feel free to reactivate the review by pressing the restore button and leaving a 'recheck' comment to get fresh test results.

Unassigning due to no activity for > 6 months.

Changed in python-cinderclient:
assignee: John Stanford (jxstanford) → nobody
status: In Progress → Triaged
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers