Chiradeep,

Thanks for the feedback,

We are aware what this is for. There is an issue we found where "boto", aws 
component used by cloud-init looks for meta-data dir. In ACS 4.1, the rewrite 
rule for meta-data dir is never added to router vm's .htaccess file - however 
we do see the code for it in vm_data.sh

Hence we trying to understand - why its not added.

Ill dig more tomorrow, if you can explain the context behind vm_data.sh, whats 
its for and why its executed - it would really speed up our debug efforts.

Thanks
Ilya



-------- Original message --------
From: Chiradeep Vittal <chiradeep.vit...@citrix.com>
Date:
To: "Musayev, Ilya" <imusa...@webmd.net>,dev@cloudstack.apache.org
Subject: Re: [BUG][ACS41] vm_data updates router VM .htaccess file with 
duplicate RewriteRules


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