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

Bulk Import behavior #19026

Open
sepetuks opened this issue Mar 27, 2025 · 3 comments
Open

Bulk Import behavior #19026

sepetuks opened this issue Mar 27, 2025 · 3 comments
Labels
status: revisions needed This issue requires additional information to be actionable type: bug A confirmed report of unexpected behavior in the application

Comments

@sepetuks
Copy link

sepetuks commented Mar 27, 2025

Deployment Type

Self-hosted

NetBox Version

v.4.2.6

Python Version

3.12

Steps to Reproduce

  1. Select IPAM-> prefixes and bulk import
  2. put your bulk import data.
  3. In the middle of data make a mistake that the import would fail (lets say define wrong VRF)

The same applies to some other objects where name/item uniqueness is not being checked (VRFs, Chassis and etc.)
Issue was noticed to happen when we upgraded to 4.2.1 (on some earlier version 4.1.7 it was behaving ok), and still persists in 4.2.6

Expected Behavior

None of the data should imported if there are any errors on data.

Observed Behavior

Data up to the the failing line was imported.
Error where the failure occurred is shown for some time and then disappears.
It is not clear which part of data import was successful (especially if you miss that error popup).
If you try to load data again you get duplicate records (in this case prefixes) again till the failing line.

@sepetuks sepetuks added status: needs triage This issue is awaiting triage by a maintainer type: bug A confirmed report of unexpected behavior in the application labels Mar 27, 2025
@arthanson
Copy link
Collaborator

@sepetuks Thank you for opening a bug report. I was unable to reproduce the reported behavior on NetBox v4.3.6. Please re-confirm the reported behavior on the current stable release and adjust your post above as necessary. Remember to provide detailed steps that someone else can follow using a clean installation of NetBox to reproduce the issue. Remember to include the steps taken to create any initial objects or other data.

I tried the following with the second line being incorrect and I received the correct error and nothing was imported. Can you please provide the reproduction steps and very short sample css that can replicate the issue.

prefix,status,vrf
11.100.0.0/15,active,Alpha
12.100.0.0/15,active,XEEEE

Image

@arthanson arthanson added status: revisions needed This issue requires additional information to be actionable and removed status: needs triage This issue is awaiting triage by a maintainer labels Mar 28, 2025
@TadasNRK
Copy link

Hello all,

I'm able to reproduce this issue in NetBox Community v4.2.6 by adding "vlan_group" to an import data.

prefix status vrf vlan_group
192.168.100.0/22 active abc mygroup1
10.113.128.128/29 active dbc mygroup1
10.116.0.129/29 active efg mygroup1
10.1.29.0/24 active ghj mygroup1

In the third line I did add wrong prefix to have an error. After doing bulk import the first 2 prefixes were created.

Regards,
Tadas

@sepetuks
Copy link
Author

sepetuks commented Apr 6, 2025

I want to know that this behavior (importing part of data till first error) is happening in other places as well (I also observed that in devices import). Of course device import checks device name existance and second try to import gives error that some part of devices from import already exists. In any case that is very complicated to track which part of data was imported.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: revisions needed This issue requires additional information to be actionable type: bug A confirmed report of unexpected behavior in the application
Projects
None yet
Development

No branches or pull requests

3 participants