VMware: Invalid configuration for device '0' on creating vm.

Bug #1680326 reported by wener
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
oslo.vmware
New
Undecided
Unassigned

Bug Description

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

Revision history for this message
wener (weener) wrote :
Download full text (8.7 KiB)

And I found: vmops.build_virtual_machine() --> vm_util.create_vm() failed
The error is: oslo_vmware.exceptions [-] Fault InvalidDeviceSpec not matched.
So I dump the config_spec:

(VirtualMachineConfigSpec){
   changeVersion = None
   name = "cffbe917-0fd9-4161-90eb-89bed0f12d90"
   version = None
   uuid = None
   instanceUuid = "cffbe917-0fd9-4161-90eb-89bed0f12d90"
   npivNodeWorldWideName[] = <empty>
   npivPortWorldWideName[] = <empty>
   npivWorldWideNameType = None
   npivDesiredNodeWwns = None
   npivDesiredPortWwns = None
   npivTemporaryDisabled = None
   npivOnNonRdmDisks = None
   npivWorldWideNameOp = None
   locationId = None
   guestId = "ubuntu64Guest"
   alternateGuestName = None
   annotation = "name:v1
userid:bef1f8c56ef547339595ce46bbe0ec0e
username:admin
projectid:cf73ccda5d894a60b8bcc93c2cc4f20a
projectname:admin
flavor:name:m1.small
flavor:memory_mb:2048
flavor:vcpus:1
flavor:ephemeral_gb:0
flavor:root_gb:20
flavor:swap:0
imageid:b503bba4-7028-4402-a1cd-a406be13464f
package:15.0.1
"
   files =
      (VirtualMachineFileInfo){
         vmPathName = "[datastore1]"
         snapshotDirectory = None
         suspendDirectory = None
         logDirectory = None
         ftMetadataDirectory = None
      }
   tools =
      (ToolsConfigInfo){
         toolsVersion = None
         afterPowerOn = True
         afterResume = True
         beforeGuestStandby = True
         beforeGuestShutdown = True
         beforeGuestReboot = True
         toolsUpgradePolicy = None
         pendingCustomization = None
         syncTimeWithHost = None
         lastInstallInfo =
            (ToolsConfigInfoToolsLastInstallInfo){
               counter = None
               fault =
                  (LocalizedMethodFault){
                     fault =
                        (MethodFault){
                           faultCause =
                              (LocalizedMethodFault){
                                 localizedMessage = None
                              }
                           faultMessage[] = <empty>
                        }
                     localizedMessage = None
                  }
            }
      }
   flags =
      (VirtualMachineFlagInfo){
         disableAcceleration = None
         enableLogging = None
         useToe = None
         runWithDebugInfo = None
         monitorType = None
         htSharing = None
         snapshotDisabled = None
         snapshotLocked = None
         diskUuidEnabled = None
         virtualMmuUsage = None
         virtualExecUsage = None
         snapshotPowerOffBehavior = None
         recordReplayEnabled = None
         faultToleranceType = None
      }
   consolePreferences =
      (VirtualMachineConsolePreferences){
         powerOnWhenOpened = None
         enterFullScreenOnPowerOn = None
         closeOnPowerOffOrSuspend = None
      }
   powerOpInfo =
      (VirtualMachineDefaultPowerOpInfo){
         powerOffType = None
         suspendType = None
         resetType = None
         defaultPowerOffType = None
         defaultSuspendType = None
         defaultResetType = None
         standbyAction = None
      }
   numCPUs = 1
   numCoresPerSocket = 1
   memoryMB = 2048
   me...

Read more...

Revision history for this message
wener (weener) wrote :

So anybody can tell me what's wrong with the config spec? Thanks a lot

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.