Resuming a non-leader unit doesn't work

Bug #1522389 reported by Björn Tillenius
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Landscape Charm
Fix Released
High
Björn Tillenius

Bug Description

If you have at least two landscape-server units and pause a non-leader one, it won't be possible to resume that unit with the resume action.

The reason for this is that the 'resume' action checks for the presence of the maintenance.txt file, which is created when stopping the cron jobs. However, since cron is running only on the leader, only the leader will have the maintenance.txt file.

We should probably take this opportunity to use workload status and use that instead of the maintenance.txt file to determine whether we're in maintenance mode.

Related branches

Changed in landscape-charm:
status: New → In Progress
importance: Undecided → High
assignee: nobody → Björn Tillenius (bjornt)
tags: added: kanban
tags: removed: kanban
Changed in landscape-charm:
status: In Progress → Fix Committed
Revision history for this message
Ursula Junque (ursinha) wrote :

I've tested r340 (current lp:landscape-charm trunk tip), and resume is working properly for non-leader landscape-server units (for leader units as well, fwiw). lsctl reports services are back up and workload-status goes from maintenance to active. It's green to go.

Simon Poirier (simpoir)
Changed in landscape-charm:
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.