netbox-agent/netbox_agent
Cyril Levis 776f951e3b
fix: hp inventory crash is controller return some warning
about the cache to be re-enable for example

```
DEBUG:urllib3.connectionpool:https://netbox.local:443 "GET /api/dcim/inventory-items/?device_id=9&tag=hw-disk&limit=0 HTTP/1.1" 200 52
('A cache backup failure has occurred. Please execute the "reenablecache" '
 'command')
Traceback (most recent call last):
  File "/usr/bin/netbox_agent", line 33, in <module>
    sys.exit(load_entry_point('netbox-agent==0.7.1', 'console_scripts', 'netbox_agent')())
  File "/opt/netbox-agent/lib/python3.6/site-packages/netbox_agent/cli.py", line 50, in main
    return run(config)
  File "/opt/netbox-agent/lib/python3.6/site-packages/netbox_agent/cli.py", line 43, in run
    server.netbox_create_or_update(config)
  File "/opt/netbox-agent/lib/python3.6/site-packages/netbox_agent/server.py", line 417, in netbox_create_or_update
    self.inventory.create_or_update()
  File "/opt/netbox-agent/lib/python3.6/site-packages/netbox_agent/inventory.py", line 547, in create_or_update
    self.do_netbox_disks()
  File "/opt/netbox-agent/lib/python3.6/site-packages/netbox_agent/inventory.py", line 417, in do_netbox_disks
    disks = self.get_hw_disks()
  File "/opt/netbox-agent/lib/python3.6/site-packages/netbox_agent/inventory.py", line 332, in get_hw_disks
    for raid_card in self.get_raid_cards(filter_cards=True):
  File "/opt/netbox-agent/lib/python3.6/site-packages/netbox_agent/inventory.py", line 242, in get_raid_cards
    self.raid = raid_class()
  File "/opt/netbox-agent/lib/python3.6/site-packages/netbox_agent/raid/hp.py", line 180, in __init__
    self.convert_to_dict()
  File "/opt/netbox-agent/lib/python3.6/site-packages/netbox_agent/raid/hp.py", line 185, in convert_to_dict
    controllers = _parse_ctrl_output(lines)
  File "/opt/netbox-agent/lib/python3.6/site-packages/netbox_agent/raid/hp.py", line 34, in _parse_ctrl_output
    attr, val = line.split(': ', 1)
```
2022-11-10 15:47:16 +01:00
..
drivers should have used git mv 2019-08-05 12:03:06 +02:00
raid fix: hp inventory crash is controller return some warning 2022-11-10 15:47:16 +01:00
vendors Added disks extended attributes 2022-03-02 15:53:38 +01:00
__init__.py Project cleanup (#6) 2019-08-04 00:00:22 +02:00
cli.py Various changes 2022-02-22 14:51:58 +01:00
config.py chore: update Help 2022-03-31 21:21:19 +02:00
dmidecode.py Setup tests 2020-02-02 20:24:01 +01:00
ethtool.py fix ethtool class in case ethtool works but returns nothing (#123) 2020-04-19 12:19:28 +02:00
inventory.py fix: crash if product or description None 2022-11-10 15:19:31 +01:00
ipmi.py Virtual Machine feature (#122) 2020-04-19 12:28:49 +02:00
lldp.py Fix for missing mgmt-ip in LLDP output (#225) 2022-06-20 13:13:31 +02:00
location.py Add tags,device roles,tenants.. (#110) 2020-07-01 18:54:58 +02:00
logging.py Virtual Machine feature (#122) 2020-04-19 12:28:49 +02:00
lshw.py Unnamed network interfaces. 2022-03-07 17:18:35 +01:00
misc.py Fix module platform has no attribute linux_distribution (#224) 2022-07-18 21:06:33 +01:00
network.py Fixed virtual network cards creation 2022-03-08 17:27:06 +01:00
power.py Added disks extended attributes 2022-03-02 15:53:38 +01:00
server.py Use platform id instead of record (#231) 2022-07-18 21:08:03 +01:00
virtualmachine.py Add Amazon EC2 to virtual machines (#236) 2022-08-08 15:37:13 +02:00