Search This Blog

2015-07-22

RedHat OpenStack Networking

Course Description

CL306-RHELOSP4.0A3-en-0-20140424
RHELOSP4 - Built on OpenStack Havana
20140424 - Looking to upgrade to Juno within the next month or so

Not overly popular course to look into upgrading the course content.
People doing development and then verbal training to other groups is the main ways to distribute knowledge

OpenStack Platform Terminology

Neutron - Only reason for neutron is if you need to compute to various other compute hosts where other instances are running. Neutron will supply them with managing the connections between those tunnels.

You wouldn't even need neutron if you had a single isolated host with guests on it.

Rally is a benchmarking tool that will allow you to try to configure a network node with appropriate bandwidth.

https://wiki.openstack.org/wiki/Rally
https://rally.readthedocs.org/en/latest/tutorial/step_2_input_task_format.html

Packstack Install

packstack is basically an automated install environment where you generate a bunch of answers to installation questions kind of like kickstart for openstack.

In Ubuntu similar functionality is done via JuJu

Install Packstack

yum install -y openstack-packstack


Generate answer files

packstack --gen-answer-file /root/answers.txt


Modify the answer file to your chosing and then use it to install openstack

packstack --answer-file /root/answers.txt


You can specify where you would like any of the nodes to exist in packstack by specifying IP addresses. You will need to be registered with a repo that has the associated packages required for the redhat installation though.

5-6 node limitation

Openstack Dashboard allowed hosts file

/etc/openstack-dashboard/local_settings


In the allowed hosts settings you can specify * to allow all hosts or else you will have to specify the FQDN in order to access or direct IP address.

Networking Overview

Find all of the namespaces associated
You will find a dhcp and a router namespace

ip netns


Run commands against the namespace

ip netns qrouter-xxx-xxx ip a


NetworkManager service is not supported by OpenStack and we need to make sure it is not installed or disabled.


/usr/share/doc/initscripts-*/sysconfig.txt


Removing IP Addresses from interfaces

ip address flush dev $interface

Open vSwitch

To show mac-address table on openvswitch

ovs-appctl fdb/show br-int


Information on ovs

/usr/share/doc/openvswitch-*/WHY-OVS

No knowledge of GRE or VXLAN on linux bridges (some say you can get this knowledge implemented in bridges by updating linux kernel)

Linux Bridging with Libvirt

Linux bridges can be created using libvirt and the configuration is stored/saved in libvirt configs rather than in /etc/sysconfig/network-scripts/

You can either create local bridges or you can change the forward mode to "route" and tie that to a particular interface of your choosing if you'd like to route traffic externally.

Otherwise all traffic will either be internal or NAT'ed.

You can also create DHCP pools inside of these virtual network bridges.

vim testbridge.xml
<network>
<name>private</name>
<bridge name="testbr0">
<forward mode="route">
<ip address="3.3.3.3" netmask="255.255.255.0">
<dhcp>
<range end="3.3.3.100" start="3.3.3.4">

</dhcp>
</ip>
</network>



virsh net-define testbridge.xml
virsh net-autostart private
virsh net-start private
virsh net-list

Neutron Networking Overview

http://docs.openstack.org/admin-guide-cloud/content/figures/14/a/a/common/figures/under-the-hood-scenario-1-ovs-compute.png

https://ilearnstack.files.wordpress.com/2013/10/neutron-physnet-diagram1.png

https://www.rdoproject.org/Networking_in_too_much_detail






No comments:

Post a Comment