Add support for starting stopping VMs of specified test setup #1877
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 of PR
Summary:
Fixes # (issue)
A test server may have VMs for multiple test setups. The existing
tool sets can start the first N VMs and remove all VMs on the
server.
This change added the support of starting and stopping only the VMs
of specified testbed.
Type of change
Approach
What is the motivation for this PR?
The VMs started by master and 201811 branches do not compatible with each other. For VMs started using 201811 branch, run "add-topo/remove-topo" using master branch will fail. There is similar issue when run "add-topo/remove-topo" using 201811 branch on VMs started by master branch.
Assume a test server is used for multiple test setups. All the VMs were started using 201811 branch. If we want to upgrade one of the test setup to master branch and keep rest of the test setups unchanged. Then we need to stop the VMs assigned to the affected test setup using 201811 branch. Then start them using master branch.
However, currently the testbed-cli.sh tool only supports stop all the VMs on a server or start the first N VMs on the server. It need to be improved to meet the requirements of this new scenario.
The same change should be made to the 201811 branch to fully support the scenario.
How did you do it?
testbed-cli.sh start-topo-vms <topo_name> <password.txt>
: Only start the VMs assigned to the specified<topo_name>
testbed-cli.sh stop-topo-vms <topo_name> <password.txt>
: Only stop the VMs assigned to the specified<topo_name>
How did you verify/test it?
testbed-cli.sh stop-topo-vms
testbed-cli.sh start-topo-vm
testbed-cli.sh add-topo
testbed-cli.sh remove-topo
testbed-cli.sh stop-topo-vms
testbed-cli.sh start-topo-vms
testbed-cli.sh add-topo
testbed-cli.sh remove-topo
Any platform specific information?
Supported testbed topology if it's a new test case?
Documentation