最近因爲工做須要,須要調研安裝pike版本的gnocchi。因爲ceilometer與gnocchi版本的強相關性,因此須要部署一個同一版本的openstack環境,在同事的推薦下使用了packstack進行的部署,整個過程較爲流暢簡單,對於國內網絡環境比使用devstack體驗好不少。swift
[1]要求只有CentOS 7 Base和Openstack Pike Repo以及EPEL Repo和Packstack軟件包。 其餘軟件包由Packstack自動安裝和配置。(我是用的是Centos7.2)centos
[root@dlp ~]# yum -y install centos-release-openstack-pike epel-release
[root@dlp ~]# yum -y install openstack-packstack
[2]執行Packstack,以下命令。網絡
[root@dlp ~]# packstack --allinone
[3] Keystone,Glance,Nova,Neutron,Swift,Cinder,Ceilometer(+ Aodh,Gnocchi)經過packstack進行安裝和配置,以下所示。 可是若是你想安裝Trove或Sahara等其餘組件,能夠使用packstack命令指定選項。ide
[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 | | | | | +------------+--------------+----------------------------------------------------------------------------+
附上原文地址和gnocchi手動安裝過程:spa
原文:https://www.server-world.info/en/note?os=CentOS_7&p=openstack_pike2&f=203d
gnocchi手動安裝:https://www.server-world.info/en/note?os=CentOS_7&p=openstack_pike3&f=1code