Giter VIP home page Giter VIP logo

Comments (4)

remche avatar remche commented on July 24, 2024

Thanks for the report.
If your key is passphrase-protected, you have to set use_ssh_agent = true.

from terraform-openstack-rke.

remche avatar remche commented on July 24, 2024

@dhrp is it safe to close this issue ?

from terraform-openstack-rke.

dhrp avatar dhrp commented on July 24, 2024

No, I do not have a passphrase-protected ssh-key..

If I include the following:

module "rke" {
  use_ssh_agent      = false
  ssh_keypair_name   = "thatcher"
}

I get this error:

module.rke.module.rke.rke_cluster.cluster: Modifying... [id=6ff00396-409e-44de-892f-434265af50fd]

Error: 
============= RKE outputs ==============
time="2020-03-23T14:37:45+01:00" level=info msg="Updating RKE cluster..."
time="2020-03-23T14:37:45+01:00" level=info msg="Initiating Kubernetes cluster"

Failed initializing cluster err:Error while reading SSH key file: open -----BEGIN RSA PRIVATE KEY-----
MIIEpQIBAAKCAQEAx8tOI4qDln8b8E1jJDPUYSrJNPrs6S6cf5Ny9T2/4l3kFFdk
[...]
7NkT5WR9LwCyGFQZyslLzRCO9YliypS5li2rnWx7u32O3YI8Z5msqjE=
-----END RSA PRIVATE KEY-----
: file name too long
========================================


  on .terraform/modules/rke/remche-terraform-openstack-rke-f1d7e32/modules/rke/main.tf line 54, in resource "rke_cluster" "cluster":
  54: resource "rke_cluster" "cluster" {

And if I set use_ssh_agent to 'true' (without doing ssh-add), I get the following (which makes sense, since ssh-agent then doesn't know my key).

Failed running cluster err:[workerPlane] Failed to bring up Worker Plane: [Failed to verify healthcheck: Failed to check http://localhost:10248/healthz for service [kubelet] on host [45.129.173.183]: Get http://localhost:10248/healthz: Unable to access the service on localhost:10248. The service might be still starting up. Error: ssh: rejected: connect failed (Connection refused), log: F0323 13:31:45.957091    9871 server.go:273] failed to run Kubelet: could not init cloud provider "openstack": Authentication failed]

from terraform-openstack-rke.

remche avatar remche commented on July 24, 2024

@dhrp can you give #45 a try ?

from terraform-openstack-rke.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.