Hi-<div><br></div><div>Can any guide me below points.</div><div><br></div><div>Thanking you all</div><div><br></div><div>--</div><div>Trinath<br><div><br><div class="gmail_quote">On Tue, Sep 25, 2012 at 2:34 PM, Trinath Somanchi <span dir="ltr"><<a href="mailto:trinath.somanchi@gmail.com" target="_blank">trinath.somanchi@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 Kevin-<div><br></div><div>Here I'm adding another method "metadetail" while returns the set of servers which belong to the metadata information provided in the URL.</div>
<div><br></div><div>Can you suggest me on,</div>
<div><br></div><div>[1] Writing Controller Extension is more preferred (since, its a upgrade to 'detail' method)</div><div>[2] Writing Resource Extension</div><div><br></div><div>Kindly please guide me on this.</div>
<div class="im">
<div><br></div><div>Thanking you for the help.</div><div><br></div></div><div>--</div><div>Trinath<br><br><div class="gmail_quote"><div class="im">On Mon, Sep 24, 2012 at 8:36 PM, Kevin L. Mitchell <span dir="ltr"><<a href="mailto:kevin.mitchell@rackspace.com" target="_blank">kevin.mitchell@rackspace.com</a>></span> wrote:<br>

</div><div><div class="h5"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>On Mon, 2012-09-24 at 15:09 +0530, Trinath Somanchi wrote:<br>
> Here, The URI, /server/metadetail? is not being mapped to the method<br>
> "metadetail()" method present in the   extension.<br>
><br>
> Also, its that, the WSGI is mapping, the URI to "show" method rather<br>
> than the "metadetail" method.  'wsgiorg.routing_args':<br>
> (<routes.util.URLGenerator object at 0x36f64d0>, {'action': u'show',<br>
> 'controller': <nova.api.openstack.wsgi.Resource object at 0x4644750>,<br>
> 'project_id': u'e216fcb54dc944a8ab16e4e325299643', 'id':<br>
> u'metadetail'})<br>
><br>
> Please guide me on how to fix the issue such that the URL with<br>
> "/server/metadetail" is mapped to the "metadetail" method in the new<br>
> extension.<br>
<br>
</div>Unfortunately, this isn't going to be possible using a<br>
ControllerExtension, because of the way nova sets up its routes—there's<br>
no way to merge the controller actions from the ControllerExtension with<br>
the creation of the server resource.  Try a ResourceExtension with the<br>
servers resource as the parent; that may work better for you.<br>
<span><font color="#888888">--<br>
Kevin L. Mitchell <<a href="mailto:kevin.mitchell@rackspace.com" target="_blank">kevin.mitchell@rackspace.com</a>><br>
<br>
<br>
_______________________________________________<br>
OpenStack-dev mailing list<br>
<a href="mailto:OpenStack-dev@lists.openstack.org" target="_blank">OpenStack-dev@lists.openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
</font></span></blockquote></div></div></div><br><br clear="all"><div class="im"><div><br></div>-- <br>Regards,<br>----------------------------------------------<br>Trinath Somanchi,<div><a href="tel:%2B91%209866%20235%20130" value="+919866235130" target="_blank">+91 9866 235 130</a></div>
<br>
</div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Regards,<br>----------------------------------------------<br>Trinath Somanchi,<div>+91 9866 235 130</div><br>
</div></div>