Deploying an OpenStack Compute node

nova + neutron / compute

OpenStack packages for Ubuntu,

apt install software-properties-common
add-apt-repository cloud-archive:pike
apt update
apt full-upgrade

note. fix the pike version according to your ubuntu release

apt install nova-compute neutron-linuxbridge-agent
#apt install python-openstackclient

mv /etc/nova/nova.conf /etc/nova/nova.conf.dist
mv /etc/neutron/neutron.conf /etc/neutron/neutron.conf.dist
mv /etc/neutron/plugins/ml2/linuxbridge_agent.ini /etc/neutron/plugins/ml2/linuxbridge_agent.ini.dist
cd ~/
git clone https://github.com/pbraun9/bin.git
#git clone ssh://git@github.com/pbraun9/bin.git
cd ~/bin/nova/
vi DEFAULT

my_ip = x.x.x.x (THE MANAGEMENT IP)

cd ~/bin/bridge/
vi linux_bridge

physical_interface_mappings = provider:xenbr0 (THE BRIDGE YOU WANNA USE)

cd ~/bin/
./openstackconf

grep ^log_dir /etc/nova/nova.conf
mv -f /etc/nova/nova.conf /etc/nova/nova.conf.tmp
sed '/^log_dir/d' /etc/nova/nova.conf.tmp > /etc/nova/nova.conf
rm -f /etc/nova/nova.conf.tmp

grep ^connection /etc/neutron/neutron.conf
mv -f /etc/neutron/neutron.conf /etc/neutron/neutron.conf.tmp
sed '/^connection/d' /etc/neutron/neutron.conf.tmp > /etc/neutron/neutron.conf
rm -f /etc/neutron/neutron.conf.tmp

check,

vi /etc/nova/nova.conf
vi /etc/neutron/neutron.conf
vi /etc/neutron/plugins/ml2/linuxbridge_agent.ini

cat /etc/nova/nova-compute.conf

#tail -n0 -F /var/log/* /var/log/*/*
service nova-compute restart
service neutron-linuxbridge-agent restart

refs.


HOME | GUIDES | LECTURES | LAB | SMTP HEALTH | HTML5 | CONTACT
Copyright © 2024 Pierre-Philipp Braun