Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create First class disk with "path" backing parameter always fails (msg = 'A specified parameter was not correct: ') #1081

Closed
RCHERNYY opened this issue Jul 3, 2024 · 0 comments

Comments

@RCHERNYY
Copy link

RCHERNYY commented Jul 3, 2024

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.

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"
#backing_spec.path = f"[fcd.datastore_obj.name] fcd/"
#backing_spec.path = f"fcd/{fcd.disk_name}.vmdk"
#backing_spec.path = f"{fcd.disk_name}.vmdk"
#backing_spec.path = f"fcd/"
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)

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

  1. Create DiskFileBackingSpec with path parameter provided
  2. Execute CreateDisk_Task with the above spec

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)`

  1. Check task.info.state

Expected behavior

First class disk is created with the provided path.

Additional context

  • vSphere version: 7.0.3
  • pyvmomi release: 7.0.3
@RCHERNYY RCHERNYY added the bug label Jul 3, 2024
@vmware vmware locked and limited conversation to collaborators Jul 10, 2024
@DanielDraganov DanielDraganov converted this issue into discussion #1083 Jul 10, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants