Before using this make sure you allocate 6GB. 2 cores
Install openswitch and init a br-int bridge
yum -y install make gcc openssl-devel autoconf automake rpm-build redhat-rpm-config python-devel openssl-devel kernel-devel kernel-debug-devel libtool wget
mkdir -p ~/rpmbuild/SOURCES
wget http://openvswitch.org/releases/openvswitch-2.5.1.tar.gz
cp openvswitch-2.5.1.tar.gz ~/rpmbuild/SOURCES/
tar xfz openvswitch-2.5.1.tar.gz
sed 's/openvswitch-kmod, //g' openvswitch-2.5.1/rhel/openvswitch.spec > openvswitch-2.5.1/rhel/openvswitch_no_kmod.spec
rpmbuild -bb --nocheck ~/openvswitch-2.5.1/rhel/openvswitch_no_kmod.spec
ls -l ~/rpmbuild/RPMS/x86_64/
yum localinstall ~/rpmbuild/RPMS/x86_64/openvswitch-2.5.1-1.x86_64.rpm
systemctl start openvswitch.service
chkconfig openvswitch on
# Now that the installation is completed lets add br-int
ovs-vsctl add-br br-int
Please note that this might not work and will require some fixups.
Fixing the above thing, it is important to setup two bridges - one external, another internal and have to patch them using a patch port
ovs-vsctl add-port ovs-vsctl set interface type=patch ovs-vsctl set interface options:peer=
Create an external bridge
# Create interl and external bridges
ovs-vsctl add-br br-enp0s8
ovs-vsctl add-br br-int
# Create new ports on both the bridges for patching
ovs-vsctl add-port br-enp0s8 int-patch
ovs-vsctl add-port br-int enp0s8-patch
# Mark the newly created interfaces as patch interfaces
ovs-vsctl set interface int-patch type=patch
ovs-vsctl set interface enp0s8-patch type=patch
# Connect the patch interfaces
ovs-vsctl set interface int-patch options:peer=enp0s8-patch
ovs-vsctl set interface enp0s8-patch options:peer=int-patch
# I am sure there is a better way to do this. Find it out.
# Now try attaching a docker container/VM to br-int and check if it can be reached from the outside world or not.
# If it can be reached then your setup was successful.
// TOWRITE Configure network and bridges properly. Take help of the article below
# This is the most important part of your network configuration. Here, you must
# select your network mappings. Please, ensure you understand OpenStack
# network philosophy before you configure this.
# Our defaults assumes a flat network configuration with external routers connected
# to an openvswitch br-enp0s9 switch. Change those defaults to suit your network or
# your system will not have a viable network service.
integration_bridge="br-int"
# The bridge_mappings must be set in the form:
# physical_network_name01:bridge_interface01,physical_network_name02:bridge_interface02
# Sample:
# bridge_mappings="physical01:br-eth1,physical02:br-enp0s9,physical03:br-em2"
# VERY IMPORTANT NOTE: Ensure your OVS Bridges are created before you install openstack,
# including br-int and all bridges defined in the "bridge_mappings" variable. Fail
# to do this, and Neutron will be unable to function properlly.
bridge_mappings="physical01:br-enp0s9"
Enable rhel repositories
sudo yum install epel-release
# Verify using
yum repolist
Fix the python keyring error
wget ftp://mirror.switch.ch/pool/4/mirror/centos/7.3.1611/cloud/x86_64/openstack-mitaka/common/python-keyring-5.7.1-1.el7.noarch.rpm
sudo rpm -i --replacefiles python-keyring-5.7.1-1.el7.noarch.rpm
sudo yum install -y python-keyring
# For some reason the solution listed above was having issues
yum remove python-keyring
yum install python-keyring
# This did the job I don't know why or how.
Install python-zmq
yum erase -f zeromq
yum versionlock clear
yum install python-zmq
Enable openstack repositores
yum install centos-release-openstack-ocata
Now disable heat installation by going into main-config file.
sudo useradd gnocchi
git clone https://vik_y@bitbucket.org/vik_y/openstack-ocata-installer.git
./main-installer.sh install
Test this and update Everything worked well and installation went through fine.
Now go and create a new network from admin section. Assign a new subnet to the network.
Now create the new VM. Make sure you tick the create new volume option as "No".
Port binding failed
2017-09-12 01:19:53.848 2105 ERROR nova.compute.manager [instance: 08c6e596-88c2-4f77-ba04-23607571e27d] PortBindingFailed: Binding failed for port 9d4a96d3-d927-4c44-a82f-ac8ed6a626cf, please check neutron logs for more information.
2017-09-12 01:12:51.559 2105 ERROR nova.compute.manager [req-9852ccf6-e53e-4e9f-bb07-6eca8bb46427 d9cf046190c74464a21615fbb836ed17 45c5d10dbd834ca7b33eb0b19458155b - - -] Instance failed network setup after 1 attempt(s)
2017-09-12 01:12:51.559 2105 ERROR nova.compute.manager Traceback (most recent call last):
2017-09-12 01:12:51.559 2105 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 1400, in _allocate_network_async
2017-09-12 01:12:51.559 2105 ERROR nova.compute.manager bind_host_id=bind_host_id)
2017-09-12 01:12:51.559 2105 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 873, in allocate_for_instance
2017-09-12 01:12:51.559 2105 ERROR nova.compute.manager bind_host_id, dhcp_options, available_macs)
2017-09-12 01:12:51.559 2105 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 992, in update_ports_for_instance
2017-09-12 01:12:51.559 2105 ERROR nova.compute.manager vif.destroy()
2017-09-12 01:12:51.559 2105 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in exit
2017-09-12 01:12:51.559 2105 ERROR nova.compute.manager self.force_reraise()
2017-09-12 01:12:51.559 2105 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
2017-09-12 01:12:51.559 2105 ERROR nova.compute.manager six.reraise(self.type, self.value, self.tb)
2017-09-12 01:12:51.559 2105 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 962, in _update_ports_for_instance
2017-09-12 01:12:51.559 2105 ERROR nova.compute.manager port_client, instance, port_id, port_req_body)
2017-09-12 01:12:51.559 2105 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 429, in _update_port
2017-09-12 01:12:51.559 2105 ERROR nova.compute.manager _ensure_no_port_binding_failure(port)
2017-09-12 01:12:51.559 2105 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 177, in _ensure_no_port_binding_failure
2017-09-12 01:12:51.559 2105 ERROR nova.compute.manager raise exception.PortBindingFailed(port_id=port['id'])
2017-09-12 01:12:51.559 2105 ERROR nova.compute.manager PortBindingFailed: Binding failed for port a3c60623-b888-46be-a4b0-3392a0f095b7, please check neutron logs for more information.
2017-09-12 01:12:51.559 2105 ERROR nova.compute.manager
2017-09-12 01:12:51.561 2105 ERROR nova.compute.manager [req-9852ccf6-e53e-4e9f-bb07-6eca8bb46427 d9cf046190c74464a21615fbb836ed17 45c5d10dbd834ca7b33eb0b19458155b - - -] [instance: 328fb813-9420-4cbb-9f16-f31c9016ff9f] Instance failed to spawn
2017-09-12 01:12:51.561 2105 ERROR nova.compute.manager [instance: 328fb813-9420-4cbb-9f16-f31c9016ff9f] Traceback (most recent call last):
2017-09-12 01:12:51.561 2105 ERROR nova.compute.manager [instance: 328fb813-9420-4cbb-9f16-f31c9016ff9f] File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2125, in _build_resources
2017-09-12 01:12:51.561 2105 ERROR nova.compute.manager [instance: 328fb813-9420-4cbb-9f16-f31c9016ff9f] yield resources
2017-09-12 01:12:51.561 2105 ERROR nova.compute.manager [instance: 328fb813-9420-4cbb-9f16-f31c9016ff9f] File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 1931, in _build_and_run_instance
2017-09-12 01:12:51.561 2105 ERROR nova.compute.manager [instance: 328fb813-9420-4cbb-9f16-f31c9016ff9f] block_device_info=block_device_info)
2017-09-12 01:12:51.561 2105 ERROR nova.compute.manager [instance: 328fb813-9420-4cbb-9f16-f31c9016ff9f] File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 2726, in spawn
2017-09-12 01:12:51.561 2105 ERROR nova.compute.manager [instance: 328fb813-9420-4cbb-9f16-f31c9016ff9f] block_device_info=block_device_info)
2017-09-12 01:12:51.561 2105 ERROR nova.compute.manager [instance: 328fb813-9420-4cbb-9f16-f31c9016ff9f] File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 3133, in _create_image
2017-09-12 01:12:51.561 2105 ERROR nova.compute.manager [instance: 328fb813-9420-4cbb-9f16-f31c9016ff9f] fallback_from_host)
2017-09-12 01:12:51.561 2105 ERROR nova.compute.manager [instance: 328fb813-9420-4cbb-9f16-f31c9016ff9f] File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 3252, in _create_and_inject_local_root
2017-09-12 01:12:51.561 2105 ERROR nova.compute.manager [instance: 328fb813-9420-4cbb-9f16-f31c9016ff9f] self._inject_data(backend, instance, injection_info)
2017-09-12 01:12:51.561 2105 ERROR nova.compute.manager [instance: 328fb813-9420-4cbb-9f16-f31c9016ff9f] File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 3040, in _inject_data
2017-09-12 01:12:51.561 2105 ERROR nova.compute.manager [instance: 328fb813-9420-4cbb-9f16-f31c9016ff9f] info=str(injection_info), instance=instance)
2017-09-12 01:12:51.561 2105 ERROR nova.compute.manager [instance: 328fb813-9420-4cbb-9f16-f31c9016ff9f] File "", line 22, in repr
2017-09-12 01:12:51.561 2105 ERROR nova.compute.manager [instance: 328fb813-9420-4cbb-9f16-f31c9016ff9f] File "/usr/lib/python2.7/site-packages/nova/network/model.py", line 560, in repr
2017-09-12 01:12:51.561 2105 ERROR nova.compute.manager [instance: 328fb813-9420-4cbb-9f16-f31c9016ff9f] return self._sync_wrapper(fn, *args, **kwargs)
2017-09-12 01:12:51.561 2105 ERROR nova.compute.manager [instance: 328fb813-9420-4cbb-9f16-f31c9016ff9f] File "/usr/lib/python2.7/site-packages/nova/network/model.py", line 539, in _sync_wrapper
2017-09-12 01:12:51.561 2105 ERROR nova.compute.manager [instance: 328fb813-9420-4cbb-9f16-f31c9016ff9f] self.wait()
2017-09-12 01:12:51.561 2105 ERROR nova.compute.manager [instance: 328fb813-9420-4cbb-9f16-f31c9016ff9f] File "/usr/lib/python2.7/site-packages/nova/network/model.py", line 571, in wait
2017-09-12 01:12:51.561 2105 ERROR nova.compute.manager [instance: 328fb813-9420-4cbb-9f16-f31c9016ff9f] self[:] = self._gt.wait()
2017-09-12 01:12:51.561 2105 ERROR nova.compute.manager [instance: 328fb813-9420-4cbb-9f16-f31c9016ff9f] File "/usr/lib/python2.7/site-packages/eventlet/greenthread.py", line 175, in wait
2017-09-12 01:12:51.561 2105 ERROR nova.compute.manager [instance: 328fb813-9420-4cbb-9f16-f31c9016ff9f] return self._exit_event.wait()
2017-09-12 01:12:51.561 2105 ERROR nova.compute.manager [instance: 328fb813-9420-4cbb-9f16-f31c9016ff9f] File "/usr/lib/python2.7/site-packages/eventlet/event.py", line 121, in wait
2017-09-12 01:12:51.561 2105 ERROR nova.compute.manager [instance: 328fb813-9420-4cbb-9f16-f31c9016ff9f] return hubs.get_hub().switch()
2017-09-12 01:12:51.561 2105 ERROR nova.compute.manager [instance: 328fb813-9420-4cbb-9f16-f31c9016ff9f] File "/usr/lib/python2.7/site-packages/eventlet/hubs/hub.py", line 294, in switch
2017-09-12 01:12:51.561 2105 ERROR nova.compute.manager [instance: 328fb813-9420-4cbb-9f16-f31c9016ff9f] return self.greenlet.switch()
2017-09-12 01:12:51.561 2105 ERROR nova.compute.manager [instance: 328fb813-9420-4cbb-9f16-f31c9016ff9f] File "/usr/lib/python2.7/site-packages/eventlet/greenthread.py", line 214, in main
2017-09-12 01:12:51.561 2105 ERROR nova.compute.manager [instance: 328fb813-9420-4cbb-9f16-f31c9016ff9f] result = function(*args, **kwargs)
2017-09-12 01:12:51.561 2105 ERROR nova.compute.manager [instance: 328fb813-9420-4cbb-9f16-f31c9016ff9f] File "/usr/lib/python2.7/site-packages/nova/utils.py", line 1087, in context_wrapper
2017-09-12 01:12:51.561 2105 ERROR nova.compute.manager [instance: 328fb813-9420-4cbb-9f16-f31c9016ff9f] return func(*args, **kwargs)
2017-09-12 01:12:51.561 2105 ERROR nova.compute.manager [instance: 328fb813-9420-4cbb-9f16-f31c9016ff9f] File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 1417, in _allocate_network_async
2017-09-12 01:12:51.561 2105 ERROR nova.compute.manager [instance: 328fb813-9420-4cbb-9f16-f31c9016ff9f] six.reraise(*exc_info)
2017-09-12 01:12:51.561 2105 ERROR nova.compute.manager [instance: 328fb813-9420-4cbb-9f16-f31c9016ff9f] File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 1400, in _allocate_network_async
2017-09-12 01:12:51.561 2105 ERROR nova.compute.manager [instance: 328fb813-9420-4cbb-9f16-f31c9016ff9f] bind_host_id=bind_host_id)
2017-09-12 01:12:51.561 2105 ERROR nova.compute.manager [instance: 328fb813-9420-4cbb-9f16-f31c9016ff9f] File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 873, in allocate_for_instance
2017-09-12 01:12:51.561 2105 ERROR nova.compute.manager [instance: 328fb813-9420-4cbb-9f16-f31c9016ff9f] bind_host_id, dhcp_options, available_macs)
2017-09-12 01:12:51.561 2105 ERROR nova.compute.manager [instance: 328fb813-9420-4cbb-9f16-f31c9016ff9f] File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 992, in update_ports_for_instance
2017-09-12 01:12:51.561 2105 ERROR nova.compute.manager [instance: 328fb813-9420-4cbb-9f16-f31c9016ff9f] vif.destroy()
2017-09-12 01:12:51.561 2105 ERROR nova.compute.manager [instance: 328fb813-9420-4cbb-9f16-f31c9016ff9f] File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in exit
2017-09-12 01:12:51.561 2105 ERROR nova.compute.manager [instance: 328fb813-9420-4cbb-9f16-f31c9016ff9f] self.force_reraise()
2017-09-12 01:12:51.561 2105 ERROR nova.compute.manager [instance: 328fb813-9420-4cbb-9f16-f31c9016ff9f] File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
2017-09-12 01:12:51.561 2105 ERROR nova.compute.manager [instance: 328fb813-9420-4cbb-9f16-f31c9016ff9f] six.reraise(self.type, self.value, self.tb)
2017-09-12 01:12:51.561 2105 ERROR nova.compute.manager [instance: 328fb813-9420-4cbb-9f16-f31c9016ff9f] File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 962, in _update_ports_for_instance
2017-09-12 01:12:51.561 2105 ERROR nova.compute.manager [instance: 328fb813-9420-4cbb-9f16-f31c9016ff9f] port_client, instance, port_id, port_req_body)
2017-09-12 01:12:51.561 2105 ERROR nova.compute.manager [instance: 328fb813-9420-4cbb-9f16-f31c9016ff9f] File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 429, in _update_port
2017-09-12 01:12:51.561 2105 ERROR nova.compute.manager [instance: 328fb813-9420-4cbb-9f16-f31c9016ff9f] _ensure_no_port_binding_failure(port)
2017-09-12 01:12:51.561 2105 ERROR nova.compute.manager [instance: 328fb813-9420-4cbb-9f16-f31c9016ff9f] File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 177, in _ensure_no_port_binding_failure
2017-09-12 01:12:51.561 2105 ERROR nova.compute.manager [instance: 328fb813-9420-4cbb-9f16-f31c9016ff9f] raise exception.PortBindingFailed(port_id=port['id'])
2017-09-12 01:12:51.561 2105 ERROR nova.compute.manager [instance: 328fb813-9420-4cbb-9f16-f31c9016ff9f] PortBindingFailed: Binding failed for port a3c60623-b888-46be-a4b0-3392a0f095b7, please check neutron logs for more information.
2017-09-12 01:12:51.561 2105 ERROR nova.compute.manager [instance: 328fb813-9420-4cbb-9f16-f31c9016ff9f]