cloudstack icon indicating copy to clipboard operation
cloudstack copied to clipboard

scripts: parametrize systemvm, router restart

Open shwstppr opened this issue 2 years ago • 4 comments

Description

Fixes #6220

Types of changes

  • [ ] Breaking change (fix or feature that would cause existing functionality to change)
  • [ ] New feature (non-breaking change which adds functionality)
  • [ ] Bug fix (non-breaking change which fixes an issue)
  • [x] Enhancement (improves an existing feature and functionality)
  • [ ] Cleanup (Code refactoring and cleanup, that may add test cases)

Feature/Enhancement Scale or Bug Severity

Feature/Enhancement Scale

  • [ ] Major
  • [ ] Minor

Bug Severity

  • [ ] BLOCKER
  • [ ] Critical
  • [ ] Major
  • [ ] Minor
  • [ ] Trivial

Screenshots (if appropriate):

How Has This Been Tested?

[root@ref-trl-3339-v-M7-abhishek-kumar-mgmt1 ~]# /usr/bin/cloudstack-sysvmadm

The tool stopping/starting running system vms and domain routers 

Usage: cloudstack-sysvmadm: [-d] [-u] [-p] [-m] [-s] [-r] [-a] [-t] [-n] [-z] [-i] [-j] [-v] [-i] [-j]

 -d - cloud DB server ip address, defaulted to localhost if not specified 
 -u - user name to access cloud DB, defaulted to root if not specified 
 -p - cloud DB user password, defaulted to no password if not specified 

 -m - the ip address of management server, defaulted to localhost if not specified

 -s - stop then start all running SSVMs and Console Proxies 
 -r - stop then start all running Virtual Routers
 -a - stop then start all running SSVMs, Console Proxies, and Virtual Routers 
 -n - restart all Guest networks 
 -t - number of parallel threads used for stopping Domain Routers. Default is 10.
 -l - log file location. Default is cloud.log under current directory.
 -z - do restart only for the instances in the specific zone. If not specified, restart will apply to instances in all zones
 -v - do restart all VPCs in the entire system
 -i - do restart on instances with specific IDs. Comma-separated instance IDs to be provided. Works ony when restarting SSVMs, CPVMs or VRs
 -j - do restart on instances from the specified database table. If not specified, restart will apply on instances present in cloud.vm_instance database table. Works ony when restarting SSVMs, CPVMs or VRs
[root@ref-trl-3339-v-M7-abhishek-kumar-mgmt1 ~]# /usr/bin/cloudstack-sysvmadm -a -u root -p P@ssword123 -i 9b802cd9-8d97-42dc-9610-2650a2831fee,2f1d6bc1-7143-42b7-a5b7-2383d4eddcb9

Stopping and starting 1 secondary storage vm(s) with id=9b802cd9-8d97-42dc-9610-2650a2831fee,2f1d6bc1-7143-42b7-a5b7-2383d4eddcb9...
Done stopping and starting secondary storage vm(s) with id=9b802cd9-8d97-42dc-9610-2650a2831fee,2f1d6bc1-7143-42b7-a5b7-2383d4eddcb9

Stopping and starting 1 console proxy vm(s) with id=9b802cd9-8d97-42dc-9610-2650a2831fee,2f1d6bc1-7143-42b7-a5b7-2383d4eddcb9...
Done stopping and starting console proxy vm(s)  with id=9b802cd9-8d97-42dc-9610-2650a2831fee,2f1d6bc1-7143-42b7-a5b7-2383d4eddcb9.

Stopping and starting 0 running routing vm(s) with id=9b802cd9-8d97-42dc-9610-2650a2831fee,2f1d6bc1-7143-42b7-a5b7-2383d4eddcb9... 

shwstppr avatar Jul 27 '22 10:07 shwstppr

Found UI changes, kicking a new UI QA build @blueorangutan ui

acs-robot avatar Jul 27 '22 10:07 acs-robot

@acs-robot a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress.

blueorangutan avatar Jul 27 '22 10:07 blueorangutan

