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

Bypassing Machine Registrations and creating Machine Inventories in OS Management > Machine Inventories allows you to create an Elemental cluster #5

Closed
markusewalker opened this issue Sep 16, 2022 · 4 comments
Assignees

Comments

@markusewalker
Copy link

Setup

  • Rancher version: v2.6.8
  • Browser type & version: Chrome

Describe the bug

When navigating to OS Management, this is currently the default page that we see:

image

From how it is structured, you need to first create a machine registration before creating machine inventory. Once those are done, you will be able to create an Elemental cluster. However, you can get around this sequential workflow by simply clicking Machine Inventories > Create From YAML.

After you do this, you will now see the following in the OS Management Dashboard:

image

From a user standpoint, this seems to be counterintuitive as it is now unclear what I will need to do next. The question we need to ask is what is the workflow we expect users to perform? Because as of now, there are two methods in which you can create an Elemental Cluster:

  1. Create a machine registration, create a machine inventory, create Elemental cluster
  2. Create machine inventory, create machine registration, create Elemental cluster
    • Or even create machine inventory, create Elemental cluster (which is completely incorrect)

To Reproduce

  1. Setup Rancher and navigate to OS Management > Machine Inventories.
  2. Create a new machine inventory.
  3. Navigate back to OS Management > Dashboard and note that you are able to create an Elemental cluster.

Result
There are multiple methods to create an Elemental cluster rather than a single sequential order to follow.

Expected Result
There needs to be a clear method in how users will create an Elemental cluster from Rancher UI; there shouldn't be any guesswork.

@markusewalker markusewalker self-assigned this Sep 16, 2022
@nwmac nwmac transferred this issue from rancher/dashboard Sep 23, 2022
@markusewalker markusewalker removed their assignment Oct 4, 2022
@kwwii
Copy link

kwwii commented Oct 9, 2022

The original workflow was to create the Cluster first and then add the Machine Inventories. I think this needs to work both ways. @agracey Can you confirm?

@agracey
Copy link

agracey commented Oct 10, 2022

Yes, the only order that should matter is that a Machine Registration is created first. Maybe we should actually add a default entry here as part of the operator helm chart?

After that, we should be able to create the Cluster/SelectorTemplate before or after the target MachineInventory's exist.

The reason for this is that a user may want to set up all of the clusters for each location ahead of time then allow those clusters to provision as the hardware is shipped and turned on. Or a customer might want to have more control over provisioning and use some higher level automation.

@agracey
Copy link

agracey commented Oct 10, 2022

Just added this: rancher/elemental#407

@aalves08
Copy link
Member

Will close this issue as dashboard will be re-designed and a new implementation without theses steps will come soon. Thanks

@aalves08 aalves08 self-assigned this Oct 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants