persistent storage is broken - "postgresql_stop() failed"

Bug #1302494 reported by Stuart Bishop
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
postgresql (Juju Charms Collection)
Fix Released
Critical
Liam Young

Bug Description

Persistent storage attempts to shutdown PostgreSQL before migrating data. This fails because it is expecting an error code from postgresql_stop(), but postgresql_stop does not return anything (it raises an exception on failure).

        if not postgresql_stop():
            log("postgresql_stop() failed - can't migrate data.", ERROR)
            return False

Fix is to not check the error code, just catch or propagate the exception.

Keep the fix minimal, as this will conflict with the storage-subordinate-charm work

Related branches

Stuart Bishop (stub)
Changed in postgresql (Juju Charms Collection):
status: New → Triaged
importance: Undecided → Critical
Stuart Bishop (stub)
Changed in postgresql (Juju Charms Collection):
assignee: nobody → Liam Young (gnuoy)
status: Triaged → 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.