pip のインストール

yum で pip をインストールするための epel レポジトリを追加します。

[root@controller ~]# yum install epel-release
読み込んだプラグイン:fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.fairway.ne.jp
 * extras: mirror.fairway.ne.jp
 * updates: mirror.fairway.ne.jp
依存性の解決をしています
--> トランザクションの確認を実行しています。
---> パッケージ epel-release.noarch 0:7-11 を インストール
--> 依存性解決を終了しました。

依存性を解決しました

==============================================================================================================================================================
 Package                                   アーキテクチャー                    バージョン                           リポジトリー                         容量
==============================================================================================================================================================
インストール中:
 epel-release                              noarch                              7-11                                 extras                               15 k

トランザクションの要約
==============================================================================================================================================================
インストール  1 パッケージ

総ダウンロード容量: 15 k
インストール容量: 24 k
Is this ok [y/d/N]: y
Downloading packages:
epel-release-7-11.noarch.rpm                                                                                                           |  15 kB  00:00:00     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  インストール中          : epel-release-7-11.noarch                                                                                                      1/1 
  検証中                  : epel-release-7-11.noarch                                                                                                      1/1 

インストール:
  epel-release.noarch 0:7-11                                                                                                                                  

完了しました!
[root@controller ~]# 

pip をインストールします。

[root@controller ~]# yum install python-pip
読み込んだプラグイン:fastestmirror
Loading mirror speeds from cached hostfile
epel/x86_64/metalink                                                                                                                   | 6.5 kB  00:00:00     
 * base: mirror.fairway.ne.jp
 * epel: ftp.iij.ad.jp
 * extras: mirror.fairway.ne.jp
 * updates: mirror.fairway.ne.jp
http://mirror.horizon.vn/epel/7/x86_64/repodata/repomd.xml: [Errno 14] curl#52 - "Empty reply from server"
他のミラーを試します。
epel                                                                                                                                   | 3.2 kB  00:00:00     
epel/x86_64/updateinfo         FAILED                                          
http://ftp.cuhk.edu.hk/pub/linux/fedora-epel/7/x86_64/repodata/0537224cccf723a0490bdaa7c9a7f2dca400353561ba6aa2dc4e0cff2e3370e0-updateinfo.xml.bz2: [Errno 14] HTTP Error 404 - Not Found
他のミラーを試します。
To address this issue please refer to the below wiki article 

https://wiki.centos.org/yum-errors

If above article doesn't help to resolve this issue please use https://bugs.centos.org/.

(1/3): epel/x86_64/group_gz                                                                                                            |  88 kB  00:00:01     
(2/3): epel/x86_64/updateinfo                                                                                                          | 929 kB  00:00:08     
(3/3): epel/x86_64/primary                                                                                                             | 3.6 MB  00:01:01     
epel                                                                                                                                              12716/12716
依存性の解決をしています
--> トランザクションの確認を実行しています。
---> パッケージ python2-pip.noarch 0:8.1.2-6.el7 を インストール
--> 依存性解決を終了しました。

依存性を解決しました

==============================================================================================================================================================
 Package                                 アーキテクチャー                   バージョン                                 リポジトリー                      容量
==============================================================================================================================================================
インストール中:
 python2-pip                             noarch                             8.1.2-6.el7                                epel                             1.7 M

トランザクションの要約
==============================================================================================================================================================
インストール  1 パッケージ

総ダウンロード容量: 1.7 M
インストール容量: 7.2 M
Is this ok [y/d/N]: y  
Downloading packages:
警告: /var/cache/yum/x86_64/7/epel/packages/python2-pip-8.1.2-6.el7.noarch.rpm: ヘッダー V3 RSA/SHA256 Signature、鍵 ID 352c64e5: NOKEY| 1.6 MB  00:00:00 ETA 
python2-pip-8.1.2-6.el7.noarch.rpm の公開鍵がインストールされていません
python2-pip-8.1.2-6.el7.noarch.rpm                                                                                                     | 1.7 MB  00:00:10     
file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7 から鍵を取得中です。
Importing GPG key 0x352C64E5:
 Userid     : "Fedora EPEL (7) <epel@fedoraproject.org>"
 Fingerprint: 91e9 7d7c 4a5e 96f1 7f3e 888f 6a2f aea2 352c 64e5
 Package    : epel-release-7-11.noarch (@extras)
 From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
上記の処理を行います。よろしいでしょうか? [y/N]y
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  インストール中          : python2-pip-8.1.2-6.el7.noarch                                                                                                1/1 
  検証中                  : python2-pip-8.1.2-6.el7.noarch                                                                                                1/1 

インストール:
  python2-pip.noarch 0:8.1.2-6.el7                                                                                                                            

完了しました!
[root@controller ~]#

インストールした pip のバージョンが古いので、アップグレードします。

[root@controller ~]# pip install pip --upgrade
Collecting pip
  Downloading https://files.pythonhosted.org/packages/c2/d7/90f34cb0d83a6c5631cf71dfe64cc1054598c843a92b400e55675cc2ac37/pip-18.1-py2.py3-none-any.whl (1.3MB)
    100% |████████████████████████████████| 1.3MB 199kB/s 
Installing collected packages: pip
  Found existing installation: pip 8.1.2
    Uninstalling pip-8.1.2:
      Successfully uninstalled pip-8.1.2
Successfully installed pip-18.1
[root@controller ~]# 

Heat ダッシュボードプラグインのインストール

Heat用のダッシュボードプラグインをインストールします。

[root@controller ~]# pip install heat-dashboard
Collecting heat-dashboard
  Downloading https://files.pythonhosted.org/packages/1e/29/7bb053cbb258ece93479bbae24976773da3b5d138c4bf4fd4a2fb81c4aea/heat_dashboard-1.4.0-py2-none-any.whl (1.3MB)
    100% |████████████████████████████████| 1.3MB 1.2MB/s 
Requirement already satisfied: horizon>=14.0.0.0b3 in /usr/lib/python2.7/site-packages (from heat-dashboard) (14.0.0)
Requirement already satisfied: python-heatclient>=1.10.0 in /usr/lib/python2.7/site-packages (from heat-dashboard) (1.16.1)
Collecting xstatic-angular-uuid>=0.0.4.0 (from heat-dashboard)
  Downloading https://files.pythonhosted.org/packages/99/c1/3f65111630b7dc0279c6e70407eae0460c10c6adf748f5787ff39ee1f5d5/XStatic_Angular_UUID-0.0.4.0-py2.py3-none-any.whl
Collecting xstatic-angular-vis>=4.16.0.0 (from heat-dashboard)
  Downloading https://files.pythonhosted.org/packages/a2/5f/14fa03d7680a1a9077e9ee6389fd195988c77d7cb385241642f2e3ebb456/XStatic_Angular_Vis-4.16.0.0-py2.py3-none-any.whl
Collecting xstatic-js-yaml>=3.8.1.0 (from heat-dashboard)
  Downloading https://files.pythonhosted.org/packages/c6/f7/8de8a63819864c5aefc120d1a1e890d2a2f67ba016f4fb23f7fe02cb4376/XStatic_JS_Yaml-3.8.1.0-py2.py3-none-any.whl
Requirement already satisfied: pbr!=2.1.0,>=2.0.0 in /usr/lib/python2.7/site-packages (from heat-dashboard) (4.1.0)
Collecting xstatic-json2yaml>=0.1.1.0 (from heat-dashboard)
  Downloading https://files.pythonhosted.org/packages/e1/9f/794e16f9d36ab66a43dcd9ed14ef761157f9f4fbbf1093f3bc2d1a26360f/XStatic_Json2yaml-0.1.1.0-py2.py3-none-any.whl
Collecting xstatic-filesaver>=1.3.2.0 (from heat-dashboard)
  Downloading https://files.pythonhosted.org/packages/56/07/dfb6f97044c0aa3f6f53e1961573aa5b3a909eb42768300c26ad88745588/XStatic_FileSaver-1.3.2.0-py2.py3-none-any.whl
Requirement already satisfied: Babel!=2.4.0,>=2.3.4 in /usr/lib/python2.7/site-packages (from horizon>=14.0.0.0b3->heat-dashboard) (2.3.4)
Requirement already satisfied: Django<2,>=1.11 in /usr/lib/python2.7/site-packages (from horizon>=14.0.0.0b3->heat-dashboard) (1.11.13)
Requirement already satisfied: django-babel>=0.6.2 in /usr/lib/python2.7/site-packages (from horizon>=14.0.0.0b3->heat-dashboard) (0.6.2)
Requirement already satisfied: django-compressor>=2.0 in /usr/lib/python2.7/site-packages (from horizon>=14.0.0.0b3->heat-dashboard) (2.1)
Requirement already satisfied: django-pyscss>=2.0.2 in /usr/lib/python2.7/site-packages (from horizon>=14.0.0.0b3->heat-dashboard) (2.0.2)
Requirement already satisfied: futurist>=1.2.0 in /usr/lib/python2.7/site-packages (from horizon>=14.0.0.0b3->heat-dashboard) (1.7.0)
Requirement already satisfied: iso8601>=0.1.11 in /usr/lib/python2.7/site-packages (from horizon>=14.0.0.0b3->heat-dashboard) (0.1.11)
Requirement already satisfied: keystoneauth1>=3.4.0 in /usr/lib/python2.7/site-packages (from horizon>=14.0.0.0b3->heat-dashboard) (3.10.0)
Requirement already satisfied: netaddr>=0.7.18 in /usr/lib/python2.7/site-packages (from horizon>=14.0.0.0b3->heat-dashboard) (0.7.19)
Requirement already satisfied: oslo.concurrency>=3.26.0 in /usr/lib/python2.7/site-packages (from horizon>=14.0.0.0b3->heat-dashboard) (3.27.0)
Requirement already satisfied: oslo.config>=5.2.0 in /usr/lib/python2.7/site-packages (from horizon>=14.0.0.0b3->heat-dashboard) (6.4.0)
Requirement already satisfied: oslo.i18n>=3.15.3 in /usr/lib/python2.7/site-packages (from horizon>=14.0.0.0b3->heat-dashboard) (3.21.0)
Requirement already satisfied: oslo.policy>=1.30.0 in /usr/lib/python2.7/site-packages (from horizon>=14.0.0.0b3->heat-dashboard) (1.38.1)
Requirement already satisfied: oslo.serialization!=2.19.1,>=2.18.0 in /usr/lib/python2.7/site-packages (from horizon>=14.0.0.0b3->heat-dashboard) (2.27.0)
Requirement already satisfied: oslo.utils>=3.33.0 in /usr/lib/python2.7/site-packages (from horizon>=14.0.0.0b3->heat-dashboard) (3.36.4)
Requirement already satisfied: osprofiler>=2.3.0 in /usr/lib/python2.7/site-packages (from horizon>=14.0.0.0b3->heat-dashboard) (2.3.0)
Requirement already satisfied: Pint>=0.5 in /usr/lib/python2.7/site-packages (from horizon>=14.0.0.0b3->heat-dashboard) (0.6)
Requirement already satisfied: pymongo!=3.1,>=3.0.2 in /usr/lib64/python2.7/site-packages (from horizon>=14.0.0.0b3->heat-dashboard) (3.0.3)
Requirement already satisfied: pyScss!=1.3.5,>=1.3.4 in /usr/lib64/python2.7/site-packages (from horizon>=14.0.0.0b3->heat-dashboard) (1.3.4)
Requirement already satisfied: python-cinderclient>=3.3.0 in /usr/lib/python2.7/site-packages (from horizon>=14.0.0.0b3->heat-dashboard) (4.0.1)
Requirement already satisfied: python-glanceclient>=2.8.0 in /usr/lib/python2.7/site-packages (from horizon>=14.0.0.0b3->heat-dashboard) (2.12.1)
Requirement already satisfied: python-keystoneclient>=3.15.0 in /usr/lib/python2.7/site-packages (from horizon>=14.0.0.0b3->heat-dashboard) (3.17.0)
Requirement already satisfied: python-neutronclient>=6.7.0 in /usr/lib/python2.7/site-packages (from horizon>=14.0.0.0b3->heat-dashboard) (6.9.1)
Requirement already satisfied: python-novaclient>=9.1.0 in /usr/lib/python2.7/site-packages (from horizon>=14.0.0.0b3->heat-dashboard) (11.0.0)
Requirement already satisfied: python-swiftclient>=3.2.0 in /usr/lib/python2.7/site-packages (from horizon>=14.0.0.0b3->heat-dashboard) (3.6.0)
Requirement already satisfied: pytz>=2013.6 in /usr/lib/python2.7/site-packages (from horizon>=14.0.0.0b3->heat-dashboard) (2016.10)
Collecting PyYAML>=3.12 (from horizon>=14.0.0.0b3->heat-dashboard)
  Downloading https://files.pythonhosted.org/packages/9e/a3/1d13970c3f36777c583f136c136f804d70f500168edc1edea6daa7200769/PyYAML-3.13.tar.gz (270kB)
    100% |████████████████████████████████| 276kB 333kB/s 
