Ask Your Question
0

How to start to develop a new management site, like a public cloud?

asked 2017-08-18 05:33:30 -0500

liaodalin19903 gravatar image

updated 2017-08-18 10:13:57 -0500

I want to develop a website to manage the openstack (like the dashboard), but I don't know how to do with that. I want the website to be like the public cloud.

And now, my situation is like below:

I have three nodes(VM, and the system is CentOS7.2) , they are HA. they are node1, node2, node3. all are controllers. and node1 is compute1 node2 is compute2. my cluster haproxy also is node1.

I configured the HA openstack correctly, works perfect.

Now I want to realize the website. But I don't know how to do with that.

I have some questions here:

1) if I develop the website, how can I develop the website to connect to the HA OpenStack( I set up in my 3 nodes ) ?
2) the openstack I set up, has the mariadb cluster, if I develop my website, the web datas and the register users(tenant) data where should I store? in the mariadb cluster? or somewhere else?
3) if I in the website, I as a tenant, how can create a instance with the time limit ( such as one month, or half year ) ?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2017-08-18 08:33:32 -0500

updated 2017-08-18 17:14:23 -0500

I am a bit uncertain what's your goal. Do you want to manage your cluster, e.g. monitor your cloud's health, or do you want to create something like Horizon? Your first pararagraph indicates the former. The third question and your question about tenants in the second question indicates the latter.

If you want to create a new dashboard, get your inspiration from Horizon. It connects to the OpenStack services by issuing API requests. If you want to create a tool to monitor your cloud, why don't you use existing solutions, for example based on Nagios? In any case, you need something that checks whether all processes are running, all files are in place with correct permissions etc. This is normally accomplished by running agents on the hosts.

The web site users should be the same as the OpenStack users. Horizon doesn't keep a separate user database as far as I know. Just use Keystone. If you use the web site for managing the cloud, you only need one user, namely admin, I would think. The MariaDB cluster keeps the permanent state of your cloud resources. I would keep temporary data that changes often in a different place to avoid stressing the DB too much. OpenStack makes use of memcached, for example, or MongoDB for metric data.

I am not sure if I understand question 3. In any case, instances don't have a time limit, but it's easy to delete them automatically using cron or at or a more sophisticated scheduler.

edit flag offensive delete link more

Comments

@BerndBausch What is the meaning of You run it on instances managed by OpenStack.?

liaodalin19903 gravatar imageliaodalin19903 ( 2017-08-18 10:05:56 -0500 )edit

i want to develop a website to manage the openstack, like dashboard.

liaodalin19903 gravatar imageliaodalin19903 ( 2017-08-18 10:14:24 -0500 )edit

I misunderstood your question and am going to edit my answer.

Bernd Bausch gravatar imageBernd Bausch ( 2017-08-18 16:52:03 -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: 2017-08-18 05:33:30 -0500

Seen: 55 times

Last updated: Aug 18 '17