v16.10.0
v16.10.0
This commit is contained in:
1 parent
bc8c2b40e9
commit
00994516ba
52 files changed
+2287
-98
No files matched your search
@@ -2345,11 +2345,6 @@ type Memory struct {
|
||||
}
|
||||
|
||||
type ProgressDisks struct {
|
||||
// Scope
|
||||
Scope string `json:"scope"`
|
||||
|
||||
// Target devs
|
||||
TargetDevs []string `json:"target_devs"`
|
||||
|
||||
// Sampled at
|
||||
SampledAt float64 `json:"sampled_at"`
|
||||
@@ -2366,17 +2361,49 @@ type ProgressDisks struct {
|
||||
// Remaining bytes
|
||||
RemainingBytes uint64 `json:"remaining_bytes"`
|
||||
|
||||
// Disks completed
|
||||
DisksCompleted uint64 `json:"disks_completed"`
|
||||
|
||||
// Completed disks
|
||||
CompletedDisks []CompletedDisk `json:"completed_disks"`
|
||||
// True when the server weights independent copy percentages by fixed logical source disk sizes
|
||||
PercentIsEstimated bool `json:"percent_is_estimated"`
|
||||
|
||||
// Disks total
|
||||
DisksTotal uint64 `json:"disks_total"`
|
||||
|
||||
// Current disk
|
||||
CurrentDisk CurrentDisk `json:"current_disk"`
|
||||
// Disks completed
|
||||
DisksCompleted uint64 `json:"disks_completed"`
|
||||
|
||||
// Items
|
||||
Items []ProgressDiskItem `json:"items"`
|
||||
}
|
||||
|
||||
type ProgressDiskItem struct {
|
||||
// Transfer observation time in UTC Unix seconds, or null
|
||||
SampledAt float64 `json:"sampled_at"`
|
||||
|
||||
// Last transfer percentage, not overall workflow completion or remaining time
|
||||
Percent float64 `json:"percent"`
|
||||
|
||||
// Provider-measured throughput, not the configured limit.
|
||||
BytesPerSecond float64 `json:"bytes_per_second"`
|
||||
|
||||
// Provider-reported transferred bytes, never inferred from percent or logical disk size
|
||||
ProcessedBytes uint64 `json:"processed_bytes"`
|
||||
|
||||
// Remaining bytes
|
||||
RemainingBytes uint64 `json:"remaining_bytes"`
|
||||
|
||||
// Kind
|
||||
Kind string `json:"kind"`
|
||||
|
||||
// Null for the local stateless system disk, which has no platform disk ID
|
||||
SourceDiskID uint64 `json:"source_disk_id"`
|
||||
|
||||
// Null before allocation or for a stateless system disk
|
||||
TargetDiskID uint64 `json:"target_disk_id"`
|
||||
|
||||
// Guest device such as vda
|
||||
TargetDev string `json:"target_dev"`
|
||||
|
||||
// Last known state of this copy
|
||||
State string `json:"state"`
|
||||
}
|
||||
|
||||
type CompletedDisk struct {
|
||||
@@ -2462,6 +2489,15 @@ type Disk struct {
|
||||
|
||||
// State
|
||||
State string `json:"state"`
|
||||
|
||||
// Offline copy worker node, not the VM placement or its next start node
|
||||
CopyNodeID uint64 `json:"copy_node_id"`
|
||||
|
||||
// Offline physical copy state, separate from the saved disk replacement stage
|
||||
CopyState string `json:"copy_state"`
|
||||
|
||||
// Whether this offline copy writer was confirmed stopped
|
||||
WriterStopped bool `json:"writer_stopped"`
|
||||
}
|
||||
|
||||
type Cleanup struct {
|
||||
@@ -2564,6 +2600,27 @@ type MigrateV2Item struct {
|
||||
|
||||
// Updated at
|
||||
UpdatedAt string `json:"updated_at"`
|
||||
|
||||
// Requested copy limit in bytes/s per disk and for RAM transfer when moving the VM
|
||||
BandwidthBytesPerSecond uint64 `json:"bandwidth_bytes_per_second"`
|
||||
|
||||
// Requested maximum simultaneous offline disk copies in this migration. Null uses all assigned copy nodes, one copy per node. Applies only to offline disk copying.
|
||||
CopyParallelism uint64 `json:"copy_parallelism"`
|
||||
|
||||
// Whether the complete copy plan passed validation and was saved
|
||||
DiskPlanReady bool `json:"disk_plan_ready"`
|
||||
|
||||
// Null until the VM is inspected. Offline applies only to STOPPED VMs in disks mode; the VM remains stopped after copying
|
||||
ExecutionKind string `json:"execution_kind"`
|
||||
|
||||
// Null for online execution. For offline execution, at least one disk replacement decision was saved in disks[].state as COPIED or MIGRATED; model updates may still be unfinished
|
||||
OfflineCommitStarted bool `json:"offline_commit_started"`
|
||||
|
||||
// Requested storage destinations, retained even when preflight validation fails. Null means that no persistent-disk storage migration was requested
|
||||
RequestedStorage RequestedStorage `json:"requested_storage"`
|
||||
|
||||
// Original persistent-disk locations before migration
|
||||
SourceDisks []SourceDisk `json:"source_disks"`
|
||||
}
|
||||
|
||||
type ListMigrateV2 struct {
|
||||
@@ -2637,6 +2694,99 @@ type MigrateV2Record struct {
|
||||
|
||||
// Logs
|
||||
Logs []string `json:"logs"`
|
||||
|
||||
// Requested copy limit in bytes/s per disk and for RAM transfer when moving the VM
|
||||
BandwidthBytesPerSecond uint64 `json:"bandwidth_bytes_per_second"`
|
||||
|
||||
// Requested maximum simultaneous offline disk copies in this migration. Null uses all assigned copy nodes, one copy per node. Applies only to offline disk copying.
|
||||
CopyParallelism uint64 `json:"copy_parallelism"`
|
||||
|
||||
// Whether the complete copy plan passed validation and was saved
|
||||
DiskPlanReady bool `json:"disk_plan_ready"`
|
||||
|
||||
// Null until the VM is inspected. Offline applies only to STOPPED VMs in disks mode; the VM remains stopped after copying
|
||||
ExecutionKind string `json:"execution_kind"`
|
||||
|
||||
// Null for online execution. For offline execution, at least one disk replacement decision was saved in disks[].state as COPIED or MIGRATED; model updates may still be unfinished
|
||||
OfflineCommitStarted bool `json:"offline_commit_started"`
|
||||
|
||||
// Whether this migration still reserves extra CPU/RAM on target_node_id
|
||||
ReservesComputeResources bool `json:"reserves_compute_resources"`
|
||||
|
||||
// Requested storage destinations, retained even when preflight validation fails. Null means that no persistent-disk storage migration was requested
|
||||
RequestedStorage RequestedStorage `json:"requested_storage"`
|
||||
}
|
||||
|
||||
type Targets struct {
|
||||
// Selected source disks for this destination; null selects all persistent disks
|
||||
DiskIDs []uint64 `json:"disk_ids"`
|
||||
|
||||
// SEP ID
|
||||
SEPID uint64 `json:"sep_id"`
|
||||
|
||||
// Storage type learned during validation, or null if the destination was not inspected ye
|
||||
SEPType string `json:"sep_type"`
|
||||
|
||||
// Pool name
|
||||
PoolName string `json:"pool_name"`
|
||||
|
||||
// Requested policy; null preserves each source disk's storage policy
|
||||
StoragePolicyID uint64 `json:"storage_policy_id"`
|
||||
}
|
||||
|
||||
// Info about requested storage
|
||||
type RequestedStorage struct {
|
||||
// Whether automatic source-disk cleanup was requested after successful migration
|
||||
AutoCleanup bool `json:"auto_cleanup"`
|
||||
|
||||
// Targets
|
||||
Targets []Targets `json:"targets"`
|
||||
}
|
||||
|
||||
// Info about source disks
|
||||
type SourceDisk struct {
|
||||
// Disk ID
|
||||
DiskID uint64 `json:"disk_id"`
|
||||
|
||||
// SEP ID
|
||||
SEPID uint64 `json:"sep_id"`
|
||||
|
||||
// SEP type
|
||||
SEPType string `json:"sep_type"`
|
||||
|
||||
// Pool name
|
||||
PoolName string `json:"pool_name"`
|
||||
|
||||
// Requested policy; null preserves each source disk's storage policy
|
||||
StoragePolicyID uint64 `json:"storage_policy_id"`
|
||||
}
|
||||
|
||||
// Info about saved VM resource parameters for target placement
|
||||
type TargetShadowCompute struct {
|
||||
|
||||
// Compute ID
|
||||
ID uint64 `json:"id"`
|
||||
|
||||
// Target node selected for the VM
|
||||
NodeID uint64 `json:"node_id"`
|
||||
|
||||
// Number of vCPUs
|
||||
CPUs uint64 `json:"cpus"`
|
||||
|
||||
// VM memory in MiB
|
||||
RAM uint64 `json:"ram"`
|
||||
|
||||
// Whether CPU pinning was requested
|
||||
CPUPin bool `json:"cpupin"`
|
||||
|
||||
// Saved NUMA affinity policy
|
||||
NumaAffinity string `json:"numaAffinity"`
|
||||
|
||||
// Selected target NUMA node
|
||||
NumaNodeID int64 `json:"numaNodeId"`
|
||||
|
||||
// Target host CPU IDs selected for pinning
|
||||
ReservedNodeCPUs []uint64 `json:"reservedNodeCpus"`
|
||||
}
|
||||
|
||||
// Migrate V2 resolve record
|
||||
|
||||
Reference in new issue
Block a user