InfluxDB driver requires admin influx credentials

Bug #1535487 reported by Sam Morrison
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Gnocchi
Fix Released
Medium
Julien Danjou
1.3
Fix Released
Medium
Julien Danjou

Bug Description

With auth turned on in InfluxDB gnocchi fails as it tries to do a "SHOW DATABASES"

InfluxDBClientError: 401: {"error":"error authorizing query: gnocchi not authorized to execute statement 'SHOW DATABASES', requires admin privilege"}

This is being done to create the DB if it doesn't exist. In our case the DB exists and so it should handle this exception gracefully.

Julien Danjou (jdanjou)
Changed in gnocchi:
status: New → Confirmed
importance: Undecided → Medium
assignee: nobody → Julien Danjou (jdanjou)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to gnocchi (master)

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

Changed in gnocchi:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to gnocchi (master)

Reviewed: https://review.openstack.org/269599
Committed: https://git.openstack.org/cgit/openstack/gnocchi/commit/?id=8fa223e7658a21c30ca81757f312a98c2eea40d1
Submitter: Jenkins
Branch: master

commit 8fa223e7658a21c30ca81757f312a98c2eea40d1
Author: Julien Danjou <email address hidden>
Date: Tue Jan 19 13:39:05 2016 +0100

    influxdb: do not try to create a database

    This is not the responsibility of the driver to do that.

    Change-Id: I72384a292b62e056f2082cee21bf916561f3d3d7
    Closes-Bug: #1535487

Changed in gnocchi:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to gnocchi (stable/1.3)

Fix proposed to branch: stable/1.3
Review: https://review.openstack.org/270703

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to gnocchi (stable/1.3)

Reviewed: https://review.openstack.org/270703
Committed: https://git.openstack.org/cgit/openstack/gnocchi/commit/?id=5581fcb56fe1193a718ada4c3ca6c8734609754a
Submitter: Jenkins
Branch: stable/1.3

commit 5581fcb56fe1193a718ada4c3ca6c8734609754a
Author: Julien Danjou <email address hidden>
Date: Tue Jan 19 13:39:05 2016 +0100

    influxdb: do not try to create a database

    This is not the responsibility of the driver to do that.

    Change-Id: I72384a292b62e056f2082cee21bf916561f3d3d7
    Closes-Bug: #1535487
    (cherry picked from commit 8fa223e7658a21c30ca81757f312a98c2eea40d1)

Julien Danjou (jdanjou)
Changed in gnocchi:
milestone: none → 2.0.0
status: Fix Committed → Fix Released
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.