This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rabbit://neutron:7a75d07f7db2743019cd584e85d451f6cd00cdf9d909efca267f745@192.168.1.212:5671,neutron:7a75d07f7db2743019cd584e85d451f6cd00cdf9d909efca267f745@192.168.1.109:5671,neutron:7a75d07f7db2743019cd584e85d451f6cd00cdf9d909efca267f745@192.168.1.194:5671//neutron?rabbit_use_ssl=True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Ensure the openvswitch kernel module is loaded | |
openstack_host_specific_kernel_modules: | |
- name: "openvswitch" | |
pattern: "CONFIG_OPENVSWITCH=" | |
group: "network_hosts" | |
### Neutron specific config | |
neutron_plugin_type: ml2.ovs.dvr | |
neutron_ml2_drivers_type: "flat,vlan" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ssh man1.oslab | |
lxc-attach -n `lxc-ls | grep neutron_agents_` | |
# ping provider instance from the provider network namespace | |
ip netns exec `ip netns | grep UUID_OF_PROVIDER_NETWORK` \ | |
ping -c 3 PROVIDER_INSTANCE_IP | |
# ping project instance from the project network namespace | |
ip netns exec `ip netns | grep UUID_OF_PROJECT_NETWORK` \ | |
ping -c 3 PROJECT_INSTANCE_IP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ssh man1.oslab | |
lxc-attach -n `lxc-ls | grep utility` | |
source demo-openrc | |
# Get the network ids | |
openstack network list | |
# Allow ping access | |
openstack security group rule create \ | |
--proto icmp default |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ssh man1.oslab | |
lxc-attach -n `lxc-ls | grep utility` | |
source demo-openrc | |
# Create the project network | |
neutron net-create project | |
# Create the subnet for the provider net | |
neutron subnet-create project 192.168.3.0/24 \ | |
--name project-subnet \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ssh man1.oslab | |
lxc-attach -n `lxc-ls | grep utility` | |
source openrc | |
# Create the provider network | |
neutron net-create physnet1 --shared \ | |
--provider:physical_network physnet1 \ | |
--provider:network_type vlan \ | |
--provider:segmentation_id 101 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo su - | |
# cd /opt/openstack-ansible/playbooks | |
# openstack-ansible ovs-setup.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- name: Setup OVS bridges | |
hosts: neutron_openvswitch_agent | |
user: root | |
tasks: | |
- name: Setup br-provider | |
openvswitch_bridge: | |
bridge: br-provider | |
state: present |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo su - root | |
# cd /opt/openstack-ansible/playbooks | |
# openstack-ansible setup-hosts.yml | |
# openstack-ansible setup-infrastructure.yml | |
# openstack-ansible os-keystone-install.yml | |
# openstack-ansible os-glance-install.yml | |
# openstack-ansible os-nova-install.yml | |
# openstack-ansible os-neutron-install.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
cidr_networks: | |
container: 192.168.1.0/24 | |
used_ips: | |
- "192.168.1.0,192.168.1.24" # lab metal hosts | |
global_overrides: | |
internal_lb_vip_address: 192.168.1.20 # man1.oslab | |
external_lb_vip_address: 192.168.1.20 # man1.oslab |