Bug 1794046

Summary: Tower provider throws error when using v2 api endpoint
Product: Red Hat CloudForms Management Engine Reporter: Satoe Imaishi <simaishi>
Component: ProvidersAssignee: Adam Grare <agrare>
Status: CLOSED CURRENTRELEASE QA Contact: Nandini Chandra <nachandr>
Severity: medium Docs Contact: Red Hat CloudForms Documentation <cloudforms-docs>
Priority: medium    
Version: 5.11.0CC: agrare, akarol, dmetzger, gocallag, greartes, guillaume.pavese, irshad.ahmed, jfrey, jhardy, mheppler, mparkins, ngupta, niroy, obarenbo, saali, simaishi
Target Milestone: GAKeywords: ZStream
Target Release: 5.11.2Flags: simaishi: cfme-5.11.z?
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: testathon
Fixed In Version: 5.11.2.1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1740860 Environment:
Last Closed: 2020-02-13 16:25:17 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: CFME Core Target Upstream Version:
Embargoed:
Bug Depends On: 1740860    
Bug Blocks:    

Comment 2 CFME Bot 2020-01-23 15:32:17 UTC
New commit detected on ManageIQ/manageiq-providers-ansible_tower/ivanchuk:

https://github.com/ManageIQ/manageiq-providers-ansible_tower/commit/02568cbf63ae1a81768bbd0061c7da66ae8a1b08
commit 02568cbf63ae1a81768bbd0061c7da66ae8a1b08
Author:     Jason Frey <jfrey>
AuthorDate: Thu Jan 23 10:21:02 2020 -0500
Commit:     Jason Frey <jfrey>
CommitDate: Thu Jan 23 10:21:02 2020 -0500

    Merge pull request #208 from agrare/bump_ansible_tower_client

    Bump ansible_tower_client to v0.20.2

    (cherry picked from commit 0b9e54c7730b723de374c6854bbe141b6a2f1758)

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

 manageiq-providers-ansible_tower.gemspec | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comment 3 Nandini Chandra 2020-02-03 20:37:01 UTC
Verified in 5.11.2.2

Comment 4 Nandini Chandra 2020-02-04 23:31:42 UTC
The issue is that Tower refresh failed even though credentials were successfully validated. The Tower refresh failed with this message :

 MIQ(ManageIQ::Providers::AnsibleTower::AutomationManager::Refresher#refresh) EMS: [Tower Automation Manager], id: [99000000000005] Unable to perform refresh for the following targets:
- undefined method `vault_password' for #<AnsibleTowerClient::Credential::Inputs:0x000055eea78a7578>  Method:[block (2 levels) in <class:LogProxy>]"

This issue doesn't occur if there is a Vault credential on the Tower setup.

I verified the issue on a 5.11.2.2 appliance managing Tower 3.6