Fedora Account System
Red Hat Associate
Red Hat Customer
Description of problem: Even if you select Machine Credentials or anything else for ansible playbook service, in the Service UI, it shows "CFME Default Credential" and also does not show Cloud Credentials. Version-Release number of selected component (if applicable): 5.8.3.2 How reproducible: 100% Steps to Reproduce: 1.Enable Embedded Ansible 2.Add Ansible Repo 3.Add Machine and Cloud credentials 4.Create catalog item using this repo and cloud creds, leave machine creds to defaul CFME Creds 5.Order the service by selecting "Machine" creds from the credentials dropdown 5.Observe service details in SSUI Actual results: Service UI service details still showing CFME Default Creds and No Cloud Creds Expected results: Service UI service details should show Machine and Cloud creds Additional info:
Checked against Outcome 5.9.0.18 - SSUI does not show correct machine credentials 5.9.0.19 - SSUI does not show correct machine credentials 5.8.2.3 - SSUI does not show correct machine credentials as well as does not show any Cloud Credentials
Kedar - Can you provide a screenshot of the 5.9 UI and is there an appliance available that reproduces this issue that we can review?
The UI gets the credentials from service object. In its options there are two places for credentials - one from config_info, the other from dialog. config_info contains the definition of the original catalog item dialog contains overridden values at service ordering time. UI should use credentials from the dialog, and fall back the credentials from config_info only there is no value for credentials in dialog. Only machine credential can be overridden. Therefore UI should take the value for machine credential first from dialog, then if missing fall back to config_info. Cloud credentials can be only in config_info. The bug reported is because UI only read values from config_info. Example of a service object: options: config_info: provision: credential_id: 6 cloud_credential_id: 8 dialog: dialog_credential: 7 The correct result should be machine_credential = 7, cloud_credential = 8. The above rule only applies to provision. Retirement should take values from config_info because there is no dialog for retirement.
Thanks for that guidance Bill! I think this bz is kinda a dup of https://bugzilla.redhat.com/show_bug.cgi?id=1557504 watcha think Dan?
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
And this pr was merged, since target is future, we can post this thing!
*** This bug has been marked as a duplicate of bug 1557504 ***
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days