Description of problem: SSH RSA key validation fails with "Validation failed: error, comparison of NilClass with 34000000000001 failed" when there is a Host with no EmsCluster (Deployment Role on OS side). Version-Release number of selected component (if applicable): CFME 5.7.0.16 RHOS10 How reproducible: Always Steps to Reproduce: 1. Deploy Undercloud and have some Hosts (nodes) without any Deployment Role assigned. 2. Add OpenStack Infra Provider into CFME. 3. Wait for the refresh. 4. Try add or change SSH RSA key for that Provider and hit validate button. Actual results: Validation error notification is seen with "Credential validation was not successful: comparison of NilClass with 34000000000001 failed" and "Validation failed: error, comparison of NilClass with 34000000000001 failed" appears in evm.log of CFME. Expected results: Validation should go and pass or fail as when all Hosts have their Deployment Role (Ems Cluster) Additional info: The issue is caused by code selecting Hosts to run ssh key validation on. This code do not count on Host to no have EmsCluster. Easy to fix.
https://github.com/ManageIQ/manageiq/pull/13275
https://github.com/ManageIQ/manageiq/pull/13445
New PR solving this is the last one - https://github.com/ManageIQ/manageiq/pull/13445 Code from previous one is used in the last one.
New commit detected on ManageIQ/manageiq/master: https://github.com/ManageIQ/manageiq/commit/47c753976235bba324f725bd54da64d73deacddd commit 47c753976235bba324f725bd54da64d73deacddd Author: Petr Blaho <pblaho> AuthorDate: Tue Dec 20 16:19:00 2016 +0100 Commit: Petr Blaho <pblaho> CommitDate: Wed Jan 11 15:38:10 2017 +0100 Check ems_cluster_id - OS Infra SSH KEY validation This adds ems_cluster_id checking when selecting Hosts for ssh key validation on OpenStack Infra Provider. Solves https://bugzilla.redhat.com/show_bug.cgi?id=1406443 app/models/manageiq/providers/openstack/infra_manager.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
verified on 5.8.0.4