This is set of general MAAS scripts used for daily troubleshooting and maintenance.
Check MAAS services, consulting systemd / snap, API output and tries to connect to relevant ports to check certificates and availabibility. Tests MAAS, Candid and RBAC
Wrap the actions required to update certs on MAAS, Candid and RBAC
Generate a local simplestreams mirror, provided by NGINX
List DNS entries configured in MAAS
List fabrics with no machines connected to it. MAAS generates empty fabrics for unconnected NICs during enlistment / commissioning and depending on the environment this can get to a high number which would impact performance
maas machines read on big environments usually takes a long time due to some
ORM serialization that is done. This is an attempt to parallelize the read
by querying the machines per fabric.
Read MAAS events to detect machine status changes.
Directly query MAAS database to list the machines and some attributes. It is much faster than API call. Can be used as an example, but may break between MAAS releases
LP#2049661 workaround