Giter Club home page Giter Club logo

Comments (18)

Solvik avatar Solvik commented on August 12, 2024

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.

wolfman2g1 avatar wolfman2g1 commented on August 12, 2024

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.

Solvik avatar Solvik commented on August 12, 2024

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.

wolfman2g1 avatar wolfman2g1 commented on August 12, 2024

All the supermicro servers i've used in the past few years start with SYS including their microcloud( these considered blades?).

from netbox-agent.

Solvik avatar Solvik commented on August 12, 2024

Microcloud are considered blade from my point of view, especially if dmidecode mentions a Slot

from netbox-agent.

wolfman2g1 avatar wolfman2g1 commented on August 12, 2024

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.

Solvik avatar Solvik commented on August 12, 2024

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.

Solvik avatar Solvik commented on August 12, 2024

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.

wolfman2g1 avatar wolfman2g1 commented on August 12, 2024

from netbox-agent.

wolfman2g1 avatar wolfman2g1 commented on August 12, 2024

I'm free to test the branch today. which branch should I test ?

from netbox-agent.

Solvik avatar Solvik commented on August 12, 2024

from netbox-agent.

wolfman2g1 avatar wolfman2g1 commented on August 12, 2024

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.

Solvik avatar Solvik commented on August 12, 2024

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.

wolfman2g1 avatar wolfman2g1 commented on August 12, 2024

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.

wolfman2g1 avatar wolfman2g1 commented on August 12, 2024

deployed on another 6 boxes. All throw the error above however everything else seems to be working fine.

from netbox-agent.

Solvik avatar Solvik commented on August 12, 2024

You're not the first one to raise this error to me, what netbox version are you using ?

from netbox-agent.

wolfman2g1 avatar wolfman2g1 commented on August 12, 2024

from netbox-agent.

Solvik avatar Solvik commented on August 12, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.