Bug 2169390 - ceph dashboard create new admin user
Summary: ceph dashboard create new admin user
Keywords:
Status: CLOSED COMPLETED
Alias: None
Product: Fedora
Classification: Fedora
Component: ceph
Version: 37
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Kaleb KEITHLEY
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-02-13 13:47 UTC by Sylvain Réault
Modified: 2023-12-16 06:57 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-12-16 06:57:24 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Ceph Project Bug Tracker 58845 0 None None None 2023-02-24 13:00:40 UTC

Description Sylvain Réault 2023-02-13 13:47:28 UTC
Description of problem:
Is not possible for me to create a admin user with used this command (command by ceph documentation : https://docs.ceph.com/en/quincy/mgr/dashboard/#enabling)
for the CEPH Dashboard.

Version-Release number of selected component (if applicable):
ceph/ceph-mgr-dashboard.noarch 17.2.5-1 last Fedora 37 update

How reproducible:
all time

Steps to Reproduce:
1.launch command : ceph dashboard ac-user-create admin -i pass.txt administrator
same result with : ceph dashboard ac-user-create admin -i /root/pass.txt administrator
2.
3.

Actual results:

[root@xxxxx ~]# ceph dashboard ac-user-create admin -i pass.txt administrator
Inferring fsid 19203ec2-xxxxxx-4c6c-bb6a-xxxxxxx
Inferring config /etc/ceph/ceph.conf
Using ceph image with id 'xxxxxxx' and tag 'v17' created on 2022-10-17 23:41:41 +0000 UTC
quay.io/ceph/ceph@sha256:xxxxxxxxxxxxxxxxxxxxxxxxx
Can't open input file pass.txt: [Errno 2] No such file or directory: 'pass.txt'
[root@xxxxxxxx ~]# ll
total 32
-rw-------. 1 root root  917 10 févr. 08:42 anaconda-ks.cfg
-rw-r--r--. 1 root root 2396 10 févr. 10:47 cephmon.mod
-rw-r--r--. 1 root root 2412 10 févr. 10:47 cephmon.pp
-rw-r--r--. 1 root root  943 10 févr. 10:47 cephmon.te
-rw-r--r--. 1 root root  675 13 févr. 04:15 csi-rbd-sc.yaml
-r--r-----. 1 root root    9 13 févr. 08:28 pass.txt


Expected results:
{"username": "admin", "password": "$2b$12$/xxxxxxxx.xxxxxxx", "roles": ["administrator"], "name": null, "email": null, "lastUpdate": xxxxxxx, "enabled": true, "pwdExpirationDate": null, "pwdUpdateRequired": false}

Additional info:

Comment 1 Sylvain Réault 2023-03-03 15:39:20 UTC
Hello,

I have launched this command with used "sudo ceph dashboard ac-user-create admin -i pass.txt administrator" and we have a good result :).

other commands need it necessary (ssl configuration by example) with used "sudo".

Comment 2 Aoife Moloney 2023-11-23 01:14:34 UTC
This message is a reminder that Fedora Linux 37 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 37 on 2023-12-05.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
'version' of '37'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, change the 'version' 
to a later Fedora Linux version. Note that the version field may be hidden.
Click the "Show advanced fields" button if you do not see it.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora Linux 37 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora Linux, you are encouraged to change the 'version' to a later version
prior to this bug being closed.


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