Requirement already satisfied: semantic-version>=2.3.1 in /usr/lib/python2.7/site-packages (from horizon>=14.0.0.0b3->heat-dashboard) (2.4.2)
Requirement already satisfied: six>=1.10.0 in /usr/lib/python2.7/site-packages (from horizon>=14.0.0.0b3->heat-dashboard) (1.11.0)
Requirement already satisfied: XStatic>=1.0.0 in /usr/lib/python2.7/site-packages (from horizon>=14.0.0.0b3->heat-dashboard) (1.0.1)
Requirement already satisfied: XStatic-Angular>=1.5.8.0 in /usr/lib/python2.7/site-packages (from horizon>=14.0.0.0b3->heat-dashboard) (1.5.8.0)
Requirement already satisfied: XStatic-Angular-Bootstrap>=2.2.0.0 in /usr/lib/python2.7/site-packages (from horizon>=14.0.0.0b3->heat-dashboard) (2.2.0.0)
Requirement already satisfied: XStatic-Angular-FileUpload>=12.0.4.0 in /usr/lib/python2.7/site-packages (from horizon>=14.0.0.0b3->heat-dashboard) (12.0.4.0)
Requirement already satisfied: XStatic-Angular-Gettext>=2.3.8.0 in /usr/lib/python2.7/site-packages (from horizon>=14.0.0.0b3->heat-dashboard) (2.3.8.0)
Requirement already satisfied: XStatic-Angular-lrdragndrop>=1.0.2.2 in /usr/lib/python2.7/site-packages (from horizon>=14.0.0.0b3->heat-dashboard) (1.0.2.2)
Requirement already satisfied: XStatic-Angular-Schema-Form>=0.8.13.0 in /usr/lib/python2.7/site-packages (from horizon>=14.0.0.0b3->heat-dashboard) (0.8.13.0)
Requirement already satisfied: XStatic-Bootstrap-Datepicker>=1.3.1.0 in /usr/lib/python2.7/site-packages (from horizon>=14.0.0.0b3->heat-dashboard) (1.3.1.0)
Requirement already satisfied: XStatic-Bootstrap-SCSS>=3.3.7.1 in /usr/lib/python2.7/site-packages (from horizon>=14.0.0.0b3->heat-dashboard) (3.3.7.1)
Requirement already satisfied: XStatic-bootswatch>=3.3.7.0 in /usr/lib/python2.7/site-packages (from horizon>=14.0.0.0b3->heat-dashboard) (3.3.7.0)
Requirement already satisfied: XStatic-D3>=3.5.17.0 in /usr/lib/python2.7/site-packages (from horizon>=14.0.0.0b3->heat-dashboard) (3.5.17.0)
Requirement already satisfied: XStatic-Hogan>=2.0.0.2 in /usr/lib/python2.7/site-packages (from horizon>=14.0.0.0b3->heat-dashboard) (2.0.0.2)
Requirement already satisfied: XStatic-Font-Awesome>=4.7.0.0 in /usr/lib/python2.7/site-packages (from horizon>=14.0.0.0b3->heat-dashboard) (4.7.0.0)
Requirement already satisfied: XStatic-Jasmine>=2.4.1.1 in /usr/lib/python2.7/site-packages (from horizon>=14.0.0.0b3->heat-dashboard) (2.4.1.1)
Requirement already satisfied: XStatic-jQuery>=1.8.2.1 in /usr/lib/python2.7/site-packages (from horizon>=14.0.0.0b3->heat-dashboard) (1.10.2.1)
Requirement already satisfied: XStatic-JQuery-Migrate>=1.2.1.1 in /usr/lib/python2.7/site-packages (from horizon>=14.0.0.0b3->heat-dashboard) (1.2.1.1)
Requirement already satisfied: XStatic-JQuery.quicksearch>=2.0.3.1 in /usr/lib/python2.7/site-packages (from horizon>=14.0.0.0b3->heat-dashboard) (2.0.3.1)
Requirement already satisfied: XStatic-JQuery.TableSorter>=2.14.5.1 in /usr/lib/python2.7/site-packages (from horizon>=14.0.0.0b3->heat-dashboard) (2.14.5.1)
Requirement already satisfied: XStatic-jquery-ui>=1.10.4.1 in /usr/lib/python2.7/site-packages (from horizon>=14.0.0.0b3->heat-dashboard) (1.10.4.1)
Requirement already satisfied: XStatic-JSEncrypt>=2.3.1.1 in /usr/lib/python2.7/site-packages (from horizon>=14.0.0.0b3->heat-dashboard) (2.3.1.1)
Requirement already satisfied: XStatic-mdi>=1.4.57.0 in /usr/lib/python2.7/site-packages (from horizon>=14.0.0.0b3->heat-dashboard) (1.4.57.0)
Requirement already satisfied: XStatic-objectpath>=1.2.1.0 in /usr/lib/python2.7/site-packages (from horizon>=14.0.0.0b3->heat-dashboard) (1.2.1.0)
Requirement already satisfied: XStatic-Rickshaw>=1.5.0.0 in /usr/lib/python2.7/site-packages (from horizon>=14.0.0.0b3->heat-dashboard) (1.5.0.0)
Requirement already satisfied: XStatic-roboto-fontface>=0.5.0.0 in /usr/lib/python2.7/site-packages (from horizon>=14.0.0.0b3->heat-dashboard) (0.5.0.0)
Requirement already satisfied: XStatic-smart-table>=1.4.13.2 in /usr/lib/python2.7/site-packages (from horizon>=14.0.0.0b3->heat-dashboard) (1.4.13.2)
Requirement already satisfied: XStatic-Spin>=1.2.5.2 in /usr/lib/python2.7/site-packages (from horizon>=14.0.0.0b3->heat-dashboard) (1.2.5.2)
Requirement already satisfied: XStatic-term.js>=0.0.7.0 in /usr/lib/python2.7/site-packages (from horizon>=14.0.0.0b3->heat-dashboard) (0.0.7.0)
Requirement already satisfied: XStatic-tv4>=1.2.7.0 in /usr/lib/python2.7/site-packages (from horizon>=14.0.0.0b3->heat-dashboard) (1.2.7.0)
Requirement already satisfied: django-appconf>=1.0 in /usr/lib/python2.7/site-packages (from django-compressor>=2.0->horizon>=14.0.0.0b3->heat-dashboard) (1.0.1)
Requirement already satisfied: rcssmin==1.0.6 in /usr/lib64/python2.7/site-packages (from django-compressor>=2.0->horizon>=14.0.0.0b3->heat-dashboard) (1.0.6)
Requirement already satisfied: rjsmin==1.0.12 in /usr/lib64/python2.7/site-packages (from django-compressor>=2.0->horizon>=14.0.0.0b3->heat-dashboard) (1.0.12)
Requirement already satisfied: monotonic>=0.6 in /usr/lib/python2.7/site-packages (from futurist>=1.2.0->horizon>=14.0.0.0b3->heat-dashboard) (1.5)
Requirement already satisfied: futures>=3.0.0 in /usr/lib/python2.7/site-packages (from futurist>=1.2.0->horizon>=14.0.0.0b3->heat-dashboard) (3.1.1)
Requirement already satisfied: contextlib2>=0.4.0 in /usr/lib/python2.7/site-packages (from futurist>=1.2.0->horizon>=14.0.0.0b3->heat-dashboard) (0.5.5)
Requirement already satisfied: PrettyTable<0.8,>=0.7.1 in /usr/lib/python2.7/site-packages (from futurist>=1.2.0->horizon>=14.0.0.0b3->heat-dashboard) (0.7.2)
Requirement already satisfied: enum34 in /usr/lib/python2.7/site-packages (from pyScss!=1.3.5,>=1.3.4->horizon>=14.0.0.0b3->heat-dashboard) (1.0.4)
Requirement already satisfied: pathlib in /usr/lib/python2.7/site-packages (from pyScss!=1.3.5,>=1.3.4->horizon>=14.0.0.0b3->heat-dashboard) (1.0.1)
Installing collected packages: xstatic-angular-uuid, xstatic-angular-vis, xstatic-js-yaml, xstatic-json2yaml, xstatic-filesaver, heat-dashboard, PyYAML
  Found existing installation: PyYAML 3.10
