devstack installation - controller node

 


0. sudo hostnamectl set-hostname compute-141


1. Remove any symlik of /etc/resolve.conf and add

nameserver 8.8.8.8

nameserver 8.8.4.4


2. check df -h [ /, should have good space]


3. checl internet connectivity,


ping www.google.com


4. if possible disable Ipv6, ip allocation


/etc/netplan/50-cloud-init.yaml 



5. And host name entry in /etc/host



give root as default user and sudo priviledge


sudo useradd -s /bin/bash -d /opt/stack -m stack



echo "stack ALL=(ALL) NOPASSWD: ALL" | sudo tee /etc/sudoers.d/stack


su - stack


sudo apt install git -y



git clone https://git.openstack.org/openstack-dev/devstack 


# git clone https://opendev.org/openstack-dev/devstack -b stable/ussuri


# All codes have been downloaded in /opt/stack/devstack directory


cd devstack


vi local.conf


[[local|localrc]]


# Password for KeyStone, Database, RabbitMQ and Service

ADMIN_PASSWORD=admin


# Host IP - get your Server/VM IP address from ip addr command


HOST_IP=192.168.1.1

SERVICE_HOST=192.168.1.1

MYSQL_HOST=192.168.1.1

RABBIT_HOST=192.168.1.1

GLANCE_HOSTPORT=192.168.1.1:9292

ADMIN_PASSWORD=$ADMIN_PASSWORD

DATABASE_PASSWORD=$ADMIN_PASSWORD

RABBIT_PASSWORD=$ADMIN_PASSWORD

SERVICE_PASSWORD=$ADMIN_PASSWORD


## Neutron options

Q_USE_SECGROUP=True

FLOATING_RANGE="192.168.180.0/23"

IPV4_ADDRS_SAFE_TO_USE="10.0.0.0/22"

Q_FLOATING_ALLOCATION_POOL=start=192.168.181.150,end=192.168.181.254

PUBLIC_NETWORK_GATEWAY="192.168.180.1"

PUBLIC_INTERFACE=eno2


Q_USE_PROVIDERNET_FOR_PUBLIC=True



# Linuxbridge Settings

Q_AGENT=linuxbridge

LB_PHYSICAL_INTERFACE=eno2

PUBLIC_PHYSICAL_NETWORK=phy_ext

LB_INTERFACE_MAPPINGS=phy_ext:eno2





./stack.sh


====================ERROR==========================================



+lib/neutron-legacy:_move_neutron_addresses_route:650  IP_REPLACE='sudo ip addr replace 192.168.181.140/23 brd 192.168.181.255 dev br-ex'

+lib/neutron-legacy:_move_neutron_addresses_route:651  IP_UP='sudo ip link set br-ex up'

+lib/neutron-legacy:_move_neutron_addresses_route:652  [[ inet == \i\n\e\t ]]

++lib/neutron-legacy:_move_neutron_addresses_route:653  echo 192.168.181.140/23 brd 192.168.181.255

++lib/neutron-legacy:_move_neutron_addresses_route:653  cut -d / -f1

++lib/neutron-legacy:_move_neutron_addresses_route:653  awk '{ print $1; exit }'

++lib/neutron-legacy:_move_neutron_addresses_route:653  grep -o -E '(.*)/'

+lib/neutron-legacy:_move_neutron_addresses_route:653  IP=192.168.181.140

+lib/neutron-legacy:_move_neutron_addresses_route:654  ARP_CMD='sudo arping -A -c 3 -w 5 -I br-ex 192.168.181.140 '

+lib/neutron-legacy:_move_neutron_addresses_route:660  sudo ip addr del 192.168.181.140/23 brd 192.168.181.255 dev eno2

+lib/neutron-legacy:_move_neutron_addresses_route:660  sudo ip addr replace 192.168.181.140/23 brd 192.168.181.255 dev br-ex

+lib/neutron-legacy:_move_neutron_addresses_route:660  sudo ip link set br-ex up

+lib/neutron-legacy:_move_neutron_addresses_route:660  sudo ovs-vsctl --may-exist add-port br-ex eno2

sudo: ovs-vsctl: command not found



####

Use 

./stack.sh --use-feature=2020-resolver


/opt/stack/requirements/upper-constraints.txt

pecan===1.3.3 --> pecan===1.4.0






Comments

Popular posts from this blog

Basics of networking : Model,Router,firewall,Switch, wireless access points

RAN | O-RAN | Open RAN | Open Radio Access Network | Layers |

Linux command