Openstack Multinode Installation
Openstack Multinode Installation
SETUP NODES:
-> ssh-keygen (Just Press Enter (3) times no need to type anything , because we
ofiguring passwordless SSH of root.)
-> ssh-copy-id -i /root/.ssh/id_rsa.pub [email protected] (Run this command from
controller node only and write ip's of every node 1 by 1 all the (compute and
network) etc.)
-> ssh compute1 , ssh Compute2 , ssh network1 etc.(Now from controller ssh to every
node 1 by 1 (Important)).
-> CONFIG_CONTROLLER_HOST=172.17.85.101
->
CONFIG_COMPUTE_HOSTS=172.17.85.102,172.17.85.103,172.17.85.104,172.17.85.105,172.17
.85.106,172.17.85.107,172.17.85.108,172.17.85.109
-> CONFIG_NETWORK_HOSTS=172.17.85.101 (if you want network node in your setup then
add network node ip here , i just make my control node network as well so i write
controller node ip here.)
-> CONFIG_PROVISION_DEMO=n
-> CONFIG_CEILOMETER_INSTALL=n
-> CONFIG_HORIZON_SSL=n
-> CONFIG_NTP_SERVERS= (leave it empty).
-> CONFIG_KEYSTONE_ADMIN_PW=salman (Add your horizon dashboard password here).
-> CONFIG_NEUTRON_L3_EXT_BRIDGE=provider
-> CONFIG_NEUTRON_ML2_TYPE_DRIVERS=flat,vxlan
-> CONFIG_NEUTRON_ML2_TENANT_NETWORK_TYPES=vlan
-> CONFIG_NEUTRON_OVS_BRIDGE_MAPPINGS=physnet:br-ex
-> CONFIG_NEUTRON_OVS_BRIDGE_IFACES=br-ex:enp6s0f0 (write the name of your adapter
name in place of enp6s0f0 of the controller node (IMPORTANT) if your topology have
a network node then write network node adapter name not the controller node (VERY
IMP)).
-> CONFIG_NEUTRON_OVS_BRIDGES_COMPUTE=br-ex
DEVICE=br-ex
DEVICETYPE=ovs
TYPE=OVSBridge
BOOTPROTO=static
IPADDR=172.17.85.101 #your ip
NETMASK=255.255.255.0 # your subnet
GATEWAY=172.17.85.254 #your gateway
DNS1=8.8.8.8
ONBOOT=yes
Wait let the bridge adapter picks the old ip of the controller node then log in to
Dashboard to check if its working or not (ping dns , gateway and google as well to
make sure it working correctely).
FROM CONTROLLER NODE CREATE THE NETWORKS AND ADD CIRROS IMAGE AND ALSO CREATE
PROJECT (salman):
-> . keystonerc_admin
-> neutron net-create external_network --provider:network_type flat
--provider:physical_network extnet --router:external
-> neutron subnet-create --name public_subnet --enable_dhcp=False --allocation-
pool=start=192.168.1.160,end=192.168.1.190 --gateway=192.168.1.1 external_network
192.168.1.0/24
-> curl http://download.cirros-cloud.net/0.3.4/cirros-0.3.4-x86_64-disk.img |
glance image-create --name='cirros image' --visibility=public --container-
format=bare --disk-format=qcow2
-> openstack project create --enable salman
-> openstack user create --project salman --password salman --email
[email protected] --enable salman
-> export OS_USERNAME=salman
-> export OS_TENANT_NAME=salman
-> export OS_PASSWORD=salman
-> . keystonerc_admin
-> neutron router-create router1
-> neutron router-gateway-set router1 external_network
-> neutron net-create private_network
-> neutron subnet-create --name private_subnet private_network 192.168.100.0/24
-> neutron router-interface-add router1 private_subnet
NOW GO TO compute->security groups (Mangae Rule add the ICMP , ALL TCP , ALL UDP ,
RDP , SSH etc.)
LAUNCH THE INSTANCE IN NETWORK SETTING SELECT THE PRIVATE THE NETWORK AFTER LAUNCH
ASSOSIATE THE FLOATING IP FROM THE EXTERNAL NETWORK
THEN PING THE FLOATING IP ALSO SSH IT TO MAKESURE IT'S WORKING FINE.
CONGRAGULATIONS:)
REFRENCES:
https://www.rdoproject.org/networking/neutron-with-existing-external-network/
(openstack installation)
https://www.reddit.com/r/linux/comments/5ejiz2/using_packstack_to_deploy_openstack_
with_access/(openstack installation)
https://www.techsupportpk.com/2016/12/installing-openstack-on-multi-node-in-
linux.html(openstack installation)
https://www.tecmint.com/ip-command-examples/ (Save Static persistent routes in
centos) (Point no 9).
http://www.darwinbiler.com/openstack-creating-and-attaching-a-volume-into-an-
instance/(create and attach volume to instance).