[2.5, upgrade-series] prepare sub-command applied to machine with no units produces awkward output

Bug #1797396 reported by Peter Matulis
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
Medium
Joseph Phillips

Bug Description

When the `upgrade-series prepare` command affects a machine without any units (controller) the output is awkward due to much whitespace. Perhaps text such as "no units found" is apropos here.

$ juju upgrade-series -m controller prepare 0 bionic

WARNING This command will mark machine "0" as being upgraded to series "bionic"
This operation cannot be reverted or canceled once started. The units
of machine "0" will also be upgraded. These units include:

Continue [y/N]?y
machine-0 started upgrade series from series xenial to series bionic
machine-0 all necessary binaries and service files written

Juju is now ready for the series to be updated.
Perform any manual steps required along with "do-release-upgrade".
When ready run the following to complete the upgrade series process:

juju upgrade-series complete 0

Tags: docteam
Revision history for this message
Peter Matulis (petermatulis) wrote :

LP modified the original text to remove 2 blank lines. There are actually 3 blank lines above the
"Continue" line.

Revision history for this message
Peter Matulis (petermatulis) wrote :

I now understand that a controller (machine without units) is not supported by `upgrade-series`.

Would it make sense to prevent the 'prepare' of a controller machine?

Revision history for this message
Tim Penhey (thumper) wrote : Re: [Bug 1797396] Re: [2.5, upgrade-series] prepare sub-command applied to machine with no units produces awkward output

We should have better support for machines without units, as this is
entirely valid, if unusual, in normal models.

We should also have early exit for attempting to upgrade controllers.

The reason for the the current restrictions around upgrading controllers
is around the underlying Juju database, and having to upgrade the
content from one version of mongo to another. Also we are unsure how HA
would work across mongo version skew - likely answer is that it doesn't
very well at all.

On 12/10/18 07:33, Peter Matulis wrote:
> I now understand that a controller (machine without units) is not
> supported by `upgrade-series`.
>
> Would it make sense to prevent the 'prepare' of a controller machine?
>

Revision history for this message
Ian Booth (wallyworld) wrote :

Just to clarify comment #2 - a controller can have units. People can and do deploy to the controller machine.

Revision history for this message
Richard Harding (rharding) wrote :

I've added a task to fail early on controller machines and we can do better for output on machines w/o units.

Changed in juju:
status: New → Triaged
importance: Undecided → Medium
milestone: none → 2.5-beta1
Changed in juju:
assignee: nobody → Joseph Phillips (manadart)
status: Triaged → In Progress
Revision history for this message
Joseph Phillips (manadart) wrote :

https://github.com/juju/juju/pull/9375 causes the section on affected units to be omitted from the confirmation prompt where there are none on the machine.

Changed in juju:
status: In Progress → Fix Committed
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.