openflighthpc / concertim-ansible-playbook

Ansible playbook for building a Concertim appliance
Eclipse Public License 2.0
0 stars 0 forks source link

Add demo data when configuring vanilla MIA #12

Closed benarmston closed 1 year ago

benarmston commented 1 year ago

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:

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.