Bug 1573878

Summary: When ceph is unreachable, Gnocchi raise an exception instead of the correct error message.
Product: Red Hat OpenStack Reporter: Mehdi ABAAKOUK <mabaakou>
Component: python-cradoxAssignee: Mehdi ABAAKOUK <mabaakou>
Status: CLOSED ERRATA QA Contact: nlevinki <nlevinki>
Severity: low Docs Contact:
Priority: low    
Version: 13.0 (Queens)CC: amaumene, apevec, jjoyce, joflynn, jschluet, lhh, mabaakou, pkilambi, psedlak, sasha
Target Milestone: z2Keywords: Triaged, ZStream
Target Release: 13.0 (Queens)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-cradox-2.1.0-1.el7ost Doc Type: No Doc Update
Doc Text:
-
Story Points: ---
Clone Of:
: 1599826 (view as bug list) Environment:
Last Closed: 2018-08-29 16:32:35 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1599826    

Description Mehdi ABAAKOUK 2018-05-02 12:24:20 UTC
Description of problem:

2018-05-02 12:12:17,642 [21] ERROR    gnocchi.utils: Unable to initialize storage driver
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/tenacity/__init__.py", line 298, in call
    result = fn(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/gnocchi/storage/__init__.py", line 117, in get_driver
    conf.storage, coord)
  File "/usr/lib/python2.7/site-packages/gnocchi/storage/ceph.py", line 48, in __init__
    self.rados, self.ioctx = ceph.create_rados_connection(conf)
  File "/usr/lib/python2.7/site-packages/gnocchi/common/ceph.py", line 70, in create_rados_connection
    except rados.InvalidArgumentError:
AttributeError: 'module' object has no attribute 'InvalidArgumentError'


We have two solutions to fix that:

* uninstall and remove python-cradox (python-rados will be used instead)
* update python-cradox to something >= 2.0.0

Comment 2 Mehdi ABAAKOUK 2018-06-07 12:59:30 UTC
*** Bug 1588406 has been marked as a duplicate of this bug. ***

Comment 14 Joanne O'Flynn 2018-08-13 11:18:39 UTC
This bug is marked for inclusion in the errata but does not currently contain draft documentation text. To ensure the timely release of this advisory please provide draft documentation text for this bug as soon as possible.

If you do not think this bug requires errata documentation, set the requires_doc_text flag to "-".


To add draft documentation text:

* Select the documentation type from the "Doc Type" drop down field.

* A template will be provided in the "Doc Text" field based on the "Doc Type" value selected. Enter draft text in the "Doc Text" field.

Comment 16 errata-xmlrpc 2018-08-29 16:32:35 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2018:2573