Magnum用户界面
magnum-ui的Python项目详细描述
Magnum用户界面
Magnum的Horizon插件
- 免费软件:apache许可证
- 来源:https://git.openstack.org/cgit/openstack/magnum-ui
- 错误:https://bugs.launchpad.net/magnum-ui
- 文档:https://docs.openstack.org/magnum-ui/latest/
- 发行说明:https://docs.openstack.org/releasenotes/magnum-ui/
在devstack中启用
将此repo作为外部存储库添加到local.conf文件中:
[[local|localrc]] enable_plugin magnum-ui https://github.com/openstack/magnum-ui
手动安装
首先克隆Horizon和Magnum UI存储库:
git clone https://github.com/openstack/horizon git clone https://github.com/openstack/magnum-ui
创建虚拟环境并安装Horizon依赖项:
cd horizon python tools/install_venv.py
设置local_settings.py文件:
cp openstack_dashboard/local/local_settings.py.example openstack_dashboard/local/local_settings.py
在首选文本中打开复制的local_settings.py文件 编辑。您需要自定义多个设置:
- OPENSTACK_HOST应该配置为 OpenStack服务器。验证OPENSTACK_KEYSTONE_URL和 OPENSTACK_KEYSTONE_DEFAULT_ROLE设置对您的 环境。(它们应该是正确的,除非您修改了 openstack服务器来更改它们。)
在虚拟环境中安装具有所有依赖项的magnum ui:
tools/with_venv.sh pip install -e ../magnum-ui/
在地平线上启用它:
cp ../magnum-ui/magnum_ui/enabled/_1370_project_container_infra_panel_group.py openstack_dashboard/local/enabled cp ../magnum-ui/magnum_ui/enabled/_1371_project_container_infra_clusters_panel.py openstack_dashboard/local/enabled cp ../magnum-ui/magnum_ui/enabled/_1372_project_container_infra_cluster_templates_panel.py openstack_dashboard/local/enabled
要使用新启用的magnum ui插件运行horizon,请运行:
python manage.py runserver 0.0.0.0:8080
要在8080端口启动应用程序,Horizon仪表板将 在您的浏览器中http://localhost:8080/