CARA INSTALL OPENSTACK QUEEN 2 NODE PADA UBUNTU MENGGUNAKAN OPENSTACK QUEEN MANUAL PART-3

hallo teman-teman kali ini kita lanjut lagi konfigurasi openstack queen manual pada ubuntu dengan 2 node. Masih dengan materi yang sama tetapi tahapan yang berbeda oke langsung saja kita lanjut install dan konfigurasi. pada tahap dua kita hanya sampai konfigurasi nova, kali ini kita lanjut konfgurasi Neutron Network.


# Tahap ke-sepuluh
Networking service – neutron installation for Queens (controller)
# mysql -u root -p

MariaDB [(none)] CREATE DATABASE neutron;
MariaDB [(none)]> GRANT ALL PRIVILEGES ON neutron.* TO 'neutron'@'localhost' IDENTIFIED BY 'rahasia';
MariaDB [(none)]> GRANT ALL PRIVILEGES ON neutron.* TO 'neutron'@'%' IDENTIFIED BY 'rahasia';

 # exit

* rahasia adalah password

# source openrc
# Create the neutron user :
# openstack user create --domain default --password-prompt neutron
*tahap ini meminta password


# openstack role add --project service --user neutron admin
# openstack service create --name neutron --description "OpenStack Networking" network

# openstack endpoint create --region RegionOne network public http://controller:9696

# openstack endpoint create --region RegionOne network internal http://controller:9696

# openstack endpoint create --region RegionOne network admin http://controller:9696


# apt install neutron-server neutron-plugin-ml2 neutron-linuxbridge-agent neutron-l3-agent neutron-dhcp-agent neutron-metadata-agent

Edit file /etc/neutron/neutron.conf dan samakan dengan konfigurasi berikut
[database]
connection = mysql+pymysql://neutron:rahasia@controller/neutron

[DEFAULT]
core_plugin = ml2
service_plugins = router
allow_overlapping_ips = true
transport_url = rabbit://openstack:rahasia@controller
auth_strategy = keystone

[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 = neutron
password = rahasia

[DEFAULT]
notify_nova_on_port_status_changes = true
notify_nova_on_port_data_changes = true

[nova]
auth_url = http://controller:5000
auth_type = password
project_domain_name = default
user_domain_name = default
region_name = RegionOne
project_name = service
username = nova
password = rahasia

# Configure the Modular Layer 2 (ML2) plug-in

Edit file /etc/neutron/plugins/ml2/ml2_conf.ini

[ml2]
type_drivers = flat,vlan,vxlan
tenant_network_types = vxlan
mechanism_drivers = linuxbridge,l2population
extension_drivers = port_security

[ml2_type_flat]
flat_networks = provider

[ml2_type_vxlan]
vni_ranges = 1:1000

[securitygroup]
enable_ipset = true

# Configure the Linux bridge agent
Edit file /etc/neutron/plugins/ml2/linuxbridge_agent.ini
* Di bagian [linux_bridge], petakan jaringan virtual penyedia ke interface jaringan fisik penyedia:

[linux_bridge]
physical_interface_mappings = provider:ens8

*ens8 adalah interface fisik vm

[vxlan]
enable_vxlan = true
local_ip = 10.100.100.20 *ini adalah ip controller
l2_population = true

[securitygroup]
enable_security_group = true
firewall_driver = neutron.agent.linux.iptables_firewall.IptablesFirewallDriver

# sysctl net.bridge.bridge-nf-call-iptables
# sysctl net.bridge.bridge-nf-call-ip6tables

Configure the layer-3 agent
Edit file /etc/neutron/l3_agent.ini

[DEFAULT]
interface_driver = linuxbridge

Edit file /etc/neutron/dhcp_agent.ini

[DEFAULT]
interface_driver = linuxbridge
dhcp_driver = neutron.agent.linux.dhcp.Dnsmasq
enable_isolated_metadata = true

Edit file /etc/neutron/metadata_agent.ini 
[DEFAULT]
nova_metadata_host = controller
metadata_proxy_shared_secret = rahasia

Edit file /etc/nova/nova.conf
[neutron]
url = http://controller:9696
auth_url = http://controller:5000
auth_type = password
project_domain_name = default
user_domain_name = default
region_name = RegionOne
project_name = service
username = neutron
password = rahasia
service_metadata_proxy = true
metadata_proxy_shared_secret = rahasia

Finalize installation
su -s /bin/sh -c "neutron-db-manage --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugins/ml2/ml2_conf.ini upgrade head" neutron

# service nova-api restart
# service neutron-server restart
# service neutron-linuxbridge-agent restart
# service neutron-dhcp-agent restart
# service neutron-metadata-agent restart
# service neutron-l3-agent restart


Install and configure neutron (compute node)

# apt install neutron-linuxbridge-agent
Edit file /etc/neutron/neutron.conf

[DEFAULT]
transport_url = rabbit://openstack:rahasia@controller
*rahasia adalah password

[DEFAULT]
auth_strategy = keystone

[keystone_authtoken]
www_authenticate_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 = neutron
password = rahasia

Edit file /etc/neutron/plugins/ml2/linuxbridge_agent.ini
[linux_bridge]
physical_interface_mappings = provider:ens8

*ens8 adalah interface fisik compute node

[vxlan]
enable_vxlan = true
local_ip = 10.100.100.21
 l2_population = true

# sysctl net.bridge.bridge-nf-call-iptables
# sysctl net.bridge.bridge-nf-call-ip6tables


Edit file /etc/nova/nova.conf
[neutron]
url = http://controller:9696
auth_url = http://controller:5000
auth_type = password
project_domain_name = default
user_domain_name = default
region_name = RegionOne
project_name = service
username = neutron
password = rahasia

# service nova-compute restart
# service neutron-linuxbridge-agent restart

verify in controller
 # openstack network agent list


Tahap ke-sebelas 
Dashboard – horizon installation for Queens (in controller node)

# apt install openstack-dashboard
# Edit file /etc/openstack-dashboard/local_settings.py

OPENSTACK_HOST = "controller" 
ALLOWED_HOSTS = ['*', '*']

# Configure the memcached session storage service:

SESSION_ENGINE = 'django.contrib.sessions.backends.cache'

CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
'LOCATION': 'controller:11211',
}
}

# Enable the Identity API version 3:
OPENSTACK_KEYSTONE_URL = "http://%s:5000/v3" % OPENSTACK_HOST

# Enable support for domains:
OPENSTACK_KEYSTONE_MULTIDOMAIN_SUPPORT = True

# Configure API versions:
OPENSTACK_API_VERSIONS = {
"identity": 3,
"image": 2,
"volume": 2,
 }

# Configure Default as the default domain for users that you create via the dashboard:
OPENSTACK_KEYSTONE_DEFAULT_DOMAIN = "Default"

# Configure user as the default role for users that you create via the dashboard:
OPENSTACK_KEYSTONE_DEFAULT_ROLE = "user"

# Add the following line to /etc/apache2/conf-available/openstack-dashboard.conf if not included.
WSGIApplicationGroup %{GLOBAL}

# service apache2 reload

untuk pengujian buka browser ketikkan ip_controller/Horizon
# 10.100.100.20/Horizon 


jika sampai tahap ini tkita sudah selesai instalasi dan berhasik konfigurasi. oke untuk cara install openstack queen manual sudah selesai sampai sini. semoga bermanfaat 

Posting Komentar

0 Komentar