gnocchi-upgrade returns 0 on failure

Bug #1526810 reported by Julien Danjou
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Gnocchi
Fix Released
Medium
Unassigned

Bug Description

If gnocchi-upgrade fails to connect to the indexer, the upgrade fails but it just prints:

2015-12-16T14:14:18.536827Z 20 [Note] Aborted connection 20 to db: 'test' user: 'root' host: '' (Got an error reading communication packets)

And exists with 0.

This seems to be a problem with oslo_db facade that just does not raise anything when .connect() is called.

We probably need to switch to the new facade code too.

Julien Danjou (jdanjou)
Changed in gnocchi:
importance: Undecided → Medium
status: New → Confirmed
heha (zhanghanqun)
Changed in gnocchi:
assignee: nobody → heha (zhanghanqun)
Revision history for this message
Julien Danjou (jdanjou) wrote :

Tested and it's fixed, probably by the new engine facace code from oslo.db.

Changed in gnocchi:
assignee: heha (zhanghanqun) → nobody
status: Confirmed → Invalid
status: Invalid → Fix Committed
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.