Openstack 實戰講解之-----08-計算節點neutron配置

來源:互聯網
上載者:User

標籤:neutron   nova   openstack   keystone   

Neutron組件安裝

[[email protected] ~]# yum install openstack-neutron-linuxbridge ebtables ipset

配置萬用群組件

Networking 萬用群組件的配置包括認證機制、訊息佇列和外掛程式

編輯``/etc/neutron/neutron.conf`` 檔案並完成如下操作:

  • 在``[database]`` 部分,注釋所有``connection`` 項,因為計算節點不直接存取資料庫。

  • 在``[DEFAULT]``部分,配置``RabbitMQ``訊息佇列存取權限:

transport_url = rabbit://openstack:[email protected]
  • 在 “[DEFAULT]” 和 “[keystone_authtoken]” 部分,配置認證服務訪問:

 

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]`` 部分,配置訪問參數:

[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配置

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.