[原]openstack-kilo--issue(九) heat stacks topology中图形无法正常显示
本博客已经添加"打赏"功能,"打赏"位置位于右边栏红色框中,感谢您赞助的咖啡.
======声明=======
欢迎转载:转载请注明出处
http://www.cnblogs.com/horizonli/p/6186581.html
==========环境===============
OS: CentOS 7
OpenStack : KILO
===问题点:heat stacks topology中图形无法正常显示====
如下图:
=====查找问题点==========
显示问题,第一反应应该是dashboard的配置问题
查看/etc/httpd/conf.d/openstack-dashboard.conf
发现在static后面并没有img图片的信息,该img图片信息在
[root@controller img]# pwd
/usr/share/openstack-dashboard/static/dashboard/img
-rw-r--r-- 1 root root 631 Dec 16 13:26 action_required.png
-rw-r--r-- 1 root root 11458 Dec 16 13:26 db-gray.gif
-rw-r--r-- 1 root root 6524 Dec 16 13:26 db-gray.svg
-rw-r--r-- 1 root root 6524 Dec 16 13:26 db-green.svg
-rw-r--r-- 1 root root 6524 Dec 16 13:26 db-red.svg
-rw-r--r-- 1 root root 108 Dec 16 13:26 drag.png
-rw-r--r-- 1 root root 107 Dec 16 13:26 drop_arrow.png
-rw-r--r-- 1 root root 1150 Dec 16 13:26 favicon.ico
-rw-r--r-- 1 root root 7411 Dec 16 13:26 lb-gray.gif
-rw-r--r-- 1 root root 2479 Dec 16 13:26 lb-gray.svg
-rw-r--r-- 1 root root 2480 Dec 16 13:26 lb-green.svg
-rw-r--r-- 1 root root 2480 Dec 16 13:26 lb-red.svg
-rw-r--r-- 1 root root 1907 Dec 16 13:26 loading.gif
-rw-r--r-- 1 root root 2405 Dec 16 13:26 logo.png
-rw-r--r-- 1 root root 3187 Dec 16 13:26 logo-splash.png
-rw-r--r-- 1 root root 150 Dec 16 13:26 profile_drop.png
-rw-r--r-- 1 root root 121 Dec 16 13:26 right_droparrow.png
-rw-r--r-- 1 root root 944 Dec 16 13:26 router.png
-rw-r--r-- 1 root root 281 Dec 16 13:26 search.png
-rw-r--r-- 1 root root 6380 Dec 16 13:26 server-gray.gif
-rw-r--r-- 1 root root 2824 Dec 16 13:26 server-gray.svg
-rw-r--r-- 1 root root 2844 Dec 16 13:26 server-green.svg
-rw-r--r-- 1 root root 838 Dec 16 13:26 server.png
-rw-r--r-- 1 root root 2824 Dec 16 13:26 server-red.svg
-rw-r--r-- 1 root root 81 Dec 16 13:26 sidebar_bg.png
-rw-r--r-- 1 root root 1555 Dec 16 13:26 spinner.gif
-rw-r--r-- 1 root root 13372 Dec 16 13:26 stack-gray.gif
-rw-r--r-- 1 root root 4595 Dec 16 13:26 stack-gray.svg
-rw-r--r-- 1 root root 4903 Dec 16 13:26 stack-green.svg
-rw-r--r-- 1 root root 5811 Dec 16 13:26 stack-red.svg
-rw-r--r-- 1 root root 10026 Dec 16 13:26 unknown-gray.gif
-rw-r--r-- 1 root root 2302 Dec 16 13:26 unknown-gray.svg
-rw-r--r-- 1 root root 2302 Dec 16 13:26 unknown-green.svg
-rw-r--r-- 1 root root 2302 Dec 16 13:26 unknown-red.svg
-rw-r--r-- 1 root root 108 Dec 16 13:26 up_arrow.png
=====问题解决方案=========
在/etc/httpd/conf.d/openstack-dashboard.conf文件中添加有图片的path:Alias /static/dashboard /usr/share/openstack-dashboard/static/dashboard
vim /etc/httpd/conf.d/openstack-dashboard.conf
WSGIDaemonProcess dashboard
WSGIProcessGroup dashboard
WSGISocketPrefix run/wsgi
WSGIScriptAlias /dashboard /usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi
Alias /dashboard/static /usr/share/openstack-dashboard/static
Alias /static/dashboard /usr/share/openstack-dashboard/static/dashboard
<Directory /usr/share/openstack-dashboard/openstack_dashboard/wsgi>
Options All
AllowOverride All
Require all granted
</Directory>
<Directory /usr/share/openstack-dashboard/static>
Options All
AllowOverride All
Require all granted
</Directory>
重启httpd
]# systemctl restart httpd.service
查看 stacks中的topology中的显示结果:
如下图:
问题解决:)
出处:http://www.cnblogs.com/horizonli/
本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。
支付宝(alipay) 二维码打赏 |
微信(wechat) 二维码打赏 JUST LI(**波) |
微信公众号: 木子李的菜田 |