Bug 2222058

Summary: If another admin user exist in another domain beside the default one, tripleo-ansible breaks
Product: Red Hat OpenStack Reporter: David Hill <dhill>
Component: tripleo-ansibleAssignee: Takashi Kajinami <tkajinam>
Status: MODIFIED --- QA Contact: Joe H. Rahme <jhakimra>
Severity: low Docs Contact:
Priority: low    
Version: 16.2 (Train)CC: jslagle, tkajinam, visinha
Target Milestone: z2Keywords: Triaged
Target Release: 17.1Flags: ifrangs: needinfo? (tkajinam)
Hardware: x86_64   
OS: All   
Whiteboard:
Fixed In Version: tripleo-ansible-3.3.1-17.1.20230805102518.8b9c7c5.el9osttrunk Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 2227124 (view as bug list) Environment:
Last Closed: 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: 2227124    

Description David Hill 2023-07-11 17:41:14 UTC
Description of problem:
If another admin user exist in another domain beside the default one, deployment consistently fails
in tripleo-keystone-resources role because of the "Multiple matches found for admin" error.

```
2023-07-11 12:34:56,789 p=123456 u=mistral n=ansible | TASK [tripleo-keystone-resources : Assign admin role to admin project for admin user] ***
2023-07-11 12:34:56,789 p=123456 u=mistral n=ansible | Tuesday 11 July 2023  12:34:56 +0000 (0:00:01.234)       XX:XX:XX.XXX ********** 
2023-07-11 12:34:56,789 p=123456 u=mistral n=ansible | fatal: [undercloud]: FAILED! => {"changed": false, "msg": "Multiple matches found for admin"}
```


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


How reproducible:
Always

Steps to Reproduce:
1. Create a non-default domain
2. Create an "admin" user in that domain
3. Run deployment

Actual results:
Deployment consistently fails

Expected results:
Deployment succeeds without errors

Additional info:

Comment 1 Takashi Kajinami 2023-07-12 04:36:03 UTC
Please fill each field of the bug report. These are essential so that people can understand the prolblem. Also consider sharing the detail about that admin user in non default domai and the actual deployment error.

Although the reported problem sounds like legit, I'd prefer reviewing these information before we review/merge the proposed change.