CentOS 7
Sponsored Link

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

[root@dlp ~]#
yum -y install openstack-packstack
[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       |
+----------------------------------+------------+
| 15b05802627f4f42b4ae3253f5ce6730 | cinder     |
| 2ac16759b27f480da9adff72188c79f3 | glance     |
| 2aced06e7c984399a7cc799de9199244 | aodh       |
| 3fdc02269da74e67be50c1d2f8711f3b | gnocchi    |
| 70a112fdec0842979e8e9e5e9f171791 | nova       |
| 866962fe0ee14c379dc6245a8ee5a707 | placement  |
| a1c35ba084554dd1bca310667a82bdd2 | ceilometer |
| bce952e6b65641aa93aab872d04e7c0c | admin      |
| c2082398028442a7bff898fb6745af57 | swift      |
| e43f38301fed4a44ae070b6e7b0a0026 | neutron    |
| fbbd1aff07fd4b48a0020bddd2c8deea | demo       |
+----------------------------------+------------+

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

+----------------------------------+----------+
| ID                               | Name     |
+----------------------------------+----------+
| 2bbfb410124f4454a45f012a6274eff7 | demo     |
| 400487fe18a541f1a3c4c462b4ff9fa6 | admin    |
| 8b051a62445f4106a17f5521cd713841 | services |
+----------------------------------+----------+

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

+----------------------------------+------------+--------------+
| ID                               | Name       | Type         |
+----------------------------------+------------+--------------+
| 128e1c41dae648fd84266be576ab6b8e | aodh       | alarming     |
| 1549860212bd444eb96ebe3399e1af05 | cinderv2   | volumev2     |
| 5144ecf07843499aa76a1c5bdeafcfa2 | nova       | compute      |
| 5670a37cdd7e48c4b77b744082dfd5cd | cinder     | volume       |
| 7963a27f90de40ed900bcff7f0771ab9 | swift      | object-store |
| 9aa244907a4e428b8a8c996e086a518f | placement  | placement    |
| a967ff55c55143439e899cbd0530af6b | neutron    | network      |
| c06cc37f779a4163b147fca99ec3cc33 | keystone   | identity     |
| c8a39eec1cac44719bbb15b883d62735 | glance     | image        |
| d8871026f6cc4c00b25bcfcf6ae05064 | ceilometer | metering     |
| f2b5cd4ee2344f389e6eb1e9a8fbccfc | gnocchi    | metric       |
| fccbbd2dbf3141acbe8a2291df1b67a1 | cinderv3   | volumev3     |
+----------------------------------+------------+--------------+

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

+------------+--------------+----------------------------------------------------------------------------+
| Name       | Type         | Endpoints                                                                  |
+------------+--------------+----------------------------------------------------------------------------+
| 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                                             |
|            |              |                                                                            |
| cinderv2   | volumev2     | RegionOne                                                                  |
|            |              |   internal: http://10.0.0.40:8776/v2/400487fe18a541f1a3c4c462b4ff9fa6      |
|            |              | RegionOne                                                                  |
|            |              |   admin: http://10.0.0.40:8776/v2/400487fe18a541f1a3c4c462b4ff9fa6         |
|            |              | RegionOne                                                                  |
|            |              |   public: http://10.0.0.40:8776/v2/400487fe18a541f1a3c4c462b4ff9fa6        |
|            |              |                                                                            |
| nova       | compute      | RegionOne                                                                  |
|            |              |   admin: http://10.0.0.40:8774/v2.1/400487fe18a541f1a3c4c462b4ff9fa6       |
|            |              | RegionOne                                                                  |
|            |              |   internal: http://10.0.0.40:8774/v2.1/400487fe18a541f1a3c4c462b4ff9fa6    |
|            |              | RegionOne                                                                  |
|            |              |   public: http://10.0.0.40:8774/v2.1/400487fe18a541f1a3c4c462b4ff9fa6      |
|            |              |                                                                            |
| cinder     | volume       | RegionOne                                                                  |
|            |              |   internal: http://10.0.0.40:8776/v1/400487fe18a541f1a3c4c462b4ff9fa6      |
|            |              | RegionOne                                                                  |
|            |              |   public: http://10.0.0.40:8776/v1/400487fe18a541f1a3c4c462b4ff9fa6        |
|            |              | RegionOne                                                                  |
|            |              |   admin: http://10.0.0.40:8776/v1/400487fe18a541f1a3c4c462b4ff9fa6         |
|            |              |                                                                            |
| swift      | object-store | RegionOne                                                                  |
|            |              |   public: http://10.0.0.40:8080/v1/AUTH_400487fe18a541f1a3c4c462b4ff9fa6   |
|            |              | RegionOne                                                                  |
|            |              |   admin: http://10.0.0.40:8080/v1/AUTH_400487fe18a541f1a3c4c462b4ff9fa6    |
|            |              | RegionOne                                                                  |
|            |              |   internal: http://10.0.0.40:8080/v1/AUTH_400487fe18a541f1a3c4c462b4ff9fa6 |
|            |              |                                                                            |
| placement  | placement    | RegionOne                                                                  |
|            |              |   public: http://10.0.0.40:8778/placement                                  |
|            |              | RegionOne                                                                  |
|            |              |   admin: http://10.0.0.40:8778/placement                                   |
|            |              | RegionOne                                                                  |
|            |              |   internal: http://10.0.0.40:8778/placement                                |
|            |              |                                                                            |
| 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                                             |
|            |              |                                                                            |
| keystone   | identity     | RegionOne                                                                  |
|            |              |   admin: http://10.0.0.40:35357/v3                                         |
|            |              | RegionOne                                                                  |
|            |              |   public: http://10.0.0.40:5000/v3                                         |
|            |              | RegionOne                                                                  |
|            |              |   internal: http://10.0.0.40:5000/v3                                       |
|            |              |                                                                            |
| 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                                             |
|            |              |                                                                            |
| ceilometer | metering     | RegionOne                                                                  |
|            |              |   admin: http://10.0.0.40:8777                                             |
|            |              | RegionOne                                                                  |
|            |              |   internal: http://10.0.0.40:8777                                          |
|            |              | RegionOne                                                                  |
|            |              |   public: http://10.0.0.40:8777                                            |
|            |              |                                                                            |
| gnocchi    | metric       | RegionOne                                                                  |
|            |              |   public: http://10.0.0.40:8041                                            |
|            |              | RegionOne                                                                  |
|            |              |   internal: http://10.0.0.40:8041                                          |
|            |              | RegionOne                                                                  |
|            |              |   admin: http://10.0.0.40:8041                                             |
|            |              |                                                                            |
| cinderv3   | volumev3     | RegionOne                                                                  |
|            |              |   public: http://10.0.0.40:8776/v3/400487fe18a541f1a3c4c462b4ff9fa6        |
|            |              | RegionOne                                                                  |
|            |              |   internal: http://10.0.0.40:8776/v3/400487fe18a541f1a3c4c462b4ff9fa6      |
|            |              | RegionOne                                                                  |
|            |              |   admin: http://10.0.0.40:8776/v3/400487fe18a541f1a3c4c462b4ff9fa6         |
|            |              |                                                                            |
+------------+--------------+----------------------------------------------------------------------------+
 
Tweet