VMware Cloud Community
hirenks
Contributor
Contributor

Vsphere vCenter 6.0.0: False error while importing. Check for if host is in 'maintenance mode'

Hi All,

I am trying to deploy a VM via an automation framework which runs the ovtool command. For a particular kind of OVF, I am getting the below error whereas another kind of OVF is getting deployed properly. This error is inconsistent in nature. Even if the host is not in maintenance mode vsphere throws a false error " Check for if host is in 'maintenance mode' ". Any pointers what could be the possible causes of failure.

OVFTOOL command:

ovftool --powerOffTarget --overwrite --powerOn --acceptAllEulas --allowExtraConfig --noSSLVerify --skipManifestCheck --sourceType=OVF --X:enableHiddenProperties --X:logToConsole --machineOutput --chunkSize=200mb --diskMode="Thin" --datastore=GCP-Pods --vmFolder="<folder-name>" --name=<vm-name> --prop:fqdn=<host-name> --prop:pw=xxx --prop:dns1=xx.yy.zz.ww --prop:ipv4.how="Manual" --prop:ipv4.addr=zz.ww.xx.yy --prop:ipv4.mask=255.255.240.0 --prop:ipv4.gw=xx.yy.ww.zz --net:Management0-0=<network-name> --net:GigabitEthernet0-0=<network-name> --net:GigabitEthernet0-1=<network-name> --net:GigabitEthernet0-2=<network-name> --prop:ipv6.how="Disabled" --prop:firewallmode=routed --prop:manageLocally='Yes' --prop:mgr=xx.yy.ww.zz --prop:regkey=admin "http://zz.yy.xx.ww/ovftool/10065979/edited.ovf" "<OVF_destination>"


Logs from vCenter Server:

2019-02-11T14:26:03.973-05:00 verbose -[7F18658A0780] [Originator@6876 sub=Default] Hostsystem used as deploy target: vim.HostSystem:host-69691

2019-02-11T14:26:11.439-05:00 verbose -[7F18658A0780] [Originator@6876 sub=Default] Error while importing. Check for if host is in 'maintenance mode'

2019-02-11T14:26:11.439-05:00 verbose -[7F18658A0780] [Originator@6876 sub=Default] Caught exception while keeping VI session alive: vim.fault.NoPermission

ERROR

+ <Errors>

+ <Error>

+ <Type>ovftool.vi.communicate</Type>

+ <LocalizedMsg>

+ Failed to communicate with VI server

+ </LocalizedMsg>

+ </Error>

+ </Errors>

2019-02-11T14:26:11.442-05:00 verbose -[7F18658A0780] [Originator@6876 sub=Default] Backtrace:

-->

--> [backtrace begin] product: VMware Workstation, version: e.x.p, build: build-2459827, tag: -

--> backtrace[00] libvmacore.so[0x003D9C74]: Vmacore::System::Stacktrace::CaptureWork(unsigned int)

--> backtrace[01] libvmacore.so[0x001DBF37]: Vmacore::System::SystemFactoryImpl::CreateQuickBacktrace(Vmacore::Ref<Vmacore::System::Backtrace>&)

--> backtrace[02] libvmacore.so[0x0018481D]: Vmacore::Throwable::Throwable(std::string const&)

--> backtrace[03] ovftool.bin[0x0020E7CC]

--> backtrace[04] ovftool.bin[0x003210DC]

--> backtrace[05] ovftool.bin[0x001A79E3]

--> backtrace[06] ovftool.bin[0x001A9152]

--> backtrace[07] ovftool.bin[0x001A992A]

--> backtrace[08] ovftool.bin[0x001EC6C4]

--> backtrace[09] ovftool.bin[0x001EEB04]

--> backtrace[10] libc.so.6[0x00020830]

--> backtrace[11] ovftool.bin[0x001626B9]

--> [backtrace end]

-->

WARNING

+ <Warnings>

+ <Warning>

+ <Type>ovftool-warning.transform.extraconfig.not.allowed</Type>

+ <LocalizedMsg>

+ ExtraConfig option &apos;monitor_control.pseudo_perfctr&apos; is not allowed, will skip it.

+ </LocalizedMsg>

+ <Arg>

+ monitor_control.pseudo_perfctr

+ </Arg>

+ </Warning>

+ </Warnings>

RESULT

+ ERROR


If the ovftool succeeds in deploying the OVF then verbose looks something like this

2019-02-08T20:34:12.467-05:00 verbose -[7F0D0FADD780] [Originator@6876 sub=Default] Hostsystem used as deploy target: vim.HostSystem:host-69688

2019-02-08T20:34:25.827-05:00 verbose -[7F0D0FADD780] [Originator@6876 sub=Default] Parsing URL

2019-02-08T20:34:25.830-05:00 verbose -[7F0D0FADD780] [Originator@6876 sub=Default] Using file size as progress measure

PROGRESS

2019-02-08T20:34:25.830-05:00 verbose -[7F0D06E3D700] [Originator@6876 sub=Default] OvfPackageSourceBase getting file source

2019-02-08T20:34:25.831-05:00 verbose -[7F0D06E3D700] [Originator@6876 sub=Default] ReaderFactory web request: http://<url><filename.vmdk>

2019-02-08T20:34:25.831-05:00 verbose -[7F0D06E3D700] [Originator@6876 sub=Default] Initializing new curl session

2019-02-08T20:34:25.834-05:00 verbose -[7F0D06E3D700] [Originator@6876 sub=Default] HttpWriterFactory web request : https://<url>/disk-0.vmdk

2019-02-08T20:34:25.834-05:00 verbose -[7F0D06E3D700] [Originator@6876 sub=Default] Initializing new curl session

Any help is appreciated.

Tags (2)
0 Kudos
0 Replies