Hi, I foud an issue.
my deployment: Ocata release (depolyed by kolla-ansbile) + vmware vcenter 6.0
I have configured nova.conf to use vmware VCDirver. and the session is set up correctly.
I use "openstack image create ..." to import official ubuntu-16.04 image. (qemu-img convet it form qcow2 to spare vmdk format.
Everything is ok for now.
But when I luanch instance, error happend, the log is below:
2017-04-01 04:15:45.496 7 INFO nova.compute.claims [req-0d04189c-f822-4ac3-be8b-44b88f255acd bef1f8c56ef547339595ce46bbe0ec0e cf73ccda5d894a60b8bcc93c2cc4f20a - - -] [instance: d4d11aa3-9eb7-496b-9ad6-17703d58dd88] Attempting claim: memory 2048 MB, disk 20 GB, vcpus 1 CPU
2017-04-01 04:15:45.497 7 INFO nova.compute.claims [req-0d04189c-f822-4ac3-be8b-44b88f255acd bef1f8c56ef547339595ce46bbe0ec0e cf73ccda5d894a60b8bcc93c2cc4f20a - - -] [instance: d4d11aa3-9eb7-496b-9ad6-17703d58dd88] Total memory: 28640 MB, used: 512.00 MB
2017-04-01 04:15:45.498 7 INFO nova.compute.claims [req-0d04189c-f822-4ac3-be8b-44b88f255acd bef1f8c56ef547339595ce46bbe0ec0e cf73ccda5d894a60b8bcc93c2cc4f20a - - -] [instance: d4d11aa3-9eb7-496b-9ad6-17703d58dd88] memory limit: 42960.00 MB, free: 42448.00 MB
2017-04-01 04:15:45.499 7 INFO nova.compute.claims [req-0d04189c-f822-4ac3-be8b-44b88f255acd bef1f8c56ef547339595ce46bbe0ec0e cf73ccda5d894a60b8bcc93c2cc4f20a - - -] [instance: d4d11aa3-9eb7-496b-9ad6-17703d58dd88] Total disk: 1921 GB, used: 0.00 GB
2017-04-01 04:15:45.499 7 INFO nova.compute.claims [req-0d04189c-f822-4ac3-be8b-44b88f255acd bef1f8c56ef547339595ce46bbe0ec0e cf73ccda5d894a60b8bcc93c2cc4f20a - - -] [instance: d4d11aa3-9eb7-496b-9ad6-17703d58dd88] disk limit: 1921.00 GB, free: 1921.00 GB
2017-04-01 04:15:45.500 7 INFO nova.compute.claims [req-0d04189c-f822-4ac3-be8b-44b88f255acd bef1f8c56ef547339595ce46bbe0ec0e cf73ccda5d894a60b8bcc93c2cc4f20a - - -] [instance: d4d11aa3-9eb7-496b-9ad6-17703d58dd88] Total vcpu: 12 VCPU, used: 0.00 VCPU
2017-04-01 04:15:45.501 7 INFO nova.compute.claims [req-0d04189c-f822-4ac3-be8b-44b88f255acd bef1f8c56ef547339595ce46bbe0ec0e cf73ccda5d894a60b8bcc93c2cc4f20a - - -] [instance: d4d11aa3-9eb7-496b-9ad6-17703d58dd88] vcpu limit not specified, defaulting to unlimited
2017-04-01 04:15:45.501 7 INFO nova.compute.claims [req-0d04189c-f822-4ac3-be8b-44b88f255acd bef1f8c56ef547339595ce46bbe0ec0e cf73ccda5d894a60b8bcc93c2cc4f20a - - -] [instance: d4d11aa3-9eb7-496b-9ad6-17703d58dd88] Claim successful
2017-04-01 04:15:45.707 7 INFO nova.scheduler.client.report [req-0d04189c-f822-4ac3-be8b-44b88f255acd bef1f8c56ef547339595ce46bbe0ec0e cf73ccda5d894a60b8bcc93c2cc4f20a - - -] [instance: d4d11aa3-9eb7-496b-9ad6-17703d58dd88] Submitted allocation for instance
2017-04-01 04:15:49.719 7 ERROR oslo_vmware.common.loopingcall [-] in fixed duration looping call
2017-04-01 04:15:49.719 7 ERROR oslo_vmware.common.loopingcall Traceback (most recent call last):
2017-04-01 04:15:49.719 7 ERROR oslo_vmware.common.loopingcall File "/var/lib/kolla/venv/local/lib/python2.7/site-packages/oslo_vmware/common/loopingcall.py", line 76, in _inner
2017-04-01 04:15:49.719 7 ERROR oslo_vmware.common.loopingcall self.f(*self.args, **self.kw)
2017-04-01 04:15:49.719 7 ERROR oslo_vmware.common.loopingcall File "/var/lib/kolla/venv/local/lib/python2.7/site-packages/oslo_vmware/api.py", line 440, in _poll_task
2017-04-01 04:15:49.719 7 ERROR oslo_vmware.common.loopingcall raise task_ex
2017-04-01 04:15:49.719 7 ERROR oslo_vmware.common.loopingcall VimFaultException: Invalid configuration for device '0'.
2017-04-01 04:15:49.719 7 ERROR oslo_vmware.common.loopingcall Faults: ['InvalidDeviceSpec']
2017-04-01 04:15:49.719 7 ERROR oslo_vmware.common.loopingcall
2017-04-01 04:15:49.721 7 ERROR nova.compute.manager [req-0d04189c-f822-4ac3-be8b-44b88f255acd bef1f8c56ef547339595ce46bbe0ec0e cf73ccda5d894a60b8bcc93c2cc4f20a - - -] [instance: d4d11aa3-9eb7-496b-9ad6-17703d58dd88] Instance failed to spawn
And I found: vmops.build_ virtual_ machine( ) --> vm_util.create_vm() failed exceptions [-] Fault InvalidDeviceSpec not matched.
The error is: oslo_vmware.
So I dump the config_spec:
(VirtualMachine ConfigSpec) { 0fd9-4161- 90eb-89bed0f12d 90" 0fd9-4161- 90eb-89bed0f12d 90" dWideName[ ] = <empty> dWideName[ ] = <empty> eNameType = None odeWwns = None ortWwns = None yDisabled = None Disks = None eNameOp = None stName = None bef1f8c56ef5473 39595ce46bbe0ec 0e cf73ccda5d894a6 0b8bcc93c2cc4f2 0a name:m1. small memory_ mb:2048 ephemeral_ gb:0 b503bba4- 7028-4402- a1cd-a406be1346 4f VirtualMachineF ileInfo) {
snapshotDirec tory = None
suspendDirect ory = None
logDirectory = None
ftMetadataDir ectory = None ToolsConfigInfo ){
toolsVersion = None
afterPowerOn = True
afterResume = True
beforeGuestSt andby = True
beforeGuestSh utdown = True
beforeGuestRe boot = True
toolsUpgradeP olicy = None
pendingCustom ization = None
syncTimeWithH ost = None
lastInstallIn fo =
(ToolsConf igInfoToolsLast InstallInfo) {
counter = None
fault =
(LocalizedM ethodFault) {
fault =
(MethodFault ){
faultCaus e =
(LocalizedMet hodFault) {
localizedM essage = None
}
faultMess age[] = <empty>
}
localizedMessag e = None VirtualMachineF lagInfo) {
disableAccele ration = None
enableLogging = None
runWithDebugI nfo = None
monitorType = None
snapshotDisab led = None
snapshotLocke d = None
diskUuidEnabl ed = None
virtualMmuUsa ge = None
virtualExecUs age = None
snapshotPower OffBehavior = None
recordReplayE nabled = None
faultToleranc eType = None rences = VirtualMachineC onsolePreferenc es){
powerOnWhenOp ened = None
enterFullScre enOnPowerOn = None
closeOnPowerO ffOrSuspend = None VirtualMachineD efaultPowerOpIn fo){
powerOffType = None
suspendType = None
defaultPowerO ffType = None
defaultSuspen dType = None
defaultResetT ype = None
standbyAction = None ocket = 1
changeVersion = None
name = "cffbe917-
version = None
uuid = None
instanceUuid = "cffbe917-
npivNodeWorl
npivPortWorl
npivWorldWid
npivDesiredN
npivDesiredP
npivTemporar
npivOnNonRdm
npivWorldWid
locationId = None
guestId = "ubuntu64Guest"
alternateGue
annotation = "name:v1
userid:
username:admin
projectid:
projectname:admin
flavor:
flavor:
flavor:vcpus:1
flavor:
flavor:root_gb:20
flavor:swap:0
imageid:
package:15.0.1
"
files =
(
vmPathName = "[datastore1]"
}
tools =
(
}
}
}
flags =
(
useToe = None
htSharing = None
}
consolePrefe
(
}
powerOpInfo =
(
resetType = None
}
numCPUs = 1
numCoresPerS
memoryMB = 2048
me...