Bug 1557504 - Ansible playbook credentials always show default value in SUI
Summary: Ansible playbook credentials always show default value in SUI
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: UI - Service
Version: 5.8.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: GA
: 5.10.0
Assignee: Allen W
QA Contact: Kedar Kulkarni
URL:
Whiteboard: ansible_embed
: 1540689 (view as bug list)
Depends On:
Blocks: 1565160 1565162
TreeView+ depends on / blocked
 
Reported: 2018-03-16 17:58 UTC by Shveta
Modified: 2019-02-11 14:04 UTC (History)
8 users (show)

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


Attachments (Terms of Use)
Displayed credentials (110.69 KB, image/png)
2018-03-16 17:58 UTC, Shveta
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1553484 0 high CLOSED [Embedded Ansible] Ansible Service does not pick up credentials from Service Dialog instead uses default credentials 2021-02-22 00:41:40 UTC

Internal Links: 1553484

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.


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