VMware driver does not change compute node state to unavailable after disconnecting from vCenter

Bug #1316928 reported by Marcin Zbik
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Medium
Giridhar Jayavelu

Bug Description

VMware driver does not change compute node state (from :-) to XXX) when it lost connection to vCenter.

api_retry_count does not affect it at all.

When connection to vCenter is lost and nova-compute is restarted it works. But it does not without restarting. After restart state is changed to XXX and nova-compute is still polling API connection (good behavior) but without restart nova-compute has still smile state despite of " SessionConnectionException: NV-06475AF urllib2 error in RetrieveServiceContent: : <urlopen error [Errno 113] EHOSTUNREACH>"

Steps to reproduce:
1. Configure nova-compute to connect to VMware vCenter using vmware community driver.
2. Check state of compute-node, it should be available
3. Disconnect vCenter - for example just disconnect network from it
4. Check state of compute-node, it still be available

Expected result:
compute-node should be unavailable when vCenter is disconnected (maybe after api_retry_count?) without need to restart nova-compute.

Tags: vmware
description: updated
Tracy Jones (tjones-i)
Changed in nova:
importance: Undecided → Medium
status: New → Confirmed
Eric Brown (ericwb)
Changed in nova:
assignee: nobody → Eric Brown (ericwb)
Changed in nova:
assignee: Eric Brown (ericwb) → nobody
Changed in nova:
assignee: nobody → Giridhar Jayavelu (gjayavelu)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.openstack.org/290315

Changed in nova:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/290315
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=bd508a5a0e2462292cb3ebfa3ba851e8a1a2a01f
Submitter: Jenkins
Branch: master

commit bd508a5a0e2462292cb3ebfa3ba851e8a1a2a01f
Author: Giridhar Jayavelu <email address hidden>
Date: Tue Mar 8 23:13:14 2016 -0800

    VMware: set service status based on vc connection

    When the vcenter (vc) session is disconnected, say,
    if the management service on vcenter is down, then
    the nova-compute service status does not reflect that.

    This patch sets disabled=True in nova.objects.Service
    when the vcenter session is broken.
    When vcenter service is accessible again, then oslo_vmware
    takes care of recreating a new session.

    Closes-Bug: #1316928
    Change-Id: I73a34eb6e0ca32d03e54d12a5e066b2ed4f19a61

Changed in nova:
status: In Progress → Fix Released
Revision history for this message
Davanum Srinivas (DIMS) (dims-v) wrote : Fix included in openstack/nova 14.0.0.0b1

This issue was fixed in the openstack/nova 14.0.0.0b1 development milestone.

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.