[maas] juju set-env fails after upgrading to 1.16.2+

Bug #1256179 reported by Andrew Wilkins
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
juju-core
Fix Released
High
John A Meinel
1.16
Fix Released
Critical
John A Meinel
juju-core (Ubuntu)
Fix Released
Undecided
Unassigned
Saucy
Won't Fix
Undecided
Unassigned

Bug Description

The 1.16.2 release fixed a critical issue with the MAAS provider where Juju would destroy instances that were not part of the Juju environment. Part of the fix involved adding a new config setting, maas-agent-name.

After upgrading, juju set-env fails with an error message about not being able to change maas-agent-name. It doesn't exist in state, and the new default is ""; i.e. we can't change from nil to "".

As a workaround, one can do:
    $ mongo --ssl -u admin -p <admin-secret> localhost:37017/admin
    > use juju
    > db.settings.update({_id: "e"}, {$set: {"maas-agent-name":""}})
    > db.settings.update({_id: "e"}, {$inc: {"txn-revno":NumberLong(1)}})

Related branches

Andrew Wilkins (axwalk)
Changed in juju-core:
status: New → Triaged
importance: Undecided → High
Revision history for this message
John A Meinel (jameinel) wrote :

Bumping this up to critical for 1.16.5 because anyone upgrading from <1.16.2 to >=1.16.2 is going to run into this.

Changed in juju-core:
milestone: none → 1.17.1
John A Meinel (jameinel)
Changed in juju-core:
assignee: nobody → John A Meinel (jameinel)
status: Triaged → In Progress
John A Meinel (jameinel)
Changed in juju-core:
milestone: 1.17.1 → 1.17.0
Go Bot (go-bot)
Changed in juju-core:
status: In Progress → Fix Committed
Curtis Hovey (sinzui)
tags: added: maas-provider regression
Curtis Hovey (sinzui)
Changed in juju-core:
status: Fix Committed → Fix Released
James Page (james-page)
Changed in juju-core (Ubuntu):
status: New → Fix Released
Revision history for this message
Rolf Leggewie (r0lf) wrote :

saucy has seen the end of its life and is no longer receiving any updates. Marking the saucy task for this ticket as "Won't Fix".

Changed in juju-core (Ubuntu Saucy):
status: New → Won't Fix
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.