Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(3782)

Issue 90580043: HA: system-identity file for all state servers (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years ago by vladislav.klyachin
Modified:
10 years ago
Reviewers:
mp+216834, jameinel, fwereade
Visibility:
Public.

Description

HA: 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+182 lines, -52 lines) Patch
A [revision details] View 1 1 chunk +2 lines, -0 lines 0 comments Download
M agent/agent.go View 3 chunks +11 lines, -0 lines 0 comments Download
M agent/agent_test.go View 4 chunks +19 lines, -15 lines 0 comments Download
M agent/bootstrap_test.go View 3 chunks +17 lines, -14 lines 0 comments Download
M agent/format-1.18.go View 3 chunks +8 lines, -5 lines 0 comments Download
A agent/identity.go View 1 1 chunk +28 lines, -0 lines 0 comments Download
A agent/identity_test.go View 1 1 chunk +70 lines, -0 lines 0 comments Download
M cmd/jujud/bootstrap.go View 1 chunk +5 lines, -0 lines 0 comments Download
M cmd/jujud/machine.go View 1 chunk +7 lines, -0 lines 0 comments Download
M environs/cloudinit.go View 1 chunk +5 lines, -4 lines 0 comments Download
M environs/cloudinit/cloudinit.go View 2 chunks +0 lines, -6 lines 0 comments Download
M environs/cloudinit/cloudinit_test.go View 1 chunk +0 lines, -2 lines 0 comments Download
M state/api/params/params.go View 1 chunk +2 lines, -1 line 0 comments Download
M state/apiserver/client/run.go View 2 chunks +2 lines, -2 lines 0 comments Download
M upgrades/systemsshkey.go View 1 chunk +1 line, -3 lines 0 comments Download
M upgrades/upgrade_test.go View 2 chunks +5 lines, -0 lines 0 comments Download

Messages

Total messages: 5
vladislav.klyachin
Please take a look.
10 years ago (2014-04-23 09:04:04 UTC) #1
fwereade
This looks good, but AFAICT it won't help systems that have already upgraded to 1.18 ...
10 years ago (2014-04-23 10:01:07 UTC) #2
jameinel
On 2014/04/23 10:01:07, fwereade wrote: > This looks good, but AFAICT it won't help systems ...
10 years ago (2014-04-23 12:21:55 UTC) #3
jameinel
LGTM Sorry it took so long but it took me a while to figure out ...
10 years ago (2014-04-23 15:15:07 UTC) #4
vladislav.klyachin
10 years ago (2014-04-23 15:45:33 UTC) #5
Please take a look.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b