Closed rodvand closed 3 months ago
So the VM creation works if you define both the Site and Cluster in the process. However I feel this should not be needed as you assign a site to a cluster for a reason. The change also breaks any automation which doesn't currently define a site and cluster.
(I just noticed due to failing tests in the ansible collection).
Hi @rodvand, thanks for reporting this problem you've encountered in NetBox.
I have a hunch you're describing the same fundamental problem as captured in #15310 which I helped triage some weeks ago. Would you please take a look at that issue and join it if my hunch is correct? Otherwise please set me straight on the distinction and we'll move forward here.
I have a hunch you're describing the same fundamental problem as captured in #15310 which I helped triage some weeks ago. Would you please take a look at that issue and join it if my hunch is correct? Otherwise please set me straight on the distinction and we'll move forward here.
The issue I'm describing only appeared in 4.0.6, so I don't think it's the same issue. I think my issue is just a bit of a logic error in the PR I linked in the initial report.
Deployment Type
Self-hosted
NetBox Version
v4.0.6
Python Version
3.10
Steps to Reproduce
Expected Behavior
The virtual machine to be created without issues and be assigned to Cluster1.
Observed Behavior
An error is returned: "The selected cluster (Cluster1) is not assigned to this site (None)."
I suspect this is a regression from https://github.com/netbox-community/netbox/pull/15763