2016-11-24 14:01:49 +01:00
|
|
|
========================
|
|
|
|
Team and repository tags
|
|
|
|
========================
|
|
|
|
|
2018-03-12 08:57:47 +00:00
|
|
|
.. image:: https://governance.openstack.org/tc/badges/freezer-web-ui.svg
|
|
|
|
:target: https://governance.openstack.org/tc/reference/tags/index.html
|
2016-11-24 14:01:49 +01:00
|
|
|
|
|
|
|
.. Change things from this point on
|
|
|
|
|
2015-07-17 11:35:34 +01:00
|
|
|
===========================
|
|
|
|
Freezer - Horizon Dashboard
|
|
|
|
===========================
|
2014-10-27 16:17:44 +00:00
|
|
|
|
2015-11-09 16:10:36 +00:00
|
|
|
freezer-web-ui is a horizon plugin based in django aimed at providing an interaction
|
|
|
|
with freezer
|
|
|
|
|
2018-08-30 22:09:41 -04:00
|
|
|
* Issue tracking and feature specifications: https://storyboard.openstack.org/#!/project/openstack/freezer-web-ui
|
2015-11-09 16:10:36 +00:00
|
|
|
|
2015-07-17 11:35:34 +01:00
|
|
|
Requirements
|
2015-03-06 12:18:05 +00:00
|
|
|
============
|
2014-10-27 16:17:44 +00:00
|
|
|
|
2016-02-20 20:40:51 -05:00
|
|
|
Freezer Dashboard requires a freezer API client to be installed in the same environment as horizon::
|
2015-09-02 10:47:28 +01:00
|
|
|
|
2018-10-30 07:19:08 -04:00
|
|
|
git clone https://github.com/openstack/python-freezerclient
|
|
|
|
cd python-freezerclient
|
|
|
|
python setup.py install (is important that freezer API client is installed from source and not with pip and
|
2015-10-19 21:21:20 +01:00
|
|
|
is installed on horizon virtual environment)
|
2015-09-02 10:47:28 +01:00
|
|
|
|
2017-01-20 14:15:15 +08:00
|
|
|
Freezer Dashboard requires a freezer API endpoint which you can install following this steps:
|
2015-07-17 11:35:34 +01:00
|
|
|
|
2017-01-17 22:21:35 +08:00
|
|
|
`https://github.com/openstack/freezer-api/blob/master/README.rst
|
|
|
|
<https://github.com/openstack/freezer-api/blob/master/README.rst>`_
|
2015-07-17 11:35:34 +01:00
|
|
|
|
|
|
|
API registration
|
|
|
|
================
|
|
|
|
|
2017-01-20 14:15:15 +08:00
|
|
|
Register freezer api endpoint:
|
2015-07-17 11:35:34 +01:00
|
|
|
|
2017-01-17 22:21:35 +08:00
|
|
|
`https://github.com/openstack/freezer-api/blob/master/README.rst#api-registration
|
|
|
|
<https://github.com/openstack/freezer-api/blob/master/README.rst#api-registration>`_
|
2015-07-17 11:35:34 +01:00
|
|
|
|
|
|
|
If keystone service-create and endpoint-create are not available you can set as a fallback the following on::
|
|
|
|
|
|
|
|
# vim /opt/stack/horizon/openstack_dashboard/local/local_settings.py
|
|
|
|
|
|
|
|
# add FREEZER_API_URL = http://<api_url>:<port>
|
|
|
|
|
|
|
|
|
2024-12-09 11:25:43 +01:00
|
|
|
Installation
|
|
|
|
============
|
2015-07-17 11:35:34 +01:00
|
|
|
|
2014-10-27 16:17:44 +00:00
|
|
|
In the installation procedure we'll assume your main Horizon dashboard
|
|
|
|
directory is /opt/stack/horizon/openstack_dashboard/dashboards/.
|
|
|
|
|
2015-03-06 12:18:05 +00:00
|
|
|
|
2015-07-17 11:35:34 +01:00
|
|
|
To install freezer dashboard for development you need to do the following::
|
2014-10-27 16:17:44 +00:00
|
|
|
|
2015-10-19 21:21:20 +01:00
|
|
|
# git clone https://github.com/openstack/freezer-web-ui
|
2014-10-27 16:17:44 +00:00
|
|
|
|
2015-09-02 10:47:28 +01:00
|
|
|
# cd freezer-web-ui
|
2014-10-27 16:17:44 +00:00
|
|
|
|
2024-12-09 09:58:19 +01:00
|
|
|
# cp freezer-web-ui/freezer_ui/enabled/_5050_freezer.py /opt/stack/horizon/openstack_dashboard/enabled/_5050_freezer.py
|
2016-02-16 14:55:38 +00:00
|
|
|
|
2024-12-09 11:25:43 +01:00
|
|
|
# to disable the panel set `DISABLED = True` in /opt/stack/horizon/openstack_dashboard/enabled/_5050_freezer.py
|
2015-03-06 12:18:05 +00:00
|
|
|
|
2014-10-27 16:17:44 +00:00
|
|
|
# cd /opt/stack/horizon/
|
|
|
|
|
2015-07-17 11:35:34 +01:00
|
|
|
# pip install -r requirements.txt
|
2015-03-06 12:18:05 +00:00
|
|
|
|
2015-09-02 10:47:28 +01:00
|
|
|
# make sure freezer is installed from source as detailed in the first step
|
|
|
|
|
|
|
|
# ./run_tests.sh --runserver 0.0.0.0:8000
|
2015-07-02 13:58:43 +01:00
|
|
|
|
2015-07-17 11:35:34 +01:00
|
|
|
|
2015-11-26 15:02:47 +00:00
|
|
|
A new tab called "Disaster Recovery" will appear on your panels.
|
2015-07-02 13:58:43 +01:00
|
|
|
|
2015-03-06 12:18:05 +00:00
|
|
|
|
2015-09-02 10:47:28 +01:00
|
|
|
Tox
|
2015-11-09 16:10:36 +00:00
|
|
|
===
|
2015-09-02 10:47:28 +01:00
|
|
|
|
|
|
|
1. Run tox::
|
|
|
|
|
|
|
|
tox -v
|
|
|
|
|
|
|
|
|
|
|
|
Development under proxy
|
|
|
|
_______________________
|
|
|
|
|
|
|
|
If you are developing or deploying under proxies remember to set no_proxies for::
|
|
|
|
|
|
|
|
freezer-api endpoint
|
|
|
|
keystone endpoint
|
2018-11-05 01:11:20 -08:00
|
|
|
|
|
|
|
Source Code
|
|
|
|
===========
|
|
|
|
|
|
|
|
The project source code repository is located at:
|
2019-06-19 00:15:02 +08:00
|
|
|
https://opendev.org/openstack/freezer-web-ui/
|