Comments (18)
It's because of this code line:
https://github.com/Solvik/netbox-agent/blob/master/netbox_agent/vendors/supermicro.py#L27
We should be more specific in the detection of blade or not based on the product number. Do you have more information for that ?
Forcing server or blade with the command line could be a nice addition I'll open an issue for that
from netbox-agent.
Sure what kind of information do you need? Also do you need help with the project?
This is the product page.
https://www.supermicro.com/products/system/1U/1029/SYS-1029U-E1CRTP.cfm
from netbox-agent.
The blade detection system is based per manufacturer.
With manufacturers like Dell, it's pretty easy, blade's product number always begins with MXXX
(M610, M640 etc)
It's also true with HP, but I have a feeling that it's less easy with Supermicro... they tend to have false dmidecode infos and their product number doesn't reflect the "am I a blade or a pizza box" part
If you have a better understanding of their products and know a generic way to check that, I'd be very happy to implement it !
Regarding help with the project, it's more than welcome ! It was a personal project that I thought could be interesting for other netbox user, so I'm always happy to implement or merge additional features!
from netbox-agent.
All the supermicro servers i've used in the past few years start with SYS including their microcloud( these considered blades?).
from netbox-agent.
Microcloud are considered blade from my point of view, especially if dmidecode mentions a Slot
from netbox-agent.
From what I've noticed their product numbers aren't something that's predictable. I think to handle that programmatically would be difficult( at least for me). I have someone working with me to look at solutions. But I think being able to pass an option like is_blade: True|False when the detected vendor is supermicro may be an easy way to do it.
from netbox-agent.
I understand
The agent will need to know the S/N of the chassis to do the lookup, and its blade slot to correctly assign the server to the blade.
I will see if I can work on this additional feature this week
from netbox-agent.
It adds more complexity to the agent, so I preferred to rework the supermicro blade/pizza detection, would you be able to try the branch supermicro
?
from netbox-agent.
from netbox-agent.
I'm free to test the branch today. which branch should I test ?
from netbox-agent.
from netbox-agent.
I assume i need to pass an option
if self.is_blade():
File "/tmp/netbox/netbox_agent/vendors/supermicro.py", line 26, in is_blade
product_name = self.get_product_name()
File "/tmp/netbox/netbox_agent/vendors/supermicro.py", line 52, in get_product_name
if self.is_blade():
File "/tmp/netbox/netbox_agent/vendors/supermicro.py", line 26, in is_blade
product_name = self.get_product_name()
File "/tmp/netbox/netbox_agent/vendors/supermicro.py", line 52, in get_product_name
if self.is_blade():
File "/tmp/netbox/netbox_agent/vendors/supermicro.py", line 26, in is_blade
product_name = self.get_product_name()
RecursionError: maximum recursion depth exceeded
from netbox-agent.
No, I just forgot I didn't implement supermicro server compatibilty
I've checked the code and fixed some stuff and added more tests
I got a dmidecode of a some kind of blade system to test it
Could you retry?
from netbox-agent.
seems better. still getting an error.
File "/tmp/netbox/netbox_agent/cli.py", line 39, in run
server.netbox_create_or_update(config)
File "/tmp/netbox/netbox_agent/server.py", line 306, in netbox_create_or_update
if server.name != self.get_hostname():
AttributeError: 'NoneType' object has no attribute 'name'
will use the new branch to test other systems. but the box I just tested on is a model that I was having the issue with previously
from netbox-agent.
deployed on another 6 boxes. All throw the error above however everything else seems to be working fine.
from netbox-agent.
You're not the first one to raise this error to me, what netbox version are you using ?
from netbox-agent.
from netbox-agent.
I'm closing this issue since I've merge the supermicro modifications
I'll open another to fix the server.name
problem
from netbox-agent.
Related Issues (20)
- error on IPMI interface HOT 2
- Several fields on the cable API serializers have been altered or removed to support multiple-object cable terminations HOT 4
- Interfaces in virtual machines need to use different endpoint HOT 3
- the script cannot create an ip address HOT 2
- how to integrate automatic scanning/discovery in HP enclosures:blades ? HOT 1
- Project dependencies may have API risk issues HOT 3
- netbox 3.3.9 HOT 3
- A brief description of the fields in netbox_agent.yaml that netbox-agent can work with. HOT 2
- serial: This field may not be null. (on disks?) HOT 1
- detailed project dependencies needed. HOT 1
- Problem adding interfaces HOT 1
- lldm.py return error: current_dict[final] = value, TypeError HOT 3
- (config.py): no verify ssl doesnt parse with python<3.9 HOT 2
- Error when querying VLANs that are duplicated across datacenters | ValueError: get() returned more than one result HOT 1
- AttributeError: 'NoneType' object has no attribute 'id' HOT 2
- [Feature] Create Site if not exists
- Error installing HOT 1
- inventory remote machines HOT 1
- Supermicro only baseboard serial number set
- netbox_agent==0.7.2 not available on pip HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from netbox-agent.