-
Notifications
You must be signed in to change notification settings - Fork 70
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
Netbox Datacenter: None #154
Comments
do you still have the problem with the master branch? |
i just installed this on a new node (with pip3 install..). it should be the master branch. |
the full error message: root@server-xx-xx:~# netbox_agent -c /etc/netbox_agent.yml --register --debug |
pip3 install doesn't install the master branch but the latest release from what I understand, you don't have any datacenter which slugs equals |
Okay, so i use the latest release... Regarding the data: i didn't found a way to define netboxdatacenter and i used the respective parts in netbox.yaml: |
the datacenter is found with a search based on the |
on /api/dcim/sites the slug is 'somedatacenter-ltd' and actually in /etc/qualification it is also lowercase. in the api : But where is the definition (or where do you setup the " Netbox Datacenter and Netbocx Rack" ? |
Well. I sorted this out: "| tr [a-z] [A-Z]" does lower to uppercase transformation. bad for slugs. DEBUG:urllib3.connectionpool:http://netbox.xxxxx:80 "GET /api/dcim/sites/?slug=somedatacenter-ltd HTTP/1.1" 200 798 |
it's just a config example, but you're right I should change the example from uppercase to lowercase it'd be better if you could test with it so you have a better error thanks |
Traceback (most recent call last):
File "/usr/local/bin/netbox_agent", line 11, in
sys.exit(main())
File "/usr/local/lib/python3.5/dist-packages/netbox_agent/cli.py", line 44, in main
return run(config)
File "/usr/local/lib/python3.5/dist-packages/netbox_agent/cli.py", line 36, in run
server.print_debug()
File "/usr/local/lib/python3.5/dist-packages/netbox_agent/server.py", line 299, in print_debug
print('Netbox Rack:', self.get_netbox_rack())
File "/usr/local/lib/python3.5/dist-packages/netbox_agent/server.py", line 91, in get_netbox_rack
site_id=self.get_netbox_datacenter().id,
please advise whats wrong here.
he finds out datacetner correctly
and the rack as well.
The text was updated successfully, but these errors were encountered: