vmware: Error in logging causing vcdriver report 0 resources

Bug #1240292 reported by Sreeram Yerrapragada
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Undecided
Sabari Murugesan

Bug Description

I do not have concreate steps to reporduce this but following is the traceback from the logs:

Traceback (most recent call last):
  File "/usr/lib/python2.7/logging/__init__.py", line 846, in emit
    msg = self.format(record)
  File "/opt/stack/nova/nova/openstack/common/log.py", line 553, in format
    return logging.StreamHandler.format(self, record)
  File "/usr/lib/python2.7/logging/__init__.py", line 723, in format
    return fmt.format(record)
  File "/opt/stack/nova/nova/openstack/common/log.py", line 517, in format
    return logging.Formatter.format(self, record)
  File "/usr/lib/python2.7/logging/__init__.py", line 464, in format
    record.message = record.getMessage()
  File "/usr/lib/python2.7/logging/__init__.py", line 328, in getMessage
    msg = msg % self.args
ValueError: unsupported format character ' ' (0x20) at index 37
Logged from file vim_util.py, line 195
Traceback (most recent call last):
  File "/usr/lib/python2.7/logging/__init__.py", line 846, in emit
    msg = self.format(record)
  File "/opt/stack/nova/nova/openstack/common/log.py", line 553, in format
    return logging.StreamHandler.format(self, record)
  File "/usr/lib/python2.7/logging/__init__.py", line 723, in format
    return fmt.format(record)
  File "/opt/stack/nova/nova/openstack/common/log.py", line 517, in format
    return logging.Formatter.format(self, record)
  File "/usr/lib/python2.7/logging/__init__.py", line 464, in format
    record.message = record.getMessage()
  File "/usr/lib/python2.7/logging/__init__.py", line 328, in getMessage
    msg = msg % self.args
ValueError: unsupported format character ' ' (0x20) at index 37
Logged from file vim_util.py, line 195
Traceback (most recent call last):
  File "/usr/lib/python2.7/logging/__init__.py", line 846, in emit
    msg = self.format(record)
  File "/opt/stack/nova/nova/openstack/common/log.py", line 553, in format
    return logging.StreamHandler.format(self, record)
  File "/usr/lib/python2.7/logging/__init__.py", line 723, in format
    return fmt.format(record)
  File "/opt/stack/nova/nova/openstack/common/log.py", line 517, in format
    return logging.Formatter.format(self, record)
  File "/usr/lib/python2.7/logging/__init__.py", line 464, in format
    record.message = record.getMessage()
  File "/usr/lib/python2.7/logging/__init__.py", line 328, in getMessage
    msg = msg % self.args
ValueError: unsupported format character ' ' (0x20) at index 37
Logged from file vim_util.py, line 195
Traceback (most recent call last):
  File "/usr/lib/python2.7/logging/__init__.py", line 846, in emit
    msg = self.format(record)
  File "/opt/stack/nova/nova/openstack/common/log.py", line 553, in format
    return logging.StreamHandler.format(self, record)
  File "/usr/lib/python2.7/logging/__init__.py", line 723, in format
    return fmt.format(record)
  File "/opt/stack/nova/nova/openstack/common/log.py", line 517, in format
    return logging.Formatter.format(self, record)
  File "/usr/lib/python2.7/logging/__init__.py", line 464, in format
    record.message = record.getMessage()
  File "/usr/lib/python2.7/logging/__init__.py", line 328, in getMessage
    msg = msg % self.args
ValueError: unsupported format character ' ' (0x20) at index 37
Logged from file vim_util.py, line 195
Traceback (most recent call last):
  File "/usr/lib/python2.7/logging/__init__.py", line 846, in emit
    msg = self.format(record)
  File "/opt/stack/nova/nova/openstack/common/log.py", line 553, in format
    return logging.StreamHandler.format(self, record)
  File "/usr/lib/python2.7/logging/__init__.py", line 723, in format
    return fmt.format(record)
  File "/opt/stack/nova/nova/openstack/common/log.py", line 517, in format
    return logging.Formatter.format(self, record)
  File "/usr/lib/python2.7/logging/__init__.py", line 464, in format
    record.message = record.getMessage()
  File "/usr/lib/python2.7/logging/__init__.py", line 328, in getMessage
    msg = msg % self.args
ValueError: unsupported format character ' ' (0x20) at index 37
Logged from file vim_util.py, line 195
2013-10-15 16:25:19.677 ^[[00;32mDEBUG nova.compute.resource_tracker [^[[00;36m-^[[00;32m] ^[[01;35m^[[00;32mHypervisor: free ram (MB): 0^[[00m ^[[00;33mfrom (pid=20768) _report_hypervisor_resource_view /opt/stack/nova/nova/compute/resource_tracker.py:388^[[00m
2013-10-15 16:25:19.677 ^[[00;32mDEBUG nova.compute.resource_tracker [^[[00;36m-^[[00;32m] ^[[01;35m^[[00;32mHypervisor: free disk (GB): 0^[[00m ^[[00;33mfrom (pid=20768) _report_hypervisor_resource_view /opt/stack/nova/nova/compute/resource_tracker.py:389^[[00m
2013-10-15 16:25:19.678 ^[[00;32mDEBUG nova.compute.resource_tracker [^[[00;36m-^[[00;32m] ^[[01;35m^[[00;32mHypervisor: VCPU information unavailable^[[00m ^[[00;33mfrom (pid=20768) _report_hypervisor_resource_view /opt/stack/nova/nova/compute/resource_tracker.py:396^[[00m
2013-10-15 16:25:19.678 ^[[00;32mDEBUG nova.compute.resource_tracker [^[[00;36m-^[[00;32m] ^[[01;35m^[[00;32mHypervisor: no assignable PCI devices^[[00m ^[[00;33mfrom (pid=20768) _report_hypervisor_resource_view /opt/stack/nova/nova/compute/resource_tracker.py:403^[[00m

Tags: vmware
Changed in nova:
assignee: nobody → Sabari Kumar Murugesan (smurugesan)
Changed in nova:
status: New → In Progress
Revision history for this message
Sabari Murugesan (smurugesan) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/52487
Committed: http://github.com/openstack/nova/commit/100e962bb989ea3adc8324365dd84f87634691ea
Submitter: Jenkins
Branch: master

commit 100e962bb989ea3adc8324365dd84f87634691ea
Author: Sabari Kumar Murugesan <email address hidden>
Date: Thu Oct 17 12:35:36 2013 -0700

    VMware: Fix ValueError unsupported format character in log message

    Fixes a typo with format string in a log message.

    Closes-bug: #1240292
    Change-Id: Ia86859089351255cb974ed77b0c5f55a5e953b0e

Changed in nova:
status: In Progress → Fix Committed
Changed in nova:
milestone: none → icehouse-1
Thierry Carrez (ttx)
Changed in nova:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: icehouse-1 → 2014.1
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.