冷冻柜-备份为服务用户界面
freezer-web-ui的Python项目详细描述
冷冻柜-地平线仪表板
freezer web ui是一个基于django的horizon插件,旨在提供交互 带冰箱
要求
冰柜仪表板要求冰柜API客户端安装在与Horizon相同的环境中:
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 is installed on horizon virtual environment)
冷冻柜仪表板需要冷冻柜API终结点,您可以按照以下步骤进行安装:
https://github.com/openstack/freezer-api/blob/master/README.rst
API注册
注册冷冻柜API终结点:
https://github.com/openstack/freezer-api/blob/master/README.rst#api-registration
如果keystone service create和endpoint create不可用,您可以将以下设置设置为回退:
# vim /opt/stack/horizon/openstack_dashboard/local/local_settings.py # add FREEZER_API_URL = http://<api_url>:<port>
dev安装
在安装过程中,我们假设您的主Horizon仪表板 目录是/opt/stack/horizon/openstack_dashboard/dashboards/。
要安装用于开发的冷冻柜仪表板,您需要执行以下操作:
# git clone https://github.com/openstack/freezer-web-ui # cd freezer-web-ui # cp freezer-web-ui/disaster_recovery/enabled/_5050_freezer.py /opt/stack/horizon/openstack_dashboard/enabled/_5050_freezer.py # to disable the panel just copy the following file # cp freezer-web-ui/disaster_recovery/enabled/_7050_freezer_remove_panel_.py /opt/stack/horizon/openstack_dashboard/enabled/_7050_freezer_remove_panel_.py # cd /opt/stack/horizon/ # pip install -r requirements.txt # make sure freezer is installed from source as detailed in the first step # ./run_tests.sh --runserver 0.0.0.0:8000
生产安装
要在生产中部署冷冻柜仪表板,您需要执行以下操作:
# git clone https://github.com/openstack/freezer-web-ui # cd freezer-web-ui # cp freezer-web-ui/disaster_recovery/enabled/_5050_freezer.py /opt/stack/horizon/openstack_dashboard/enabled/_5050_freezer.py # to disable the panel just copy the following file # cp freezer-web-ui/disaster_recovery/enabled/_7050_freezer_remove_panel_.py /opt/stack/horizon/openstack_dashboard/enabled/_7050_freezer_remove_panel_.py # make sure freezer is installed from source as detailed in the first step # restart apache2 service
一个名为“灾难恢复”的新选项卡将出现在您的面板上。
毒性
运行tox:
tox -v
代理开发
如果您正在开发或部署在代理之下,请记住为
freezer-api endpoint
keystone endpoint
源代码
项目源代码存储库位于: https://git.openstack.org/cgit/openstack/freezer-web-ui