[openstack-dev] Troubleshooting the nova api extension

Trinath Somanchi trinath.somanchi at gmail.com
Wed Sep 26 10:52:58 UTC 2012


Hi-

Can any guide me below points.

Thanking you all

--
Trinath

On Tue, Sep 25, 2012 at 2:34 PM, Trinath Somanchi <
trinath.somanchi at gmail.com> wrote:

> Hi Kevin-
>
> Here I'm adding another method "metadetail" while returns the set of
> servers which belong to the metadata information provided in the URL.
>
> Can you suggest me on,
>
> [1] Writing Controller Extension is more preferred (since, its a upgrade
> to 'detail' method)
> [2] Writing Resource Extension
>
> Kindly please guide me on this.
>
> Thanking you for the help.
>
> --
> Trinath
>
> On Mon, Sep 24, 2012 at 8:36 PM, Kevin L. Mitchell <
> kevin.mitchell at rackspace.com> wrote:
>
>> On Mon, 2012-09-24 at 15:09 +0530, Trinath Somanchi wrote:
>> > Here, The URI, /server/metadetail? is not being mapped to the method
>> > "metadetail()" method present in the   extension.
>> >
>> > Also, its that, the WSGI is mapping, the URI to "show" method rather
>> > than the "metadetail" method.  'wsgiorg.routing_args':
>> > (<routes.util.URLGenerator object at 0x36f64d0>, {'action': u'show',
>> > 'controller': <nova.api.openstack.wsgi.Resource object at 0x4644750>,
>> > 'project_id': u'e216fcb54dc944a8ab16e4e325299643', 'id':
>> > u'metadetail'})
>> >
>> > Please guide me on how to fix the issue such that the URL with
>> > "/server/metadetail" is mapped to the "metadetail" method in the new
>> > extension.
>>
>> Unfortunately, this isn't going to be possible using a
>> ControllerExtension, because of the way nova sets up its routes—there's
>> no way to merge the controller actions from the ControllerExtension with
>> the creation of the server resource.  Try a ResourceExtension with the
>> servers resource as the parent; that may work better for you.
>> --
>> Kevin L. Mitchell <kevin.mitchell at rackspace.com>
>>
>>
>> _______________________________________________
>> OpenStack-dev mailing list
>> OpenStack-dev at lists.openstack.org
>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>>
>
>
>
> --
> Regards,
> ----------------------------------------------
> Trinath Somanchi,
> +91 9866 235 130
>
>


-- 
Regards,
----------------------------------------------
Trinath Somanchi,
+91 9866 235 130
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20120926/73a39f30/attachment.html>


More information about the OpenStack-dev mailing list