I think if you run
git blame  ./patches/systemvm/debian/config/root/userdata.sh

There's several changes done to this particular piece of code.

The vm_data file is used for AWS-style "metadata" and user data
http://s.apache.org/amX
http://s.apache.org/PJH


From: <Musayev>, Ilya <imusa...@webmd.net<mailto:imusa...@webmd.net>>
Date: Monday, April 15, 2013 3:47 PM
To: "dev@cloudstack.apache.org<mailto:dev@cloudstack.apache.org>" 
<dev@cloudstack.apache.org<mailto:dev@cloudstack.apache.org>>, Chiradeep Vittal 
<chiradeep.vit...@citrix.com<mailto:chiradeep.vit...@citrix.com>>
Subject: [BUG][ACS41] vm_data updates router VM .htaccess file with duplicate 
RewriteRules

++Chiradeep, as I see your name referenced in the script.

Noticed an odd behavior on ACS41 and vSphere, where each time you deploy a VM, 
on router vm under /var/www/html/latest/ the .htaccess file gets duplicate set 
of rewrite rules appended.

Vm_data is called each time VM is deployed, and each time redundant 
RewriteRules are added to .htaccess file – per each run/vm demployment.

Before I begin troubleshooting and fixing this issue (I can help rewrite the 
bash logic for checking if entry exists), could someone please give me a 
context as to how and when vm_data file is used.


Also, for some reason metadata/meta-data Rewrite Rule is missing, I would like 
to understand where the call is made and how $folder variable is set.

Thanks
ilya

Reply via email to