Skip to content
Snippets Groups Projects
Unverified Commit f17d3d41 authored by OpenShift Merge Robot's avatar OpenShift Merge Robot Committed by GitHub
Browse files

Merge pull request #1081 from openshift-cherrypick-robot/cherry-pick-1056-to-release-4.11

[release-4.11] OCPBUGS-536: vSphere - enable steal time accounting
parents 5ff11276 242f710f
No related branches found
No related tags found
No related merge requests found
...@@ -49,6 +49,7 @@ const ( ...@@ -49,6 +49,7 @@ const (
GuestInfoIgnitionData = "guestinfo.ignition.config.data" GuestInfoIgnitionData = "guestinfo.ignition.config.data"
GuestInfoIgnitionEncoding = "guestinfo.ignition.config.data.encoding" GuestInfoIgnitionEncoding = "guestinfo.ignition.config.data.encoding"
GuestInfoHostname = "guestinfo.hostname" GuestInfoHostname = "guestinfo.hostname"
StealClock = "stealclock.enable"
) )
// vSphere tasks description IDs, for determinate task types (clone, delete, etc) // vSphere tasks description IDs, for determinate task types (clone, delete, etc)
...@@ -748,6 +749,10 @@ func clone(s *machineScope) (string, error) { ...@@ -748,6 +749,10 @@ func clone(s *machineScope) (string, error) {
Key: GuestInfoHostname, Key: GuestInfoHostname,
Value: s.machine.GetName(), Value: s.machine.GetName(),
}) })
extraConfig = append(extraConfig, &types.OptionValue{
Key: StealClock,
Value: "TRUE",
})
spec := types.VirtualMachineCloneSpec{ spec := types.VirtualMachineCloneSpec{
Config: &types.VirtualMachineConfigSpec{ Config: &types.VirtualMachineConfigSpec{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment