Skip to content

cannot create new Virtual Machine within a Cluster #10517

@fabricat

Description

@fabricat

NetBox version

v3.3.3

Python version

3.9

Steps to Reproduce

  1. select Organization > Sites > ➕ Add
  2. set field Name = "site1"
  3. click Create
  4. select Virtualization > Cluster Types > ➕ Add
  5. set field Name = "type1"
  6. click Create
  7. select Virtualization > Clusters > ➕ Add
  8. set field Name = "cluster1"
  9. set field Type = "type1"
  10. set field Site = "site1"
  11. click Create
  12. select Virtualization > Virtual Machines > ➕ Add
  13. set field Name = "vm1"
  14. set field Cluster = "cluster1"
  15. leave the Site field empty
  16. click Create

Expected Behavior

A new VM "vm1" should be created and associated with the selected Cluster "cluster1".

Observed Behavior

The VM is not created and the following error appears:

The selected cluster (cluster1 is not assigned to this site (None).

(Note: there is also a missing closed parenthesis in the error message)

If I create the VM selecting a Cluster and also a Site, the operation is successful.
This is probably related with #5303

Metadata

Metadata

Assignees

Labels

status: acceptedThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the application

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions