Skip to content

Supermicro Import fails #379

@jczmok-iag

Description

@jczmok-iag

Using the latest git checkout and in venv

i try to register a new X11 chassis (Node in QuadServer Chassis):

  1. it is recognized as Blade ?!?
  2. Import stops at PowerSupply creation (there is no in the Node, it is in the quadchassis)
Traceback (most recent call last):
  File "/root/nba/bin/netbox_agent", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/root/nba/lib/python3.11/site-packages/netbox_agent/cli.py", line 63, in main
    return run(config)
           ^^^^^^^^^^^
  File "/root/nba/lib/python3.11/site-packages/netbox_agent/cli.py", line 56, in run
    server.netbox_create_or_update(config)
  File "/root/nba/lib/python3.11/site-packages/netbox_agent/server.py", line 435, in netbox_create_or_update
    self.power = PowerSupply(server=self)
                 ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/nba/lib/python3.11/site-packages/netbox_agent/power.py", line 14, in __init__
    self.device_id = self.netbox_server.parent_device.id if self.netbox_server else None
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'id'
  1. Is there a way to tell the register it has no power supply ?
  2. what steps need to be added to netbox before ? or let just register the device with
    /etc/qualification:
    datacenter: DC1
    racklocation: 123

Please advise.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions