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

[I] CS 4.22.0 cloudstack-sysvmadm Script hungs after the first 10, No logs, [cloudstack]

tatay188 opened a new issue, #12067:
URL: https://github.com/apache/cloudstack/issues/12067

   ### problem
   
   The script:
   Issue 1)
   nohup cloudstack-sysvmadm -d 10.23.123.55 -u cloud -p Loc@ll1tyPassW0rd -r > sysvm.log 2>&1 &
   
   Works but stops after the first 10, and Stays running on your Management server forever, after 2 Hours no more VRs are updated, just the first 10, or any number after the value of t.
   
   I verified using the UI only the first 10 number of vrouters were Updated, and stops there for 1 hour and 30 minutes and decided to do it manually.
   
   sysvm.log output
   nohup: ignoring input
   mysql: [Warning] Using a password on the command line interface can be insecure.
   mysql: [Warning] Using a password on the command line interface can be insecure.
   
   Stopping and starting 7XX running routing vm(s)... 
   
   
   Issue 2)
   Once the script is hung I have to kill each process manually. I Did try Linux commands  other than kill -9 does not work. And I cant kill the "bash" processes with killall as We am running shell scripts.
   
   ### versions
   
   Upgrade to CS 4.20.0
   
   
   ### The steps to reproduce the bug
   
   1. follow the official https://docs.cloudstack.apache.org/en/4.20.2.0/upgrading/upgrade/upgrade-4.20.html  OR the  Mop https://github.com/apache/cloudstack/discussions/12054
   2. on Updating the Virtual routers part or on Step 7 Option 2 of the MOP
   3. cloudstack-sysvmadm the logs indicates Stopping and starting 7XX running routing vm(s)... 
   4. Script cloudstack-sysvmadm Hungs for hours after executing the firts 10 or number after the t option.
   
   ### What to do about it?
   
   Script Should not Hung,  should keep going over the next virtual routers after the first 10. or any number configured with the option "t"


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

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


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

Posted by "abh1sar (via GitHub)" <gi...@apache.org>.
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


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

Posted by "abh1sar (via GitHub)" <gi...@apache.org>.
abh1sar commented on issue #12067:
URL: https://github.com/apache/cloudstack/issues/12067#issuecomment-3702064506

   In my testing, the script hangs forever, but it does restart all the VRs.


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


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

Posted by "DaanHoogland (via GitHub)" <gi...@apache.org>.
DaanHoogland closed issue #12067: cloudstack-sysvmadm Script hungs after the first 10 VR updated, No error logs
URL: https://github.com/apache/cloudstack/issues/12067


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


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

Posted by "abh1sar (via GitHub)" <gi...@apache.org>.
abh1sar commented on issue #12067:
URL: https://github.com/apache/cloudstack/issues/12067#issuecomment-3702093814

   @tatay188 could you please test if the fix in PR #12355 is working for you.
   Just replace the content of /usr/bin/cloudstack-sysvmadm with https://github.com/shapeblue/cloudstack/blob/60ac19b89a3c319d41be3936583a3ac4990b9b5e/setup/bindir/cloud-sysvmadm.in


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


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

Posted by "DaanHoogland (via GitHub)" <gi...@apache.org>.
DaanHoogland commented on issue #12067:
URL: https://github.com/apache/cloudstack/issues/12067#issuecomment-3742677482

   fixed in #12355 


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