Bug 2249812

Summary: [dashboard][rgw]: Create or Modify of user where user name contains '.' fails with error - 'The value is not valid.'
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Madhavi Kasturi <mkasturi>
Component: Ceph-DashboardAssignee: Nizamudeen <nia>
Status: CLOSED ERRATA QA Contact: Chaithra <ckulal>
Severity: medium Docs Contact: Akash Raj <akraj>
Priority: unspecified    
Version: 7.0CC: akraj, ceph-eng-bugs, cephqe-warriors, ckulal, jcaratza, nia
Target Milestone: ---   
Target Release: 7.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ceph-18.2.1-111.el9cp Doc Type: Bug Fix
Doc Text:
.Full names can now include dot in Ceph dashboard Previously, in the Ceph dashboard, it was not possible to create or modify a full name with a dot in it due to incorrect validation. With this fix, validation is properly adapted to include a dot in full names in Ceph dashboard.
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-06-13 14:23:26 UTC 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:

Description Madhavi Kasturi 2023-11-15 13:02:00 UTC
Description of problem:
create or Edit of user with username containing '.', eg: test.user fails with error " The value is not valid. "

Version-Release number of selected component (if applicable):
ceph version 18.2.0-122.el9cp

How reproducible:
Always

Steps to Reproduce:
1. ceph cluster deployed on 7.0
2. Create or  Edit of user with username containing '.' eg: test.user fails with 'The value is not valid.' 
3. Please note: the user creation and edit succeeds from CLI

snippet: 
1. user create 
[root@ceph-rgw-7-e863q4-node1-installer ~]# radosgw-admin user create --uid testuser --display-name test.user
{
    "user_id": "testuser",
    "display_name": "test.user",
    "email": "",
    "suspended": 0,
    "max_buckets": 1000,
    "subusers": [],
    "keys": [
        {
            "user": "testuser",
            "access_key": "NCTDCMYS7Q9M34JD4Y3V",
            "secret_key": "mlgVfiTwNsf3Ta0s5y3HFsE6FJcKM5BqXxAvVvuC"
        }
    ],
    "swift_keys": [],
    "caps": [],
    "op_mask": "read, write, delete",
    "default_placement": "",
    "default_storage_class": "",
    "placement_tags": [],
    "bucket_quota": {
        "enabled": false,
        "check_on_raw": false,
        "max_size": -1,
        "max_size_kb": 0,
        "max_objects": -1
    },
    "user_quota": {
        "enabled": false,
        "check_on_raw": false,
        "max_size": -1,
        "max_size_kb": 0,
        "max_objects": -1
    },
    "temp_url_keys": [],
    "type": "rgw",
    "mfa_ids": []
}

2. user edit -> suspend
[root@ceph-rgw-7-e863q4-node1-installer ~]# radosgw-admin user suspend --uid testuser
{
    "user_id": "testuser",
    "display_name": "test.user",
    "email": "",
    "suspended": 1,
    "max_buckets": 1000,
    "subusers": [],
    "keys": [
        {
            "user": "testuser",
            "access_key": "NCTDCMYS7Q9M34JD4Y3V",
            "secret_key": "mlgVfiTwNsf3Ta0s5y3HFsE6FJcKM5BqXxAvVvuC"
        }
    ],
    "swift_keys": [],
    "caps": [],
    "op_mask": "read, write, delete",
    "default_placement": "",
    "default_storage_class": "",
    "placement_tags": [],
    "bucket_quota": {
        "enabled": false,
        "check_on_raw": false,
        "max_size": -1,
        "max_size_kb": 0,
        "max_objects": -1
    },
    "user_quota": {
        "enabled": false,
        "check_on_raw": false,
        "max_size": -1,
        "max_size_kb": 0,
        "max_objects": -1
    },
    "temp_url_keys": [],
    "type": "rgw",
    "mfa_ids": []
}
Actual results:
Create or edit of user fails

Expected results:
Create or edit of user succeeds

Additional info:

PFA, the screen shot of error

Comment 6 errata-xmlrpc 2024-06-13 14:23:26 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 (Critical: Red Hat Ceph Storage 7.1 security, enhancements, and bug fix update), 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/RHSA-2024:3925

Comment 7 Red Hat Bugzilla 2024-10-12 04:25:13 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days