agent configuration help #142
Labels
No labels
help wanted
need testing
status: accepted
status: discussing
type: bug
type: documentation
type: duplicate
type: enhancement
type:hardware
type: invalid
type: major feature
type: minor feature
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: DGNum/netbox-agent#142
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I'm pretty embarrassed to ask this but I've spent hours trying to sort this out with no luck.
I get
ValueError: get() returned more than one result. Check that the kwarg(s) passed are valid for this endpoint or use filter() or all() instead.
when running python3 -m netbox_agent.cli -c ./agent.yaml --register
Here is the /etc/qualification file ( where I suspect the real issue is)
DATACENTER:
id: dmin-1 # I've also tried setting this to the id number in the data base (1)
agent.yaml
Hi,
From reading the code, it seems that I didn't manage the case where you only specify the datacenter.
You should also specify the rack
I'll see if I can manage a PR to make your case work
Thanks for your help. In my situation, I have hundreds of servers already deployed and I currently don't have a good way of managing elevations ( hence netbox). My plan was to get all the gear in netbox then update their locations afterwards.
Ok :)
I understand the workflow and make sure it's supported
would you be able to test the #143 branch and let me know if it's ok for you ?
Thanks for the quick turn around!!.still getting an error but not the same error
the agent assumes that you have an existing
DeviceRole
called Server to be assigned to the server created or updatedMakes sense, is there a way to override this in the agent?
there's a PR in #110 that I didn't merge so I guess it's time
Thanks that would be awesome. I'm doing this manually to start but the plan is to wrap this all up with ansible. I'll Define the roles in the inventory.
Issue has been closed automatically, but I've also merged the role support that you can use by passing
--device.chassis_role my_chassis_role --device.blade_role my_blade_role
Let me know if it works for you
From the tests I've done everything's ok :)
I pulled the changes. I'm still having issues just different issues. I think maybe I just don't quite understand the info I need to provide.
I made the datacenter mandatory to create your device, you must specify the datacenter like: