ravening opened a new pull request #4446:
URL: https://github.com/apache/cloudstack/pull/4446
## Description
<!--- Describe your changes in detail -->
Check all mgt server connectivity
Currently ssvm checks connectivity only for one mgt server.
Since we can have multiple mgt servers using comma separated
list, make the change in script so that it checks for connectivity
for all mgt servers
<!-- For new features, provide link to FS, dev ML discussion etc. -->
<!-- In case of bug fix, the expected and actual behaviours, steps to
reproduce. -->
<!-- When "Fixes: #<id>" is specified, the issue/PR will automatically be
closed when this PR gets merged -->
<!-- For addressing multiple issues/PRs, use multiple "Fixes: #<id>" -->
<!-- Fixes: # -->
## Types of changes
<!--- What types of changes does your code introduce? Put an `x` in all the
boxes that apply: -->
- [ ] Breaking change (fix or feature that would cause existing
functionality to change)
- [ ] New feature (non-breaking change which adds functionality)
- [X] Bug fix (non-breaking change which fixes an issue)
- [ ] Enhancement (improves an existing feature and functionality)
- [ ] Cleanup (Code refactoring and cleanup, that may add test cases)
## Screenshots (if appropriate):
## How Has This Been Tested?
<!-- Please describe in detail how you tested your changes. -->
<!-- Include details of your testing environment, and the tests you ran to
-->
<!-- see how your change affects other areas of the code, etc. -->
Before the fix
```
root@s-172-VM:~# /usr/local/cloud/systemvm/ssvm-check.sh
================================================
Management server is 10.135.122.10,10.135.122.15,10.135.122.16. Checking
connectivity.
ERROR: Cannot connect to 10.135.122.10,10.135.122.15,10.135.122.16 port 8250
2020/11/03 12:58:34 socat[4508] E parseopts(): unknown option
"10.135.122.15" <<<<<<<<<<<<<<
```
After the fix
```
root@s-175-VM:~# /usr/local/cloud/systemvm/ssvm-check.sh
================================================
Management server is 10.135.122.10,10.135.122.15,10.135.122.16. Checking
connectivity.
Good: Can connect to management server 10.135.122.10 port 8250
Good: Can connect to management server 10.135.122.15 port 8250
Good: Can connect to management server 10.135.122.16 port 8250
================================================
Tests Complete. Look for ERROR or WARNING above.
```
<!-- Please read the
[CONTRIBUTING](https://github.com/apache/cloudstack/blob/master/CONTRIBUTING.md)
document -->
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]