Bug 1559479 - [RFE] Add RHV Credential to Ansible Automation Inside
Summary: [RFE] Add RHV Credential to Ansible Automation Inside
Keywords:
Status: CLOSED ERRATA
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.9.2
Assignee: James Wong
QA Contact: Ilanit Stein
URL:
Whiteboard:
Depends On: 1526048
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-03-22 15:59 UTC by Satoe Imaishi
Modified: 2022-07-09 09:34 UTC (History)
6 users (show)

Fixed In Version: 5.9.2.1
Doc Type: Enhancement
Doc Text:
Clone Of: 1526048
Environment:
Last Closed: 2018-05-07 20:46:50 UTC
Category: ---
Cloudforms Team: RHEVM
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2018:1328 0 None None None 2018-05-07 20:47:44 UTC

Comment 2 CFME Bot 2018-03-22 18:13:19 UTC
New commits detected on ManageIQ/manageiq-providers-ansible_tower/gaprindashvili:

https://github.com/ManageIQ/manageiq-providers-ansible_tower/commit/a63f9fb167b9d5c542857ced73b08a1dd71f600e
commit a63f9fb167b9d5c542857ced73b08a1dd71f600e
Author:     Greg McCullough <gmccullo>
AuthorDate: Wed Feb 21 13:12:34 2018 -0500
Commit:     Greg McCullough <gmccullo>
CommitDate: Wed Feb 21 13:12:34 2018 -0500

    Merge pull request #54 from jameswnl/vault

    Tower 3.2.2 vault credential type
    (cherry picked from commit 946a58e3fc14def1bd6f595739245d855b468efe)

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

 app/models/manageiq/providers/ansible_tower/automation_manager.rb | 1 +
 app/models/manageiq/providers/ansible_tower/automation_manager/vault_credential.rb | 3 +
 app/models/manageiq/providers/ansible_tower/shared/automation_manager/machine_credential.rb | 6 -
 app/models/manageiq/providers/ansible_tower/shared/automation_manager/vault_credential.rb | 21 +
 app/models/manageiq/providers/ansible_tower/shared/inventory/parser/automation_manager.rb | 3 +
 spec/support/ansible_shared/automation_manager/refresher.rb | 9 +-
 6 files changed, 35 insertions(+), 8 deletions(-)


https://github.com/ManageIQ/manageiq-providers-ansible_tower/commit/ee546a0b729c6167fa46df9b5496f55f4ed181f0
commit ee546a0b729c6167fa46df9b5496f55f4ed181f0
Author:     Adam Grare <agrare>
AuthorDate: Tue Mar 13 09:01:01 2018 -0400
Commit:     Adam Grare <agrare>
CommitDate: Tue Mar 13 09:01:01 2018 -0400

    Merge pull request #62 from jameswnl/rhev

    Tower Rhv credential type
    (cherry picked from commit fdc757d48f258876a28d38cfd6872e8ae6d8543f)

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

 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(-)


https://github.com/ManageIQ/manageiq-providers-ansible_tower/commit/d98973f0f826e0cd62335191db720357837359f8
commit d98973f0f826e0cd62335191db720357837359f8
Author:     Adam Grare <agrare>
AuthorDate: Thu Mar 22 09:55:56 2018 -0400
Commit:     Adam Grare <agrare>
CommitDate: Thu Mar 22 09:55:56 2018 -0400

    Merge pull request #69 from jameswnl/rhv

    Add host field to rhv_credential
    (cherry picked from commit d781a89fe11c5da7db4642f06404d8c5143c0411)

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

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

Comment 3 CFME Bot 2018-03-22 18:21:27 UTC
New commit detected on ManageIQ/manageiq/gaprindashvili:

https://github.com/ManageIQ/manageiq/commit/2ca6cbb2a3b49c1278277a36f6f72e8bf33eb385
commit 2ca6cbb2a3b49c1278277a36f6f72e8bf33eb385
Author:     Greg McCullough <gmccullo>
AuthorDate: Wed Feb 21 13:17:04 2018 -0500
Commit:     Greg McCullough <gmccullo>
CommitDate: Wed Feb 21 13:17:04 2018 -0500

    Merge pull request #16825 from jameswnl/vault

    Tower 3.2.2 vault credential types
    (cherry picked from commit ed35828b67bf75038ed9a1a8e6fd222dfa60447a)

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

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


https://github.com/ManageIQ/manageiq/commit/76639ad75236c26d7506d439c699e1100bd5087b
commit 76639ad75236c26d7506d439c699e1100bd5087b
Author:     Adam Grare <agrare>
AuthorDate: Tue Mar 13 09:01:05 2018 -0400
Commit:     Adam Grare <agrare>
CommitDate: Tue Mar 13 09:01:05 2018 -0400

    Merge pull request #17044 from jameswnl/rhev

    Tower Rhv credential type
    (cherry picked from commit a7beb13490c24030b005a7e757bc53a4a21d19df)

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

 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 4 CFME Bot 2018-03-26 19:16:27 UTC
New commit detected on ManageIQ/manageiq/gaprindashvili:

