Ask Your Question
2

Can Neutronclient/Horizon determine the available extensions in Neutron?

asked 2014-03-19 01:21:36 -0500

updated 2014-03-19 01:21:52 -0500

In the __init__ of my core_plugin class, I am deciding whether a set of extensions should be enabled or not. Is there a module to determine the supported_extension_aliases via Neutronclient CLI or Horizon?

Thanks

edit retag flag offensive close merge delete

Comments

Thanks SamYaple, I failed to find a neutron client command too. Checking the logs is a good way, but it would be difficult to handle logs which are huge in size. Let's see.

prasoontelang gravatar imageprasoontelang ( 2014-03-19 12:12:38 -0500 )edit

I actually meant dig into the code that is generating the log files. You may get lucky and find a function specifically for extention lookups. Then you would just need to wrap it. This is assuming no one suggests a better way, it is the only way forward I can think of

SamYaple gravatar imageSamYaple ( 2014-03-19 12:24:26 -0500 )edit

2 answers

Sort by ยป oldest newest most voted
2

answered 2014-03-19 09:11:42 -0500

SamYaple gravatar image

Neutron looks up available extentions when you first start it up. The logs will say which ones are available (with debug or vebose one, I am not sure which one). You may be able to dig into to neutrons code to see how it finds which are available. I am not aware of any neutron client command that will return this information.

edit flag offensive delete link more
0

answered 2014-03-24 06:19:38 -0500

jpichon gravatar image

I'm not sure if this answers your question, but this is the way Horizon determines if an extension is available at the moment, using the list_extensions() call. I understand there are limitations.

https://github.com/openstack/horizon/...

edit flag offensive delete link more

Comments

Thanks! This solves our issue for retrieving supported extensions list. Can we dynamically register or unregister a panel using this without having to restart the httpd service?

prasoontelang gravatar imageprasoontelang ( 2014-03-25 01:30:49 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2014-03-19 01:21:36 -0500

Seen: 87 times

Last updated: Mar 24 '14