Bug 1557504

Summary: Ansible playbook credentials always show default value in SUI
Product: Red Hat CloudForms Management Engine Reporter: Shveta <sshveta>
Component: UI - ServiceAssignee: Allen W <awight>
Status: CLOSED CURRENTRELEASE QA Contact: Kedar Kulkarni <kkulkarn>
Severity: high Docs Contact:
Priority: high    
Version: 5.8.0CC: cpelland, dmisharo, kkulkarn, lavenel, obarenbo, simaishi, smallamp, sshveta
Target Milestone: GAKeywords: TestOnly, ZStream
Target Release: 5.10.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: ansible_embed
Fixed In Version: 5.10.0.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1565160 1565162 (view as bug list) Environment:
Last Closed: 2019-02-11 14:04:52 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1565160, 1565162    
Attachments:
Description Flags
Displayed credentials none

Description Shveta 2018-03-16 17:58:57 UTC
Created attachment 1408948 [details]
Displayed credentials

Description of problem: Reference bug - https://bugzilla.redhat.com/show_bug.cgi?id=1553484


Version-Release number of selected component (if applicable):

5.9.1.0.20180314203929_67fd99d

How reproducible:


Steps to Reproduce:
1.Enable Embedded Ansible Role
2.Add Ansible Playbooks Repository 
3.Add Credentials (let's say machine credentials)
4.Create a service catalog and catalog item for the ansible playbook 
5.Choose CFME Default Credentials or Machine credentials at the time of catalog item creation 
6.IN SUI try to order the service and choose the credentials from the dropdown which were not default for that service catalog item per step 5.
7. Always default credentials of step 5 are shown in service details page .
8. Login in OPS UI , credentials provided at the time of ordering will be shown .


Actual results:


Expected results:


Additional info:

Comment 3 Shveta 2018-03-19 20:05:22 UTC
In 5.9.0.22 , the credential provided at ordering a service was not overridden by the service(BZ - 1553484) , so whatever the default credential is shown in SSUI .
https://bugzilla.redhat.com/show_bug.cgi?id=1553484 was a regression in 5.9 though .

Comment 4 Sudhir Mallamprabhakara 2018-03-19 20:45:29 UTC
but this works in 5.8.3. is that correct??

Comment 5 Shveta 2018-03-19 20:56:32 UTC
Just checked in 5.8 , doesn't work in 5.8.3 as well.

Comment 6 Allen W 2018-03-21 13:04:50 UTC
Any chance of getting a machine to check this out?

Comment 11 Allen W 2018-04-03 13:37:52 UTC
so some words said here:https://bugzilla.redhat.com/show_bug.cgi?id=1540689 have helped shed light on this... gonna work from it from that angle...

Comment 12 Allen W 2018-04-03 21:00:05 UTC
Ok so we got a pr.. need to test it a bit to ensure its the right fix https://github.com/ManageIQ/manageiq-ui-service/pull/1417/files

Comment 13 Allen W 2018-04-05 15:57:46 UTC
And this pr was merged!

Comment 14 Allen W 2018-04-05 15:58:30 UTC
Woops but probably can't be post till its been backported

Comment 17 Satoe Imaishi 2018-04-09 14:04:07 UTC
*** Bug 1540689 has been marked as a duplicate of this bug. ***

Comment 18 Kedar Kulkarni 2018-07-02 19:03:31 UTC
on 5.10.0.2 I ordered service with two different credentials, Machine and CFME Default Credentials, and both showed up correctly in SSUI.