Install Guide: Don't use obsolete sql_connection
For neutron and ceilometer, sql_connection is deprecated use instead: [database] connection Fixes some wrong format connection strings. Also, reconnect_interval is deprecated in favor of retry_interval Change-Id: Ieb72349bafcbd1795d64f832d64fdbce695147bf Backport: stable/havana Partial-Bug: #1243131 Closes-Bug: #1205060
This commit is contained in:
parent
323c1340e0
commit
a3b03dc8c3
@ -69,7 +69,7 @@ mysql> grant all on <database-name>.* to '<user-name>'@'%';</comp
|
||||
<td>neutron.plugins.openvswitch.ovs_neutron_plugin.OVSNeutronPluginV2</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>sql_connection (in the plugin configuration file)</td>
|
||||
<td>connection (in the plugin configuration file, section <code>[database]</code>)</td>
|
||||
<td>mysql://<username>:<password>@localhost/ovs_neutron?charset=utf8</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@ -89,7 +89,7 @@ mysql> grant all on <database-name>.* to '<user-name>'@'%';</comp
|
||||
<td>neutron.plugins.linuxbridge.lb_neutron_plugin.LinuxBridgePluginV2</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>sql_connection (in the plugin configuration file)</td>
|
||||
<td>connection (in the plugin configuration file, section <code>[database]</code>)</td>
|
||||
<td>mysql://<username>:<password>@localhost/neutron_linux_bridge?charset=utf8</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
@ -115,8 +115,8 @@ agent_down_time = 5
|
||||
tenant_network_type = vlan
|
||||
network_vlan_ranges = physnet1:1000:2999
|
||||
[database]
|
||||
sql_connection = mysql://root:root@127.0.0.1:3306/neutron_linux_bridge
|
||||
reconnect_interval = 2
|
||||
connection = mysql://root:root@127.0.0.1:3306/neutron_linux_bridge
|
||||
retry_interval = 2
|
||||
[linux_bridge]
|
||||
physical_interface_mappings = physnet1:eth0
|
||||
</programlisting>
|
||||
@ -145,8 +145,8 @@ host = HostA
|
||||
tenant_network_type = vlan
|
||||
network_vlan_ranges = physnet1:1000:2999
|
||||
[database]
|
||||
sql_connection = mysql://root:root@127.0.0.1:3306/neutron_linux_bridge
|
||||
reconnect_interval = 2
|
||||
connection = mysql://root:root@127.0.0.1:3306/neutron_linux_bridge
|
||||
retry_interval = 2
|
||||
[linux_bridge]
|
||||
physical_interface_mappings = physnet1:eth0</programlisting>
|
||||
</listitem>
|
||||
|
@ -51,13 +51,14 @@ service, and its dependent resources, on one of your nodes.
|
||||
|
||||
Edit +/etc/ceilometer/ceilometer.conf+ :
|
||||
----
|
||||
# We have to use MySQL connection to store datas :
|
||||
sql_connection=mysql://ceilometer:password@192.168.42.101/ceilometer
|
||||
|
||||
# We use API VIP for Identity Service connection :
|
||||
os_auth_url=http://192.168.42.103:5000/v2.0
|
||||
|
||||
# We send notifications to High Available RabbitMQ :
|
||||
notifier_strategy = rabbit
|
||||
rabbit_host = 192.168.42.102
|
||||
|
||||
[database]
|
||||
# We have to use MySQL connection to store datas :
|
||||
sql_connection=mysql://ceilometer:password@192.168.42.101/ceilometer
|
||||
----
|
||||
|
@ -46,15 +46,16 @@ Edit +/etc/neutron/neutron.conf+ :
|
||||
# We bind the service to the VIP :
|
||||
bind_host = 192.168.42.103
|
||||
|
||||
# We have to use MySQL connection to store datas :
|
||||
sql_connection = mysql://neutron:password@192.168.42.101/neutron
|
||||
|
||||
# We bind OpenStack Networking Server to the VIP :
|
||||
bind_host = 192.168.42.103
|
||||
|
||||
# We send notifications to Highly available RabbitMQ :
|
||||
notifier_strategy = rabbit
|
||||
rabbit_host = 192.168.42.102
|
||||
|
||||
[database]
|
||||
# We have to use MySQL connection to store datas :
|
||||
connection = mysql://neutron:password@192.168.42.101/neutron
|
||||
----
|
||||
|
||||
|
||||
|
@ -43,7 +43,7 @@
|
||||
</step>
|
||||
<step>
|
||||
<para>Set in the file:</para>
|
||||
<screen><computeroutput>sql_connection = mysql://<user>:<password>@localhost/neutron?charset=utf8</computeroutput></screen>
|
||||
<screen><computeroutput>connection = mysql://<user>:<password>@localhost/neutron?charset=utf8</computeroutput></screen>
|
||||
</step>
|
||||
</substeps>
|
||||
</step>
|
||||
|
@ -129,12 +129,12 @@ admin_password=<replaceable>NEUTRON_PASS</replaceable></programlisting>
|
||||
<para>Edit the
|
||||
<filename>/etc/neutron/plug-ins/openvswitch/ovs_neutron_plugin.ini</filename>
|
||||
file under the <literal>[database]</literal> section:</para>
|
||||
<programlisting language="ini">[DATABASE]
|
||||
connection = mysql://neutronUser:NEUTRON_DBPass@10.10.10.51/neutron</programlisting>
|
||||
<programlisting language="ini">[database]
|
||||
connection = mysql://neutron:NEUTRON_DBPASS@controller/neutron</programlisting>
|
||||
</step>
|
||||
<step>
|
||||
<para>Also edit the <literal>[OVS]</literal> section:</para>
|
||||
<programlisting language="ini">[OVS]
|
||||
<para>Also edit the <literal>[ovs]</literal> section:</para>
|
||||
<programlisting language="ini">[ovs]
|
||||
tenant_network_type = gre
|
||||
tunnel_id_ranges = 1:1000
|
||||
enable_tunneling = True</programlisting>
|
||||
@ -142,7 +142,7 @@ enable_tunneling = True</programlisting>
|
||||
<step>
|
||||
<para>Edit the <literal>[securitygroup]</literal> to change the
|
||||
firewall driver:</para>
|
||||
<programlisting language="ini">[SECURITYGROUP]
|
||||
<programlisting language="ini">[securitygroup]
|
||||
firewall_driver = neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver</programlisting>
|
||||
</step>
|
||||
</procedure>
|
||||
@ -259,7 +259,7 @@ admin_password = NEUTRON_PASS</programlisting>
|
||||
<para>Edit the database URL under the
|
||||
<literal>[database]</literal> section:</para>
|
||||
<programlisting language="ini">[database]
|
||||
connection = mysql://neutron:NEUTRON_DBPASS@controller/neutron</programlisting>
|
||||
connection = mysql://neutron:NEUTRON_DBPASS@controller/neutron</programlisting>
|
||||
</step>
|
||||
<step>
|
||||
<para>Edit the
|
||||
@ -314,10 +314,8 @@ admin_password = NEUTRON_PASS</programlisting>
|
||||
<para>Finally, you must tell the <acronym>OVS</acronym>
|
||||
plug-in how to connect to the database by editing
|
||||
<filename>/etc/neutron/plug-ins/openvswitch/ovs_neutron_plugin.ini</filename>:</para>
|
||||
<programlisting language="ini">
|
||||
[database]
|
||||
connection = mysql://neutron:NEUTRON_DBPASS@controller/neutron
|
||||
</programlisting>
|
||||
<programlisting language="ini">[database]
|
||||
connection = mysql://neutron:NEUTRON_DBPASS@controller/neutron</programlisting>
|
||||
</step>
|
||||
<step>
|
||||
<para>Now, you must decide which networking type you want.
|
||||
@ -685,7 +683,7 @@ PUT_YOUR_RPC_BACKEND_SETTINGS_HERE_TOO</programlisting>
|
||||
<filename>/etc/neutron/plug-ins/openvswitch/ovs_neutron_plugin.ini</filename>
|
||||
file:</para>
|
||||
<programlisting language="ini">[database]
|
||||
sql_connection = DATABASE_TYPE://neutron:NETURON_PASSWORD@CONTROLLER_NODE_HOSTNAME/neutron</programlisting>
|
||||
connection = mysql://neutron:NEUTRON_DBPASS@controller/neutron</programlisting>
|
||||
</step>
|
||||
<step>
|
||||
<para>Configure the network type that you chose when you
|
||||
@ -892,7 +890,7 @@ security_group_api=neutron</programlisting>
|
||||
<filename>/etc/neutron/plug-ins/openvswitch/ovs_neutron_plugin.ini</filename>
|
||||
file:</para>
|
||||
<programlisting language="ini">[database]
|
||||
sql_connection = DATABASE_TYPE://neutron:NETURON_PASSWORD@CONTROLLER_NODE_HOSTNAME/neutron</programlisting>
|
||||
connection = mysql://neutron:NEUTRON_DBPASS@controller/neutron</programlisting>
|
||||
</step>
|
||||
<step>
|
||||
<para>Configure the network type that you chose when you
|
||||
|
@ -165,7 +165,7 @@ admin_password=servicepassword
|
||||
<para>Update the plug-in configuration file,
|
||||
<filename>/etc/neutron/plugins/openvswitch/ovs_neutron_plugin.ini</filename>:</para>
|
||||
<programlisting>[database]
|
||||
sql_connection = mysql://root:root@controlnode:3306/ovs_neutron?charset=utf8
|
||||
connection = mysql://root:root@controlnode:3306/ovs_neutron?charset=utf8
|
||||
[ovs]
|
||||
tenant_network_type = gre
|
||||
tunnel_id_ranges = 1:1000
|
||||
@ -236,7 +236,7 @@ notification_driver = neutron.openstack.common.notifier.rabbit_notifier
|
||||
/etc/neutron/plugins/openvswitch/ovs_neutron_plugin.ini</filename>.</para>
|
||||
<para>Compute node:</para>
|
||||
<programlisting language="ini">[database]
|
||||
sql_connection = mysql://root:root@controlnode:3306/ovs_neutron?charset=utf8
|
||||
connection = mysql://root:root@controlnode:3306/ovs_neutron?charset=utf8
|
||||
[ovs]
|
||||
tenant_network_type = gre
|
||||
tunnel_id_ranges = 1:1000
|
||||
@ -245,7 +245,7 @@ local_ip = 9.181.89.202
|
||||
</programlisting>
|
||||
<para>Network node:</para>
|
||||
<programlisting language="ini">[database]
|
||||
sql_connection = mysql://root:root@controlnode:3306/ovs_neutron?charset=utf8
|
||||
connection = mysql://root:root@controlnode:3306/ovs_neutron?charset=utf8
|
||||
[ovs]
|
||||
tenant_network_type = gre
|
||||
tunnel_id_ranges = 1:1000
|
||||
|
@ -105,7 +105,7 @@ rabbit_password = guest</programlisting>
|
||||
/etc/neutron/plugins/openvswitch/ovs_neutron_plugin.ini</filename>
|
||||
and modify:</para>
|
||||
<programlisting language="ini">[database]
|
||||
sql_connection = mysql://neutron:password@localhost:3306/neutron
|
||||
connection = mysql://neutron:password@localhost:3306/neutron
|
||||
[ovs]
|
||||
tenant_network_type = vlan
|
||||
network_vlan_ranges = physnet1:100:2999</programlisting>
|
||||
@ -159,7 +159,7 @@ rabbit_host = controller</programlisting>
|
||||
/etc/neutron/plugins/openvswitch/ovs_neutron_plugin.ini
|
||||
</filename>:</para>
|
||||
<programlisting language="ini">[database]
|
||||
sql_connection = mysql://neutron:password@192.168.0.1:3306/neutron
|
||||
connection = mysql://neutron:password@192.168.0.1:3306/neutron
|
||||
[ovs]
|
||||
tenant_network_type=vlan
|
||||
network_vlan_ranges = physnet1:1:4094
|
||||
@ -251,7 +251,7 @@ rabbit_host = controller</programlisting>
|
||||
<para>Update the file <filename>
|
||||
/etc/neutron/plugins/openvswitch/ovs_neutron_plugin.ini</filename>:</para>
|
||||
<programlisting language="ini">[database]
|
||||
sql_connection = mysql://neutron:password@192.168.0.1:3306/neutron
|
||||
connection = mysql://neutron:password@192.168.0.1:3306/neutron
|
||||
[ovs]
|
||||
tenant_network_type = vlan
|
||||
network_vlan_ranges = physnet1:1:4094
|
||||
|
@ -131,7 +131,7 @@ admin_password=servicepassword
|
||||
<para>Update the plugin configuration file, <filename>
|
||||
/etc/neutron/plugins/openvswitch/ovs_neutron_plugin.ini</filename>:</para>
|
||||
<programlisting>[database]
|
||||
sql_connection = mysql://root:root@controlnode:3306/ovs_neutron?charset=utf8
|
||||
connection = mysql://root:root@controlnode:3306/ovs_neutron?charset=utf8
|
||||
[ovs]
|
||||
network_vlan_ranges = physnet1
|
||||
bridge_mappings = physnet1:br-eth0
|
||||
@ -194,7 +194,7 @@ notification_driver = neutron.openstack.common.notifier.rabbit_notifier</program
|
||||
<para>Update the plugin configuration file, <filename>
|
||||
/etc/neutron/plugins/openvswitch/ovs_neutron_plugin.ini</filename>:</para>
|
||||
<programlisting>[database]
|
||||
sql_connection = mysql://root:root@controlnode:3306/ovs_neutron?charset=utf8
|
||||
connection = mysql://root:root@controlnode:3306/ovs_neutron?charset=utf8
|
||||
[ovs]
|
||||
network_vlan_ranges = physnet1
|
||||
bridge_mappings = physnet1:br-eth0</programlisting>
|
||||
|
@ -88,7 +88,7 @@ hostssl dbname compute01 hostname cert</screen>
|
||||
<title>OpenStack Service Database Configuration</title>
|
||||
<para>If your database server is configured to require X.509 certificates for authentication you will need to specify the appropriate SQLAlchemy query parameters for the database backend. These parameters specify the certificate, private key, and certificate authority information for use with the initial connection string.</para>
|
||||
<para>Example of an <literal>:sql_connection</literal> string for X.509 certificate authentication to MySQL:</para>
|
||||
<screen>
|
||||
<screen>
|
||||
sql_connection = mysql://compute01:password@localhost/nova?
|
||||
charset=utf8&ssl_ca=/etc/mysql/cacert.pem&ssl_cert=/etc/mysql/server-cert.pem&ssl_key=/etc/mysql/server-key.pem</screen>
|
||||
</section>
|
||||
|
Loading…
Reference in New Issue
Block a user