You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
334 lines
13 KiB
PHP
334 lines
13 KiB
PHP
<?php
|
|
|
|
namespace App\Services\Cloud;
|
|
|
|
// Generated from agent/operation/recovery_contract.json. Do not edit.
|
|
// Regenerate: php tools/generate-recovery-contract.php
|
|
final class CloudOperationRecoveryContract
|
|
{
|
|
public const OPERATIONS = [
|
|
'action' => [
|
|
'recovery_mode' => 'generic',
|
|
'identity_scope' => 'instance',
|
|
'actions' => ['power-start', 'power-shutdown', 'power-reboot', 'power-reset', 'power-destroy'],
|
|
'action_patterns' => [],
|
|
'system_resolutions' => ['applied', 'not_applied'],
|
|
],
|
|
'reinstall' => [
|
|
'recovery_mode' => 'generic',
|
|
'identity_scope' => 'instance',
|
|
'actions' => ['reinstall-vm'],
|
|
'action_patterns' => [],
|
|
'system_resolutions' => ['applied', 'not_applied'],
|
|
],
|
|
'rescue' => [
|
|
'recovery_mode' => 'generic',
|
|
'identity_scope' => 'instance',
|
|
'actions' => ['enter-rescue', 'force-start-rescue', 'exit-rescue:connected', 'exit-rescue:suspended'],
|
|
'action_patterns' => [],
|
|
'system_resolutions' => ['applied', 'not_applied'],
|
|
],
|
|
'delete' => [
|
|
'recovery_mode' => 'generic',
|
|
'identity_scope' => 'instance',
|
|
'actions' => ['delete-vm'],
|
|
'action_patterns' => [],
|
|
'system_resolutions' => ['applied', 'not_applied'],
|
|
],
|
|
'delete_force' => [
|
|
'recovery_mode' => 'generic',
|
|
'identity_scope' => 'instance',
|
|
'actions' => ['force-delete-vm'],
|
|
'action_patterns' => [],
|
|
'system_resolutions' => ['applied', 'not_applied'],
|
|
],
|
|
'instance_migration_cleanup' => [
|
|
'recovery_mode' => 'generic',
|
|
'identity_scope' => 'instance',
|
|
'actions' => ['delete-vm'],
|
|
'action_patterns' => [],
|
|
'system_resolutions' => ['applied', 'not_applied'],
|
|
],
|
|
'instance_migration_prepare' => [
|
|
'recovery_mode' => 'generic',
|
|
'identity_scope' => 'instance',
|
|
'actions' => [],
|
|
'action_patterns' => ['^prepare-peer-migration:[a-f0-9]{32}$'],
|
|
'system_resolutions' => ['applied', 'not_applied'],
|
|
],
|
|
'instance_migration_transfer' => [
|
|
'recovery_mode' => 'generic',
|
|
'identity_scope' => 'instance',
|
|
'actions' => [],
|
|
'action_patterns' => ['^receive-peer-migration:[a-f0-9]{32}$'],
|
|
'system_resolutions' => ['applied', 'not_applied'],
|
|
],
|
|
'instance_migration_target_clean' => [
|
|
'recovery_mode' => 'generic',
|
|
'identity_scope' => 'instance',
|
|
'actions' => [],
|
|
'action_patterns' => ['^cleanup-peer-migration-target:[a-f0-9]{32}$'],
|
|
'system_resolutions' => ['applied', 'not_applied'],
|
|
],
|
|
'instance_migration_rollback' => [
|
|
'recovery_mode' => 'generic',
|
|
'identity_scope' => 'instance',
|
|
'actions' => [],
|
|
'action_patterns' => ['^rollback-peer-migration:[a-f0-9]{32}$'],
|
|
'system_resolutions' => ['applied', 'not_applied'],
|
|
],
|
|
'instance_migration_activate' => [
|
|
'recovery_mode' => 'generic',
|
|
'identity_scope' => 'instance',
|
|
'actions' => [],
|
|
'action_patterns' => ['^activate-peer-migration:[a-f0-9]{32}$'],
|
|
'system_resolutions' => ['applied', 'not_applied'],
|
|
],
|
|
'expiry_delete' => [
|
|
'recovery_mode' => 'generic',
|
|
'identity_scope' => 'instance',
|
|
'actions' => ['delete-vm'],
|
|
'action_patterns' => [],
|
|
'system_resolutions' => ['applied', 'not_applied'],
|
|
],
|
|
'network_change' => [
|
|
'recovery_mode' => 'generic',
|
|
'identity_scope' => 'instance',
|
|
'actions' => ['change-network'],
|
|
'action_patterns' => [],
|
|
'system_resolutions' => ['applied', 'not_applied'],
|
|
],
|
|
'instance_settings' => [
|
|
'recovery_mode' => 'generic',
|
|
'identity_scope' => 'instance',
|
|
'actions' => ['update-settings'],
|
|
'action_patterns' => [],
|
|
'system_resolutions' => ['applied', 'not_applied'],
|
|
],
|
|
'instance_upgrade' => [
|
|
'recovery_mode' => 'generic',
|
|
'identity_scope' => 'instance',
|
|
'actions' => ['resize-vm'],
|
|
'action_patterns' => [],
|
|
'system_resolutions' => ['applied', 'not_applied'],
|
|
],
|
|
'snapshot_create' => [
|
|
'recovery_mode' => 'generic',
|
|
'identity_scope' => 'instance',
|
|
'actions' => [],
|
|
'action_patterns' => ['^create-snapshot:[a-f0-9]{32}:(?:filesystem|crash)$'],
|
|
'system_resolutions' => ['applied', 'not_applied'],
|
|
],
|
|
'snapshot_restore' => [
|
|
'recovery_mode' => 'generic',
|
|
'identity_scope' => 'instance',
|
|
'actions' => [],
|
|
'action_patterns' => ['^restore-snapshot:[a-f0-9]{32}$'],
|
|
'system_resolutions' => ['applied', 'not_applied'],
|
|
],
|
|
'snapshot_delete' => [
|
|
'recovery_mode' => 'generic',
|
|
'identity_scope' => 'instance',
|
|
'actions' => [],
|
|
'action_patterns' => ['^delete-snapshot:[a-f0-9]{32}$'],
|
|
'system_resolutions' => ['applied', 'not_applied'],
|
|
],
|
|
'backup_create' => [
|
|
'recovery_mode' => 'generic',
|
|
'identity_scope' => 'instance',
|
|
'actions' => [],
|
|
'action_patterns' => ['^create-backup:[a-f0-9]{32}:(?:filesystem|crash)$'],
|
|
'system_resolutions' => ['applied', 'not_applied'],
|
|
],
|
|
'backup_workspace_cleanup' => [
|
|
'recovery_mode' => 'generic',
|
|
'identity_scope' => 'instance',
|
|
'actions' => [],
|
|
'action_patterns' => ['^cleanup-backup-workspace:[a-f0-9]{32}$'],
|
|
'system_resolutions' => ['applied', 'not_applied'],
|
|
],
|
|
'backup_recover' => [
|
|
'recovery_mode' => 'generic',
|
|
'identity_scope' => 'instance',
|
|
'actions' => [],
|
|
'action_patterns' => ['^recover-backup:[a-f0-9]{32}:[a-f0-9]{64}$'],
|
|
'system_resolutions' => ['applied', 'not_applied'],
|
|
],
|
|
'firewall_apply' => [
|
|
'recovery_mode' => 'generic',
|
|
'identity_scope' => 'instance',
|
|
'actions' => ['apply-firewall'],
|
|
'action_patterns' => [],
|
|
'system_resolutions' => ['applied', 'not_applied'],
|
|
],
|
|
'vpc_host_apply' => [
|
|
'recovery_mode' => 'generic',
|
|
'identity_scope' => 'instance',
|
|
'actions' => [],
|
|
'action_patterns' => ['^apply-vpc-network:[a-f0-9]{32}$'],
|
|
'system_resolutions' => ['applied', 'not_applied'],
|
|
],
|
|
'vpc_host_remove' => [
|
|
'recovery_mode' => 'generic',
|
|
'identity_scope' => 'instance',
|
|
'actions' => [],
|
|
'action_patterns' => ['^remove-vpc-network:[a-f0-9]{32}$'],
|
|
'system_resolutions' => ['applied', 'not_applied'],
|
|
],
|
|
'vpc_port_attach' => [
|
|
'recovery_mode' => 'generic',
|
|
'identity_scope' => 'instance',
|
|
'actions' => ['apply-vpc-port'],
|
|
'action_patterns' => [],
|
|
'system_resolutions' => ['applied', 'not_applied'],
|
|
],
|
|
'vpc_port_detach' => [
|
|
'recovery_mode' => 'generic',
|
|
'identity_scope' => 'instance',
|
|
'actions' => ['remove-vpc-port'],
|
|
'action_patterns' => [],
|
|
'system_resolutions' => ['applied', 'not_applied'],
|
|
],
|
|
'service_suspend' => [
|
|
'recovery_mode' => 'generic',
|
|
'identity_scope' => 'instance',
|
|
'actions' => ['service-suspend'],
|
|
'action_patterns' => [],
|
|
'system_resolutions' => ['applied', 'not_applied'],
|
|
],
|
|
'network_suspend' => [
|
|
'recovery_mode' => 'generic',
|
|
'identity_scope' => 'instance',
|
|
'actions' => ['network-suspend'],
|
|
'action_patterns' => [],
|
|
'system_resolutions' => ['applied', 'not_applied'],
|
|
],
|
|
'network_resume' => [
|
|
'recovery_mode' => 'generic',
|
|
'identity_scope' => 'instance',
|
|
'actions' => ['network-resume'],
|
|
'action_patterns' => [],
|
|
'system_resolutions' => ['applied', 'not_applied'],
|
|
],
|
|
'template_import_replica' => [
|
|
'recovery_mode' => 'generic',
|
|
'identity_scope' => 'catalog',
|
|
'actions' => ['import-template'],
|
|
'action_patterns' => [],
|
|
'system_resolutions' => ['applied', 'not_applied'],
|
|
],
|
|
'template_metadata_replica' => [
|
|
'recovery_mode' => 'generic',
|
|
'identity_scope' => 'catalog',
|
|
'actions' => ['update-template'],
|
|
'action_patterns' => [],
|
|
'system_resolutions' => ['applied', 'not_applied'],
|
|
],
|
|
'template_delete_replica' => [
|
|
'recovery_mode' => 'generic',
|
|
'identity_scope' => 'catalog',
|
|
'actions' => ['delete-template'],
|
|
'action_patterns' => [],
|
|
'system_resolutions' => ['applied', 'not_applied'],
|
|
],
|
|
'rescue_catalog_validate_replica' => [
|
|
'recovery_mode' => 'generic',
|
|
'identity_scope' => 'catalog',
|
|
'actions' => ['import-rescue-template'],
|
|
'action_patterns' => [],
|
|
'system_resolutions' => ['applied', 'not_applied'],
|
|
],
|
|
'rescue_catalog_import_replica' => [
|
|
'recovery_mode' => 'generic',
|
|
'identity_scope' => 'catalog',
|
|
'actions' => ['import-rescue-template'],
|
|
'action_patterns' => [],
|
|
'system_resolutions' => ['applied', 'not_applied'],
|
|
],
|
|
'rescue_catalog_delete_replica' => [
|
|
'recovery_mode' => 'generic',
|
|
'identity_scope' => 'catalog',
|
|
'actions' => ['delete-rescue-template'],
|
|
'action_patterns' => [],
|
|
'system_resolutions' => ['applied', 'not_applied'],
|
|
],
|
|
'user_iso_import_replica' => [
|
|
'recovery_mode' => 'generic',
|
|
'identity_scope' => 'catalog',
|
|
'actions' => ['import-user-iso'],
|
|
'action_patterns' => [],
|
|
'system_resolutions' => ['applied', 'not_applied'],
|
|
],
|
|
'user_iso_delete_replica' => [
|
|
'recovery_mode' => 'generic',
|
|
'identity_scope' => 'catalog',
|
|
'actions' => ['delete-user-iso'],
|
|
'action_patterns' => [],
|
|
'system_resolutions' => ['applied', 'not_applied'],
|
|
],
|
|
'create' => [
|
|
'recovery_mode' => 'create',
|
|
'identity_scope' => 'create',
|
|
'actions' => ['create-vm'],
|
|
'action_patterns' => ['^restore-backup:[a-f0-9]{32}$'],
|
|
'system_resolutions' => ['not_applied'],
|
|
],
|
|
'backup_restore' => [
|
|
'recovery_mode' => 'create',
|
|
'identity_scope' => 'create',
|
|
'actions' => [],
|
|
'action_patterns' => ['^restore-backup:[a-f0-9]{32}$'],
|
|
'system_resolutions' => ['not_applied'],
|
|
],
|
|
'host_storage_configure' => [
|
|
'recovery_mode' => 'storage',
|
|
'identity_scope' => 'storage',
|
|
'actions' => ['configure-storage'],
|
|
'action_patterns' => [],
|
|
'system_resolutions' => [],
|
|
],
|
|
'payment_create' => [
|
|
'recovery_mode' => 'payment',
|
|
'identity_scope' => 'none',
|
|
'actions' => [],
|
|
'action_patterns' => [],
|
|
'system_resolutions' => [],
|
|
],
|
|
'template_import' => [
|
|
'recovery_mode' => 'aggregate',
|
|
'identity_scope' => 'none',
|
|
'actions' => [],
|
|
'action_patterns' => [],
|
|
'system_resolutions' => [],
|
|
],
|
|
'template_metadata_sync' => [
|
|
'recovery_mode' => 'aggregate',
|
|
'identity_scope' => 'none',
|
|
'actions' => [],
|
|
'action_patterns' => [],
|
|
'system_resolutions' => [],
|
|
],
|
|
'template_delete' => [
|
|
'recovery_mode' => 'aggregate',
|
|
'identity_scope' => 'none',
|
|
'actions' => [],
|
|
'action_patterns' => [],
|
|
'system_resolutions' => [],
|
|
],
|
|
'user_iso_import' => [
|
|
'recovery_mode' => 'aggregate',
|
|
'identity_scope' => 'none',
|
|
'actions' => [],
|
|
'action_patterns' => [],
|
|
'system_resolutions' => [],
|
|
],
|
|
'user_iso_delete' => [
|
|
'recovery_mode' => 'aggregate',
|
|
'identity_scope' => 'none',
|
|
'actions' => [],
|
|
'action_patterns' => [],
|
|
'system_resolutions' => [],
|
|
],
|
|
];
|
|
}
|