CentOS 7
Sponsored Link

OpenStack Rocky : Openstack Packstack2018/09/04

 
Openstack Packstack による Allinone 環境の構築です。
コマンド一つで一台全部入りの Openstack 環境を素早く構築することが可能です。動作検証目的の際に有用です。
[1] CentOS 7 最小構成をベースに、事前に要追加インストールパッケージは Openstack Rocky & EPEL リポジトリと Packstack パッケージのみです。後は全て Packstack スクリプトが自動でデプロイしてくれます。
[root@dlp ~]#
yum -y install centos-release-openstack-rocky epel-release

[root@dlp ~]#
yum -y install openstack-packstack python-pip
[2] 以下のコマンドを投入することで Packstack による Allinone 環境が構築できます。
[root@dlp ~]#
packstack --allinone

[3] Packstack により、コアコンポーネントである Keystone, Glance, Nova, Neutron, Swift, Cinder Ceilometer(+ Aodh,Gnocchi) がインストールされます。 その他コンポーネントは別途オプション指定することで追加インストール可能です。
[root@dlp ~]#
source keystonerc_admin

[root@dlp ~(keystone_admin)]#
openstack user list

+----------------------------------+--------------+
| ID                               | Name         |
+----------------------------------+--------------+
| 2f227764529b4a1ab2099133e06991a8 | swift        |
| 73db2467cf4f48da938482163341738f | placement    |
| 945dcdf217754f03a62c6e81ac425156 | ceilometer   |
| 98ba6920ad0845de9570fa168a3960f4 | cinder       |
| 9a0c1f0a75ac4b1fa4af3d6559bebfb0 | aodh         |
| a8d2e22a35d4433780adb7c068bb784e | glance       |
| baa4c1233fe24978a64808745321032b | gnocchi      |
| ceaf080c292841098dc5388dd5da32b1 | nova         |
| e02873d6e08b4417a2b5f3db9d073273 | demo         |
| e8078756dd5d44b6b4e3fd3f1714a13f | admin        |
| fd43183ccbfe40ecb9b90c9db4ad0f1c | neutron      |
+----------------------------------+--------------+

[root@dlp ~(keystone_admin)]#
openstack project list

+----------------------------------+----------+
| ID                               | Name     |
+----------------------------------+----------+
| 0c99d8220dc645588afa748f1d0a9064 | admin    |
| 157f9b40d08e421ea77dbcd97ce77126 | services |
| 47432442fb654a7485468a79b448642e | demo     |
+----------------------------------+----------+

[root@dlp ~(keystone_admin)]#
openstack service list

+----------------------------------+------------+-----------------+
| ID                               | Name       | Type            |
+----------------------------------+------------+-----------------+
| 071e0496302142cc875f834c3306cc4c | ceilometer | metering        |
| 1afdeda24ba0473fb97d3d02331ee72a | cinderv3   | volumev3        |
| 2a393f51a6c04607b4577d06af69b78b | gnocchi    | metric          |
| 5895957d2fb3459c94c371f2e45c055c | neutron    | network         |
| 66a10d40a1ba4c7eb026fe801dec6c35 | swift      | object-store    |
| 7e616a9764c24e88949b48f8cd386ac0 | cinder     | volume          |
| 9309052f8bb445ac82e975d73501ee7b | cinderv2   | volumev2        |
| bad339112a0346958d8fb97472e91bc6 | glance     | image           |
| c2c183f11b3d4346b9d09137c41ad956 | placement  | placement       |
| c70ff1ce055f486f8e596ab7e390e7d3 | keystone   | identity        |
| e80d43eb5207404f882d74a2bf9d7bee | aodh       | alarming        |
| fd0ac808aaa84077a67f664e28c60527 | nova       | compute         |
+----------------------------------+------------+-----------------+

[root@dlp ~(keystone_admin)]#
openstack catalog list

