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

Error importing devices #306

Closed
alarido opened this issue Jul 15, 2016 · 8 comments
Closed

Error importing devices #306

alarido opened this issue Jul 15, 2016 · 8 comments
Labels
type: bug A confirmed report of unexpected behavior in the application

Comments

@alarido
Copy link

alarido commented Jul 15, 2016

I get this error when I'm importing a device, no other error, no details:

image

@alarido
Copy link
Author

alarido commented Jul 15, 2016

It happens when you do not specify the Position and Face which are supposed to be optional.

BTW, thanks for netbox it's an awesome piece of software

@jeremystretch
Copy link
Member

We're going to need a lot more information to help you. Could you please indicate the version of software you're running and provide the CSV data you're attempting to import?

@alarido
Copy link
Author

alarido commented Jul 15, 2016

Sorry, I forgot.

Version 1.2.2, the CSV lines I tried:

Success:
devicename,devicetype,,serialnumber,sitename,rackname,deviceposition,devicefacingside

Failure:
devicename,devicetype,,serialnumber,sitename,rackname,,

Problem is devices I'm trying to import are non-racked I can't specify a position or facing side.

Thx in advance

@bellwood
Copy link
Contributor

bellwood commented Jul 15, 2016

#198 should cover this by allowing devices not in a rack with scope limited to (storage, work bench, etc)

We have quite a bit of n+1 switches/servers in house that would be great to have in the system.

I agree though that every laptop, monitor, tablet doesnt need to be in netbox but accounting for DCIM gear active or inactive would be nice

@jeremystretch
Copy link
Member

Rack position and face are optional fields. However, the format

devicename,devicetype,,serialnumber,sitename,rackname,,

is incorrect. The correct format is

name,device_role,manufacturer,model,platform,serial,site,rack,position,face

@alarido
Copy link
Author

alarido commented Jul 15, 2016

Sorry I was in a hurry and I replied fast and dirty so I missed the role and manufacturer fields

I'm correctly creating the CSV when I import just one line to test and I specify the face it works:

Success:
name,device_role,manufacturer,model,platform,serial,site,rack,position,face
name,device_role,manufacturer,model,platform,serial,site,rack,,face
Failure:
name,device_role,manufacturer,model,platform,serial,site,rack,position,
name,device_role,manufacturer,model,platform,serial,site,rack,,

@jeremystretch jeremystretch added the type: bug A confirmed report of unexpected behavior in the application label Jul 15, 2016
@jeremystretch
Copy link
Member

Can confirm this behavior in the v1.2.2 release, but not on the current develop branch. Looks like it was fixed yesterday as part of dd62caf.

Going to mark this closed, but please ask to re-open if you continue having problems with the next release.

@alarido
Copy link
Author

alarido commented Jul 19, 2016

Confirmed It's fixed in last stable version 1.3.0
Thx

@lock lock bot locked as resolved and limited conversation to collaborators Jan 22, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: bug A confirmed report of unexpected behavior in the application
Projects
None yet
Development

No branches or pull requests

3 participants