VNC console does not work with VCDriver

Bug #1178369 reported by dan wendlandt
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Critical
Shawn Hartsock
Grizzly
Fix Released
Critical
Gary Kotton
VMwareAPI-Team
Fix Released
Critical
Unassigned

Bug Description

From testing, it seems like VNC consoles do not work with the VCDriver.

There are actually two issues, one a doc issue, one a code issue.

1) Doc issue:

For vSphere version 5+, you need to poke a hole in the ESX firewall to allow VNC traffic. See: http://www.virtuallyghetto.com/2012/01/using-vnc-client-to-connect-to-vms-in.html

2) Code issue:

It seems like VNC consoles works with the ESXDriver, was not updated for the VCDriver, as get_vnc_console returns CONF.vmwareapi_host_ip, which is the ESX host IP with the ESXDriver, but is the vCenter host IP with the VCDriver (https://github.com/openstack/nova/blob/master/nova/virt/vmwareapi/vmops.py#L1105).

Tags: vmware
Changed in nova:
assignee: nobody → Shawn Hartsock (hartsock)
Changed in nova:
status: New → Confirmed
importance: Undecided → Medium
Revision history for this message
Shawn Hartsock (hartsock) wrote :

I'm working on a patch for this that changes the behavior of the driver for vCenter so that we end up talking to the correct IP.

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/30036

Changed in nova:
status: Confirmed → In Progress
Revision history for this message
Shawn Hartsock (hartsock) wrote :

Needs testing. Customer says this works but requires custom firewall rules on ESXi

Revision history for this message
Shawn Hartsock (hartsock) wrote :

I've pushed a patch with testing included.

Changed in nova:
importance: Medium → High
Revision history for this message
Shawn Hartsock (hartsock) wrote :

This should be ready to go.

Changed in nova:
assignee: Shawn Hartsock (hartsock) → Aaron Rosen (arosen)
Changed in nova:
assignee: Aaron Rosen (arosen) → Shawn Hartsock (hartsock)
Changed in nova:
milestone: none → havana-2
tags: added: grizzly-backport-potential
Revision history for this message
Shawn Hartsock (hartsock) wrote :

This is critical. System VNC fails without this patch. No work around available.

Changed in nova:
importance: High → Critical
Revision history for this message
Shawn Hartsock (hartsock) wrote :

I will have to rebase and alter this code, the code-base has drifted underneath the patch and it is now not compatible with the driver.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/30036
Committed: http://github.com/openstack/nova/commit/271fc68c1852e3764b7c64d71cd28ac3f803ecba
Submitter: Jenkins
Branch: master

commit 271fc68c1852e3764b7c64d71cd28ac3f803ecba
Author: hartsocks <email address hidden>
Date: Tue May 21 20:38:28 2013 -0700

    VNC console does not work with VCDriver

    Introduces get_vnc_console_vcenter as a way to get
    a modified vnc_console object that connects to the
    ESXi host underneath vCenter control.

    * adds new fake classes for testing
    * documents classes, methods & API logic

    fixes bug: #1178369

    Change-Id: I48430cb9bc9615e02ca9af235f97853f3f0bdafd

Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
status: Fix Committed → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (stable/grizzly)

Fix proposed to branch: stable/grizzly
Review: https://review.openstack.org/38473

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (stable/grizzly)

Reviewed: https://review.openstack.org/38473
Committed: http://github.com/openstack/nova/commit/1ef0d96be333688b6139168d196028f93bdc2381
Submitter: Jenkins
Branch: stable/grizzly

commit 1ef0d96be333688b6139168d196028f93bdc2381
Author: hartsocks <email address hidden>
Date: Tue May 21 20:38:28 2013 -0700

    VNC console does not work with VCDriver

    Introduces get_vnc_console_vcenter as a way to get
    a modified vnc_console object that connects to the
    ESXi host underneath vCenter control.

    * adds new fake classes for testing
    * documents classes, methods & API logic

    fixes bug: #1178369

    (cherry picked from commit 271fc68c1852e3764b7c64d71cd28ac3f803ecba)

    Conflicts:

     nova/virt/vmwareapi/fake.py

    Change-Id: I48430cb9bc9615e02ca9af235f97853f3f0bdafd

tags: added: in-stable-grizzly
Alan Pevec (apevec)
tags: removed: grizzly-backport-potential in-stable-grizzly
Tracy Jones (tjones-i)
tags: added: vmware-co-preferred
tags: removed: vmware-co-preferred
Tracy Jones (tjones-i)
Changed in openstack-vmwareapi-team:
status: New → Fix Released
Tracy Jones (tjones-i)
Changed in openstack-vmwareapi-team:
importance: Undecided → Critical
Thierry Carrez (ttx)
Changed in nova:
milestone: havana-2 → 2013.2
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.