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
Whenever attempting to create First Class Disk providing a target path, it fails with msg = 'A specified parameter was not correct: '. Many path formats have been tested, but no luck. In case path parameter is not set, the task completes Successfully.
This discussion was converted from issue #1081 on July 10, 2024 11:06.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Describe the bug
Whenever attempting to create First Class Disk providing a target path, it fails with msg = 'A specified parameter was not correct: '. Many path formats have been tested, but no luck. In case path parameter is not set, the task completes Successfully.
TaskInfo output is as following:
(vim.TaskInfo) {
dynamicType = ,
dynamicProperty = (vmodl.DynamicProperty) [],
key = 'task-11204',
task = 'vim.Task:task-11204',
description = ,
name = vim.vslm.vcenter.VStorageObjectManager.CreateDisk,
descriptionId = 'vslm.vcenter.VStorageObjectManager.createDisk',
entity = 'vim.HostSystem:host-26',
locked = (vim.ManagedEntity) [],
state = 'error',
cancelled = false,
cancelable = false,
error = (vmodl.fault.InvalidArgument) {
dynamicType = ,
dynamicProperty = (vmodl.DynamicProperty) [],
msg = 'A specified parameter was not correct: ',
faultCause = ,
faultMessage = (vmodl.LocalizableMessage) [],
invalidProperty = ''
},
result = ,
progress = ,
reason = (vim.TaskReasonUser) {
...
changeTag = ,
parentTaskKey = ,
rootTaskKey = ,
activationId =
}
Reproduction steps
backing_spec = vim.vslm.CreateSpec.DiskFileBackingSpec()
backing_spec.datastore = fcd.datastore_obj
backing_spec.path = f"[fcd.datastore_obj.name] fcd/{fcd.disk_name}.vmdk"
vslm_create_spec = vim.vslm.CreateSpec()
vslm_create_spec.backingSpec = backing_spec
vslm_create_spec.capacityInMB = fcd.size_mb
vslm_create_spec.name = fcd.disk_name
task = fcd.content.vStorageObjectManager.CreateDisk_Task(vslm_create_spec)`
Expected behavior
First class disk is created with the provided path.
Additional context
Beta Was this translation helpful? Give feedback.
All reactions