44
44
$ mysql -u root -p -e "create database ovs_quantum"
46
Make sure any xenserver running the ovs quantum agent will be able to communicate with the host running the quantum service:
46
Make sure any xenserver running the ovs quantum agent will be able to
47
communicate with the host running the quantum service:
48
49
//log in to mysql service
50
//grant access to user-remote host combination
51
// grant access to user-remote host combination. Note: if you're going to use
52
// a wildcard here it should be a management network with only trusted hosts.
51
53
mysql> GRANT USAGE ON *.* to root@'yourremotehost' IDENTIFIED BY 'newpassword';
52
54
//force update of authorization changes
53
55
mysql> FLUSH PRIVILEGES;
70
72
- Unpack the tarball and run install.sh. This will install all of the
71
73
necessary pieces into /etc/xapi.d/plugins. It will also spit out the name
72
74
of the integration bridge that you'll need for your nova configuration.
75
Make sure to specify this in your nova flagfile as --flat_network_bridge.
73
76
- Run the agent [on your hypervisor (dom0)]:
74
77
$ /etc/xapi.d/plugins/ovs_quantum_agent.py /etc/xapi.d/plugins/ovs_quantum_plugin.ini
86
89
An example session looks like this:
89
$ PYTHONPATH=. python quantum/cli.py -v create_net $TENANT network1
92
$ PYTHONPATH=. python quantum/cli.py create_net $TENANT network1
90
93
Created a new Virtual Network with ID:e754e7c0-a8eb-40e5-861a-b182d30c3441
91
94
$ export NETWORK=e754e7c0-a8eb-40e5-861a-b182d30c3441
92
$ PYTHONPATH=. python quantum/cli.py -v create_port $TENANT $NETWORK
95
$ PYTHONPATH=. python quantum/cli.py create_port $TENANT $NETWORK
93
96
Created Virtual Port:5a1e121b-ccc8-471d-9445-24f15f9f854c on Virtual Network:e754e7c0-a8eb-40e5-861a-b182d30c3441
94
97
$ export PORT=5a1e121b-ccc8-471d-9445-24f15f9f854c
95
$ PYTHONPATH=. python quantum/cli.py -v plug_iface $TENANT $NETWORK $PORT ubuntu1-eth1
98
$ PYTHONPATH=. python quantum/cli.py plug_iface $TENANT $NETWORK $PORT ubuntu1-eth1
96
99
Plugged interface "ubuntu1-eth1" to port:5a1e121b-ccc8-471d-9445-24f15f9f854c on network:e754e7c0-a8eb-40e5-861a-b182d30c3441
97
$ PYTHONPATH=. python quantum/cli.py -v plug_iface $TENANT $NETWORK $PORT ubuntu2-eth1
98
Plugged interface "ubuntu2-eth1" to port:5a1e121b-ccc8-471d-9445-24f15f9f854c on network:e754e7c0-a8eb-40e5-861a-b182d30c3441
100
Now you should have connectivity between ubuntu1-eth1 and ubuntu2-eth1..
101
(.. repeat for more ports and interface combinations..)
104
- To get a listing of the vif names that the ovs quantum service will expect
105
them in, issue the following command on the hypervisor (dom0):
105
- To get a listing of the vif names in the format that the ovs quantum service
106
will expect them in, issue the following command on the hypervisor (dom0):
106
107
$ for vif in `xe vif-list params=uuid --minimal | sed s/,/" "/g`; do echo $(xe vif-list params=vm-name-label uuid=${vif} --minimal)-eth$(xe vif-list params=device uuid=${vif} --minimal); done