Page MenuHomeDevCentral

Document hypervisor versions
ClosedPublic

Authored by dereckson on Feb 7 2023, 20:42.
Tags
None
Referenced Files
F3764547: D2782.diff
Fri, Nov 22, 06:36
Unknown Object (File)
Mon, Nov 18, 09:14
Unknown Object (File)
Mon, Nov 18, 04:54
Unknown Object (File)
Sat, Nov 16, 05:46
Unknown Object (File)
Fri, Nov 15, 23:17
Unknown Object (File)
Fri, Nov 15, 22:57
Unknown Object (File)
Fri, Nov 15, 21:51
Unknown Object (File)
Fri, Nov 15, 13:53
Subscribers
None

Details

Summary

Query NetBox to get devices, connect to ESXi hypervisors and run
vmware -v, publish if needed to actual_context local context data.

Ref T1762

Diff Detail

Repository
rOPS Nasqueron Operations
Lint
Lint Errors
SeverityLocationCodeMessage
Errorutils/netbox/document-hypervisors.py:136E713flake8 E713
Errorutils/netbox/document-hypervisors.py:162E501flake8 E501
Adviceutils/netbox/document-hypervisors.py:160F821flake8 F821
Unit
No Test Coverage
Branch
document-hypervisor
Build Status
Buildable 4408
Build 4675: arc lint + arc unit

Event Timeline

dereckson created this revision.

First pass :: update needed

$ utils/document-hypervisors.py
INFO:root:Query NetBox DCIM to get devices
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): netbox.nasqueron.org:443
DEBUG:urllib3.connectionpool:https://netbox.nasqueron.org:443 "GET /api/dcim/devices/?limit=0 HTTP/1.1" 200 7805
INFO:root:Documenting hyper-001
INFO:root:Connecting to 51.210.99.113
DEBUG:root:Version found: VMware ESXi 7.0.3 build-21053776
INFO:root:Saving new local context for hyper-001: version is VMware ESXi 7.0.3 build-21053776
DEBUG:urllib3.connectionpool:https://netbox.nasqueron.org:443 "PATCH /api/dcim/devices/1/ HTTP/1.1" 200 2710

Diff: https://netbox.nasqueron.org/extras/changelog/591/

Second pass :: no-op

$ utils/document-hypervisors.py
INFO:root:Query NetBox DCIM to get devices
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): netbox.nasqueron.org:443
DEBUG:urllib3.connectionpool:https://netbox.nasqueron.org:443 "GET /api/dcim/devices/?limit=0 HTTP/1.1" 200 7933
INFO:root:Documenting hyper-001
INFO:root:Connecting to 51.210.99.113
DEBUG:root:Version found: VMware ESXi 7.0.3 build-21053776
This revision is now accepted and ready to land.Feb 7 2023, 21:04
This revision was landed with ongoing or failed builds.Feb 7 2023, 21:05
This revision was automatically updated to reflect the committed changes.