Description of problem: Adding new ssh credentials via Automation -> Ansible -> Credentials , add new credentials does not actually create new credentials with ssh keys; they are reported as "Add of Credential .... has been successfully queued.", but never appear. Version-Release number of selected component (if applicable): How reproducible: Try to add new credentials with SSH keys. Steps to Reproduce: 1. Automation -> Ansible -> Credentials, klick Configuration, Add New Credential 2. Credential Type: Machine 3. Enter a username and a SSH key in field "Private key" 4. Click add Actual results: "Add of Credential "mySSH" has been successfully queued." is shown - but the credential is not actually added. Expected results: The credential should be added.
Hapreet/Zita, The ssh_key_data has the newline characters being changed and Tower will fail it. Also, when user is adding ssh_key_data, they need to also provide ssh_key_unlock. Or else Tower will fail it too. This is the same for create and update.
https://github.com/ManageIQ/manageiq-ui-classic/pull/976
Verified in 5.9.0.3.20171017182919_5f3a0ce. A credential with ssh private key can be successfully added.