troveclient raising undefined exception ConnectionError

Bug #1240950 reported by Denis M.
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
python-troveclient
Fix Released
Low
SnowDust

Bug Description

When client trying to establish connection with shutdowned service it returns attribute error

 ./redstack rd-client --debug list

Traceback (most recent call last):
  File "/opt/stack/python-troveclient/troveclient/shell.py", line 655, in main
    sys.argv[1:]))
  File "/opt/stack/python-troveclient/troveclient/shell.py", line 494, in main
    args.func(self.cs, args)
  File "/opt/stack/python-troveclient/troveclient/v1/shell.py", line 103, in do_list
    instances = cs.instances.list()
  File "/opt/stack/python-troveclient/troveclient/v1/instances.py", line 92, in list
    return self._paginated("/instances", "instances", limit, marker)
  File "/opt/stack/python-troveclient/troveclient/base.py", line 65, in _paginated
    resp, body = self.api.client.get(common.limit_url(url, limit, marker))
  File "/opt/stack/python-troveclient/troveclient/client.py", line 208, in get
    return self._cs_request(url, 'GET', **kwargs)
  File "/opt/stack/python-troveclient/troveclient/client.py", line 200, in _cs_request
    raise exceptions.ConnectionError(msg)
AttributeError: 'module' object has no attribute 'ConnectionError'
ERROR: 'module' object has no attribute 'ConnectionError'

Denis M. (dmakogon)
summary: - attribute-error-comes-when-client-trying-to-connect-via-stopped-service
+ attribute-error-comes-when-client-trying-to-connect-to-stopped-service
Denis M. (dmakogon)
Changed in trove:
assignee: nobody → Denis M. (dmakogon)
affects: trove → python-troveclient
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-troveclient (master)

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

Changed in python-troveclient:
status: New → In Progress
Denis M. (dmakogon)
Changed in python-troveclient:
status: In Progress → Confirmed
Changed in python-troveclient:
status: Confirmed → In Progress
description: updated
Changed in python-troveclient:
assignee: Denis M. (dmakogon) → nilakhya (nilakhya-chatterjee)
Changed in python-troveclient:
status: In Progress → Fix Committed
summary: - attribute-error-comes-when-client-trying-to-connect-to-stopped-service
+ troveclient raising undefined exception ConnectionError
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-troveclient (master)

Reviewed: https://review.openstack.org/70119
Committed: https://git.openstack.org/cgit/openstack/python-troveclient/commit/?id=1fe0e4ee604ea9b6951eb3cc8e573b0e3b81bfde
Submitter: Jenkins
Branch: master

commit 1fe0e4ee604ea9b6951eb3cc8e573b0e3b81bfde
Author: Nilakhya <email address hidden>
Date: Thu Jan 30 19:36:19 2014 +0530

    Fixes troveclient raising undefined exception ConnectionError

    Reason: ConnectionError exception is raised which is not defined in
            python-troveclient/troveclient/openstack/common/apiclient/exceptions.py

    Change: ConnectionError should be renamed to ConnectionRefused.

    Closes-Bug: #1240950

    Change-Id: I73219d29efd71185cdf6ff56a7fe41165541681f

Changed in python-troveclient:
status: Fix Committed → Fix Released
importance: Undecided → Low
milestone: none → python-troveclient-v1
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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