Bug 1526048 - [RFE] Add RHV Credential to Ansible Automation Inside
Summary: [RFE] Add RHV Credential to Ansible Automation Inside
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Providers
Version: 5.9.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: GA
: 5.10.0
Assignee: James Wong
QA Contact: Ilanit Stein
URL:
Whiteboard:
: 1539753 (view as bug list)
Depends On:
Blocks: 1559479
TreeView+ depends on / blocked
 
Reported: 2017-12-14 16:59 UTC by John Hardy
Modified: 2019-02-11 14:07 UTC (History)
6 users (show)

Fixed In Version: 5.10.0.0
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1559479 (view as bug list)
Environment:
Last Closed: 2019-02-11 14:07:42 UTC
Category: ---
Cloudforms Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description John Hardy 2017-12-14 16:59:01 UTC
[RFE] Add RHV Credential to Ansible Automation Inside

Ansible Tower 3.2.2 adds the RHV credential to its credential store. We need to mirror this in CFME and Ansible Automation Inside.

Comment 5 James Wong 2018-02-26 16:50:03 UTC
*** Bug 1539753 has been marked as a duplicate of this bug. ***

Comment 6 James Wong 2018-02-26 20:55:47 UTC
A caveat: CFME/MIQ's support of RHV credential type is only partly at this time. 

The limitation is due to the fact that we are still using Tower API V1 and its support of RHV credential type is only partial. It's missing the optional field 'ca_file' which is only supported by API V2.

Comment 7 CFME Bot 2018-03-13 13:03:44 UTC
New commit detected on ManageIQ/manageiq-providers-ansible_tower/master:

https://github.com/ManageIQ/manageiq-providers-ansible_tower/commit/319daaccc5ca8bab7ede974c780ea458572f403f
commit 319daaccc5ca8bab7ede974c780ea458572f403f
Author:     James Wong <webpotent>
AuthorDate: Thu Feb 22 11:51:21 2018 -0500
Commit:     James Wong <webpotent>
CommitDate: Thu Feb 22 11:51:21 2018 -0500

    Tower Rhv credential type

    https://bugzilla.redhat.com/show_bug.cgi?id=1526048

 app/models/manageiq/providers/ansible_tower/automation_manager.rb | 1 +
 app/models/manageiq/providers/ansible_tower/automation_manager/rhv_credential.rb | 3 +
 app/models/manageiq/providers/ansible_tower/shared/automation_manager/rhv_credential.rb | 24 +
 app/models/manageiq/providers/ansible_tower/shared/inventory/parser/automation_manager.rb | 3 +-
 4 files changed, 30 insertions(+), 1 deletion(-)

Comment 8 CFME Bot 2018-03-13 13:04:48 UTC
New commit detected on ManageIQ/manageiq/master:

https://github.com/ManageIQ/manageiq/commit/847ecbb69802e06b76126e887d14fabe41c3a42e
commit 847ecbb69802e06b76126e887d14fabe41c3a42e
Author:     James Wong <jwong>
AuthorDate: Fri Feb 23 13:45:20 2018 -0500
Commit:     James Wong <jwong>
CommitDate: Fri Feb 23 13:45:20 2018 -0500

    Tower Rhv credential type

    Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1526048

 app/models/manageiq/providers/embedded_ansible/automation_manager.rb | 1 +
 app/models/manageiq/providers/embedded_ansible/automation_manager/rhv_credential.rb | 3 +
 2 files changed, 4 insertions(+)

Comment 10 CFME Bot 2018-03-22 13:58:20 UTC
New commit detected on ManageIQ/manageiq-providers-ansible_tower/master:

https://github.com/ManageIQ/manageiq-providers-ansible_tower/commit/f0a8535d390ac0dd7be92a41a441e80fb2c1c497
commit f0a8535d390ac0dd7be92a41a441e80fb2c1c497
Author:     James Wong <webpotent>
AuthorDate: Thu Mar 22 09:28:21 2018 -0400
Commit:     James Wong <webpotent>
CommitDate: Thu Mar 22 09:28:21 2018 -0400

    Add host field to rhv_credential
    Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1526048

 app/models/manageiq/providers/ansible_tower/shared/automation_manager/rhv_credential.rb | 10 +-
 1 file changed, 9 insertions(+), 1 deletion(-)

Comment 13 Ilanit Stein 2018-10-02 11:46:10 UTC
Verified on CFME-5.10.0.17/RHV-4.2.5.3

Using this playbook https://github.com/patchkez/ansible_playbooks/blob/master/connect_to_rhv.yml 
I was able to get username, password and hostname,
that were provided to RHV ansible credential.


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