This PR adds a Generatortron called by the configure playbook which creates demo data.
Currently, this consists of some sensors, a couple of racks, PDUs, simple devices and a blade chassis.
Currently missing are:
A data center image for the plan view
Configuration of the racks and sensors on the plan view.
Non-rack non-sensor devices (these are probably not important).
Any connections for the power supplies to PDUs.
The Generatortron is unfortunately not replayable under all circumstances. The creation of sensors, racks and simple devices is skipped if a sensor/rack/device of the same name already exists. Unfortunately, it turns out that this is hard for blade chassis and blade servers, so the Generatortron if the blade server or blade chassis has been created in a previous run.
Along the way, some issues with creating and deleting devices have been discovered and "fixed". These issues seem to be limited to the creation of non-simple devices (chassis?), aka blade chassis. The creation of them attempts to create an event via the LegacyEventsGenerator. I do not know what that is or where it comes from. However, as it has "legacy" in its name I suspect that we may not need it. The code that created those events is now a no-op.
Also included in the PR are some fixes for spotting typos in the vagrant commands I run.
This PR adds a
Generatortron
called by theconfigure
playbook which creates demo data.Currently, this consists of some sensors, a couple of racks, PDUs, simple devices and a blade chassis.
Currently missing are:
The
Generatortron
is unfortunately not replayable under all circumstances. The creation of sensors, racks and simple devices is skipped if a sensor/rack/device of the same name already exists. Unfortunately, it turns out that this is hard for blade chassis and blade servers, so theGeneratortron
if the blade server or blade chassis has been created in a previous run.Along the way, some issues with creating and deleting devices have been discovered and "fixed". These issues seem to be limited to the creation of non-simple devices (chassis?), aka blade chassis. The creation of them attempts to create an event via the
LegacyEventsGenerator
. I do not know what that is or where it comes from. However, as it has "legacy" in its name I suspect that we may not need it. The code that created those events is now a no-op.Also included in the PR are some fixes for spotting typos in the vagrant commands I run.