← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1367741] Re: The `fault` should be included to log error message when vmware error happens

 

** Also affects: oslo.vmware
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1367741

Title:
  The `fault` should be included to log error message when vmware error
  happens

Status in OpenStack Compute (Nova):
  Confirmed
Status in Oslo VMware library for OpenStack projects:
  New

Bug description:
  ... because it can contain important information. For example:

  (TaskInfo){
     key = "task-34928"
     task = 
        (task){
           value = "task-34928"
           _type = "Task"
        }
     description = 
        (LocalizableMessage){
           key = "com.vmware.vim.vpxd.vpx.vmprov.CreateDestinationVm"
           message = "Copying Virtual Machine configuration"
        }
     name = "CreateVM_Task"
     descriptionId = "Folder.createVm"
     entity = 
        (entity){
           value = "group-v3"
           _type = "Folder"
        }
     entityName = "vm"
     state = "error"
     cancelled = False
     cancelable = False
     error = 
        (LocalizedMethodFault){
           fault = 
              (PlatformConfigFault){
                 text = "Failed to attach port"
              }
           localizedMessage = "An error occurred during host configuration."
        }
     reason = 
        (TaskReasonUser){
           userName = "root"
        }
     queueTime = 2014-09-10 12:46:48.283593
     startTime = 2014-09-10 12:46:48.290384
     completeTime = 2014-09-10 12:46:49.798797
     eventChainId = 157130
   }

  Currently, only the localizedMessage is used to produce the log line
  in nova/virt/vmwareapi/driver.py  _poll_task(). In this case, the
  message is too general. The important reason is said in the
  error.fault.text, so It should be reported as well.

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1367741/+subscriptions


References