provider/gce: don't set sshKeys instance metadata #6294

Merged
merged 1 commit into from Sep 22, 2016

Conversation

Projects
None yet
4 participants
Member

axw commented Sep 21, 2016

The GCE provider is bailing from StartInstances if
authorized-keys is empty. It should not be doing
this.

Also, we're only looking at authorized-keys in the
GCE provider to set the sshKeys instance metadata.
This is what GCE uses to keep track of the SSH keys
that it manages on an instance. We should not be
setting this; using cloud-init is sufficient.

Fixes https://bugs.launchpad.net/bugs/1625881

provider/gce: don't set sshKeys instance metadata
The GCE provider is bailing from StartInstances if
authorized-keys is empty. It should not be doing
this.

Also, we're only looking at authorized-keys in the
GCE provider to set the sshKeys instance metadata.
This is what GCE uses to keep track of the SSH keys
that *it* manages on an instance. We should not be
setting this; using cloud-init is sufficient.

Fixes https://bugs.launchpad.net/bugs/1625881
Member

axw commented Sep 21, 2016

QA

  1. bootstrap google
  2. juju ssh -m controller 0 (works)
  3. juju add-machine
  4. juju ssh -m default 0 (works also)

@hatched hatched referenced this pull request in juju/juju-gui Sep 21, 2016

Closed

Unable to deploy to new models on GCE #2027

LGTM, but IANAGR.

Fixing a but purely by removing code. Awesome.

QA Checks out.

Love it! Thanks \o/
I think it'll also help with this experience https://bugs.launchpad.net/juju/+bug/1624548

Member

axw commented Sep 21, 2016

$$merge$$

Contributor

jujubot commented Sep 21, 2016

Status: merge request accepted. Url: http://juju-ci.vapour.ws:8080/job/github-merge-juju

Contributor

jujubot commented Sep 21, 2016

Build failed: Tests failed
build url: http://juju-ci.vapour.ws:8080/job/github-merge-juju/9296

Member

axw commented Sep 21, 2016

$$merge$$

Contributor

jujubot commented Sep 21, 2016

Status: merge request accepted. Url: http://juju-ci.vapour.ws:8080/job/github-merge-juju

@jujubot jujubot merged commit 1a2e3ba into juju:master Sep 22, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment