標籤:neutron nova openstack keystone
Neutron組件安裝
[[email protected] ~]# yum install openstack-neutron-linuxbridge ebtables ipset
配置萬用群組件
Networking 萬用群組件的配置包括認證機制、訊息佇列和外掛程式
編輯``/etc/neutron/neutron.conf`` 檔案並完成如下操作:
transport_url = rabbit://openstack:[email protected]
auth_strategy = keystoneauth_uri = http://192.168.56.11:5000auth_url = http://192.168.56.11:35357memcached_servers = 192.168.56.11:11211auth_type = passwordproject_domain_name = defaultuser_domain_name = defaultproject_name = serviceusername = neutronpassword = neutron
在 [oslo_concurrency] 部分,配置鎖路徑:
lock_path = /var/lib/neutron/tmp
配置計算使用的網路服務
配置Linuxbridge代理
這裡的配置和控制節點上面是一樣的,所以我們把控制節點配置拷貝過來
[[email protected] ~]# scp /etc/neutron/plugins/ml2/linuxbridge_agent.ini 192.168.56.12:/etc/neutron/plugins/ml2/[email protected]‘s password: linuxbridge_agent.ini
編輯``/etc/nova/nova.conf``檔案並完成下面的操作:
[neutron]url = http://192.168.56.11:9696auth_url = http://192.168.56.11:35357auth_type = passwordproject_domain_name = defaultuser_domain_name = defaultregion_name = RegionOneproject_name = serviceusername = neutronpassword = neutron
安裝完成
重啟計算服務:
[[email protected] ~]# systemctl restart openstack-nova-compute.service[[email protected] ~]# ps aux|grep novanova 21400 56.7 6.9 1661432 130576 ? Ssl 23:19 0:11 /usr/bin/python2 /usr/bin/nova-computeroot 21433 0.0 0.0 112644 952 pts/0 S+ 23:19 0:00 grep --color=auto nova
啟動Linuxbridge代理並配置它開機自啟動:
[[email protected] ~]# systemctl enable neutron-linuxbridge-agent.serviceCreated symlink from /etc/systemd/system/multi-user.target.wants/neutron-linuxbridge-agent.service to /usr/lib/systemd/system/neutron-linuxbridge-agent.service.[[email protected] ~]# systemctl start neutron-linuxbridge-agent.service
驗證服務
我們從控制節點上來查看是否接收到計算節點:
[[email protected] ~]# neutron agent-list+--------------------------------------+--------------------+-------------+-------------------+-------+----------------+---------------------------+| id | agent_type | host | availability_zone | alive | admin_state_up | binary |+--------------------------------------+--------------------+-------------+-------------------+-------+----------------+---------------------------+| 030154d2-c9ad-4af1-91db-ea1bf01bb99f | Metadata agent | linux-node1 | | :-) | True | neutron-metadata-agent || 27e1ee2f-6224-4a79-b3a5-ad0f46e59c4a | DHCP agent | linux-node1 | nova | :-) | True | neutron-dhcp-agent || 900f0ace-c809-4493-89b0-caf0094b217a | Linux bridge agent | linux-node2 | | :-) | True | neutron-linuxbridge-agent || f0b914bc-ab5b-4304-89a6-29d36d809705 | Linux bridge agent | linux-node1 | | :-) | True | neutron-linuxbridge-agent |+--------------------------------------+--------------------+-------------+-------------------+-------+----------------+---------------------------+
這裡我們可以看到host裡面已經找到了計算節點
[[email protected] ~]# nova service-list+----+------------------+-------------+----------+---------+-------+----------------------------+-----------------+| Id | Binary | Host | Zone | Status | State | Updated_at | Disabled Reason |+----+------------------+-------------+----------+---------+-------+----------------------------+-----------------+| 3 | nova-consoleauth | linux-node1 | internal | enabled | up | 2017-01-02T20:27:14.000000 | - || 4 | nova-conductor | linux-node1 | internal | enabled | up | 2017-01-02T20:27:15.000000 | - || 5 | nova-scheduler | linux-node1 | internal | enabled | up | 2017-01-02T20:27:15.000000 | - || 6 | nova-compute | linux-node2 | nova | enabled | up | 2017-01-02T20:27:19.000000 | - |+----+------------------+-------------+----------+---------+-------+----------------------------+-----------------+
到此計算節點的服務安裝成功~~~~~~~
下面我們將學習啟動執行個體!!!
本文出自 “圈中一鳥” 部落格,謝絕轉載!
Openstack 實戰講解之-----08-計算節點neutron配置