From c1462b7608be9c7b925009ec95c9bbed0c08d98c Mon Sep 17 00:00:00 2001
From: ramishra <ramishra@redhat.com>
Date: Wed, 24 Feb 2021 14:43:49 +0530
Subject: [PATCH] Don't try creating default admin and member roles

These are default roles and we don't need to create them for
ceph. Also swift user does not need admin role.

Closes-Bug: 1916756
Resolves: rhbz#1932208

Change-Id: I4d4c01d4ace8c51ae9f47f4dafd76bb3b5ed674f
---
 deployment/ceph-ansible/ceph-rgw.yaml | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/deployment/ceph-ansible/ceph-rgw.yaml b/deployment/ceph-ansible/ceph-rgw.yaml
index de0578b7a3..e7d622de35 100644
--- a/deployment/ceph-ansible/ceph-rgw.yaml
+++ b/deployment/ceph-ansible/ceph-rgw.yaml
@@ -127,13 +127,9 @@ outputs:
           users:
             swift:
               password: {get_param: SwiftPassword}
-              roles:
-                - admin
-                - member
           region: {get_param: KeystoneRegion}
           service: 'object-store'
           roles:
-            - member
             - ResellerAdmin
             - swiftoperator
       upgrade_tasks: {get_attr: [CephBase, role_data, upgrade_tasks]}