HewlettPackard / oneview-ansible

This project is no longer being developed and has limited support. Please use the newer Ansible Collection project: https://github.com/HewlettPackard/oneview-ansible-collection
Apache License 2.0
104 stars 65 forks source link

Trying to run playbook example: oneview_ethernet_network.yml and getting the following error: fatal: [server1]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: This management appliance is a company owned asset and provided for the exclusive use of authorized personnel. Unauthorized use or abuse of this system may lead to corrective action including termination, civil and/or criminal penalties.\n\nosboxes.org@172.16.225.120: Permission denied (publickey,password).", "unreachable": true} #564

Closed avivgrafen closed 4 years ago

avivgrafen commented 4 years ago

Scenario/Intent

[What you are trying to achieve but can't?]

Environment Details

Steps to Reproduce

[What are the complete steps needed to do in order to reproduce your problem?]

Expected Result

[What do you expect to happen after taking the steps above?]

Actual Result

[What actually happens after the steps above? Include error output or a link to a gist.]

avivgrafen commented 4 years ago

rying to run playbook example: oneview_ethernet_network.yml and getting the following error: fatal: [server1]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: This management appliance is a company owned asset and provided for the exclusive use of authorized personnel. Unauthorized use or abuse of this system may lead to corrective action including termination, civil and/or criminal penalties.\n\nosboxes.org@172.16.225.120: Permission denied (publickey,password)."

Pls. advise. what to do. I have downloaded the lateset: git clone https://github.com/HewlettPackard/oneview-ansible.git and also: pip install -r requirements.txt

VenkateshRavula commented 4 years ago

@avivgrafen , I am not able to reproduce this issue on my local setup. And the fix for this is already provided in ansible sdk 5.6.1. I have shared below my environment details.

OV version - 5.30 Ansible SDK version - 5.7.0 python SDK version - 5.3.0

Can you please retry this with latest ansible and python code and let us know the behavior.

avivgrafen commented 4 years ago

@VenkateshRavula Thank you for the replay. My environment details are: OneView - 5.20.01-0420365

How do I check Ansible SDK version & python SDK version ?

Thanks Aviv

VenkateshRavula commented 4 years ago

@avivgrafen , Please follow the below steps.

  1. Open your ansible environment in command line.
  2. give "pip list" command and check for "hpOneView" module version.
  3. If the module version is greater than or equal to 5.2.1, then you should not face this issue. Because the fix is provided in hpOneView 5.2.1
  4. If your module version shows less than 5.2.1, then you should try uninstalling existing "hpOneView" module by giving "pip uninstall hpOneView" command and then re-install the hpOneView module by giving "pip install hpOneView"
  5. Again check hpOneView version in "pip list" command.
  6. If version >= 5.2.1, then retry running the playbook.

Please feel free to get back if the problem still persists.

VenkateshRavula commented 4 years ago

Closing this issue since we didn't hear back from you. Please feel free to reopen if required.