[ESXi] Uninstallation of open-vm-tools should inform VMware platform

Bug #1322434 reported by vmware-gos-qa
18
This bug affects 2 people
Affects Status Importance Assigned to Milestone
open-vm-tools (Debian)
Fix Released
Unknown
open-vm-tools (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Uninstalling open-vm-tools leaves VMware platform assuming that open-vm-tools are still installed in the guest. VMware platform supports an RPC call to receive notification for open-vm-tools uninstallation. Uninstaller should make use of this RPC to notify the VMware platform that open-vm-tools has been uninstalled.

A similar issue was fixed in Fedora http://pkgs.fedoraproject.org/cgit/open-vm-tools.git/commit/?id=17141dd91c321fc41f7d1874d64e8ea7d055fcc9.

Reproduced this using Ubuntu14.04:

Steps:
=========================
1.Install Ubuntu14.04 vm and then open-vm-tools.
apt-get install open-vm-tools
2.Uninstall open-vm-tools using package manager by following commands:
apt-get remove open-vm-tools
apt-get purge open-vm-tools
3.Reboot VM.

Result:
=========================
Get result:
"Not running, version:2147483647 (3rd-party/Independent)"

Guest information:
(vim.vm.GuestInfo) {
   toolsStatus = "toolsNotRunning",
   toolsVersionStatus = "guestToolsUnmanaged",
   toolsVersionStatus2 = "guestToolsUnmanaged",
   toolsRunningStatus = "guestToolsNotRunning",
   toolsVersion = "2147483647",
   toolsUpdateStatus = (vim.vm.GuestInfo.ToolsUpdateStatus) {
      updateRequireReboot = <unset>,
   },
   guestId = <unset>,
   guestFamily = <unset>,
   guestFullName = <unset>,
   hostName = <unset>,
   ipAddress = <unset>,
   screen = (vim.vm.GuestInfo.ScreenInfo) {
      width = 800,
      height = 600
   },
   guestState = "notRunning",
   powerPolicy = (vim.vm.PowerPolicy) null,
   appHeartbeatStatus = "appStatusGray",
   appState = "none",
   guestOperationsReady = false,
   interactiveGuestOperationsReady = false,
}

affects: plainbox → open-vm-tools
Revision history for this message
Bo Dang (bdang) wrote :

Does anybody take a look for this bug ? Looks similar bugs have been fixed from Redhat and SUSE already. Thanks in advance!

Best Regards,
Bo

Revision history for this message
Ravindra Kumar (ravindrakumar) wrote :

Could someone please take care of this bug? The fix is easy and can be inherited from the fix we provided in Fedora. Could you please let us know if you need any help in getting this fixed? Thanks!

Revision history for this message
John Savanyo (jsavanyo) wrote :

Ping.

Revision history for this message
Patricia Gaughen (gaughen) wrote :

Pong. Will review and have it scheduled.

Changed in open-vm-tools:
assignee: nobody → Robert C Jennings (rcj)
affects: open-vm-tools → open-vm-tools (Ubuntu)
Revision history for this message
Ravindra Kumar (ravindrakumar) wrote :

Please refer the fix I made for Fedora http://pkgs.fedoraproject.org/cgit/open-vm-tools.git/commit/?id=17141dd91c321fc41f7d1874d64e8ea7d055fcc9.

It is a simple packaging step to be done in your pre-uninstall step. Could you please look into it?

Revision history for this message
vmware-gos-Yuhua (yhzou) wrote :

This issue exist since Ubuntu 14.04. Does anyone pay attention to it ?

vmware-gos-Yuhua (yhzou)
Changed in open-vm-tools (Ubuntu):
status: New → Confirmed
Revision history for this message
vmware-gos-Yuhua (yhzou) wrote :

The problem still exist on Ubuntu 14.04, 15.04, 15.10 and 16.04. Please get it fixed. Thanks.

Changed in open-vm-tools (Ubuntu):
status: Confirmed → New
Revision history for this message
vmware-gos-Yuhua (yhzou) wrote :

this issue is fixed in ubuntu16.10-beta2.

best regards
Yuhua Zou

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in open-vm-tools (Ubuntu):
status: New → Confirmed
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Hi,
this is hanging around for way too long.
I found it by checking old dormant bugs while taking a loot at the upcoming open-vm-tools backports.

The old link https://src.fedoraproject.org/cgit/open-vm-tools.git/commit/?id=17141dd91c321fc41f7d1874d64e8ea7d055fcc9 is dead by now unfortunately.

I assume you meant like line 154 in https://src.fedoraproject.org/rpms/open-vm-tools/c/17141dd91c321fc41f7d1874d6

Fixed for a long time already in Ubuntu by:
open-vm-tools (2:10.0.7-3227872-3) unstable; urgency=medium
.
  * [5060f42] Notify vmware when removing open-vm-tools.
    Thanks to Yanhui He (Closes: #825810)

Changed in open-vm-tools (Ubuntu):
status: Confirmed → Fix Released
assignee: Robert C Jennings (rcj) → nobody
Changed in open-vm-tools (Debian):
status: Unknown → Incomplete
Changed in open-vm-tools (Debian):
status: Incomplete → Fix Released
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.