Uploaded image for project: 'CloudStack'
  1. CloudStack
  2. CLOUDSTACK-8272

Improve password serving script by making it non-blocking non-locking concurrent server



    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.5.0, 4.4.2, 4.3.2, 4.6.0
    • Fix Version/s: 4.5.0, 4.6.0
    • Component/s: None
    • Security Level: Public (Anyone can view this level - this is the default.)
    • Labels:


      The current reset password server serves one user VM at a time, uses a global lock per VR and slows up VM starting process for a VM that is created by a template with reset password scripts. No only reset password option, but when the VM starts for the first time this happens. The way it serves password uses forking the process/scripts which eats up resources in both process table and memory. For a concurrent launch of 30+ VM the VR hangs/fails. Possible solution in the past includes increase the VR memory.

      The solution would be to implement a concurrent single-process multi-threaded password server that works both in basic/isolated network and in VPCs. It's hard to do this in bash, so we can either implement a backward compatible python script that replaces the present bash script, or a compiled program (like a native tool) in C/C++/Go/Rust.




            • Assignee:
              bhaisaab Rohit Yadav
              bhaisaab Rohit Yadav
            • Votes:
              0 Vote for this issue
              6 Start watching this issue


              • Created: