Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

ovs_quantum_plugin.ini: network_vlan_ranges = default:1:100,physnet1 bridge_mappings = default:br-default,physnet1:br-eth0

l3_agent.ini: external_network_bridge = br-ex

on controller node: we can run quantum-server --config-file /etc/quantum/quantum.conf --config-file/etc/quantum/ovs_quantum_plugin.ini

we assume two computes nodes: hosta and hostb: on hosta with two nics, dummy0 and eth0: A create ovs switch to public network: sudo ovs-vsctl add-br br-ex sudo ovs-vsctl add-port br-ex dummy0 B. create ovs switch to connect hostb with via vlan bridge, assuming vlanid 1000: sudo ovs-vsctl add-br br-eth0 sudo ovs-vsctl add-port br-eth0 eth0.1000 tag=1000 -- set interface eth0.1000 type=internal C. create ovs bridge for default (we have to do it because we must provide physical binding for virtual network) sudo ovs-vsctl add-br br-default

C: run binaries: quantum-l3-agent --config-file /etc/quantum/quantum.conf --config-file/etc/quantum/l3_agent.ini quantum-openvswitch-agent --config-file /etc/quantum/quantum.conf --config-file/etc/quantum/ovs_quantum_plugin.ini

on hostb with one nic: eth0: A. create ovs switch to connect hosta with via vlan bridge, assuming vlanid 1000: 1. sudo ovs-vsctl add-br br-eth0 2. sudo ovs-vsctl add-port br-eth0 eth0.1000 tag=1000 -- set interface eth0.1000 type=internal B: binaries: quantum-openvswitch-agent --config-file /etc/quantum/quantum.conf --config-file/etc/quantum/ovs_quantum_plugin.ini

all below steps are on hosta since we will use sudo ip netns to check:

create networks: A. provider network for VMs quantum net-create private_net --provider:network_type vlan --provider:physical_network physnet1 --provider:segmentation_id 1000 quantum subnet-create private_net --name private_subnet B. external network for floating and router gateway: quantum net-create external_net --router:external true quantum subnet-create external_net --enable_dhcp false

playing with servers: b6d25722-b21d-47c0-940f-e140bd5fecfa is id of private_net nova boot --image 39fc8570-13b7-484d-8ebd-377104e3e1d1 --flavor 1 myserver1 --nic net-id=b6d25722-b21d-47c0-940f-e140bd5fecfa sudo ip netns exec qdhcp-b6d25722-b21d-47c0-940f-e140bd5fecfa ping

playing with router: quantum router-create myrouter quantum router-gateway-set myrouter external_net quantum router-interface-add myrouter private_subnet in vm: is ip of router gateway port. ping

playing with floating: 4939a98b-4084-4fc0-9d28-0c3938f22f98 is id for router myrouter

quantum floatingip-create external_net 2932819a-c0be-49ec-a11c-97c5b60d643a is id for floating ip e37987cb-4c06-4637-95bc-24b6985ac88f is id for myserver1's port quantum floatingip-associate 2932819a-c0be-49ec-a11c-97c5b60d643a e37987cb-4c06-4637-95bc-24b6985ac88f sudo ip netns exec qrouter-4939a98b-4084-4fc0-9d28-0c3938f22f98 ping

About HA, I don't know what u mean to do? which part you want to HA?