Bug 1338798 - Verifying Host SSH credentials in nodes failed
Summary: Verifying Host SSH credentials in nodes failed
Keywords:
Status: CLOSED DUPLICATE of bug 1332109
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Providers
Version: 5.6.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: GA
: 5.6.0
Assignee: Tzu-Mainn Chen
QA Contact: Ola Pavlenko
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-05-23 12:46 UTC by Ronnie Rasouli
Modified: 2017-08-30 03:44 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-05-24 21:25:40 UTC
Category: ---
Cloudforms Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
SSH key file (1.64 KB, text/x-vhdl)
2016-05-23 12:46 UTC, Ronnie Rasouli
no flags Details

Description Ronnie Rasouli 2016-05-23 12:46:29 UTC
Created attachment 1160609 [details]
SSH key file

Description of problem:

I have added a new valid keyfile in infra provider configuration, however the keyfile verifying is invalid
SmartState failed, verifying SSH key in nodes fails

[----] I, [2016-05-23T08:14:58.724677 #12155:73198c]  INFO -- : MIQ(MiqServer#heartbeat) Heartbeat [2016-05-23 12:14:58 UTC]...
[----] I, [2016-05-23T08:14:58.751039 #12155:73198c]  INFO -- : MIQ(MiqServer#heartbeat) Heartbeat [2016-05-23 12:14:58 UTC]...Complete
[----] I, [2016-05-23T08:14:58.995603 #13540:a4e534]  INFO -- : MIQ(ManageIQ::Providers::Openstack::InfraManager::Host#verify_credentials_with_ssh) Verifying Host SSH credentials for [3b77ca42-9077-4ba2-9606-9ec19b056019 (NovaCompute)]
[----] I, [2016-05-23T08:14:58.999173 #13540:a4e534]  INFO -- : MIQ(ManageIQ::Providers::Openstack::InfraManager::Host#connect_ssh) Initiating SSH connection to Host:[3b77ca42-9077-4ba2-9606-9ec19b056019 (NovaCompute)] using [172.16.0.24] for user:[heat-admin].  Options:[{:remember_host=>false, :key_data=>"[FILTERED]", :passwordless_sudo=>true}]
[----] I, [2016-05-23T08:14:58.999379 #13540:a4e534]  INFO -- : MIQ(ManageIQ::Providers::Openstack::InfraManager::Host#connect_ssh) SSH connection established to [172.16.0.24]
[----] E, [2016-05-23T08:14:59.080873 #13540:a4e534] ERROR -- : MIQ(ManageIQ::Providers::Openstack::InfraManager::Host#connect_ssh) SSH connection failed for [172.16.0.24] with [ArgumentError: Could not parse PKey: no start line]
[----] W, [2016-05-23T08:14:59.081236 #13540:a4e534]  WARN -- : MIQ(ManageIQ::Providers::Openstack::InfraManager::Host#verify_credentials_with_ssh) #<ArgumentError: Could not parse PKey: no start line>
[----] E, [2016-05-23T08:14:59.081830 #13540:a4e534] ERROR -- : MIQ(host_controller-update): Unexpected response returned from system, see log for details
[----] I, [2016-05-23T08:15:00.727087 #14735:899518]  INFO -- : Querying Openstack Ceilometer for events newer than ...

Version-Release number of selected component (if applicable):

5.6.0.7

How reproducible:
100%

Steps to Reproduce:
1.login to CFME
2. go to compute --> infrastructure --> Providers
3. add a valid SSH key of the undercloud

Actual results:

verifying host key fails, see error above

Expected results:

SmartState and ssh key validation pass

Additional info:

Attached ssh key file

Comment 2 Petr Blaho 2016-05-23 12:59:29 UTC
This is issue with saving key from UI.

This was reported upstream https://github.com/ManageIQ/manageiq/issues/8651 and 
has solution as PR - https://github.com/ManageIQ/manageiq/pull/8673

Comment 3 Sam Lucidi 2016-05-23 13:09:26 UTC
Fixed by the following two pull requests which were merged into master.
Attach/detach: https://github.com/ManageIQ/manageiq/pull/8670
Reconfigure: https://github.com/ManageIQ/manageiq/pull/8671

Comment 4 Sam Lucidi 2016-05-23 13:10:53 UTC
Please disregard my above comment, that was intended from a different BZ.

Comment 5 Greg Blomquist 2016-05-24 18:59:22 UTC
Mainn, is this a dup?  Looks like Petr mentioned a fix for this.

Comment 6 Tzu-Mainn Chen 2016-05-24 19:29:36 UTC
Yep, this is a duplicate of https://bugzilla.redhat.com/show_bug.cgi?id=1332109 , should I close this one?

Comment 7 Dave Johnson 2016-05-24 21:25:40 UTC

*** This bug has been marked as a duplicate of bug 1332109 ***


Note You need to log in before you can comment on or make changes to this bug.