Cannot uninstall 'PyYAML'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
[root@controller ~]#

Heat用のダッシュボードプラグインは、/usr/lib/python2.7/site-packages/heat_dashboard にインストールされます。

[root@controller ~]# ls -la /usr/lib/python2.7/site-packages/heat_dashboard
合計 56
drwxr-xr-x.  10 root root   205 12月  1 01:06 .
drwxr-xr-x. 480 root root 24576 12月  1 18:08 ..
-rw-r--r--.   1 root root     0 11月 30 23:14 __init__.py
-rw-r--r--.   1 root root   152 11月 30 23:14 __init__.pyc
drwxr-xr-x.   3 root root    88 11月 30 23:14 api
drwxr-xr-x.   2 root root    30 11月 30 23:14 conf
drwxr-xr-x.   6 root root   132 11月 30 23:14 content
drwxr-xr-x.   2 root root  4096 11月 30 23:14 enabled
-rw-r--r--.   1 root root   757 11月 30 23:14 exceptions.py
-rw-r--r--.   1 root root   345 11月 30 23:14 exceptions.pyc
drwxr-xr-x.   2 root root   124 11月 30 23:14 local_settings.d
drwxr-xr-x.  18 root root   190 11月 30 23:14 locale
drwxr-xr-x.   3 root root    23 11月 30 23:14 static
drwxr-xr-x.   4 root root   151 11月 30 23:14 test
[root@controller ~]# 

プラグイン設定ファイルの配置

インストールした Heat 用のダッシュボードプラグインを有効にするには、プラグイン設定ファイルを ダッシュボード( horizon )の enabled ディレクトリに配置する必要があります。

プラグイン設定ファイルを、ダッシュボード ( horizon )の enabled ディレクトリにコピーします。

[root@controller ~]# cp /usr/lib/python2.7/site-packages/heat_dashboard/enabled/_[1-9]*.py \
>       /usr/share/openstack-dashboard/openstack_dashboard/local/enabled
[root@controller ~]# 

ダッシュボード( horizon )の enabled ディレクトリに プラグイン設定ファイルがコピーされていることを確認します。

[root@controller ~]# ls -la /usr/share/openstack-dashboard/openstack_dashboard/local/enabled/
合計 64
drwxr-xr-x. 2 root root 4096 12月  1 00:23 .
drwxr-xr-x. 4 root root  181 12月  1 21:00 ..
-rw-r--r--. 1 root root 1212 11月  3 23:53 _1481_project_ng_loadbalancersv2_panel.py
-rw-r--r--. 1 root root  672 11月  4 00:33 _1481_project_ng_loadbalancersv2_panel.pyc
-rw-r--r--. 1 root root 1153 11月 30 23:22 _1610_project_orchestration_panel.py
-rw-r--r--. 1 root root  671 12月  1 00:23 _1610_project_orchestration_panel.pyc
-rw-r--r--. 1 root root 1038 11月 30 23:22 _1620_project_stacks_panel.py
-rw-r--r--. 1 root root  407 12月  1 00:23 _1620_project_stacks_panel.pyc
-rw-r--r--. 1 root root 1146 11月 30 23:22 _1630_project_resource_types_panel.py
-rw-r--r--. 1 root root  469 12月  1 00:23 _1630_project_resource_types_panel.pyc
-rw-r--r--. 1 root root 1070 11月 30 23:22 _1640_project_template_versions_panel.py
-rw-r--r--. 1 root root  450 12月  1 00:23 _1640_project_template_versions_panel.pyc
-rw-r--r--. 1 root root 3614 11月 30 23:22 _1650_project_template_generator_panel.py
-rw-r--r--. 1 root root 2429 12月  1 00:23 _1650_project_template_generator_panel.pyc
-rw-r--r--. 1 root root  185  8月 30 23:08 _50_settings.py.example
-rw-r--r--. 1 root root    0  8月 30 23:08 __init__.py
-rw-r--r--. 2 root root  163  8月 31 05:45 __init__.pyc
-rw-r--r--. 2 root root  163  8月 31 05:45 __init__.pyo
[root@controller ~]# 

