devstack installation - Compute 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 #No mandatory
/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
Edit local.conf and add your desired conf details
run --> ./stack.sh --use-feature=2020-resolver
Working compute node local.conf[change compute IP accordingly]
*****************************************************************************************
[[local|localrc]]
HOST_IP=192.168.181.12 # change this per compute node
SERVICE_HOST=192.168.181.10
LOGFILE=/opt/stack/logs/stack.sh.log
ADMIN_PASSWORD=admin
DATABASE_PASSWORD=$ADMIN_PASSWORD
MYSQL_PASSWORD=$ADMIN_PASSWORD
RABBIT_PASSWORD=$ADMIN_PASSWORD
SERVICE_PASSWORD=$ADMIN_PASSWORD
MYSQL_HOST=$SERVICE_HOST
RABBIT_HOST=$SERVICE_HOST
GLANCE_HOSTPORT=$SERVICE_HOST:9292
ENABLED_SERVICES=n-cpu,q-agt,placement-client,rabbit
## Neutron options
FIXED_RANGE=10.4.128.0/20
FLOATING_RANGE=192.168.42.128/25
PUBLIC_NETWORK_GATEWAY="192.168.180.1"
# Open vSwitch provider networking configuration
Q_USE_PROVIDERNET_FOR_PUBLIC=True
OVS_PHYSICAL_BRIDGE=br-ex
PUBLIC_INTERFACE=eno2
PUBLIC_BRIDGE=br-ex
OVS_BRIDGE_MAPPINGS=public:br-ex
*****************************************************************************************
post installation
In controller node
run
#/opt/stack/devstack/tools/discover_hosts.sh
Found 2 cell mappings.
Skipping cell0 since it does not contain hosts.
Getting computes from cell 'cell1': 88ca0441-32c9-487a-8961-a0caaa38fe16
Checking host mapping for compute host 'compute-142': 6c0c5a81-e68d-4294-b3cc-c2cc8a37d27e
Creating host mapping for compute host 'compute-142': 6c0c5a81-e68d-4294-b3cc-c2cc8a37d27e
Found 1 unmapped computes in cell: 88ca0441-32c9-487a-8961-a0caaa38fe16
#openstack hypervisor list
the new compute should be listed as hypervisor
#Add the new compute node in AZ via dashboard and launch instances
Below were alternatives if failed , not needed
======= Installation Output using compute.conf============
Note : No c-vol service in local.conf
=========================
DevStack Component Timing
(times are in seconds)
=========================
run_process 4
apt-get-update 6
osc 0
wait_for_service 2
pip_install 29
apt-get 5
-------------------------
Unaccounted time 89
=========================
Total runtime 135
This is your host IP address: 192.168.181.142
This is your host IPv6 address: ::1
Services are running under systemd unit files.
For more information see:
https://docs.openstack.org/devstack/latest/systemd.html
DevStack Version: victoria
Change: 09430e43c4d13f06f0604e8f8ba35f77a038a980 Merge "Enable access rules tempest tests" 2020-09-27 10:00:45 +0000
OS Version: Ubuntu 18.04 bionic
==== POST Installation ===
# Bridge is not created properly, its created by br-ex to eno2 mapping is not there in "ovs-vs show"
# and ifconfig still doesn't show br-ext and to eno2 mapping
TODO --> local.conf
use
## Open vSwitch provider networking options
PHYSICAL_NETWORK=default
OVS_PHYSICAL_BRIDGE=br-ex
PUBLIC_INTERFACE=eno2
Q_USE_PROVIDER_NETWORKING=True
Instead
#Q_USE_PROVIDERNET_FOR_PUBLIC=True
Q_USE_PROVIDER_NETWORKING=True
PHYSICAL_NETWORK=default
OVS_PHYSICAL_BRIDGE=br-ex
PUBLIC_INTERFACE=eno2
#PUBLIC_BRIDGE=br-ex
#OVS_BRIDGE_MAPPINGS=public:br-ex
DevStack Version: victoria
Change: 680298e7c67a4250f2edf603ffb90510d5cbf496 Merge "Add possibility to not compile ovs and ovn if that's disabled" 2020-09-29 00:33:58 +0000
OS Version: Ubuntu 18.04 bionic
Comments
Post a Comment