You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by "abh1sar (via GitHub)" <gi...@apache.org> on 2025/12/31 07:57:12 UTC

Re: [I] CS 4.22.0 cloudstack-sysvmadm Script hungs after the first 10 VR updated, No error logs [cloudstack]

abh1sar commented on issue #12067:
URL: https://github.com/apache/cloudstack/issues/12067#issuecomment-3701660017

   There is a bug in setup/bindir/cloud-sysvmadm.in due to which if number of routers is more than 10 (default value of maxthreads), the script hangs forever.
   @tatay188  As a workaround, you can change maxthreads (-t) while running the script to avoid the hang.
   
   ```
   The tool for stopping/starting running system vms and domain routers. It requires integration API port to be enabled.
   
     Usage: %s: [-d] [-u] [-p] [-m] [-s] [-r] [-a] [-n] [-t] [-l] [-z] [-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 only 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 only when restarting SSVMs, CPVMs or VRs\n\n"
   ```
   
   Basically for it to not hang, either
   1. maxthreads should be more than equal to number of routers, or
   2. maxthreads should be a factor of number of routers
   e.g, if number of routers is 22, then maxthreads should be 2, 11 or 22 and above)


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org