1.24 upgrade does not set environ-uuid
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
juju-core |
Fix Released
|
High
|
Tim Penhey |
Bug Description
The 1.24 client requires environ-uuid to be able to communicate with a 1.24 state server, but the upgrade step does not add that value to the .jenv environment cache file if it doesn't already exist. Post 1.18 to 1.24 upgrade, the .jenv for the environment looked like this:
user: admin
password: REDACTED
server-uuid: e5783aa4-
state-servers:
- 10.33.17.36:17070
server-hostnames:
- 10.33.17.36:17070
ca-cert: |
-----BEGIN CERTIFICATE-----
REDACTED
-----END CERTIFICATE-----
juju status in this state returned:
WARNING ignoring invalid API endpoint environment UUID
ERROR logged in to server, no environment, "Client" not supported
Adding an environ-uuid with the same value as server-uuid addresses the issue.
Changed in juju-core: | |
status: | New → Triaged |
importance: | Undecided → High |
milestone: | none → 1.25.2 |
Changed in juju-core: | |
milestone: | 1.25.2 → none |
Changed in juju-core: | |
status: | Triaged → Fix Released |
That .jenv file seems very strange. There is no way at all that I can think of where you would have a server-uuid but be missing the environment-uuid.
I am able to reproduce by bootstrapping a 1.22 environment, then using a 1.24 or 1.25 client to talk to it. In both cases the error is the same as the above. I have found the place in code, now the test to see if it works without it.