Friday, June 12, 2015

Openstack Menambah Compute Node Menggunakan Packstack CentOS 7

Tulisan ini adalah lanjutan dari tulisan sebelumnya yang membahas langkah-langkah Instalasi OpenStack Menggunakan Packstack di CentOS 7. Pada tulisan kali ini kita akan membahas bagaimana cara menambahkan compute node menggunakan packstack. 

Untuk menambahkan compute node (192.168.99.51), maka berarti kita harus menginstall OpenStack lagi di sebuah server, kira-kira nanti topologinya adalah seperti dibawah ini.



Notes Penting!
Pre-Requirement dan Pre-Instalation di Node B sama percis dengan di Node A ketika awal mendeploy OpenStack, seperti instalasi openvswitch, int-br-ex, turn off network manager service, update package, hostname static, dsb. 


Langkah Pertama, Edit File answers.txt di Node A, lalu ubah parameter dibawah ini
[root@servera ~]# vim /root/answers.txt
##Tambahkan Node Compute Host 192.168.99.51##
CONFIG_COMPUTE_HOSTS=192.168.99.50,192.168.99.51

Update dan Deploy OpenStack Menggunakan File answers.txt yang Telah Diupdate
[root@servera ~]# packstack --answer-file /root/answers.txt

Copy File answers.txt dari Node A ke Node B
[root@servera ~]# scp /root/answers.txt root@192.168.99.51:/root/answers.txt 
answers.txt                                                        100%   30KB  29.7KB/s   00:00

Pada Node B, Deploy OpenStack Menggunakan File answers.txt yang Dicopy Dari Node A
[root@serverb ~]# packstack --answer-file /root/answers.txt

Setelah Selesai, Jangan Lupa Verifikasi Status Service
[root@serverb ~]# openstack-status
== Nova services ==
openstack-nova-api:                     inactive  (disabled on boot)
openstack-nova-compute:                 active
openstack-nova-network:                 inactive  (disabled on boot)
openstack-nova-scheduler:               inactive  (disabled on boot)
== neutron services ==
neutron-server:                         inactive  (disabled on boot)
neutron-dhcp-agent:                     active
neutron-l3-agent:                       active
neutron-metadata-agent:                 active
neutron-lbaas-agent:                    active
neutron-openvswitch-agent:              active
neutron-metering-agent:                 active
== Ceilometer services ==
openstack-ceilometer-api:               inactive  (disabled on boot)
openstack-ceilometer-central:           inactive  (disabled on boot)
openstack-ceilometer-compute:           active
openstack-ceilometer-collector:         inactive  (disabled on boot)
== Support services ==
libvirtd:                               active
openvswitch:                            active
dbus:                                   active
rabbitmq-server:                        failed
Warning novarc not sourced

Verifikasi Compute Hosts Melalui Horizon Web Interfaces
- Login melalui dashboard https://192.168.99.50/dashboard

- Setelah berhasil login, cek hypervisor summare di menu Admin -> System -> Hypervisors 

1) Cek dan Verifikasi tab bagian hypervisors, apabila proses menambah compute node berhasil seharusnya akan ada 2 hypervisor yaitu servera.pod1.example.com dan server2.pod1.example.com.


2) Cek dan Verifikasi tab bagian Compute Host, apabila proses penambahan compute node dari langkah sebelumnya telah berhasil dilakukan, maka seharusnya akan ada 2 Compute Host yaitu servera.pod1.example.com dan server2.pod1.example.com.



Semoga bermanfaat.

No comments:

Post a Comment