ダッシュボード(horizon)のディレクトリへ移動します。

[root@controller heat_dashboard]# cd /usr/share/openstack-dashboard/
[root@controller openstack-dashboard]# 

Heat ダッシュボードの翻訳メッセージカタログをコンパイルします。

[root@controller openstack-dashboard]# python manage.py compilemessages
[root@controller openstack-dashboard]# 

Djangoの更新コマンドを実行します。 圧縮を有効にする場合、compressが必要であることに注意してください。

[root@controller openstack-dashboard]# DJANGO_SETTINGS_MODULE=openstack_dashboard.settings python manage.py collectstatic --noinput

0 static files copied to '/usr/share/openstack-dashboard/static', 2150 unmodified.
[root@controller openstack-dashboard]# 
[root@controller openstack-dashboard]# DJANGO_SETTINGS_MODULE=openstack_dashboard.settings python manage.py compress --force
Found 'compress' tags in:
	/usr/share/openstack-dashboard/openstack_dashboard/templates/serial_console.html
	/usr/share/openstack-dashboard/openstack_dashboard/templates/horizon/_conf.html
	/usr/share/openstack-dashboard/openstack_dashboard/templates/_stylesheets.html
	/usr/share/openstack-dashboard/openstack_dashboard/templates/horizon/_scripts.html
Compressing... done
Compressed 7 block(s) from 4 template(s) for 2 context(s).
[root@controller openstack-dashboard]# 

設定の反映

httpd サービスを再起動します。

[root@controller openstack-dashboard]# systemctl restart httpd
[root@controller openstack-dashboard]#