~openstack-charmers/charms/precise/quantum-gateway/trunk

« back to all changes in this revision

Viewing changes to hooks/packages

  • Committer: James Page
  • Date: 2012-10-26 15:56:42 UTC
  • Revision ID: james.page@canonical.com-20121026155642-bkr1oiu1n26h8zlv
BaselineĀ eodĀ pre-UDS

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Quantum Server
 
2
==============
 
3
 
 
4
quantum-server
 
5
 
 
6
# OVS
 
7
quantum-plugin-openvswitch quantum-plugin-openvswitch-agent 
 
8
 
 
9
# Configure connection to the database
 
10
 -> store in sql_connection in plugins.
 
11
 
 
12
# OVS
 
13
 
 
14
/etc/quantum/plugins/openvswitch/ovs_quantum_plugin.ini
 
15
 
 
16
enable_tunneling=True
 
17
tenant_network_type=gre
 
18
tunnel_id_ranges=1:1000
 
19
# only if node is running the agent
 
20
local_ip=$(unit-get private-address) # data network
 
21
 
 
22
service quantum-server restart
 
23
 
 
24
# Add internal bridge
 
25
 
 
26
ovs-vsctl add-br br-int
 
27
 
 
28
# restart openvswitch plugin
 
29
 
 
30
# Same everywhere
 
31
 
 
32
quantum-dhcp-agent
 
33
quantum-l3-agent
 
34
 
 
35
ovs-vsctl add-br br-ex
 
36
ovs-vsctl add-port br-ex $(config-get external-port)
 
37
 
 
38
# Keystone - need to review keystone charm to see how this works.
 
39
 
 
40
keystone service-create --name quantum --type network --description 'OpenStack Networking Service'
 
41
keystone endpoint-create --region $REGION --service-id $ID --publicurl \
 
42
    'http://$IP:9696/' --adminurl 'http://$IP:9696/' --internalurl 'http://$IP:9696/'
 
43
 
 
44
 
 
45
keystone user-create --name=quantum --pass=$SERVICE_PASSWORD --tenant-id service 
 
46
keystone user-role-add --user_id 45e9461fa61e48f99de1adcd0b38eae7 --role_id e45af7cf33be4dac8070aa8310144ce3 \
 
47
              --tenant_id 950fe8e5ed5f4659a8556ac836e8943d