IOTRONIC Plugin for the Openstack Dashboard
iotronic-ui的Python项目详细描述
OpenStack仪表板的Iotronic插件
- 免费软件:apache许可证
- 来源:http://git.openstack.org/cgit/openstack/iotronic-ui
功能
- 待办事项
手动安装
首先克隆Horizon和Iotronic面板存储库:
git clone https://github.com/openstack/horizon.git git clone https://github.com/openstack/iotronic-ui.git
安装Iotronic面板时,必须具备以下所有依赖项:
cd iotronic-ui pip install -r requirements.txt python setup.py install
复制Iotronic API并在Horizon中启用插件:
cp iotronic_ui/api/iotronic.py /usr/share/openstack-dashboard/openstack_dashboard/api/ cp iotronic_ui/enabled/_60*.py /usr/share/openstack-dashboard/openstack_dashboard/enabled/
要使用新启用的iotronic面板插件运行horizon,请重新启动apache:
systemctl restart apache2.service
查看浏览器上的Horizon登录页面,您将看到名为“IoT”的新仪表板。
额外信息
如果要启用日志以进行更好的调试,请执行以下步骤或跳过它们。:
mkdir /var/log/horizon touch /var/log/horizon/horizon.log chown -R horizon:horizon /var/log/horizon vim /etc/openstack-dashboard/local_settings.py 'formatters': { 'verbose': { 'format': '%(asctime)s %(process)d %(levelname)s %(name)s %(message)s' }, }, .... 'handlers': { .... 'file': { 'level': 'DEBUG', 'class': 'logging.FileHandler', 'filename': '/var/log/horizon/horizon.log', 'formatter': 'verbose', }, }, .... 'loggers': { .... 'horizon': { .... 'handlers': ['file'], .... }, 'openstack_dashboard': { .... 'handlers': ['file'], .... }, 'iotronic_ui': { 'handlers': ['file'], 'level': 'DEBUG', 'propagate': False, }, }
验证apache openstack仪表板配置文件是否正确设置,如下所示:
vim /etc/apache2/conf-available/openstack-dashboard.conf WSGIApplicationGroup %{GLOBAL} service apache2 reload systemctl restart apache2.service