Bug 1540689
| Summary: | [Embedded Ansible] Service UI - MyServices - Credentials do not show(Shows default CFME Creds) | ||
|---|---|---|---|
| Product: | Red Hat CloudForms Management Engine | Reporter: | Kedar Kulkarni <kkulkarn> |
| Component: | UI - Service | Assignee: | Allen W <awight> |
| Status: | CLOSED DUPLICATE | QA Contact: | Kedar Kulkarni <kkulkarn> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 5.8.0 | CC: | bascar, cpelland, dclarizi, gmccullo, lavenel, obarenbo, simaishi |
| Target Milestone: | GA | Flags: | kkulkarn:
automate_bug+
|
| Target Release: | cfme-future | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | ansible_embed | ||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2018-04-09 14:04:07 UTC | Type: | Bug |
| 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: | |||
|
Description
Kedar Kulkarni
2018-01-31 18:47:32 UTC
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 |