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

Add a device to multiple clusters #9029

Closed
remram44 opened this issue Apr 4, 2022 · 4 comments
Closed

Add a device to multiple clusters #9029

remram44 opened this issue Apr 4, 2022 · 4 comments
Labels
type: feature Introduction of new functionality to the application

Comments

@remram44
Copy link

remram44 commented Apr 4, 2022

NetBox version

8971109c8ad6 (v3.0.9)

Feature type

Change to existing functionality

Proposed functionality

Allow a single device to be in multiple clusters.

Use case

For example, I have joined some machines to a Kubernetes cluster and a subset of those to a Ceph cluster as well. However if I add a machine to my Kubernetes cluster I can't add them to my Ceph cluster.

I could use a "service" for Ceph, but I would need to mention which Ceph cluster in the name of the service, which really seems like this is not the right way.

Another example would be if I wanted to be explicit about etcd or manage it manually. Those machines would probably overlap with the Kubernetes cluster.

Database changes

cluster is currently a field in the Device model, needs to change to a many-to-many relationship.

External dependencies

No response

@remram44 remram44 added the type: feature Introduction of new functionality to the application label Apr 4, 2022
@jeremystretch
Copy link
Member

The cluster model in NetBox is intended to model virtual compute instances; clustered storage would likely need an entirely separate model to be feasible. Given this, I don't think it makes sense to allow a physical devices to serve multiple clusters.

@remram44
Copy link
Author

remram44 commented Apr 5, 2022

I see. That makes sense to me.

What is the correct way to represent "a group of devices providing a service"? Using "service" for this does not allow to e.g. find all devices that are part of the group, and "device role" has the same single-relationship limitation.

@jeremystretch
Copy link
Member

What is the correct way to represent "a group of devices providing a service"?

This has come up in a few different contexts I think and the idea goes by a few names: business application, service group, etc. I don't think it's every been really well-defined in an FR, but you're certainly welcome to open one. Or maybe start a discussion first to see if we can identify a common set of needs among users given the ambiguous nature of the concept.

I'm going to close out this FR as I don't think it ultimately meets your needs.

@remram44
Copy link
Author

remram44 commented Apr 7, 2022

Alright, no problem. I found #1591 which might help, I will check out the new version.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 6, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: feature Introduction of new functionality to the application
Projects
None yet
Development

No branches or pull requests

2 participants