Stage 7 of NetOrk/netork#1820: the hypervisor contract learns HA state, backups, quorum votes, live migration and node maintenance.
Changes
ClusterDict may carry ha_resources (HAResourceDict), backup_jobs (BackupJobDict) and backups (BackupDict, newest per guest and storage); ClusterNodeDict.votes. All NotRequired; None = not read, [] = read, nothing there.
HypervisorDriver declares get_vm_migration_preflight() (MigrationPreflightDict in the new vm_migration.py), migrate_vm(name, target_node, online, target_storage, timeout) and set_node_maintenance(node, enabled) under TYPE_CHECKING, so netOrk probes them with hasattr.
Exported from the package root; CHANGELOG under Unreleased.
Merge before NAPALM/napalm-proxmox (same branch name) and before netOrk re-pins. PyPI release still pending (#69).
## Summary
Stage 7 of NetOrk/netork#1820: the hypervisor contract learns HA state, backups, quorum votes, live migration and node maintenance.
## Changes
- `ClusterDict` may carry `ha_resources` (`HAResourceDict`), `backup_jobs` (`BackupJobDict`) and `backups` (`BackupDict`, newest per guest and storage); `ClusterNodeDict.votes`. All `NotRequired`; None = not read, [] = read, nothing there.
- `HypervisorDriver` declares `get_vm_migration_preflight()` (`MigrationPreflightDict` in the new `vm_migration.py`), `migrate_vm(name, target_node, online, target_storage, timeout)` and `set_node_maintenance(node, enabled)` under TYPE_CHECKING, so netOrk probes them with hasattr.
- Exported from the package root; CHANGELOG under Unreleased.
## Testing
- 1049 passed, coverage 95.78 %; ruff, mypy strict, `napalm-standard check` and `ratchet` green.
Merge before NAPALM/napalm-proxmox (same branch name) and before netOrk re-pins. PyPI release still pending (#69).
get_clusters() may also report the cluster's HA resources, backup jobs, the
newest backup per guest and storage, and each node's quorum votes (all
NotRequired; None means not read). HypervisorDriver declares
get_vm_migration_preflight(), migrate_vm() and set_node_maintenance(); the
preflight shape lives in vm_migration.py.
Part of NetOrk/netork#1820 (stage 7: #759, #760, #761).
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Summary
Stage 7 of NetOrk/netork#1820: the hypervisor contract learns HA state, backups, quorum votes, live migration and node maintenance.
Changes
ClusterDictmay carryha_resources(HAResourceDict),backup_jobs(BackupJobDict) andbackups(BackupDict, newest per guest and storage);ClusterNodeDict.votes. AllNotRequired; None = not read, [] = read, nothing there.HypervisorDriverdeclaresget_vm_migration_preflight()(MigrationPreflightDictin the newvm_migration.py),migrate_vm(name, target_node, online, target_storage, timeout)andset_node_maintenance(node, enabled)under TYPE_CHECKING, so netOrk probes them with hasattr.Testing
napalm-standard checkandratchetgreen.Merge before NAPALM/napalm-proxmox (same branch name) and before netOrk re-pins. PyPI release still pending (#69).