Functionality for checking integrity of instances¶
Note
For this functionality to work, you must correctly configure the afick
service.
Note
The integrity check functionality is only supported on AccentOS CE modules.
It is necessary to install and configure aos-agent on all nodes where integrity checking is planned.
For correct operation, it is necessary to add a section to the
nova.conf
file for all hosts withaos-agent
:[oslo_messaging_notifications] driver = messagingv2
To enable integrity checking, you need to go to hypervisors and select the “Enable Control” action:
After this, all instances of this hypervisor will be locked (will be visible by the “lock” icon):
Regular user cannot perform any actions on a locked inctance (actions will be available, but when trying to perform them, a message will appear stating that it cannot be performed).
The status of the signed instance can be seen on the Administrator – Hypervisors tab:
Green - integrity is not broken;
Red - integrity is broken;
Yellow - integrity may have been violated (if the instance was re-put under control, or control was launched for the hypervisor with already created instances).
If an integrity violation is detected for instance, it will be forcibly shut down:
If instances were created on the hypervisor before it was placed under control, they will receive the “Integrity Possibly Violated” status. For such instances, it is necessary to update the integrity state, for which the Cloud Administrator must perform the “Recalculate integrity” action.
Important
If the integrity of instance is compromised, it is not possible to restart it. In this case, it is recommended to recreate the instance.
Also, when placing the hypervisor under control, the BIOS folders used to launch instances are checked.
If an integrity violation is detected in one of the BIOS folders, the computing node will be put into maintenance mode, which will prevent the launch of new instances on this node.
To disable integrity checking, you need to go to hypervisors and select the “Disable control” action. In this case, all hypervisor instances are unlocked: