-
Notifications
You must be signed in to change notification settings - Fork 69
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
Unable to add VMs from Cluster located on two sites #301
Comments
Hey, Have you tried creating a new site manually which represents both sites "virtual-site-a-and-side-b" and assign this via |
Yes, but but dozens of physical servers already assigned to different sites and racks on these sites. And I got an error if I try to assign the cluster: "XX devices are assigned as hosts for this cluster but are not in site YY" So in my opinion the best way to allow the site of the Cluster be empty in such cases |
Hhmmm, valid point, I probably can add a config option to disable the assignment of a site to the vm. But then the host tracking will not work. Fo you have host_tracking enabled? |
Thanks! I think this option will be good for the particular cluster in config. I have only one cluster like this, the others are located on the one site. |
Hi, we have similar issue and after some thought our proposal for this would be the following:
Still looking which all the parts need to change to make this happen, so any help would be highly appreciated :) |
Hi, Thank you for this idea. I'm currently unsure if a cluster can have multiple sites. That way it should not matter if site is taken from host or cluster. Maxbe that changed in newer NetBox versions. |
Hi, Yes it is possible to make cluster without site, composed from hosts on multiple sites. |
Hi, I just tried it out myself and got it to work. However, I still have to make the whole thing nice and document it, then I can post a pull request if you like. What do you think of the keyword "None" @bb-Ricardo? That would look like this: |
Hi, Great that you already have working code. Just wondering if there would be a conflict if someone hase a site which is literally called |
Hi, I only have two more ideas 😃 What do you think? |
I would suggest to use a special character and None. Like:
What do you think? |
That's a great idea! I prefer Pull request coming up #333 |
Hey @smasharov and @IPFox, the pull request #333 has just been merged. You you be able to checkout development and test the changes. Thank you @worldworm for this PR. |
Hi, As per my initial testing this seems to be working as expected. |
thanks, I have finally tested it today and it works now as expected |
I have a big cluster located on two different sites with several hundreds VMs. Site field is now empty and it is impossible to set it because hosts are located on the different sites. The script tries to set site for the cluster, but get an error from Netbox and all further steps are also failed.
Is it possible to somehow leave the site of the cluster empty?
The text was updated successfully, but these errors were encountered: