Page MenuHomePhabricator

Create Scratch instance of Netbox
Closed, ResolvedPublic

Description

In order to support large-scale production-side testing of certain automations and similar things, we need an independent instance of Netbox so as to not potentially harm live production data with breaking changes before they are tested. This needs to be in production-side context because of the need to access external resources such as PuppetDB.

Event Timeline

Just my 2 cents, we should simply create a ganeti instance, make the IP assigned to netbox-next.wikimedia.org and setup a mechanism to periodically mirror the live database by pulling a dump. Some minor changes may have to be applied to the puppet since there are some assumptions made but they should be almost entirely parameterized in ways we need for this.

Change 601893 had a related patch set uploaded (by CRusnov; owner: CRusnov):
[operations/puppet@production] netbox: Configure for netbox-dev hosts

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

Change 601893 merged by CRusnov:
[operations/puppet@production] netbox: Configure for netbox-dev hosts

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

Mentioned in SAL (#wikimedia-operations) [2020-06-16T23:43:33Z] <crusnov@deploy1001> Started deploy [netbox/deploy@5251cf1]: Deploying Netbox to netbox-dev T253140

Mentioned in SAL (#wikimedia-operations) [2020-06-16T23:43:38Z] <crusnov@deploy1001> Finished deploy [netbox/deploy@5251cf1]: Deploying Netbox to netbox-dev T253140 (duration: 00m 05s)

Change 606040 had a related patch set uploaded (by CRusnov; owner: CRusnov):
[operations/puppet@production] acme_chief: Add netbox-dev keys

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

Change 606040 merged by CRusnov:
[operations/puppet@production] acme_chief: Add netbox-dev keys

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

@crusnov The following backups are configured but have been alerting for over a week as failing, as they are currently backing up nothing.

netbox-dev2001.wikimedia.org-Monthly-1st-Wed-production-netbox
netbox-dev2001.wikimedia.org-Monthly-1st-Wed-production-netbox-postgres

They should be either disabled or filled in with data to backup.

This is causing alert spam.

Thank you, I'll take care of it.

Change 607310 had a related patch set uploaded (by CRusnov; owner: CRusnov):
[operations/puppet@production] profile::netbox::postgres: Parameterize backups

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

Change 607310 merged by CRusnov:
[operations/puppet@production] profile::netbox: Parameterize backups

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

crusnov claimed this task.

This is complete.