https://github.com/ManageIQ/manageiq/commit/796dc34f4b85a6525b1f1032498af4901b6bd735
commit 796dc34f4b85a6525b1f1032498af4901b6bd735
Author:     Greg McCullough <gmccullo>
AuthorDate: Wed Mar 21 15:18:20 2018 -0400
Commit:     Greg McCullough <gmccullo>
CommitDate: Wed Mar 21 15:18:20 2018 -0400

    Merge pull request #17184 from lfu/ansible_vault_credential

    Add vault credential support to Ansible playbook service template.
    (cherry picked from commit f2ad37ab639e18bd6d83cf6689a4ed309abd69e5)

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

 app/models/service_template_ansible_playbook.rb | 2 +-
 spec/models/service_template_ansible_playbook_spec.rb | 5 +-
 2 files changed, 5 insertions(+), 2 deletions(-)


https://github.com/ManageIQ/manageiq/commit/85a4f9fdd3f7547319a64535f8f2991c4f836bce
commit 85a4f9fdd3f7547319a64535f8f2991c4f836bce
Author:     Greg McCullough <gmccullo>
AuthorDate: Fri Mar 23 11:56:19 2018 -0400
Commit:     Greg McCullough <gmccullo>
CommitDate: Fri Mar 23 11:56:19 2018 -0400

    Merge pull request #17192 from lfu/ansible_vault_credential_2

    Add vault credential support to automat playbook method.
    (cherry picked from commit 6f201d84054f4289730e0d91ed22503b6fd6ee74)

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

 app/models/manageiq/providers/embedded_ansible/automation_manager/playbook.rb | 2 +-
 spec/models/manageiq/providers/embedded_ansible/automation_manager/playbook_spec.rb | 14 +-
 2 files changed, 10 insertions(+), 6 deletions(-)

Comment 5 CFME Bot 2018-03-26 19:31:07 UTC
New commit detected on ManageIQ/manageiq/gaprindashvili:

https://github.com/ManageIQ/manageiq/commit/3e487437d10a3e608fb00e73d62b24e0071b0b7b
commit 3e487437d10a3e608fb00e73d62b24e0071b0b7b
Author:     Brandon Dunne <brandondunne>
AuthorDate: Wed Feb 28 10:56:36 2018 -0500
Commit:     Brandon Dunne <brandondunne>
CommitDate: Wed Feb 28 10:56:36 2018 -0500

    Merge pull request #17048 from lgalis/vault_credential_title_update

    Add title display message and factory for Vault Credentials
    (cherry picked from commit 65d2667358ed493718f926fa6d84e1c408eaee35)

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

 locale/en.yml | 1 +
 spec/factories/authentication.rb | 4 +
 2 files changed, 5 insertions(+)

Comment 6 CFME Bot 2018-03-26 19:32:43 UTC
New commit detected on ManageIQ/manageiq-ui-classic/gaprindashvili:

https://github.com/ManageIQ/manageiq-ui-classic/commit/b626e8274b452ef1f7b593a116c4fc68496047e3
commit b626e8274b452ef1f7b593a116c4fc68496047e3
Author:     Harpreet Kataria <hkataria>
AuthorDate: Fri Mar 23 15:44:22 2018 -0400
Commit:     Harpreet Kataria <hkataria>
CommitDate: Fri Mar 23 15:44:22 2018 -0400

    Merge pull request #3468 from lgalis/vault_credentials_for_embedded_ansible

    Add Vault credentials to the UI for Embedded Ansible
    (cherry picked from commit 3ba49622778bf539cb93cfed6c20ffee69a82e06)

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

 app/assets/javascripts/controllers/catalog/catalog_item_form_controller.js | 20 +-
 app/assets/javascripts/controllers/miq_ae_class/ae_method_form_controller.js | 10 +-
 app/assets/javascripts/controllers/playbook-reusable-code-mixin.js | 35 +-
 app/controllers/catalog_controller.rb | 2 +
 app/controllers/miq_ae_class_controller.rb | 27 +-
 app/helpers/service_helper/textual_summary.rb | 36 +-
 app/views/catalog/_sandt_tree_show.html.haml | 5 +
 app/views/layouts/angular/_ansible_form_options_angular.html.haml | 11 +
 app/views/miq_ae_class/_method_inputs.html.haml | 2 +
 spec/helpers/service_helper/textual_summary_spec.rb | 11 +
 spec/javascripts/controllers/catalog/catalog_item_form_controller_spec.js | 1 +
 11 files changed, 104 insertions(+), 56 deletions(-)

Comment 7 CFME Bot 2018-03-27 15:28:09 UTC
New commit detected on ManageIQ/manageiq-ui-classic/gaprindashvili:

https://github.com/ManageIQ/manageiq-ui-classic/commit/1ff532152753b4ad77e8edd4571c7fddf545a277
commit 1ff532152753b4ad77e8edd4571c7fddf545a277
Author:     Milan Zázrivec <mzazrivec>
AuthorDate: Tue Mar 27 03:51:02 2018 -0400
Commit:     Milan Zázrivec <mzazrivec>
CommitDate: Tue Mar 27 03:51:02 2018 -0400

    Merge pull request #3684 from lgalis/add_vault_credentials_to_service_summary

    Add vault credential display for the playbook retirement tab
    (cherry picked from commit f6a992def5b43964b31042dc85b4523b439d1a79)

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

 app/views/catalog/_sandt_tree_show.html.haml | 5 +
 1 file changed, 5 insertions(+)

Comment 8 Dmitry Misharov 2018-04-18 11:31:09 UTC
Tested on 5.9.2.2.20180410215257_6961422. 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.

Comment 9 Dmitry Misharov 2018-04-18 11:31:21 UTC
Tested on 5.9.2.2.20180410215257_6961422. 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.

Comment 12 errata-xmlrpc 2018-05-07 20:46:50 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2018:1328


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