DescriptionHA: system-identity file for all state servers
This is a fix for the following bug:
--------------------------------
I just tried running in HA mode:
$ juju run --machine 0,1,2 "cat /etc/hostname" -e amz-jam
- MachineId: "0"
ReturnCode: 255
Stderr: "Warning: Identity file /var/lib/juju/system-identity not accessible: No
such file or directory.\nWarning: Permanently added 'ip-10-72-129-222.eu-west-1.compute.internal,10.72.129.222'
(ECDSA) to the list of known hosts.\r\nPermission denied (publickey).\r\n"
Stdout: ""
This was repeated for all 3 machines.
Looking at the machines only machine-0 has /var/lib/juju/system-identity
So the StateSecrets needs to include /var/lib/juju/system-identity as well as the Mongo and CA certs.
--------------------------------
The main idea of this patchset is passing of environment SSH key via agent.conf and creation of
/var/lib/juju/system-identity file on agent start.
For this purpose SystemIdentity field was added to params.StateServingInfo and agent.format_1_18Serialization structs.
https://code.launchpad.net/~klyachin/juju-core/104-juju-run-failure/+merge/216834
(do not edit description out of merge proposal)
Patch Set 1 #
Total comments: 1
Patch Set 2 : HA: system-identity file for all state servers #
MessagesTotal messages: 5
|