vmware / vmware/pyvmomi

RegisterVM_Task doesn't work properly without the "pool" param

Open
#211 5 comments 0 reactions 1 assignee View on GitHub

@tianhao64 is already working on this.

Since Dec 29, 2015.

bug needs verification
Dominant language
Python
Stars
2.3k
Forks
763
PR merge metrics
No merged PRs in 30d

Description

from the vSphere API doc, only path and asTemplate are required, and vCLI vmware-cmd works properly without specifying resource pool. However, in here, without the pool argument, this is what I get.

(vim.TaskInfo) {
   dynamicType = <unset>,
   dynamicProperty = (vmodl.DynamicProperty) [],
   key = 'haTask-ha-folder-vm-vim.Folder.registerVm-307940434',
   task = 'vim.Task:haTask-ha-folder-vm-vim.Folder.registerVm-307940434',
   description = <unset>,
   name = vim.Folder.RegisterVm,
   descriptionId = 'Folder.registerVm',
   entity = 'vim.Folder:ha-folder-vm',
   entityName = 'vm',
   locked = (vim.ManagedEntity) [],
   state = 'error',
   cancelled = false,
   cancelable = false,
   error = (vmodl.fault.InvalidArgument) {
      dynamicType = <unset>,
      dynamicProperty = (vmodl.DynamicProperty) [],
      msg = 'A specified parameter was not correct. \npool',
      faultCause = <unset>,
      faultMessage = (vmodl.LocalizableMessage) [],
      invalidProperty = u'pool'
   },
   result = <unset>,
   progress = <unset>,
   reason = (vim.TaskReasonUser) {
      dynamicType = <unset>,
      dynamicProperty = (vmodl.DynamicProperty) [],
      userName = 'root'
   },
   queueTime = 2015-02-04T12:40:42.342862Z,
   startTime = 2015-02-04T12:40:42.343253Z,
   completeTime = 2015-02-04T12:40:42.343679Z,
   eventChainId = 307940434,
   changeTag = <unset>,
   parentTaskKey = <unset>,
   rootTaskKey = <unset>
}

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.