You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Additional context
Add any other context about the problem here.
Even if capacity is not decreased, InvalidDeviceOperation is raised under following conditions.
both CapacityInKB and CapacityInBytes are increased and
both have diffrerent capacity
# neither CapacityInKB nor CapacityInBytes are modified: same as before (success)> go run main.go
before:
kb: 2097156, bytes: 2147487744
modified spec:
kb: 2097156, bytes: 2147487744
after:
kb: 2097156, bytes: 2147487744# only CapacityInKB is increased: new capacity is same as specified CapacityInKB (success)> go run main.go
before:
kb: 2097156, bytes: 2147487744
modified spec:
kb: 2097157, bytes: 2147487744
after:
kb: 2097157, bytes: 2147488768# only CapacityInBytes is increased: new capacity is same as specified CapacityInBytes (success)> go run main.go
before:
kb: 2097157, bytes: 2147488768
modified spec:
kb: 2097157, bytes: 2147489792
after:
kb: 2097158, bytes: 2147489792# both are increased: new capacity is same as specified (success)> go run main.go
before:
kb: 2097158, bytes: 2147489792
modified spec:
kb: 2097159, bytes: 2147490816
after:
kb: 2097159, bytes: 2147490816# both are increased but diffrerent values are specified (failure)> go run main.go
before:
kb: 2097158, bytes: 2147489792
modified spec:
kb: 3097158, bytes: 2147490816
error: Invalid operation for device '0'.
The text was updated successfully, but these errors were encountered:
Syuparn
added a commit
to Syuparn/govmomi
that referenced
this issue
Jul 22, 2022
Describe the bug
In
ReconfigVM_Task
, virtual disk size can be increased but not decreased.However vcsim allows decreasing disk size.
To Reproduce
Expected behavior
vcsim responds
InvalidDeviceOperation
.Affected version
Screenshots/Debug Output
vcsim decreases the disk size without any errors.
Additional context
Add any other context about the problem here.
Even if capacity is not decreased, InvalidDeviceOperation is raised under following conditions.
The text was updated successfully, but these errors were encountered: