GitHub user akrasnov-drv added a comment to the discussion: CloudStack fails to start more VMs
Here are results of the 1st test. I executed deployVirtualMachine sequentially with 2 sec interval 100 times. No userdata or static nat. Though there is cloud-init that configures network and hostnames from metadata server of VR. All 100 VMs booted, and according to dnsmasq got their IPs (I checked several manually, and they look ok). This took almost 30 min to finish. I cleaned everything before starting, also restarted libvirt, agents, management and network. VR was clean ``` root@r-331-VM:~# cat /var/www/html/latest/.htaccess | wc -l 25 root@r-331-VM:~# cat /var/www/html/latest/.htaccess Options +FollowSymLinks RewriteEngine On #http://<routerIP>/latest/user-data and .../user-data/ (both yield user-data file) #http://<routerIP>/latest/meta-data and .../meta-data/ (dir listing of meta-data) RewriteRule ^user-data/?$ ../userdata/%{REMOTE_ADDR}/user-data [L,NC,QSA] RewriteRule ^meta-data/?$ ../metadata/%{REMOTE_ADDR}/meta-data [L,NC,QSA] #http://<routerIP/latest/meta-data/foo and .../foo/ (yield metadata/$IP/foo) RewriteRule ^meta-data/(.+[^/])/?$ ../metadata/%{REMOTE_ADDR}/$1 [L,NC,QSA] #http://<routerIP>/latest/foo and .../foo/ (yield metadata/$IP/foo) #are these used? RewriteRule ^availability-zone/?$ ../metadata/%{REMOTE_ADDR}/availability-zone [L,NC,QSA] RewriteRule ^cloud-identifier/?$ ../metadata/%{REMOTE_ADDR}/cloud-identifier [L,NC,QSA] RewriteRule ^instance-id/?$ ../metadata/%{REMOTE_ADDR}/instance-id [L,NC,QSA] RewriteRule ^local-hostname/?$ ../metadata/%{REMOTE_ADDR}/local-hostname [L,NC,QSA] RewriteRule ^local-ipv4/?$ ../metadata/%{REMOTE_ADDR}/local-ipv4 [L,NC,QSA] RewriteRule ^public-hostname/?$ ../metadata/%{REMOTE_ADDR}/public-hostname [L,NC,QSA] RewriteRule ^public-ipv4/?$ ../metadata/%{REMOTE_ADDR}/public-ipv4 [L,NC,QSA] RewriteRule ^public-keys/?$ ../metadata/%{REMOTE_ADDR}/public-keys [L,NC,QSA] RewriteRule ^service-offering/?$ ../metadata/%{REMOTE_ADDR}/service-offering [L,NC,QSA] RewriteRule ^vm-id/?$ ../metadata/%{REMOTE_ADDR}/vm-id [L,NC,QSA] RewriteRule ^cloud-domain/?$ ../metadata/%{REMOTE_ADDR}/vm-id [L,NC,QSA] RewriteRule ^cloud-domain-id/?$ ../metadata/%{REMOTE_ADDR}/vm-id [L,NC,QSA] ``` At the end .htaccess was multiplied again: ``` root@r-331-VM:~# cat /var/www/html/latest/.htaccess | wc -l 60627 root@r-331-VM:~# cat /var/www/html/latest/.htaccess | sort -u | wc -l 37 ``` To make sure, config has extra `seek` lines from the patch ``` root@r-331-VM:~# grep -n seek /opt/cloud/bin/configure.py 936: fh.seek(0) 973: fh.seek(0) 979: fh.seek(0) ``` Must be there is more places too add seek... GitHub link: https://github.com/apache/cloudstack/discussions/10184#discussioncomment-11993180 ---- This is an automatically sent email for users@cloudstack.apache.org. To unsubscribe, please send an email to: users-unsubscr...@cloudstack.apache.org