Ini adalah bagian kedua dari konfigurasi neutron (Networking) di Ubuntu 14.04, Anda dapat membaca artikel sebelumnya di Configure Neutron #1, di mana kami telah menginstal dan mengkonfigurasi komponen Networking pada Controller node.
Di sini, dalam tutorial ini kita akan menginstal dan mengkonfigurasi Compute Node.
Untuk memulainya, Instal komponen pada node komputasi.
# apt-get install neutron-plugin-linuxbridge-agent conntrack
Konfigurasikan Node Komputasi:
Mari kita lakukan beberapa konfigurasi perintah termasuk mekanisme otentikasi, antrian pesan, dan plug-in
Edit file /etc/neutron/neutron.conf.
# nano /etc/neutron/neutron.conf
Buat perubahan yang sesuai pada file.
[DEFAULT] ... rpc_backend = rabbit auth_strategy = keystone verbose = True [oslo_messaging_rabbit] ... rabbit_host = controller rabbit_userid = openstack rabbit_password = password ## Replace "password" with the password you chose for the openstack account in RabbitMQ. [keystone_authtoken] ... auth_uri = http://controller:5000 auth_url = http://controller:35357 auth_plugin = password project_domain_id = default user_domain_id = default project_name = service username = neutron password = password ## Replace "password" with the password you chose for the neutron user in the Identity service. ## Commentout other authentication details. [database] #connection = sqlite:////var/lib/neutron/neutron.sqlite ## Comment out any connection options because compute nodes do not directly access the database.
Konfigurasikan agen jembatan Linux:
Karena kita menggunakan jaringan Self-service, kita perlu mengkonfigurasi agen jembatan Linux pada node Compute. Agen jembatan Linux membuat infrastruktur jaringan virtual layer-2 untuk instance yang mencakup terowongan VXLAN untuk jaringan pribadi dan menangani grup keamanan.
Edit file /etc/neutron/plugins/ml2/linuxbridge_agent.ini.
# nano /etc/neutron/plugins/ml2/linuxbridge_agent.ini
Buat perubahan pada file.
[linux_bridge] physical_interface_mappings = public:eth1 ## Replace "eth1" with the name of the physical public facing network interface. [vxlan] enable_vxlan = True local_ip = 192.168.12.22 l2_population = True ## Replace "192.168.12.22" with the management ip-address of compute node. [agent] ... prevent_arp_spoofing = True [securitygroup] ... enable_security_group = True firewall_driver = neutron.agent.linux.iptables_firewall.IptablesFirewallDriver
Konfigurasikan Compute untuk menggunakan Jaringan:
Edit file /etc/nova/nova.conf.
# nano /etc/nova/nova.conf
Lakukan perubahan pada file seperti di bawah ini.
[neutron] url = http://controller:9696 auth_url = http://controller:35357 auth_plugin = password project_domain_id = default user_domain_id = default region_name = RegionOne project_name = service username = neutron password = password ## Replace "password" with the password you chose for the neutron user in the Identity service.
Selesaikan penginstalan:
Mulai ulang layanan Compute:
# service nova-compute restart
Mulai ulang agen jembatan Linux:
# service neutron-plugin-linuxbridge-agent restart
Verifikasi:
Daftar agen untuk memverifikasi keberhasilan peluncuran agen neutron, jalankan perintah ini pada node Controller.
# neutron agent-list +--------------------------------------+--------------------+--------------------------+-------+----------------+---------------------------+ | id | agent_type | host | alive | admin_state_up | binary | +--------------------------------------+--------------------+--------------------------+-------+----------------+---------------------------+ | 02030132-55f1-4136-8b47-7b495b66c672 | L3 agent | controller.itzgeek.local | :-) | True | neutron-l3-agent | | 6b2fd77d-8b23-4932-8010-6436bf01319c | Metadata agent | controller.itzgeek.local | :-) | True | neutron-metadata-agent | | 9324094a-878c-4ba2-b822-7b070268deec | DHCP agent | controller.itzgeek.local | :-) | True | neutron-dhcp-agent | | cac6003d-b25a-4b1f-8144-1ae0293f26b0 | Linux bridge agent | compute.itzgeek.local | :-) | True | neutron-linuxbridge-agent | | faec1d38-5b5a-4c46-a614-4db12b4ff9e6 | Linux bridge agent | controller.itzgeek.local | :-) | True | neutron-linuxbridge-agent | +--------------------------------------+--------------------+--------------------------+-------+----------------+---------------------------+
Anda akan melihat output di atas dengan empat agen pada node pengontrol dan satu agen di setiap node komputasi .