Skip to content

Isolated network is shutdown even when there are running VMs on it #8200

Description

@weizhouapache

in some cases, the isolated network is shutdown even when there running VMs on it. due to it

  • the VR is stopped
  • the vlan is released

As a workaround, to avoid the issue, user has to update the network to persistent, t

update network_offerings set is_persistent = 1 where traffic_type='Guest' and guest_type='Isolated';

The issue is that, the nics_count in op_networks table is changed to 0, which is wrong sometimes.
We should add check on running/migrating/stopping VMs as well, before shutting down an isolated network, which is similar as

if (_nicDao.countNicsForStartingVms(networkId) > 0) {
s_logger.debug("Network id=" + networkId + " is not ready for GC as it has vms that are Starting at the moment");
return false;
}

ISSUE TYPE
  • Bug Report
COMPONENT NAME

CLOUDSTACK VERSION
4.18
CONFIGURATION
OS / ENVIRONMENT
SUMMARY
STEPS TO REPRODUCE

EXPECTED RESULTS

ACTUAL RESULTS

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions