Display instance uuid instead of VM object

Bug #1489736 reported by Romil Gupta
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
networking-vsphere
Fix Committed
Undecided
Romil Gupta

Bug Description

It is difficult to understand the instance ID whenever we receive an event from vCenter for a particular VM.

so, instead of logging this:

Added vm to cache: <networking_vsphere.common.model.VirtualMachine object at 0x7f0b398a0e10>.

it should display:

Added VM to cache: 206220f6-a3c7-4444-8559-975aec1f481e.

Similarly, instead of logging this:

Handling event VM_CREATED for <networking_vsphere.common.model.VirtualMachine object at
0x7f1b6d837ad0>

it should display:

Handling event VM_CREATED for 206220f6-a3c7-4444-8559-975aec1f481e.

Romil Gupta (romilg)
Changed in networking-vsphere:
assignee: nobody → Romil Gupta (romilg)
status: New → In Progress
description: updated
Romil Gupta (romilg)
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to networking-vsphere (master)

Reviewed: https://review.openstack.org/218129
Committed: https://git.openstack.org/cgit/openstack/networking-vsphere/commit/?id=1c51beb361f6dd8c53686d2a75b030257277b2a5
Submitter: Jenkins
Branch: master

commit 1c51beb361f6dd8c53686d2a75b030257277b2a5
Author: Romil Gupta <email address hidden>
Date: Fri Aug 28 00:19:22 2015 -0700

    Display instance uuid instead of VM object

    We were logging object handle instead of instance ID
    in the debug statements for critical VCenter events.

    This fix addresses log-statement only changes to print
    instance IDs.

    Change-Id: I4483c02de444e72c56ad4f6205deaade9969eb5a
    Closes-Bug: #1489736

Changed in networking-vsphere:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to networking-vsphere (stable/kilo)

Fix proposed to branch: stable/kilo
Review: https://review.openstack.org/219210

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to networking-vsphere (stable/kilo)

Reviewed: https://review.openstack.org/219210
Committed: https://git.openstack.org/cgit/openstack/networking-vsphere/commit/?id=45f1b7b8a480db2d84613b80388addd03947fdcb
Submitter: Jenkins
Branch: stable/kilo

commit 45f1b7b8a480db2d84613b80388addd03947fdcb
Author: Romil Gupta <email address hidden>
Date: Fri Aug 28 00:19:22 2015 -0700

    Display instance uuid instead of VM object

    We were logging object handle instead of instance ID
    in the debug statements for critical VCenter events.

    This fix addresses log-statement only changes to print
    instance IDs.

    (Cherry-picked from commit 1c51beb361f6dd8c53686d2a75b030257277b2a5)

    Change-Id: I4483c02de444e72c56ad4f6205deaade9969eb5a
    Closes-Bug: #1489736

tags: added: in-stable-kilo
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.