Ask Your Question
1

How to add 1 panel on the Dashboard (as an module openstack)

asked 2013-06-20 02:02:11 -0500

Ph4nToM gravatar image

updated 2013-06-26 23:53:48 -0500

sgordon gravatar image

Hello, I'm currently work on Openstack Dashboard to Custom it. But I have some problem with the architecture of file code...

I would like, as the module nova, to add on the project a panel as Instances (for exemple page1).

image description

And When I click on this one, I would like arrive to a page which display "Hello" (for exemple).

I have no Idea to do that with Openstack Dashbard.

Maybe people know a solution? I think is an interesting topic.

I can only for the moment modify the name of my panels.

--- at 09:26 today ---

I found on http://docs.openstack.org/developer/horizon/topics/tutorial.html#defining-a-dashboard a procedure to add a panel. What do you think about that? If I understand, I have to download the script run_tests.sh https://github.com/gabrielhurley/horizon_demo. and execute the line:

./run_tests.sh -m startpanel flocking --dashboard=visualizations --target=auto

I supose whith that I will create a new project. So if I want a project with name projet2, I have to execute the line:

./run_tests.sh -m startpanel projet2 --dashboard=visualizations --target=auto

And after all is built? Have I some panels definied to add some informations?

Maybe some people have already do this manipulation?

After modification, I have actually that on my Dashboard:

image description

To answer at Jpichon:

I would like to obtain this result:

image description

I have at the moment:

image description

How can I do?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2013-06-20 03:21:33 -0500

jpichon gravatar image

updated 2013-06-21 09:18:03 -0500

What you're actually interested in is the create panel documentation:

http://docs.openstack.org/developer/horizon/topics/tutorial.html#creating-a-panel

There is a run_tests.sh demo in your horizon repository clone already, there shouldn't be a need to download an old version (see https://github.com/openstack/horizon/blob/master/run_tests.sh on master).

Once you have your panel, you can use the documentation at

http://docs.openstack.org/developer/horizon/topics/customizing.html and http://docs.openstack.org/developer/horizon/topics/tutorial.html#override-file

to remove the existing instances panel and link to your new one instead.

EDIT: For your new panels to show in your dashboard, you need to register them.

See: http://docs.openstack.org/developer/horizon/topics/tutorial.html#defining-a-panel

from visualizations import dashboard

dashboard.VizDash.register(Page1) # Page1 being the class name for your new Panel

Further below in the tutorials, you can see how to create views and tie them to urls and templates to display what you want. Good luck!

edit flag offensive delete link more

Comments

I updated my previous answer to explain you with images

Ph4nToM gravatar imagePh4nToM ( 2013-06-20 03:33:38 -0500 )edit

Thanks for your help, it's work!

Ph4nToM gravatar imagePh4nToM ( 2013-06-24 01:32:46 -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

Stats

Asked: 2013-06-20 02:02:11 -0500

Seen: 1,454 times

Last updated: Jun 21 '13