upgrading 1.18 to 1.19 breaks agent.conf
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
juju-core |
Fix Released
|
Critical
|
Ian Booth |
Bug Description
After running "juju upgrade" of a 1.18 environment into 1.19 we end up missing "apiaddresses" in the agent.conf file though we do have "stateaddresses" listed
This causes a panic() (attached).
We seem to be missing an upgrade step to fix the content of agent.conf, and we also have a bug in our code that we have something that can be nil but isn't checked for not being nil before we use it.
We also have a bug in our CI tests, as I have gotten 2 reports of this happening in the field, but CI itself seems to think that Upgrading is just fine.
We appear to have 0 Upgrade steps To 1.20, (though we also have to fix some code that they could potentially apply their steps for an upgrade targetting 1.19).
The particular places that have shown this issue were both with the local provider, but given the place in the code, I don't think it is specific to that.
Changed in juju-core: | |
status: | Fix Committed → Fix Released |
Changed in juju-core: | |
status: | Confirmed → Fix Released |
Ok, this is weird. I just bootstrapped directly 1.18.1 and I see:
apiaddresses:
- localhost:17070
So I have the feeling that the actual bug is that 1.16 might not have put the data in there, and 1.18 didn't add it, so 1.19/1.20 isn't adding it either.