Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Distribute ed25519 ssh key error during installation #272

Closed
rfcarter opened this issue Jun 18, 2017 · 11 comments
Closed

Distribute ed25519 ssh key error during installation #272

rfcarter opened this issue Jun 18, 2017 · 11 comments

Comments

@rfcarter
Copy link

I get the following when doing a single node install:

FAILED! => {"failed": true, "msg": "An unhandled exception occurred while running the lookup plugin 'file'. Error was a <class 'ansible.errors.AnsibleFileNotFound'>, original message: the file_name '/opt/ssh/id_ed25519.pub' does not exist, or is not readable"}

@padthaitofuhot
Copy link
Contributor

This may occur when the path /opt/emc/ecs-install/ssh does not exist on the host. Does that path exist?

@padthaitofuhot
Copy link
Contributor

This issue is closing due to inactivity. Please reopen if we can be of further assistance. Thank you.

@psprahlad
Copy link

I'm also facing same error. Did anyone get the resolution?
FAILED! => {"failed": true, "msg": "An unhandled exception occurred while running the lookup plugin 'file'. Error was a <class 'ansible.errors.AnsibleFileNotFound'>, original message: the file_name '/opt/ssh/id_ed25519.pub' does not exist, or is not readable"}

@padthaitofuhot
Copy link
Contributor

Are you using an older OVA? This is a known issue with the previous OVAs and was resolved in a recent (#238) issue and corresponding pull request.

If not, then please try these steps:

  1. Double-check your deploy.yml. Make sure the install_node: field has the current IP address of the install node. If you're building for an Island deployment, you'll need to change this once you migrate the install node into your island.
  2. If you are not on the current release of the install node (2.2.1), please rebuild your install node using the 2.2.1 release.
  3. If neither of those solutions work for your situation, please let us know.

@padthaitofuhot padthaitofuhot reopened this Jul 3, 2017
@rfcarter
Copy link
Author

rfcarter commented Jul 3, 2017

I did a fresh clone and I get the following:
TASK [CentOS_7_configure_ssh : CentOS 7 | Distribute ed25519 ssh key] **********
fatal: [192.168.56.150]: FAILED! => {"failed": true, "msg": "An unhandled exception occurred while running the lookup plugin 'file'. Error was a <class 'ansible.errors.AnsibleFileNotFound'>, original message: the file_name '/opt/ssh/id_ed25519.pub' does not exist, or is not readable"}

@padthaitofuhot
Copy link
Contributor

Did you rebuild the install node? If not, please do so. This error is consistent with resolved bugs, but requires a new install node.

@rfcarter
Copy link
Author

rfcarter commented Jul 3, 2017 via email

@rfcarter
Copy link
Author

rfcarter commented Jul 3, 2017

I rebuilt the install node. The first error was this:

ecs-install> Initializing data container, one moment ... OK
ecs-install> Applying deploy.yml

PLAY [Installer | Setup access between ecs-install and install node] ***********

TASK [setup] *******************************************************************
fatal: [192.168.56.150]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh.", "unreachable": true}

PLAY RECAP *********************************************************************
192.168.56.150 : ok=0 changed=0 unreachable=1 failed=0

Playbook run took 0 days, 0 hours, 1 minutes, 49 seconds
Operation failed.

PLAY [Common | Ping data nodes before doing anything else] *********************

TASK [ping] ********************************************************************
fatal: [192.168.56.150]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh.", "unreachable": true}

PLAY RECAP *********************************************************************
192.168.56.150 : ok=0 changed=0 unreachable=1 failed=0

Playbook run took 0 days, 0 hours, 2 minutes, 41 seconds
Operation failed.

I ssh to the data node to get rise of the message to add to know host.
I restart step1 and I get the following:

PLAY [Common | Ping data nodes before doing anything else] *********************

TASK [ping] ********************************************************************
ok: [192.168.56.150]

PLAY [Installer | Gather facts and slice into OS groups] ***********************

TASK [setup] *******************************************************************
ok: [192.168.56.150]

TASK [group_by] ****************************************************************
ok: [192.168.56.150]

PLAY [CentOS 7 | Configure access] *********************************************

TASK [CentOS_7_configure_ssh : CentOS 7 | Distribute ed25519 ssh key] **********
fatal: [192.168.56.150]: FAILED! => {"failed": true, "msg": "An unhandled exception occurred while running the lookup plugin 'file'. Error was a <class 'ansible.errors.AnsibleFileNotFound'>, original message: the file_name '/opt/ssh/id_ed25519.pub' does not exist, or is not readable"}

NO MORE HOSTS LEFT *************************************************************

PLAY RECAP *********************************************************************
192.168.56.150 : ok=3 changed=0 unreachable=0 failed=1

Playbook run took 0 days, 0 hours, 0 minutes, 1 seconds
Operation failed.

@padthaitofuhot
Copy link
Contributor

Please run the following command and paste the output here:

ecsdeploy -vvv load

@psprahlad
Copy link

I am not using OVA, I am using CentOS 7.3. Yes system current IP is mentioned in the deploy file.
Well error related to file doesn't exist- '/opt/ssh/id_ed25519.pub goes away when I executed "island-step1" script. Thanks all

@padthaitofuhot
Copy link
Contributor

Yes, and it will. The file that was missing is created during island-step1 and step1. One of these steps must be taken before running a higher-numbered step.

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

No branches or pull requests

3 participants