<div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif">Hi stackers,</div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">

I have deployed a fully working multi-host cluster with 3 hosts featuring quantum with gre network:</div><div class="gmail_default" style="font-family:tahoma,sans-serif"><ol style><li style> controller<br></li><li style>
 network<br>
</li><li style> compute</li></ol></div><div><div dir="ltr"><div><div class="gmail_default"><font face="tahoma, sans-serif">For various reasons I would like to achieve the ​ retrieval of the VM metadata directly on the compute node.<br>

</font>For this I have nova-api-metadata installed in the compute node and I have confirmed that the service is listening on port 8775.</div><div class="gmail_default"><div class="gmail_default"><br></div><div class="gmail_default">

# netstat -tulpen | grep 8775</div><div class="gmail_default">tcp        0      0 <a href="http://0.0.0.0:8775">0.0.0.0:8775</a>            0.0.0.0:*               LISTEN      108        51549236    3091/python</div><div>

<br></div></div><div class="gmail_default" style>I can see the VM host request when tapping all the interfaces.<br>So by entering the following routing rule I should have request from <a href="http://169.254.169.254:80">169.254.169.254:80</a> routed to localhost:8775</div>

<div class="gmail_default" style><br></div><div style="font-family:tahoma,sans-serif" class="gmail_default">​iptables -t nat -A PREROUTING -d <a href="http://169.254.169.254/32">169.254.169.254/32</a> -p tcp -m tcp --dport 80 -j REDIRECT --to-port 8775​</div>

<br></div><div><div class="gmail_default"><font face="tahoma, sans-serif">​By doing so I don't see packets on port 8775 and ​nova-api-metadata log is not outputting anything.</font></div><div class="gmail_default" style>

<br></div><div class="gmail_default" style>My nova.conf is : <a href="https://gist.github.com/bussyjd/5269214">https://gist.github.com/bussyjd/5269214</a></div><div class="gmail_default" style><br></div><div class="gmail_default" style>

My questions are:</div></div><div class="gmail_default" style><ul style><li style>Am I missing something simple here?<br></li><li style>Is nova-api-metadata really functioning as metadata server on my compute host? (seems not to be the cause of the problem but just checking).<br>

</li><li style>Is there any plan for Grizzly to have the routing of the metadata request on the localhost automatically set when nova-api-metadata is present ?<br></li><li style>Why my routing rule doesn't apply here?</li>

</ul></div><div><div style="font-family:tahoma,sans-serif" class="gmail_default">​Regards,​</div><br></div><div><br></div><font face="tahoma, sans-serif"><b style="color:rgb(51,51,51)">BUSSY Jean-Daniel</b><br><br></font></div>

</div>
</div>