adding openstack-dev list, for a wider set of people who can comment and learn. <br><br><div class="gmail_quote">On Thu, Dec 6, 2012 at 8:15 AM, hitesh wadekar <span dir="ltr"><<a href="mailto:hitesh.wadekar@gmail.com" target="_blank">hitesh.wadekar@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Dan,<br><br>Recently, I have installed Quantum on REHL 6.3 from the source. I have a couple of questions, please help me out.<br>

<br>1. We are using only Quantum service and developing our own plug-in + extension. However, I have configure Quantum as <b>'noauth'</b>. for that I did only one changes in Quantum.conf file, no other changes (api paste file is same as by defualt settings). <br>


<br>According to our docs, if we configure Quantum with no KS (Keystone), then we should pass fake token, so that it will be consider as a tenant_id for the resources, this is my understanding. Next step, I requested (GET) to networks, <b>(curl -i <a href="http://0.0.0.0:9696/v2.0/networks.json" target="_blank">http://0.0.0.0:9696/v2.0/networks.json</a> -X GET -H "User-Agent: python-quantumclient" -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: 3bcc3d3a03f44e3d8377f9247b0ad155") . </b>While debugging the code, I observed that, at the plugin side, <b>def get_networks(self, context, filters=None, fields=None):</b>, the context object, <b>context.tenant_id</b> is getting <b>None</b>. <br>


<br><b>ANY idea</b> why this would be <b>blank</b>?  I could guess that since KS has not configured, tenant_id would be blank (Note: I didn;t debug the code completely).<br></blockquote><div><br></div><div>I haven't rechecked the code, but I think that if keystone is not installed, the context will be an admin one, with no tenant set.  The requirement would be that each request would include a specific tenant_id as part of the request (e.g., using the --tenant_id flag from the CLI), since we can't grab one implicitly from keystone. </div>

<div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> <br>2. Do we need AMQP server should be installed (as dependencies), if we are not going to use an agent?  ( I observed that while requesting PUT, it's giving me an error for AMQP server unreachable)<br>

</blockquote><div><br></div><div>Even if you don't have agents, AMQP is probably used for notifications.  If you don't want to run notifications, you can probably change the default notification_driver to: </div>
<div>
<br></div><div><div>notification_driver = quantum.openstack.common.notifier.no_op_notifier</div></div><div><br></div><div>Note that the current DHCP agent relies on notifications, so if you're using DHCP, don't change this from the default rpc_driver .</div>

<div><br></div><div>Dan</div><div><br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>Good thing is, I am going to debug all our source code step by step :), as I am developing plugin and extension.<br><br>Thanks Dan.<br><br>Cheer,<br>Hitesh<br><br><br><br> <br><br><br><br><br><br><br><br><br><br><br>


</blockquote></div><br><br clear="all"><div><br></div>-- <br>~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>Dan Wendlandt <div>Nicira, Inc: <a href="http://www.nicira.com" target="_blank">www.nicira.com</a><br><div>twitter: danwendlandt<br>

~~~~~~~~~~~~~~~~~~~~~~~~~~~<br></div></div><br>