halo teman -teman kali ini saya akan melanjutkan instalasi openstack queen manual 2 node pada ubuntu part 2. ok langsung saka kita lajut instalasi. pada bagian terahir kita instalasi sampai Tahap ke-7 yaitu install Openstack Service Minimal Deployment for Queen. dan sekarang kita lanjutkan instalasi tahap ke-8.
#
Tahap ke-delapam
Image
service – glance installation
#
mysql -u root -p
MariaDB [(none)]> CREATE DATABASE glance;
MariaDB [(none)]> GRANT ALL PRIVILEGES ON glance.* TO
'glance'@'localhost' IDENTIFIED BY 'rahasia';
MariaDB [(none)]> GRANT ALL PRIVILEGES ON glance.* TO 'glance'@'%'
IDENTIFIED BY 'rahasia';
*rahasia
adalah password
# exit
# source openrc
# buat User glace
# openstack user create --domain default --password-prompt glance
*pada tahap ini kita harus memasukkan password
#
openstack
role add --project service --user glance admin
#
openstack
service create --name glance --description "OpenStack Image"
image
#
openstack endpoint create --region RegionOne image public
http://controller:9292
#
openstack endpoint create --region RegionOne image internal
http://controller:9292
#
openstack endpoint create --region RegionOne image admin
http://controller:9292
Install and configure components
#
apt install glance
#
Edit file /etc/glance/glance-api.conf
[database]
connection = mysql+pymysql://glance:rahasia@controller/glance
*rahasia
adalah password glance
[keystone_authtoken]
auth_uri
= http://controller:5000
auth_url
= http://controller:5000
memcached_servers
= controller:11211
auth_type
= password
project_domain_name
= Default
user_domain_name
= Default
project_name
= service
username
= glance
password
= rahasia
[paste_deploy]
flavor
= keystone
[glance_store]
stores
= file,http
default_store
= file
filesystem_store_datadir
= /var/lib/glance/images/
# Edit file /etc/glance/glance-registry.conf
[database]
connection
= mysql+pymysql://glance:rahasia@controller/glance
[keystone_authtoken]
auth_uri
= http://controller:5000
auth_url
= http://controller:5000
memcached_servers
= controller:11211
auth_type
= password
project_domain_name
= Default
user_domain_name
= Default
project_name
= service
username
= glance
password
= rahasia
[paste_deploy]
flavor
= keystone
simpan dan selanjutnya
#
su -s /bin/sh -c "glance-manage db_sync" glance
#
service glance-registry restart
#
service
glance-api restart
verifikasi
operation (controller node)
#
source openrc
#
openstack image create "cirros" --file
cirros-0.4.0-x86_64-disk.img --disk-format qcow2 --container-format
bare –public
#
source openrc
#
openstack image list
9. Tahap
ke-sembilan
Compute
service – nova installation for Queens (controller node)
#
mysql
MariaDB [(none)]> CREATE DATABASE nova_api;
MariaDB [(none)]> CREATE DATABASE nova;
MariaDB [(none)]> CREATE DATABASE nova_cell0;
MariaDB
[(none)]> GRANT ALL PRIVILEGES ON nova_api.* TO 'nova'@'localhost' IDENTIFIED BY 'rahasia';
MariaDB
[(none)]> GRANT ALL PRIVILEGES ON nova_api.* TO 'nova'@'%'
IDENTIFIED BY 'rahasia';
MariaDB
[(none)]> GRANT ALL PRIVILEGES ON nova.* TO 'nova'@'localhost'
IDENTIFIED BY 'rahasia';
MariaDB
[(none)]> GRANT ALL PRIVILEGES ON nova.* TO 'nova'@'%' IDENTIFIED
BY 'rahasia';
MariaDB
[(none)]> GRANT ALL PRIVILEGES ON nova_cell0.* TO
'nova'@'localhost' IDENTIFIED BY 'rahasia';
MariaDB
[(none)]> GRANT ALL PRIVILEGES ON nova_cell0.* TO 'nova'@'%'
IDENTIFIED BY 'rahasia';
*rahasia adalah password
#
exit
#
source openrc
#
Create the nova user :
#
openstack user create --domain default --password-prompt nova
*tahap
ini meminta untuk memasukkan password
#
openstack role add --project service --user nova admin
#
openstack service create --name nova --description "OpenStack
Compute" compute
Create
the Compute API service endpoints:
#
openstack endpoint create --region RegionOne compute public
http://controller:8774/v2.1
#
openstack endpoint create --region RegionOne compute internal
http://controller:8774/v2.1
#
openstack endpoint create --region RegionOne compute admin
http://controller:8774/v2.1
#
openstack user create --domain default --password-prompt placement
*
tahap ini meminta menambahkan password
#
openstack role add --project service --user placement admin
Create
the Placement API entry in the service catalog:
#
openstack service create --name placement --description "Placement
API" placement
#
openstack endpoint create --region RegionOne placement public
http://controller:8778
#
openstack endpoint create --region RegionOne placement internal
http://controller:8778
#
openstack endpoint create --region RegionOne placement admin
http://controller:8778
Install the nova packages:
#
apt install nova-api nova-conductor nova-consoleauth
#
apt install nova-novncproxy nova-scheduler nova-placement-api
Edit
file /etc/nova/nova.conf
[api_database]
connection
= mysql+pymysql://nova:rahasia@controller/nova_api
[database]
connection
= mysql+pymysql://nova:rahasia@controller/nova
[DEFAULT]
transport_url
= rabbit://openstack:rahasia@controller
my_ip
= 10.100.100.20
use_neutron
= True
firewall_driver
= nova.virt.firewall.NoopFirewallDriver
[api]
auth_strategy
= keystone
[keystone_authtoken]
auth_url
= http://controller:5000/v3
memcached_servers
= controller:11211
auth_type
= password
project_domain_name
= default
user_domain_name
= default
project_name
= service
username
= nova
password
= rahasia
[vnc]
enabled
= true
server_listen
= $my_ip
server_proxyclient_address
= $my_ip
[glance]
api_servers
= http://controller:9292
[oslo_concurrency]
lock_path
= /var/lib/nova/tmp
[placement]
os_region_name
= RegionOne
project_domain_name
= Default
project_name
= service
auth_type
= password
user_domain_name
= Default
auth_url
= http://controller:5000/v3
username
= placement
password
= rahasia
***rahasia
adalah password admin
#
Populate the nova-api database:
#
su -s /bin/sh -c "nova-manage api_db sync" nova
#
Register the cell0 database:
#
su -s /bin/sh -c "nova-manage cell_v2 map_cell0" nova
#
Create the cell1 cell1:
#
su -s /bin/sh -c "nova-manage cell_v2 create_cell --name=cell1
--verbose" nova 109e1d4b-536a- 40d0-83c6-5f121b82b650
Populate
the nova database:
#
su -s /bin/sh -c "nova-manage db sync" nova
Verify
nova cell0 and cell1 are registered correctly:
# nova-manage cell_v2 list_cells
#
service nova-api restart
#
service nova-consoleauth restart
#
service nova-scheduler restart
#
service nova-conductor restart
#
service nova-novncproxy restart
# Compute
service – nova installation for Queens (compute node)
#
apt install nova-compute
# Edit
file /etc/nova/nova.conf
[DEFAULT]
[api]
auth_strategy
= keystone
[keystone_authtoken]
auth_url
= http://controller:5000/v3
memcached_servers
= controller:11211
auth_type
= password
project_domain_name
= default
user_domain_name
= default
project_name
= service
username
= nova
password
= rahasia
[DEFAULT]
my_ip
= MANAGEMENT_INTERFACE_IP_ADDRESS *ip compute node
use_neutron
= True
firewall_driver
= nova.virt.firewall.NoopFirewallDriver
[vnc]
enabled
= True
server_listen
= 0.0.0.0
server_proxyclient_address
= $my_ip
novncproxy_base_url
= http://controller:6080/vnc_auto.html
[glance]
api_servers
= http://controller:9292
[oslo_concurrency]
lock_path
= /var/lib/nova/tmp
Finalize
installation
#
egrep
-c '(vmx|svm)' /proc/cpuinfo
Jika
perintah ini mengembalikan nilai satu atau lebih, node komputasi Anda
mendukung akselerasi perangkat keras yang biasanya tidak memerlukan
konfigurasi tambaha.
Jika
perintah ini mengembalikan nilai nol, node komputasi Anda tidak
mendukung akselerasi perangkat keras dan Anda harus mengonfigurasi
libvirt agar menggunakan QEMU, bukan KVM.
Edit
the [libvirt] di /etc/nova/nova-compute.conf
[libvirt]
virt_type
= qemu
*jika
belum ada tambahkan.
#
service nova-compute restart
verifikasi
konfigurasi di controller node
#source
openrc
#openstack
compute service list --service nova-compute
* Temukan
host komputasi
#
su -s /bin/sh -c "nova-manage cell_v2 discover_hosts --verbose"
nova
Found
2 cell mappings.
Skipping
cell0 since it does not contain hosts.
Getting
computes from cell 'cell1': 162dbf93-f23e-4180-ab16-b98c4ec8ad02
Checking
host mapping for compute host 'compute':
952659a7-b1c5-44f4-9555-0d8cea7b99d8
Creating
host mapping for compute host 'compute':
952659a7-b1c5-44f4-9555-0d8cea7b99d8
Found
1 unmapped computes in cell: 162dbf93-f23e-4180-ab16-b98c4ec8ad02
#
Verify
operation
#
source openrc
#
openstack compute service list
#
openstack catalog list
#
openstack image list
#
nova-status upgrade check
ok teman-teman tahap ke-dua sekian dulu untuk selanjutnya silakan lihat di sini CARA INSTALL OPENSTACK QUEEN 2 NODE PADA UBUNTU MENGGUNAKAN OPENSTACK QUEEN MANUAL PART-3
0 Komentar