VM Import can generate duplicates #7074

Closed
opened 2025-12-29 20:18:56 +01:00 by adam · 2 comments
Owner

Originally created by @MattBoxIT on GitHub (Oct 5, 2022).

NetBox version

3.3.3

Python version

3.9

Steps to Reproduce

  1. Click on import VM
  2. Insert a VM with the same name, status, site and cluster as an existing VM

Expected Behavior

Error: A virtual machine with this name already exists in the assigned cluster

Observed Behavior

Import is succesful and the new VM with same name, status, site and cluster is generated.

The observed behavior happens once.
Trying to import the same VM again throws the error "Error: A virtual machine with this name already exists in the assigned cluster"

Originally created by @MattBoxIT on GitHub (Oct 5, 2022). ### NetBox version 3.3.3 ### Python version 3.9 ### Steps to Reproduce 1. Click on import VM 2. Insert a VM with the same name, status, site and cluster as an existing VM ### Expected Behavior Error: A virtual machine with this name already exists in the assigned cluster ### Observed Behavior Import is succesful and the new VM with same name, status, site and cluster is generated. The observed behavior happens once. Trying to import the same VM again throws the error "Error: A virtual machine with this name already exists in the assigned cluster"
adam added the type: bugstatus: revisions needed labels 2025-12-29 20:18:56 +01:00
adam closed this issue 2025-12-29 20:18:56 +01:00
Author
Owner

@kkthxbye-code commented on GitHub (Oct 5, 2022):

Thank you for opening a bug report. Unfortunately, the information you have provided is not sufficient for someone else to attempt to reproduce the reported behavior. Remember, each bug report must include detailed steps that someone else can follow on a clean, empty NetBox installation to reproduce the exact problem you're experiencing. These instructions should include the creation of any involved objects, any configuration changes, and complete accounting of the actions being taken. Also be sure that your report does not reference data on the public NetBox demo, as that is subject to change at any time by an outside party and cannot be relied upon for bug reports.

@kkthxbye-code commented on GitHub (Oct 5, 2022): Thank you for opening a bug report. Unfortunately, the information you have provided is not sufficient for someone else to attempt to reproduce the reported behavior. Remember, each bug report must include detailed steps that someone else can follow on a clean, empty NetBox installation to reproduce the exact problem you're experiencing. These instructions should include the creation of any involved objects, any configuration changes, and complete accounting of the actions being taken. Also be sure that your report does not reference data on the public NetBox demo, as that is subject to change at any time by an outside party and cannot be relied upon for bug reports.
Author
Owner

@MattBoxIT commented on GitHub (Oct 5, 2022):

I figured out that this only happens when VM to import has different tenant, so it should be the expected Behavior.

@MattBoxIT commented on GitHub (Oct 5, 2022): I figured out that this only happens when VM to import has different tenant, so it should be the expected Behavior.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#7074