'데이터 엔지니어'로 성장하기

정리하는 걸 좋아하고, 남이 읽으면 더 좋아함

Storage/Ceph

Ceph) ceph-dashboard object-storage ui 보이게 설정

MightyTedKim 2022. 4. 21. 15:05
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
반응형