add build branch
[openstack-build/neutron-build.git] / debian / patches / fix-quantum-configuration.patch
1 --- a/etc/quantum/plugins/bigswitch/restproxy.ini
2 +++ b/etc/quantum/plugins/bigswitch/restproxy.ini
3 @@ -6,7 +6,7 @@
4  # sql_connection = mysql://root:pass@127.0.0.1:3306/restproxy_quantum
5  # Replace 127.0.0.1 above with the IP address of the database used by the
6  # main quantum server. (Leave it as is if the database runs on this host.)
7 -sql_connection = sqlite://
8 +sql_connection = sqlite:////var/lib/quantum/bigswitch.sqlite
9  # Database reconnection retry times - in event connectivity is lost
10  # set to -1 implies an infinite retry count
11  # sql_max_retries = 10
12 --- a/etc/quantum/plugins/brocade/brocade.ini
13 +++ b/etc/quantum/plugins/brocade/brocade.ini
14 @@ -11,7 +11,7 @@
15  # ostype   = NOS
16  
17  [DATABASE]
18 -# sql_connection = sqlite://
19 +sql_connection = sqlite:////var/lib/quantum/brocade.sqlite
20  # Enable the use of eventlet's db_pool for MySQL. The flags sql_min_pool_size,
21  # sql_max_pool_size and sql_idle_timeout are relevant only if this is enabled.
22  # sql_dbpool_enable = False
23 --- a/etc/quantum/plugins/linuxbridge/linuxbridge_conf.ini
24 +++ b/etc/quantum/plugins/linuxbridge/linuxbridge_conf.ini
25 @@ -26,7 +26,7 @@
26  # sql_connection = mysql://root:nova@127.0.0.1:3306/quantum_linux_bridge
27  # Replace 127.0.0.1 above with the IP address of the database used by the
28  # main quantum server. (Leave it as is if the database runs on this host.)
29 -sql_connection = sqlite://
30 +sql_connection = sqlite:////var/lib/quantum/linuxbridge.sqlite
31  # Database reconnection retry times - in event connectivity is lost
32  # set to -1 implies an infinite retry count
33  # sql_max_retries = 10
34 --- a/etc/quantum/plugins/nec/nec.ini
35 +++ b/etc/quantum/plugins/nec/nec.ini
36 @@ -6,7 +6,7 @@
37  # sql_connection = mysql://root:nova@127.0.0.1:3306/ovs_quantum
38  # Replace 127.0.0.1 above with the IP address of the database used by the
39  # main quantum server. (Leave it as is if the database runs on this host.)
40 -sql_connection = sqlite://
41 +sql_connection = sqlite:////var/lib/quantum/nec.sqlite
42  # Database reconnection retry times - in event connectivity is lost
43  # set to -1 implies an infinite retry count
44  # sql_max_retries = 10
45 @@ -37,7 +37,7 @@ polling_interval = 2
46  # Use "sudo quantum-rootwrap /etc/quantum/rootwrap.conf" to use the real
47  # root filter facility.
48  # Change to "sudo" to skip the filtering and just run the comand directly
49 -root_helper = sudo
50 +root_helper = sudo /usr/bin/quantum-rootwrap /etc/quantum/rootwrap.conf
51  
52  [SECURITYGROUP]
53  # Firewall driver for realizing quantum security group function
54 --- a/etc/quantum/plugins/nicira/nvp.ini
55 +++ b/etc/quantum/plugins/nicira/nvp.ini
56 @@ -4,7 +4,7 @@
57  # sql_connection = mysql://root:quantum@127.0.0.1:3306/nvp_quantum
58  # Replace 127.0.0.1 above with the IP address of the database used by the
59  # main quantum server. (Leave it as is if the database runs on this host.)
60 -sql_connection = sqlite://
61 +sql_connection = sqlite:////var/lib/quantum/nvp.sqlite
62  # Database reconnection retry times - in event connectivity is lost
63  # set to -1 implies an infinite retry count
64  # sql_max_retries = 10
65 --- a/etc/quantum/plugins/openvswitch/ovs_quantum_plugin.ini
66 +++ b/etc/quantum/plugins/openvswitch/ovs_quantum_plugin.ini
67 @@ -4,7 +4,7 @@
68  # sql_connection = mysql://root:nova@127.0.0.1:3306/ovs_quantum
69  # Replace 127.0.0.1 above with the IP address of the database used by the
70  # main quantum server. (Leave it as is if the database runs on this host.)
71 -sql_connection = sqlite://
72 +sql_connection = sqlite:////var/lib/quantum/ovs.sqlite
73  # Database reconnection retry times - in event connectivity is lost
74  # set to -1 implies an infinite retry count
75  # sql_max_retries = 10
76 --- a/etc/quantum/plugins/plumgrid/plumgrid.ini
77 +++ b/etc/quantum/plugins/plumgrid/plumgrid.ini
78 @@ -6,7 +6,7 @@
79  # sql_connection = mysql://<user>:<pass>@<host>:3306/plumgrid_quantum
80  # Replace <host> above with the IP address of the database used by the
81  # main quantum server.
82 -# sql_connection = sqlite://
83 +sql_connection = sqlite:////var/lib/quantum/plumgrid.sqlite
84  # Database reconnection retry times - in event connectivity is lost
85  # set to -1 implies an infinite retry count
86  # sql_max_retries = 10
87 --- a/etc/quantum/plugins/ryu/ryu.ini
88 +++ b/etc/quantum/plugins/ryu/ryu.ini
89 @@ -2,7 +2,7 @@
90  # This line MUST be changed to actually run the plugin.
91  # Example: sql_connection = mysql://root:nova@127.0.0.1:3306/ryu_quantum
92  #sql_connection = mysql://<user>:<pass>@<IP>:<port>/<dbname>
93 -sql_connection = sqlite://
94 +sql_connection = sqlite:////var/lib/quantum/ryu.sqlite
95  # Enable the use of eventlet's db_pool for MySQL. The flags sql_min_pool_size,
96  # sql_max_pool_size and sql_idle_timeout are relevant only if this is enabled.
97  # sql_dbpool_enable = False
98 --- a/etc/quantum.conf
99 +++ b/etc/quantum.conf
100 @@ -43,12 +43,13 @@ bind_port = 9696
101  
102  # Quantum plugin provider module
103  # core_plugin =
104 +core_plugin = quantum.plugins.openvswitch.ovs_quantum_plugin.OVSQuantumPluginV2
105  
106  # Advanced service modules
107  # service_plugins =
108  
109  # Paste configuration file
110 -api_paste_config = api-paste.ini
111 +api_paste_config = /etc/quantum/api-paste.ini
112  
113  # The strategy to be used for auth.
114  # Supported values are 'keystone'(default), 'noauth'.
115 @@ -251,6 +252,7 @@ notification_topics = notifications
116  # root filter facility.
117  # Change to "sudo" to skip the filtering and just run the comand directly
118  # root_helper = sudo
119 +root_helper = sudo quantum-rootwrap /etc/quantum/rootwrap.conf
120  
121  # =========== items for agent management extension =============
122  # seconds between nodes reporting state to server, should be less than
123 --- a/etc/quantum/plugins/midonet/midonet.ini
124 +++ b/etc/quantum/plugins/midonet/midonet.ini
125 @@ -4,7 +4,7 @@
126  # sql_connection = mysql://root:pass@127.0.0.1:3306/midonet_quantum
127  # Replace 127.0.0.1 above with the IP address of the database used by the
128  # main quantum server. (Leave it as is if the database runs on this host.)
129 -sql_connection = sqlite://
130 +sql_connection = sqlite:////var/lib/quantum/midonet.sqlite
131  # Database reconnection retry times - in event connectivity is lost
132  # set to -1 implies an infinite retry count
133  # sql_max_retries = 10