can not unset juju controller-config juju-ha-space
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)
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 |
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: "controllerSett ings"}) .forEach( function( doc) { "juju-ha- space"] s.updateOne( {_id: "controllerSett ings"}, { $set: { settings: doc.settings } })
delete doc.settings[
db.controller
})
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