-
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
Can not start rook-ceph using multiple namespaces #3360
Comments
I built a helm chart to automate this: https://github.com/deinstapel/k8s-rook-ceph |
@phlogistonjohn please look at this commit: e755695 |
@leseb it turns out I got things working late yesterday but hadn't gotten back to update this issue yet. In my case I just studied the templates in the tests and the differences between the old tempates and found there were a few namespace values in the latter half of "common.yaml" I should not have changed to match my 2nd namespace. |
@phlogistonjohn Thanks, we will close this once my PR gets merged. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
@galexrt yes! Thanks! |
This same thing is burning me today - the docs do not sufficiently help you create this across namespaces. There is too much guessing and trying to interpret what something means. It has actual costs in terms of the time I have to bring up these clusters and try for the N-th time. |
@vsoch There are two ways that should help run multiple clusters in different namespaces:
|
@travisn so if I understand correctly, if I have an operator (e.g., namespace flux-operator) wouldn't I want to start this in its own namespace and then have the rook-ceph namespace storage available to it? I played around with starting the storage in the same namespace as our operator, and it might work with some tweaks, but I'd rather have separation of management. I can try with helm, but it looks like that article is just detailing how to change the namespace, and now how to access storage across namespaces. Unless I'm misunderstanding and I'm supposed to be deploying two operators to the same namespace? |
Correct, Rook is usually deployed in its own namespace, separate from the consumers. The storage class is what defines where Rook is running to provide the storage, which can be consumed from any namespace. I realize now I misunderstood your initial question. There is no need to change the default rook namespace. |
Gotcha! I think I figured this out through trial and error - at least trying to deploy my operator in the same namespace turned into disaster very quickly! I think I was able to narrow this down to some issue with the OSD "object storage daemon" not staring (see #11617 (comment)) and I suspect that relates to how I created my cluster nodes. I'm wondering if for these tutorials an example command (and/or config) using gcloud /eksctl could be provided? Likely if it can capture some of these details it would save a lot of new users some time in running into these issues! |
@vsoch If you're running in the cloud, consider the cluster-on-pvc example. Also, have you joined the rook slack? |
I did try the
I don't know how that is setup or created, and I'm not sure if any of these config examples correspond to the one shipped by the repository that I tried. I could join the slack, but I think the memory of our conversation (and others finding it) would be easier to find on GitHub issues, if that's OK? |
How about opening a new discussion instead of discussing on so many different old github issues? thanks |
I was posting on the GitHub issues with the relevant errors I was hitting - sorry this is wrong I couldn't have known. Usually when someone is google searching they will come upon the issue that matches their problem. I have a main issue here that I would consider akin to opening a discussion, but it's less discussion and more issue because there is probably some follow up work to docs needed. #11617 (comment) |
Is this a bug report or feature request?
Deviation from expected behavior:
From the provided documentation and example files it is unclear how to start a working ceph cluster via rook in a separate namespace.
Attempting to follow the recommendation of changing common.yaml below the line containing the text "Beginning of cluster-specific resources.".
The previous namespace value of "rook-ceph" is changed to "rook1".
Everything seems to start up ok at first but then the following appears in the logs:
As someone who is not an expert in RBAC its very unclear what else I am supposed to change.
Expected behavior:
More context and guidance in the documentation or comments in the YAML would be greatly welcome.
How to reproduce it (minimal and precise):
A new namespace rook1 was created. Namespace values in the "cluster specific resources" were edited to "rook1". Rook configured with started with ROOK_CURRENT_NAMESPACE_ONLY set to "false" and a new cluster cr is created in the "rook1" namespace. Rook fails to read status of the version discovery pod.
Environment:
uname -a
):rook version
inside of a Rook Pod):v1.0.0-154.g004f795
kubectl version
):Client Version: version.Info{Major:"1", Minor:"10+", GitVersion:"v1.10.0+d4cacc0", GitCommit:"d4cacc0", GitTreeState:"clean", BuildDate:"2018-12-06T18:30:39Z", GoVersion:"go1.11.2", Compiler:"gc", Platform:"linux/amd64"} Server Version: version.Info{Major:"1", Minor:"15", GitVersion:"v1.15.0", GitCommit:"e8462b5b5dc2584fdcd18e6bcfe9f1e4d970a529", GitTreeState:"clean", BuildDate:"2019-06-19T16:32:14Z", GoVersion:"go1.12.5", Compiler:"gc", Platform:"linux/amd64"}
ceph health
in the Rook Ceph toolbox):The text was updated successfully, but these errors were encountered: