Skip to content

VMware: SystemVMs not cleared after forcing them to stop #3719

@borisstoyanov

Description

@borisstoyanov
ISSUE TYPE
  • Bug Report
COMPONENT NAME

CLOUDSTACK VERSION

CONFIGURATION
OS / ENVIRONMENT
SUMMARY

Occupy a host with a few VMs and make sure both system vms are there as well

MariaDB [cloud]> select name,state,removed from vm_instance where type = 'SecondaryStorageVm' or type ='ConsoleProxy';
+---------+-----------+---------------------+
| name    | state     | removed             |
+---------+-----------+---------------------+
| s-1-VM  | Destroyed | 2019-11-21 09:37:59 |
| v-2-VM  | Destroyed | 2019-11-21 09:48:16 |
| s-28-VM | Destroyed | 2019-11-21 09:38:58 |
| s-29-VM | Destroyed | 2019-11-21 09:45:29 |
| s-30-VM | Destroyed | 2019-11-21 09:46:29 |
| s-31-VM | Destroyed | 2019-11-21 09:47:29 |
| s-32-VM | Destroyed | 2019-11-21 11:50:29 |
| v-33-VM | Destroyed | 2019-11-21 11:44:56 |
| v-39-VM | Destroyed | 2019-11-21 11:45:59 |
| v-40-VM | Destroyed | 2019-11-21 11:50:29 |
| v-41-VM | Running   | NULL                |
| s-42-VM | Destroyed | 2019-11-21 11:51:29 |
| s-43-VM | Destroyed | 2019-11-21 11:52:29 |
| s-44-VM | Destroyed | 2019-11-21 11:53:29 |
| s-45-VM | Destroyed | 2019-11-21 11:54:29 |
| s-46-VM | Destroyed | 2019-11-21 11:55:29 |
| s-47-VM | Destroyed | 2019-11-21 11:56:29 |
| s-48-VM | Running   | NULL                |
+---------+-----------+---------------------+
18 rows in set (0.00 sec)

Screenshot 2019-11-21 at 13 41 26

notice how s-29, s-32, 40 are still part of the list but according to cloudstack DB they are removed

STEPS TO REPRODUCE
Make sure the host is the last one in the cluster and set it to maintenance

Observe that all VMs are shut down

Cancel maintenance and observe new system vms will be created

Login to vCenter and see that old system vms are not destroyed
EXPECTED RESULTS

ACTUAL RESULTS

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions