Skip to content
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

[Doc Source]: Quickstart is missing information for cluster preparation #1605

Closed
cmontemuino opened this issue Mar 14, 2024 · 6 comments
Closed
Labels
kind/documentation Improvements or additions to documentation

Comments

@cmontemuino
Copy link

cmontemuino commented Mar 14, 2024

Are you reporting an issue with existing content?

Section "Label Mayastor Node Candidates" from "Quickstart -> Preparing the cluster" is not complete. The requisite is to label nodes with openebs.io/engine=mayastor, but if you set csi.​node.​topology.​nodeSelector, then label openebs.io/csi-node=mayastor is also required.

The situation is a bit more complicated with the agent-ha-node. Only by inspecting the chart I could realize it is using the selectors defined under the csi.node.topology section. This is very confusing.

Are you proposing new content, or a change to the existing documentation layout or structure?

  • Update the aforementioned quikstart section to mention the label openebs.io/csi-node=mayastor
  • Update the documentation for csi.​node.​topology.​nodeSelector element in chart values to include the agent-ha-node daemonset too.
    • Current doc: "Add topology segments to the csi-node daemonset node selector"
    • Proposed doc: "Add topology segments to the csi-node and agent-ha-node daemonset node selector"
    • Perhaps better: move the topology segments outside csi
@cmontemuino cmontemuino added the kind/documentation Improvements or additions to documentation label Mar 14, 2024
@cmontemuino
Copy link
Author

I can open a PR with proposed changes if required.

@tiagolobocastro
Copy link
Contributor

tiagolobocastro commented Mar 14, 2024

but it is also required to label them with openebs.io/csi-node=mayastor.

hmm it's not necessary, only if you want to control on which nodes to run - by default they will run on any node.

@cmontemuino
Copy link
Author

but it is also required to label them with openebs.io/csi-node=mayastor.

hmm it's not necessary, only if you want to control on which nodes to run - by default they will run on any node.

Yes, you're right. I've updated the description with this note:

... but if you set csi.​node.​topology.​nodeSelector, then label openebs.io/csi-node=mayastor is also required

It's kind of OKish if it was only the CSI Controller. Having the agent-ha-node daemonset using the same labels is a bit baffling. I still believe the documentation can be improved; otherwise there's no other action possible for users than looking at the chart implementation (as I had to do).

@tiagolobocastro
Copy link
Contributor

The agent-ha-node should run on the same nodes as the csi-nodes, but I agree it does make it confusing.

I suggest as a first step let's improve the docs; then maybe we can think about how to improve label usage somehow or even potentially joining ha-node in the same pod as the csi, though I'm not quite sure if it's a good idea to do that.

@cmontemuino
Copy link
Author

@tiagolobocastro
Copy link
Contributor

Completed by @cmontemuino

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

3 participants