Openstack: Install Openstack All-in-One with Packstack
Belajar Linux ID β Pada tutorial kali ini kita akan membahas bagaimana cara install openstack queen single node menggunakan Packstack.
Packstack merupakan utilitas yang menggunakan modul puppet untuk menyebarkan berbagai layanan dari Openstack pada server secara otomatis melalui SSH. Instalasi packstack dapat di lakukan di sistem operasi berikut:
β Red Hat Enterprise Linux (RHEL) 7Β (minimum requirement)
β CentOS 7
β Scientific Linux x86_64
[Baca juga: OPENSTACK 01: DEFINISI DAN ARSITEKTUR]
Untuk detail requirement hardware Anda dapat merujuk pada link resmi packstack berikut: Prasyarat
Berikut requirement hardware yang kami gunakan untuk instalasi Openstack queen menggunakan packstack:
β CPU: 8 Core
β RAM: 8 GB
β Disk: 60 GB
Untuk OS yang kami gunakan yaitu CentOS 7. Berikut tahapan β tahapan instasinya:
Pertama silakan akses SSH ke VM Anda, dan silakan update sistem operasi CentOS 7
1
2
[root@hamim-stack ~]#
[root@hamim-stack ~]# yum update -y
Konfigurasi hostname
1
2
3
4
5
6
[root@hamim-stack ~]#
[root@hamim-stack ~]# hostnamectl set-hostname packstack.nurhamim.my.id
[root@hamim-stack ~]#
[root@hamim-stack ~]# hostnamectl |grep Static
Static hostname: packstack.nurhamim.my.id
[root@hamim-stack ~]#
Disable Selinux
1
2
3
4
5
6
7
8
[root@hamim-stack ~]#
[root@hamim-stack ~]# sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/config
[root@hamim-stack ~]# cat /etc/selinux/config |grep SELINUX
# SELINUX= can take one of these three values:
SELINUX=disabled
# SELINUXTYPE= can take one of three two values:
SELINUXTYPE=targeted
[root@hamim-stack ~]#
Install repository openstack versi queen
1
2
[root@hamim-stack ~]#
[root@hamim-stack ~]# yum install -y centos-release-openstack-queens
Enable paket repository openstack
1
2
3
[root@hamim-stack ~]# yum-config-manager enable openstack-queens
Loaded plugins: fastestmirror
[root@hamim-stack ~]#
Update kembali CentOS 7 Anda
1
2
[root@hamim-stack ~]#
[root@hamim-stack ~]# yum update -y
Jika sudah, selanjutnya install openstack packstack
1
2
[root@hamim-stack ~]#
[root@hamim-stack ~]# yum install -y openstack-packstack
Selanjutnya install packstack all-in-one
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
[root@hamim-stack ~]#
[root@hamim-stack ~]# packstack --allinone
Welcome to the Packstack setup utility
The installation log file is available at: /var/tmp/packstack/20200913-162522-c8kzCN/openstack-setup.log
Packstack changed given value to required value /root/.ssh/id_rsa.pub
Installing:
Clean Up [DONE]
Discovering ip protocol version [DONE]
Setting up ssh keys [DONE]
Preparing servers [DONE]
Pre installing Puppet and discovering hosts' details [DONE]
Preparing pre-install entries [DONE]
Setting up CACERT [DONE]
Preparing AMQP entries [DONE]
Preparing MariaDB entries [DONE]
Fixing Keystone LDAP config parameters to be undef if empty[DONE]
Preparing Keystone entries [DONE]
Preparing Glance entries [DONE]
Checking if the Cinder server has a cinder-volumes vg[DONE]
Preparing Cinder entries [DONE]
Preparing Nova API entries [DONE]
Creating ssh keys for Nova migration [DONE]
Gathering ssh host keys for Nova migration [DONE]
Preparing Nova Compute entries [DONE]
Preparing Nova Scheduler entries [DONE]
Preparing Nova VNC Proxy entries [DONE]
Preparing OpenStack Network-related Nova entries [DONE]
Preparing Nova Common entries [DONE]
Preparing Neutron LBaaS Agent entries [DONE]
Preparing Neutron API entries [DONE]
Preparing Neutron L3 entries [DONE]
Preparing Neutron L2 Agent entries [DONE]
Preparing Neutron DHCP Agent entries [DONE]
Preparing Neutron Metering Agent entries [DONE]
Checking if NetworkManager is enabled and running [DONE]
Preparing OpenStack Client entries [DONE]
Preparing Horizon entries [DONE]
Preparing Swift builder entries [DONE]
Preparing Swift proxy entries [DONE]
Preparing Swift storage entries [DONE]
Preparing Gnocchi entries [DONE]
Preparing Redis entries [DONE]
Preparing Ceilometer entries [DONE]
Preparing Aodh entries [DONE]
Preparing Puppet manifests [DONE]
Copying Puppet modules and manifests [DONE]
Applying 192.168.20.5_controller.pp
Testing if puppet apply is finished: 192.168.20.5_controller.pp [|]
Copying Puppet modules and manifests [DONE]
Applying 192.168.20.5_controller.pp
192.168.20.5_controller.pp: [DONE]
Applying 192.168.20.5_network.pp
192.168.20.5_network.pp: [DONE]
Applying 192.168.20.5_compute.pp
192.168.20.5_compute.pp: [DONE]
Applying Puppet manifests [DONE]
Finalizing [DONE]
Instalasi ini membutuhkan waktu yang cukup lama karena kita akan menginstall semua paket openstack yang ada di packstack. Apabila berhasil Anda akan mendapatka informasi seperti berikut:
1
2
3
4
5
6
7
8
9
10
11
12
****Installation completed successfully******
Additional information:
* A new answerfile was created in: /root/packstack-answers-20200913-162523.txt
* Time synchronization installation was skipped. Please note that unsynchronized time on server instances might be problem for some OpenStack components.
* File /root/keystonerc_admin has been created on OpenStack client host 192.168.20.5. To use the command line tools you need to source the file.
* To access the OpenStack Dashboard browse to http://192.168.20.5/dashboard .
Please, find your login credentials stored in the keystonerc_admin in your home directory.
* Because of the kernel update the host 192.168.20.5 requires reboot.
* The installation log file is available at: /var/tmp/packstack/20200913-162522-c8kzCN/openstack-setup.log
* The generated manifests are available at: /var/tmp/packstack/20200913-162522-c8kzCN/manifests
[root@hamim-stack ~]#
Jika sudah Anda dapat akses IP atau hostname yang sudah di pointing ke IP Public VM Anda, hasilnya akan seperti berikut ini
Gambar diatas merupakan tampilan dari Horizon dan untuk mendapatkan username dan password login ke horizon, gunakan perintah berikut:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
[root@hamim-stack ~]#
[root@hamim-stack ~]# cat /root/keystonerc_admin
unset OS_SERVICE_TOKEN
export OS_USERNAME=admin
export OS_PASSWORD='28cd8b935903441a'
export OS_REGION_NAME=RegionOne
export OS_AUTH_URL=http://192.168.20.5:5000/v3
export PS1='[\u@\h \W(keystone_admin)]\$ '
export OS_PROJECT_NAME=admin
export OS_USER_DOMAIN_NAME=Default
export OS_PROJECT_DOMAIN_NAME=Default
export OS_IDENTITY_API_VERSION=3
[root@hamim-stack ~]#
Silakan login ke horizon menggunakan username dan password di atas, apabila berhasil akan nampak seperti berikut
Berikut contoh overview dari atau menu yang ada di openstack Horizon
Jika terdapat pertanyaan silakan tulis di kolom komentar ya *-*
Selamat mencobaΒ π