pada part 2 ini kita akan fokus untuk menginstall neutron pada compute2 supaya bisa diakses di jaringan openstack.
sebelumnya kita cek dulu neutron agent pada controller node
1 2 3 4 5 6 7 8 9 10 |
root@controller:/home/controller# openstack network agent list +--------------------------------------+----------------------+------------+-------------------+-------+-------+---------------------------+ | ID | Agent Type | Host | Availability Zone | Alive | State | Binary | +--------------------------------------+----------------------+------------+-------------------+-------+-------+---------------------------+ | 05c00c10-5408-432b-89c6-8e00a441087a | Metadata agent | controller | None | True | UP | neutron-metadata-agent | | 30810bd5-406b-4286-b1c1-5e8680ad99cc | L3 agent | controller | nova | True | UP | neutron-l3-agent | | 97d640a4-68ee-4822-abd2-0908ad9ca38f | Linux bridge agent | compute1 | None | True | UP | neutron-linuxbridge-agent | | abfa25e3-6fca-4d62-88b8-c48c60db9ea8 | Linux bridge agent | controller | None | True | UP | neutron-linuxbridge-agent | | af084acf-7ce0-44f2-80bc-7538cd32cf23 | DHCP agent | controller | nova | True | UP | neutron-dhcp-agent | +--------------------------------------+----------------------+------------+-------------------+-------+-------+---------------------------+ |
pada neutron agent di controller belum ada agent network untuk compute2, maka kita harus install linux bridge di compute2
1 |
# yum install openstack-neutron-linuxbridge ebtables ipset -y |
kemudian edit file /etc/neutron/neutron.conf
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
[DEFAULT] transport_url = rabbit://openstack:RABBIT_PASS@controller #isikan password rabbit di controller auth_strategy = keystone [keystone_authtoken] auth_uri = http://controller:5000 auth_url = http://controller:35357 memcached_servers = controller:11211 auth_type = password project_domain_name = default user_domain_name = default project_name = service username = neutron password = NEUTRON_PASS #password neutron di controller [oslo_concurrency] lock_path = /var/lib/neutron/tmp |
kemudian kita setting linux bridge sesuai dengan option 2
Networking Option 2: Self-service networks
edit file /etc/neutron/plugins/ml2/linuxbridge_agent.ini
1 2 3 4 5 6 7 8 9 10 11 |
[linux_bridge] physical_interface_mappings = external:eno16780032 #susaikan dengan network eksternal anda misal ETH1 [vxlan] enable_vxlan = True local_ip = 10.0.0.50 #isikan ip management l2_population = True [securitygroup] enable_security_group = True firewall_driver = neutron.agent.linux.iptables_firewall.IptablesFirewallDriver |
kemudian setting compute service untuk mengunakan network service (neutron)
edit file /etc/nova/nova.conf dan tambahkan bagian ini paling akhir
1 2 3 4 5 6 7 8 9 10 |
[neutron] url = http://controller:9696 auth_url = http://controller:35357 auth_type = password project_domain_name = default user_domain_name = default region_name = RegionOne project_name = service username = neutron password = Password_neutron #isikan password neurton di controller |
setelah itu restart servicenya
1 2 3 |
[root@compute2 ~]# systemctl restart openstack-nova-compute.service [root@compute2 ~]# systemctl enable neutron-linuxbridge-agent.service [root@compute2 ~]# systemctl start neutron-linuxbridge-agent.service |
pastikan tidak ada yang error saat restart servicenya
setelah itu kita akan verifikasi neutron agent pada controller node
1 2 3 4 5 6 7 8 9 10 11 12 |
root@controller:/home/controller# openstack network agent list +--------------------------------------+----------------------+------------+-------------------+-------+-------+---------------------------+ | ID | Agent Type | Host | Availability Zone | Alive | State | Binary | +--------------------------------------+----------------------+------------+-------------------+-------+-------+---------------------------+ | 05c00c10-5408-432b-89c6-8e00a441087a | Metadata agent | controller | None | True | UP | neutron-metadata-agent | | 30810bd5-406b-4286-b1c1-5e8680ad99cc | L3 agent | controller | nova | True | UP | neutron-l3-agent | | 50022419-5b58-4ba7-9683-49c552f5d9a3 | Linux bridge agent | compute2 | None | True | UP | neutron-linuxbridge-agent | | 94af398a-47d2-41a5-840b-cf866e2809f8 | Loadbalancerv2 agent | controller | None | True | UP | neutron-lbaasv2-agent | | 97d640a4-68ee-4822-abd2-0908ad9ca38f | Linux bridge agent | compute1 | None | True | UP | neutron-linuxbridge-agent | | abfa25e3-6fca-4d62-88b8-c48c60db9ea8 | Linux bridge agent | controller | None | True | UP | neutron-linuxbridge-agent | | af084acf-7ce0-44f2-80bc-7538cd32cf23 | DHCP agent | controller | nova | True | UP | neutron-dhcp-agent | +--------------------------------------+----------------------+------------+-------------------+-------+-------+---------------------------+ |
hasil diatas tidak harus sama dengan anda, namun yang penting disitu sudah ada compute2
okee sudah berhasil untuk penambahan neutron agent untuk compute2 node
semoga bermanfaat…. wassalamualaikum
keep learning & istiqomah
System Engineer
Komentar