juju upgrade-juju --build-agent allows invalid upgrades

Bug #1732156 reported by John A Meinel
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
High
Christian Muirhead

Bug Description

I was testing out some stuff with our betas, and I had done "juju bootstrap" with a 2.3-beta4 build.
I then hacked on some stuff and ended up with a 2.3-beta3 and had done "juju upgrade-juju --build-agent" which it happily uploaded and attempted to switch to, but ultimately all machines failed with:

$ juju show-machine 0
model: controller
machines:
  "0":
    juju-status:
      current: error
      message: 'upgrade to 2.3-beta3.1 failed (giving up): cannot sanely upgrade from
        2.3-beta4.1 to 2.3-beta3.1'

I'm surprised it even allowed the "upgrade-juju" to pass without telling me that ahead of time.

Tags: upgrade-juju
Revision history for this message
John A Meinel (jameinel) wrote :

It gets worse, trying to build a new agent and then upgrade to it gives me:
ERROR upgrade in progress (upgrade in progress)
15:12:45 DEBUG cmd supercommand.go:459 error stack:
upgrade in progress (upgrade in progress)
github.com/juju/juju/rpc/client.go:149:
github.com/juju/juju/api/apiclient.go:925:
github.com/juju/juju/api/modelconfig/modelconfig.go:33:

So I can't use upgrade-juju to get back out of this.

Revision history for this message
John A Meinel (jameinel) wrote :

(I only managed to get out of this by using "juju-force-upgrade MODEL-UUID 2.3-beta4.1"

Changed in juju:
assignee: nobody → Christian Muirhead (2-xtian)
Ian Booth (wallyworld)
Changed in juju:
milestone: none → 2.3-rc1
Tim Penhey (thumper)
Changed in juju:
milestone: 2.3-rc1 → 2.3.1
Revision history for this message
Christian Muirhead (2-xtian) wrote :
Changed in juju:
status: Triaged → In Progress
Revision history for this message
John A Meinel (jameinel) wrote : Re: [Bug 1732156] Re: juju upgrade-juju --build-agent allows invalid upgrades

Isn't this Fix Committed now?

On Tue, Nov 21, 2017 at 7:09 AM, Christian Muirhead <
<email address hidden>> wrote:

> ** Changed in: juju
> Status: Triaged => In Progress
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1732156
>
> Title:
> juju upgrade-juju --build-agent allows invalid upgrades
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/juju/+bug/1732156/+subscriptions
>

Changed in juju:
milestone: 2.3.1 → none
Tim Penhey (thumper)
Changed in juju:
milestone: none → 2.3.2
Changed in juju:
milestone: 2.3.2 → 2.3.3
Revision history for this message
Anastasia (anastasia-macmood) wrote :

Yes, this has been Fix Committed since 2.3-rc2. I am Marking it as Fix Released.

Changed in juju:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.