state: cleanupRemovedUnit broken for any unit with completed actions

Bug #1640608 reported by Tim Penhey
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
High
Tim Penhey
2.0
Fix Released
High
Tim Penhey

Bug Description

The code looks for all actions for the specified unit.

It then marks them as finished with the reason of "unit removed", but the assertion is that the action is not completed, but this isn't checked before we try.

This leads to the cleanup never being removed from the DB.

Among other things, this will prevent the model from being migrated.

Tim Penhey (thumper)
Changed in juju:
milestone: none → 2.1.0
no longer affects: juju/2.1
Tim Penhey (thumper)
Changed in juju:
assignee: nobody → Tim Penhey (thumper)
status: Triaged → In Progress
Revision history for this message
Anastasia (anastasia-macmood) wrote :
Changed in juju:
status: In Progress → Fix Committed
Curtis Hovey (sinzui)
Changed in juju:
milestone: 2.1.0 → 2.1-beta3
Curtis Hovey (sinzui)
Changed in juju:
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.