UI build: :heavy_check_mark: Live QA URL: http://qa.cloudstack.cloud:8080/client/pr/6574 (SL-JID-2012)

blueorangutan avatar Jul 27 '22 11:07 blueorangutan

Found UI changes, kicking a new UI QA build @blueorangutan ui

acs-robot avatar Aug 17 '22 09:08 acs-robot

@acs-robot a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress.

blueorangutan avatar Aug 17 '22 09:08 blueorangutan

UI build: :heavy_check_mark: Live QA URL: http://qa.cloudstack.cloud:8080/client/pr/6574 (SL-JID-2168)

blueorangutan avatar Aug 17 '22 09:08 blueorangutan

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

sonarqubecloud[bot] avatar Aug 17 '22 10:08 sonarqubecloud[bot]

This is interesting, Peter. I assume you are aware of FLARM, which is used in gliders. I feel that Stratux would not be able to perform the request as it is already using 2 USB ports for 2 SDRs, and I would expect a 3rd SDR would be required, for the additional frequency. How often can APRS update position within current HAM license rules. Certainly there is a use case here, but I see it as a separate product. Given all of that, I would go with PowerFlarm. https://www.skybrary.aero/index.php/FLARM https://flarm.com/products/powerflarm/product-selector/ and we already have Flarm ready stratux code. After you look at this stuff long enough, the FAA may have picked the wrong horse.

codecov[bot] avatar Aug 17 '22 17:08 codecov[bot]

@shwstppr is this good for review/merge?

rohityadavcloud avatar Oct 08 '22 06:10 rohityadavcloud

@blueorangutan package

DaanHoogland avatar Dec 13 '22 09:12 DaanHoogland

@DaanHoogland a Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

blueorangutan avatar Dec 13 '22 09:12 blueorangutan

Packaging result: :heavy_multiplication_x: el7 :heavy_multiplication_x: el8 :heavy_multiplication_x: debian :heavy_multiplication_x: suse15. SL-JID 4881

blueorangutan avatar Dec 13 '22 11:12 blueorangutan

Packaging result: :heavy_multiplication_x: el7 :heavy_check_mark: el8 :heavy_check_mark: debian :heavy_check_mark: suse15. SL-JID 4902

blueorangutan avatar Dec 13 '22 18:12 blueorangutan

Packaging result: :heavy_check_mark: el7 :heavy_check_mark: el8 :heavy_check_mark: debian :heavy_check_mark: suse15. SL-JID 4982

blueorangutan avatar Dec 16 '22 11:12 blueorangutan

@blueorangutan test matrix

DaanHoogland avatar Dec 16 '22 12:12 DaanHoogland

@DaanHoogland a Trillian-Jenkins matrix job (centos7 mgmt + xs71, centos7 mgmt + vmware65, centos7 mgmt + kvmcentos7) has been kicked to run smoke tests

blueorangutan avatar Dec 16 '22 12:12 blueorangutan

@DaanHoogland I don't think the script, this PR changes, is called by the management server or any agent

shwstppr avatar Dec 16 '22 13:12 shwstppr

Trillian test result (tid-5528) Environment: xenserver-71 (x2), Advanced Networking with Mgmt server 7 Total time taken: 39666 seconds Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr6574-t5528-xenserver-71.zip Smoke tests completed. 105 look OK, 0 have errors, 0 did not run Only failed and skipped tests results shown below:

Test Result Time (s) Test File

blueorangutan avatar Dec 17 '22 00:12 blueorangutan

Trillian test result (tid-5529) Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7 Total time taken: 44535 seconds Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr6574-t5529-kvm-centos7.zip Smoke tests completed. 104 look OK, 1 have errors, 0 did not run Only failed and skipped tests results shown below:

Test Result Time (s) Test File
test_01_vpc_site2site_vpn_multiple_options Failure 497.08 test_vpc_vpn.py
test_01_vpc_site2site_vpn Failure 395.24 test_vpc_vpn.py

blueorangutan avatar Dec 17 '22 01:12 blueorangutan