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
# 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 | |
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
--- | |
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 |
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
# OpenStack Networking VLAN bridge | |
auto br-vlan | |
iface br-vlan inet manual | |
bridge_stp off | |
bridge_waitport 0 | |
bridge_fd 0 | |
bridge_ports eth1 |
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
# OpenStack Management network bridge | |
auto br-mgmt | |
iface br-mgmt inet static | |
bridge_stp off | |
bridge_waitport 0 | |
bridge_fd 0 | |
bridge_ports eth0 | |
address MANAGEMENT_NETWORK_IP | |
netmask 255.255.255.0 | |
gateway 192.168.1.1 |