Description of problem:
It is impossible to update the RSA key of an OpenStack Provider after it has been created.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Edit an OpenStack Director provider
2. Go to 'RSA key pair'
2. Click on 'change stored private key' to upload a new RSA Key
3. Select your file and click Validate
An error message is displayed: 'Credential validation was not successful: undefined method 'verify_credentials' for nil:NilClass'
The Key should be validated
This prevent from being able to change the RSA key and force the user to delete the provider and create a new one from sratch.
Ronnie, can you test this out and verify? I remember we tested this feature just a few weeks ago and it seemed to work.
I can confirm the scenario described in this BZ reproduce in 126.96.36.199 latest build
I can confirm the scenario in 188.8.131.52 as well.
A pull request to fix this problem is available here: https://github.com/ManageIQ/manageiq/pull/13159
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:
Author: Sam Lucidi <slucidi>
AuthorDate: Tue Dec 13 16:10:23 2016 -0500
Commit: Petr Blaho <pblaho>
CommitDate: Wed Jan 11 15:37:59 2017 +0100
Stop nils from appearing in list of hosts to test OSP ssh keys against
app/models/manageiq/providers/openstack/infra_manager.rb | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
verified on 184.108.40.206