"upgrade in progress" errors persist forever on an API connection

Bug #1772381 reported by Roger Peppe
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Triaged
Low
Unassigned

Bug Description

If a client happens to connect to a controller when it's being upgraded,
it gets an API root that's forever restricted to upgrade methods
only, even though the upgrade itself might complete in a short time.
See https://github.com/juju/juju/blob/develop/apiserver/root.go#L250.

This means that clients that make long-term API connections, such as JIMM,
see persistent errors when a controller has been upgraded.

ISTM that the set of methods available on an API connection should
reflect the connected client, not the server state, so when the server
has successfully upgraded, the available methods should be unrestricted
without the need for a client to make a new connection.

Revision history for this message
Casey Marshall (cmars) wrote :

Or, could Juju close all client connections after upgrading? That might be a lot simpler.

Changed in juju:
status: New → Triaged
importance: Undecided → Medium
milestone: none → 2.4-beta3
Revision history for this message
Tim Penhey (thumper) wrote :

I agree with Casey. Simply closing all non-controller connections would be much simpler.

Changed in juju:
milestone: 2.4-beta3 → none
Revision history for this message
Canonical Juju QA Bot (juju-qa-bot) wrote :

This bug has not been updated in 2 years, so we're marking it Low importance. If you believe this is incorrect, please update the importance.

Changed in juju:
importance: Medium → Low
tags: added: expirebugs-bot
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.