Bug 2222058 - If another admin user exist in another domain beside the default one, tripleo-ansible breaks
Summary: If another admin user exist in another domain beside the default one, tripleo...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: tripleo-ansible
Version: 16.2 (Train)
Hardware: x86_64
OS: All
low
low
Target Milestone: z1
: 17.1
Assignee: OSP Team
QA Contact: Joe H. Rahme
URL:
Whiteboard:
Depends On:
Blocks: 2227124
TreeView+ depends on / blocked
 
Reported: 2023-07-11 17:41 UTC by David Hill
Modified: 2023-09-20 00:30 UTC (History)
5 users (show)

Fixed In Version: tripleo-ansible-3.3.1-1.20230518201538.el9ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 2227124 (view as bug list)
Environment:
Last Closed: 2023-09-20 00:29:44 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 888142 0 None MERGED Add the admin role for admin in default domain 2023-08-16 06:04:07 UTC
Red Hat Issue Tracker OSP-26522 0 None None None 2023-07-11 17:44:57 UTC
Red Hat Product Errata RHBA-2023:5138 0 None None None 2023-09-20 00:30:15 UTC

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.

Comment 12 David Rosenfeld 2023-09-01 12:53:59 UTC
Used procedure from comment 7:

(undercloud) [stack@undercloud-0 ~]$ source ~/overcloudrc
(overcloud) [stack@undercloud-0 ~]$ openstack domain create nondefault
+-------------+----------------------------------+
| Field       | Value                            |
+-------------+----------------------------------+
| description |                                  |
| enabled     | True                             |
| id          | 6bede16a5f054e05bc3400367169f9d5 |
| name        | nondefault                       |
| options     | {}                               |
| tags        | []                               |
+-------------+----------------------------------+
(overcloud) [stack@undercloud-0 ~]$ openstack user create domainuser --domain nondefault
No password was supplied, authentication will fail when a user does not have a password.
+---------------------+----------------------------------+
| Field               | Value                            |
+---------------------+----------------------------------+
| domain_id           | 6bede16a5f054e05bc3400367169f9d5 |
| enabled             | True                             |
| id                  | 9a9ab48b27ee4628b7686b0bc4c1c09b |
| name                | domainuser                       |
| options             | {}                               |
| password_expires_at | None                             |
+---------------------+----------------------------------+

bash ~/overcloud_deploy.sh &> overcloud_install2.log

Overcloud Deployed successfully

Comment 18 errata-xmlrpc 2023-09-20 00:29:44 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Release of components for Red Hat OpenStack Platform 17.1.1 (Wallaby)), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2023:5138


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