Skip to content

Commit

Permalink
add migration timeouts to vmi migration status
Browse files Browse the repository at this point in the history
Signed-off-by: Vladik Romanovsky <[email protected]>
  • Loading branch information
vladikr committed Mar 1, 2019
1 parent 082672e commit fd5fe85
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
10 changes: 10 additions & 0 deletions api/openapi-spec/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -5899,6 +5899,11 @@
"description": "Indicates the migration completed",
"type": "boolean"
},
"completionTimeoutPerGiB": {
"description": "The time for GiB of data to wait for the migration to be completed before aborting it",
"type": "integer",
"format": "int64"
},
"endTimestamp": {
"description": "The time the migration action ended",
"type": "string"
Expand All @@ -5911,6 +5916,11 @@
"description": "The VirtualMachineInstanceMigration object associated with this migration",
"type": "string"
},
"progressTimeout": {
"description": "The time to wait for live migration to make progress in transferring data.",
"type": "integer",
"format": "int64"
},
"sourceNode": {
"description": "The source node that the VMI originated on",
"type": "string"
Expand Down
4 changes: 4 additions & 0 deletions pkg/api/v1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,10 @@ type VirtualMachineInstanceMigrationState struct {
Failed bool `json:"failed,omitempty"`
// The VirtualMachineInstanceMigration object associated with this migration
MigrationUID types.UID `json:"migrationUid,omitempty"`
// The time for GiB of data to wait for the migration to be completed before aborting it
CompletionTimeoutPerGiB int64 `json:"completionTimeoutPerGiB,omitempty"`
// The time to wait for live migration to make progress in transferring data.
ProgressTimeout int64 `json:"progressTimeout,omitempty"`
}

type MigrationConfig struct {
Expand Down
2 changes: 2 additions & 0 deletions pkg/api/v1/types_swagger_generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit fd5fe85

Please sign in to comment.