[openstack-dev] [Grizzly] Retrieving a flavors extra-specs in horizon

Dolph Mathews dolph.mathews at gmail.com
Fri Aug 2 00:06:11 UTC 2013


On Thu, Aug 1, 2013 at 6:32 PM, Dale, StewartX T
<stewartx.t.dale at intel.com>wrote:

> Hi List,****
>
> ** **
>
> I'm trying to port some UI(horizon) customization I did in Folsom so that
> it works in Grizzly and I could use everyone’s help. Must of the process
> has gone smoothly, just one piece that isn't working. It’s the code that
> gets the extra-specs of a flavor. My old Folsom based code looks like this:
> ****
>
> ** **
>
> flavor = api.flavor_get(self.request, flavor_id)****
>
> extras = flavor.get_keys()****
>
> inst.flavor_id = flavor_id****
>
> if extras:****
>
>      inst.myvalue = extras['mySpecs']****
>
> else:****
>
>      inst.myvalue = "-"****
>
> ** **
>
> But using that code in Grizzly causes a crash ( and no log entries so I
> don't even know why, just the).
>

It looks like you were going to link to a backtrace or something at the end
there :)


> I did some research and saw in the release notes of Grizzly that they had
> added support for getting a flavors extra specs in horizon (
> https://wiki.openstack.org/wiki/ReleaseNotes/Grizzly#Flavor_Extra_Specs_Support)
> but I can't find any actual examples of how to do it.  ****
>
> ** **
>
> I am hoping someone on the list might know.****
>
> ** **
>
> ** **
>
> -Stewart Dale****
>
> ** **
>
> _______________________________________________
> OpenStack-dev mailing list
> OpenStack-dev at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
>


-- 

-Dolph
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20130801/3a535e2b/attachment.html>


More information about the OpenStack-dev mailing list