+------------+-----------------+----------------------------------------------------------------------------+
| Name       | Type            | Endpoints                                                                  |
+------------+-----------------+----------------------------------------------------------------------------+
| ceilometer | metering        | RegionOne                                                                  |
|            |                 |   public: http://10.0.0.40:8777                                            |
|            |                 | RegionOne                                                                  |
|            |                 |   admin: http://10.0.0.40:8777                                             |
|            |                 | RegionOne                                                                  |
|            |                 |   internal: http://10.0.0.40:8777                                          |
|            |                 |                                                                            |
| cinderv3   | volumev3        | RegionOne                                                                  |
|            |                 |   internal: http://10.0.0.40:8776/v3/0c99d8220dc645588afa748f1d0a9064      |
|            |                 | RegionOne                                                                  |
|            |                 |   public: http://10.0.0.40:8776/v3/0c99d8220dc645588afa748f1d0a9064        |
|            |                 | RegionOne                                                                  |
|            |                 |   admin: http://10.0.0.40:8776/v3/0c99d8220dc645588afa748f1d0a9064         |
|            |                 |                                                                            |
| gnocchi    | metric          | RegionOne                                                                  |
|            |                 |   admin: http://10.0.0.40:8041                                             |
|            |                 | RegionOne                                                                  |
|            |                 |   public: http://10.0.0.40:8041                                            |
|            |                 | RegionOne                                                                  |
|            |                 |   internal: http://10.0.0.40:8041                                          |
|            |                 |                                                                            |
| neutron    | network         | RegionOne                                                                  |
|            |                 |   public: http://10.0.0.40:9696                                            |
|            |                 | RegionOne                                                                  |
|            |                 |   internal: http://10.0.0.40:9696                                          |
|            |                 | RegionOne                                                                  |
|            |                 |   admin: http://10.0.0.40:9696                                             |
|            |                 |                                                                            |
| swift      | object-store    | RegionOne                                                                  |
|            |                 |   internal: http://10.0.0.40:8080/v1/AUTH_0c99d8220dc645588afa748f1d0a9064 |
|            |                 | RegionOne                                                                  |
|            |                 |   public: http://10.0.0.40:8080/v1/AUTH_0c99d8220dc645588afa748f1d0a9064   |
|            |                 | RegionOne                                                                  |
|            |                 |   admin: http://10.0.0.40:8080/v1/AUTH_0c99d8220dc645588afa748f1d0a9064    |
|            |                 |                                                                            |
| cinder     | volume          | RegionOne                                                                  |
|            |                 |   admin: http://10.0.0.40:8776/v1/0c99d8220dc645588afa748f1d0a9064         |
|            |                 | RegionOne                                                                  |
|            |                 |   internal: http://10.0.0.40:8776/v1/0c99d8220dc645588afa748f1d0a9064      |
|            |                 | RegionOne                                                                  |
|            |                 |   public: http://10.0.0.40:8776/v1/0c99d8220dc645588afa748f1d0a9064        |
|            |                 |                                                                            |
| cinderv2   | volumev2        | RegionOne                                                                  |
|            |                 |   internal: http://10.0.0.40:8776/v2/0c99d8220dc645588afa748f1d0a9064      |
|            |                 | RegionOne                                                                  |
|            |                 |   public: http://10.0.0.40:8776/v2/0c99d8220dc645588afa748f1d0a9064        |
|            |                 | RegionOne                                                                  |
|            |                 |   admin: http://10.0.0.40:8776/v2/0c99d8220dc645588afa748f1d0a9064         |
|            |                 |                                                                            |
| glance     | image           | RegionOne                                                                  |
|            |                 |   public: http://10.0.0.40:9292                                            |
|            |                 | RegionOne                                                                  |
|            |                 |   internal: http://10.0.0.40:9292                                          |
|            |                 | RegionOne                                                                  |
|            |                 |   admin: http://10.0.0.40:9292                                             |
|            |                 |                                                                            |
| placement  | placement       | RegionOne                                                                  |
|            |                 |   internal: http://10.0.0.40:8778/placement                                |
|            |                 | RegionOne                                                                  |
|            |                 |   admin: http://10.0.0.40:8778/placement                                   |
|            |                 | RegionOne                                                                  |
|            |                 |   public: http://10.0.0.40:8778/placement                                  |
|            |                 |                                                                            |
| keystone   | identity        | RegionOne                                                                  |
|            |                 |   public: http://10.0.0.40:5000/v3                                         |
|            |                 | RegionOne                                                                  |
|            |                 |   admin: http://10.0.0.40:35357/v3                                         |
|            |                 | RegionOne                                                                  |
|            |                 |   internal: http://10.0.0.40:5000/v3                                       |
|            |                 |                                                                            |
| aodh       | alarming        | RegionOne                                                                  |
|            |                 |   internal: http://10.0.0.40:8042                                          |
|            |                 | RegionOne                                                                  |
|            |                 |   public: http://10.0.0.40:8042                                            |
|            |                 | RegionOne                                                                  |
|            |                 |   admin: http://10.0.0.40:8042                                             |
|            |                 |                                                                            |
| nova       | compute         | RegionOne                                                                  |
|            |                 |   internal: http://10.0.0.40:8774/v2.1/0c99d8220dc645588afa748f1d0a9064    |
|            |                 | RegionOne                                                                  |
|            |                 |   admin: http://10.0.0.40:8774/v2.1/0c99d8220dc645588afa748f1d0a9064       |
|            |                 | RegionOne                                                                  |
|            |                 |   public: http://10.0.0.40:8774/v2.1/0c99d8220dc645588afa748f1d0a9064      |
|            |                 |                                                                            |
+------------+-----------------+----------------------------------------------------------------------------+
関連コンテンツ