Page MenuHomePhabricator

Spicerack module for Netbox
Closed, ResolvedPublic

Description

  • Make a netbox module which exposes an interface to get a particular host object
  • Make a debian package for pynetbox
  • Allow this object to set the status of the host to support commissioning and decommissioning

There are some additional minor changes pending.

Event Timeline

Change 493138 had a related patch set uploaded (by CRusnov; owner: CRusnov):
[operations/software/spicerack@master] Netbox module for Spicerack

https://gerrit.wikimedia.org/r/493138

Change 493138 had a related patch set uploaded (by CRusnov; owner: CRusnov):
[operations/software/spicerack@master] Netbox module for Spicerack

https://gerrit.wikimedia.org/r/493138

Mentioned in SAL (#wikimedia-operations) [2019-04-09T22:19:06Z] <chaomodus> uploaded python-pynetbox to apt.wikimedia.org/stretch-wikimedia (T217072)

Change 493138 merged by CRusnov:
[operations/software/spicerack@master] Netbox module for Spicerack

https://gerrit.wikimedia.org/r/493138

Test results of the module on cumin2001:

  • fetch_host() doesn't raise if no host is found and returns None, should probably raise
  • dry_run is not respected if using fetch_host() as the user can modify the object and call host.save(). I'm not sure what's the easy solution there.

At least the first one i

Test results of the module on cumin2001:

  • fetch_host() doesn't raise if no host is found and returns None, should probably raise

That's easy enough.

  • dry_run is not respected if using fetch_host() as the user can modify the object and call host.save(). I'm not sure what's the easy solution there.

We courld make a proxy of the host object that makes save() be a no-op.

Change 531331 had a related patch set uploaded (by CRusnov; owner: CRusnov):
[operations/software/spicerack@master] netbox: Make host private and add exception on not found

https://gerrit.wikimedia.org/r/531331

Change 531331 merged by jenkins-bot:
[operations/software/spicerack@master] netbox: Make host private and add exception on not found

https://gerrit.wikimedia.org/r/531331

Volans triaged this task as Medium priority.