不支持的操作导致pyvmomi中的租约错误

时间:2015-08-20 13:08:57

标签: python vmware pyvmomi

由于错误pyvmomi,我尝试使用The operation is not supported on the object通过python脚本将OVF部署到vSphere 5.5。我能解决这个错误的最深处是打印ImportVApp.error,它有这个输出。

(vmodl.fault.NotSupported) {
   dynamicType = <unset>,
   dynamicProperty = (vmodl.DynamicProperty) [],
   msg = 'The operation is not supported on the object.',
   faultCause = <unset>,
   faultMessage = (vmodl.LocalizableMessage) []
}

租约在初始化并给出上述错误后给出了我的错误。您可以找到我的脚本here

1 个答案:

答案 0 :(得分:1)

当我遇到此错误时,是因为我需要直接连接到单个主机IP而不是Vcenter IP。另外我想补充一点,我使用的用户没有权限直接在该主机上部署ovf。我使用root用户测试了这个并且它工作,所以我需要升级我的权限才能这样做。希望这有助于其他任何人。