Fix the validation of CPVMs states in multiple zones#13021
Open
Tonitzpp wants to merge 1 commit intoapache:4.20from
Open
Fix the validation of CPVMs states in multiple zones#13021Tonitzpp wants to merge 1 commit intoapache:4.20from
Tonitzpp wants to merge 1 commit intoapache:4.20from
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Currently, during the deployment of CPVMs, CloudStack validates whether there are already CPVMs in the
StartingorStoppingstate in the environment, in order to avoid duplicate provisioning. However, this operation does not filter for zones. Therefore, if there is more than one zone in the environment, and in one of these zones there is a CPVM in one of these states, the CPVMs of other zones will not be created.Changes were made to consider only the zone in which the CPVM will be created.
Types of changes
Feature/Enhancement Scale or Bug Severity
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
In an environment with two configured zones,
zn-01andzn-02, I started thezn-01and waited for its system VMs to start while zonezn-02was deactivated. After the system VMs in zonezn-01were in theRunningstate, I changed their states toStartingin the database and activated zonezn-02. I went to the system VMs tab and observed that the system VMs inzn-02were being created while those in zonezn-01were in theStartingstate.