-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect Namespace Reference #11883
Comments
Seems like a dashboard issue expecting the nfs CR to be in the |
Is it hardcoded at ceph(mgr module) side? |
@coffee-time-design can you show the describe of |
Sorry where can I find that resource?
|
Can you check in |
Also:
As I have no such namespace. |
Looks ikt the cephnfses is not get created thats why you cant see the dashboard, Can you share the operator logs |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in a week if no further activity occurs. Thank you for your contributions. |
This issue has been automatically closed due to inactivity. Please re-open if this still requires investigation. |
I see this same issue with the dashboard module trying to call out to a non-existent
So the RBAC seems to be set up correct despite getting a 403 from the api. I went and poked around a bit and noticed some things that are hardcoded to https://github.com/ceph/ceph/blob/v17.2.6/src/pybind/mgr/rook/rook_cluster.py#L228 (there are a few more in there) |
Re-opening this, as looks like still any issue, will take try to reproduce it |
@mkhpalm Just to understand/confirm your setup: do you mean that you are not using the namespace |
Correct, there is no Looking at module.py the intention here in RookEnv look like it will infer the correct namespaces. https://github.com/ceph/ceph/blob/v17.2.6/src/pybind/mgr/rook/module.py#L51 But if you import https://github.com/ceph/ceph/blob/v17.2.6/src/pybind/mgr/rook/module.py#L41C27-L41C38 And all throughout that https://github.com/ceph/ceph/blob/v17.2.6/src/pybind/mgr/rook/rook_cluster.py#L683 Search the link above searching for the string |
@mkhpalm I think your analysis is correct as there are a lot of places where the namespace I'll let this issue open, in case you have a test setup it'd be awesome if you can test that |
The PR ceph/ceph#54151 should fix this issue. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in a week if no further activity occurs. Thank you for your contributions. |
This issue has been automatically closed due to inactivity. Please re-open if this still requires investigation. |
This issue should fixed on |
Bug Report
I get the following error when navigating to the NFS dashboard page on the Ceph dashboard.
NFS-Ganesha is not configured
Remote method threw exception: Traceback (most recent call last): File "/usr/share/ceph/mgr/nfs/module.py", line 154, in cluster_ls return available_clusters(self) File "/usr/share/ceph/mgr/nfs/utils.py", line 39, in available_clusters orchestrator.raise_if_exception(completion) File "/usr/share/ceph/mgr/orchestrator/_interface.py", line 228, in raise_if_exception raise e kubernetes.client.rest.ApiException: (403) Reason: Forbidden HTTP response headers: HTTPHeaderDict({'Audit-Id': '803e295f-e4c4-4cd9-b076-0f89f87fa312', 'Cache-Control': 'no-cache, private', 'Content-Type': 'application/json', 'X-Content-Type-Options': 'nosniff', 'X-Kubernetes-Pf-Flowschema-Uid': 'd431fe1b-f287-4c56-a98d-85fc76dafa64', 'X-Kubernetes-Pf-Prioritylevel-Uid': 'b00a33f8-691c-4c54-b663-8ee129f18627', 'Date': 'Tue, 07 Mar 2023 21:21:35 GMT', 'Content-Length': '360'}) HTTP response body: {"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"cephnfses.ceph.rook.io is forbidden: User \"system:serviceaccount:rook-rook-ceph:rook-ceph-mgr\" cannot list resource \"cephnfses\" in API group \"ceph.rook.io\" in the namespace \"rook-ceph\"","reason":"Forbidden","details":{"group":"ceph.rook.io","kind":"cephnfses"},"code":403}
Expected behavior:
It should display the page correctly.
How to reproduce it (minimal and precise):
I installed the latest helm chart.
I accidentally installed to the wrong namespace rook-rook-ceph, I'm sure if I installed to rook-ceph, this wouldn't be an issue.
Seems like the name space is hard coded somewhere to be rook-ceph.
The text was updated successfully, but these errors were encountered: