728x90
반응형
ceph-dashboard에서 object-storage 메뉴가 나오도록 권한 설정하는 법
요약
1. ceph-dashboard에서 object-storage 메뉴가 안나옴
2. rgw-api-admin-resource를 설정하면됨
설명
1. ceph-dashboard에서 object-storage 메뉴가 안나옴
2. rgw-api-admin-resource를 설정하면됨
admin으로 주면 됨
ceph dashboard set-rgw-api-admin-resource admin
왜 admin인지 보려면 radosgw-admin으로 user를 보면 됨
tools로 보자
$ k exec -it rook-ceph-tools-7884798859-hmxw6 -n rook-ceph -- /bin/bash
[rook@rook-ceph-tools-7884798859-hmxw6 /]$ ceph dashboard --help | grep get | grep rgw
dashboard get-rgw-api-access-key Get the RGW_API_ACCESS_KEY option value
dashboard get-rgw-api-admin-resource Get the RGW_API_ADMIN_RESOURCE option value
dashboard get-rgw-api-secret-key Get the RGW_API_SECRET_KEY option value
dashboard get-rgw-api-ssl-verify Get the RGW_API_SSL_VERIFY option value
[rook@rook-ceph-tools-7884798859-hmxw6 /]$ ceph dashboard get-rgw-api-access-key
G9F0CQ6TQ2LEWVZF58LO
[rook@rook-ceph-tools-7884798859-hmxw6 /]$ ceph dashboard get-rgw-api-admin-resource
admin
[rook@rook-ceph-tools-7884798859-hmxw6 /]$ ceph dashboard get-rgw-api-secret-key
tQ0yNryeAlclmVJiolH9eAAkRrR8RB6XGyNYCZUo
[rook@rook-ceph-tools-7884798859-hmxw6 /]$ ceph dashboard get-rgw-api-ssl-verify
False
access-key, secret-key가 어느 user에서 왔을까, 'dashboard-admin'
[rook@rook-ceph-tools-7884798859-hmxw6 /]$ radosgw-admin user info --uid="dashboard-admin" | grep _key
"access_key": "G9F0CQ6TQ2LEWVZF58LO",
"secret_key": "tQ0yNryeAlclmVJiolH9eAAkRrR8RB6XGyNYCZUo"
"swift_keys": [],
"temp_url_keys": [],
끝
728x90
반응형
'Storage > Ceph' 카테고리의 다른 글
ceph)mc cp로 클러스터간 데이터 옮기기 (0) | 2022.05.31 |
---|---|
Ceph) readonly 계정 만들기_radosgw,subuser,s3 policy (0) | 2022.04.25 |
Ceph)rgw instance 늘리기_ephemeral storage (0) | 2022.04.04 |
Ceph)osd resource limit 설정_계산공식 (0) | 2022.04.04 |
Ceph) ceph 상태 확인 명령어 (0) | 2022.03.14 |