can not unset juju controller-config juju-ha-space

Bug #2069808 reported by Nishant Dash
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Committed
High
Nicolas Vinuesa

Bug Description

Once I set the juju controller-config, I can not unset it.

$ juju controller-config juju-ha-space
ERROR key "juju-ha-space" not found in controller "manual"

$ juju controller-config juju-ha-space=alpha

$ juju controller-config juju-ha-space=""
ERROR juju HA space name "" not valid

(tried some other ways like `juju-ha-space=`)

Consequently, once I set this option, it seems to interfere when I try to enable-ha in an env with both ipv6 and ipv4 (as of opening this bug there are issues with enabling ha over ipv6). I conclude that this interferes because in an exact replica of my setup, (replicating the issues as well), enable ha works without this controller-config set.

juju version: 3.5.1 (LXD vms but juju manual cloud)

Revision history for this message
Nishant Dash (dash3) wrote (last edit ):

I reached out to Joseph for some help with this, they gave me this DB script to clear out the value

juju:PRIMARY> db.controllers.find({_id: "controllerSettings"}).forEach(function(doc) {
    delete doc.settings["juju-ha-space"]
  db.controllers.updateOne({_id: "controllerSettings"}, { $set: { settings: doc.settings } })
})

Confirmed by running `juju controller-config juju-ha-space` which will then tell you that the key is not found. After clearing this, I am able to successfully enable-ha in my juju controller

description: updated
Changed in juju:
assignee: nobody → Nicolas Vinuesa (nvinuesa)
importance: Undecided → High
milestone: none → 3.5.6
status: New → Triaged
Changed in juju:
status: Triaged → In Progress
Revision history for this message
Nicolas Vinuesa (nvinuesa) wrote :
Changed in juju:
status: In Progress → Fix Committed
milestone: 3.5.6 → 3.4.6
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.