Move nova.conf/neutron.conf database configuration variables to [database] section

Commit https://review.openstack.org/34671 introduced for nova.conf:
"The database configuration variables are now in a new section
 [database]."

This change is also needed for the neutron files.

Change-Id: I3dcc46c163560e6ca277d421acf87a75683fa83d
Partial-Bug: #1205060
This commit is contained in:
Andreas Jaeger 2013-09-16 21:52:34 +02:00
parent 4b619802ba
commit ac79160304
11 changed files with 33 additions and 24 deletions

View File

@ -13,9 +13,6 @@ compute_scheduler_driver=nova.scheduler.filter_scheduler.FilterScheduler
# VOLUMES
# configured in cinder.conf
# DATABASE
sql_connection=mysql://nova:yourpassword@192.168.206.130/nova
# COMPUTE
libvirt_type=qemu
compute_driver=libvirt.LibvirtDriver
@ -67,3 +64,7 @@ admin_tenant_name = service
admin_user = nova
admin_password = nova
signing_dirname = /tmp/keystone-signing-nova
# DATABASE
[database]
connection=mysql://nova:yourpassword@192.168.206.130/nova

View File

@ -13,9 +13,6 @@ compute_scheduler_driver=nova.scheduler.filter_scheduler.FilterScheduler
# VOLUMES
# configured in cinder.conf
# DATABASE
sql_connection=mysql://nova:yourpassword@192.168.206.130/nova
# COMPUTE
libvirt_type=qemu
compute_driver=libvirt.LibvirtDriver
@ -68,3 +65,7 @@ admin_tenant_name = service
admin_user = nova
admin_password = nova
signing_dirname = /tmp/keystone-signing-nova
# DATABASE
[database]
connection=mysql://nova:yourpassword@192.168.206.130/nova

View File

@ -337,11 +337,12 @@ api_paste_config=c:\openstack\nova\etc\nova\api-paste.ini
rabbit_host=<replaceable>IP_ADDRESS</replaceable>
glance_api_servers=<replaceable>IP_ADDRESS</replaceable>:9292
image_service=nova.image.glance.GlanceImageService
sql_connection=mysql://nova:passwd@<replaceable>IP_ADDRESS</replaceable>/nova
instances_shared_storage=false
limit_cpu_features=true
compute_driver=nova.virt.hyperv.driver.HyperVDriver
volume_api_class=nova.volume.cinder.API</programlisting>
volume_api_class=nova.volume.cinder.API
[database]
connection=mysql://nova:passwd@<replaceable>IP_ADDRESS</replaceable>/nova</programlisting>
<para>The following table contains a reference of all optionsfor hyper-v</para>
<xi:include href="tables/nova-hyperv.xml"/>
</section>

View File

@ -78,7 +78,6 @@
an internal Rackspace test system.</para>
<programlisting language="ini">verbose
nodaemon
sql_connection=mysql://root:&lt;password&gt;@127.0.0.1/nova
network_manager=nova.network.manager.FlatManager
image_service=nova.image.glance.GlanceImageService
flat_network_bridge=xenbr0
@ -96,7 +95,9 @@ ipv6_backend=account_identifier
ca_path=./nova/CA
# Add the following to your conf file if you're running on Ubuntu Maverick
xenapi_remap_vbd_dev=true</programlisting>
xenapi_remap_vbd_dev=true
[database]
connection=mysql://root:&lt;password&gt;@127.0.0.1/nova</programlisting>
<figure xml:id="Nova_conf_XEN_Flat">
<title>KVM, Flat, MySQL, and Glance, OpenStack or EC2
API</title>

View File

@ -62,7 +62,7 @@ verbose = True</programlisting>
<listitem>
<para>Edit <filename>/etc/neutron/plugins/openvswitch/ovs_neutron_plugin.ini</filename>:
<programlisting language="ini">[database]
sql_connection = mysql://neutron:password@10.10.10.1/neutron
connection = mysql://neutron:password@10.10.10.1/neutron
[ovs]
tenant_network_type = gre
tunnel_id_ranges = 1:1000

View File

@ -164,7 +164,8 @@ vncserver_listen=0.0.0.0</programlisting></para>
nova-conductor to manage your database connections, you will need to add
the following lines to your
<filename>nova.conf</filename>:
<programlisting language="ini">sql_connection=mysql://nova:password@10.10.10.10/nova
<programlisting language="ini">[database]
connection=mysql://nova:password@10.10.10.10/nova
[conductor]
use_local=True</programlisting></para></note></listitem>
<listitem>

View File

@ -51,7 +51,7 @@ admin_password = password</programlisting>
<listitem>
<para>Edit
<filename>/etc/neutron/plugins/openvswitch/ovs_neutron_plugin.ini</filename>: <programlisting language="ini">[database]
sql_connection = mysql://neutron:password@localhost/neutron
connection = mysql://neutron:password@localhost/neutron
[ovs]
tenant_network_type = gre
tunnel_id_ranges = 1:1000
@ -61,7 +61,7 @@ local_ip = 10.10.10.10
firewall_driver = \
neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver</programlisting>
<programlisting os="centos;rhel;fedora" language="ini">[database]
sql_connection = mysql://neutron:password@localhost/neutron
connection = mysql://neutron:password@localhost/neutron
[ovs]
enable_tunneling = False
[securitygroup]

View File

@ -53,7 +53,6 @@ admin_password = password</programlisting>
them as-is.
<programlisting os="ubuntu;debian" language="ini">[DEFAULT]
sql_connection=mysql://nova:password@localhost/nova
my_ip=10.10.10.10
rabbit_password=password
auth_strategy=keystone
@ -129,10 +128,11 @@ image_service=nova.image.glance.GlanceImageService
novnc_enable=true
novncproxy_port=6080
novncproxy_host=10.0.0.10
vncserver_listen=0.0.0.0</programlisting>
<programlisting os="opensuse" language="ini">[DEFAULT]
vncserver_listen=0.0.0.0
sql_connection=mysql://nova:password@localhost/nova
[database]
connection=mysql://nova:password@localhost/nova</programlisting>
<programlisting os="opensuse" language="ini">[DEFAULT]
rabbit_password=password
auth_strategy=keystone
@ -169,7 +169,9 @@ novnc_enable=true
novncproxy_port=6080
novncproxy_host=10.0.0.10
vncserver_listen=0.0.0.0
</programlisting>
[database]
connection=mysql://nova:password@localhost/nova</programlisting>
</para>
</listitem>
<listitem>

View File

@ -155,7 +155,7 @@ admin_password = password</programlisting></para>
<para>Edit
<filename>/etc/neutron/plugins/openvswitch/ovs_neutron_plugin.ini</filename>,
as follows: <programlisting language="ini">[database]
sql_connection = mysql://neutron:password@10.10.10.10/neutron
connection = mysql://neutron:password@10.10.10.10/neutron
[ovs]
tenant_network_type = gre
tunnel_id_ranges = 1:1000

View File

@ -33,7 +33,8 @@ postgres> exit</screen></para>
<para>Configure the <filename>/etc/nova/nova.conf</filename> file,
to ensure it knows to use the PostgreSQL database:</para>
<literallayout class="monospaced">sql_connection = postgres://novadbadmin:[<replaceable>[YOUR_NOVADB_PASSWORD]</replaceable>]@127.0.0.1/nova</literallayout>
<literallayout class="monospaced">[database]
connection = postgres://novadbadmin:[<replaceable>[YOUR_NOVADB_PASSWORD]</replaceable>]@127.0.0.1/nova</literallayout>
<para>The command to populate the database is described later in the
documentation, in the section entitled <link
linkend="compute-db-sync">Configuring the Database for Compute</link>.

View File

@ -60,12 +60,13 @@
<filename>nova.conf</filename> file.</para>
</note>
<para>Ensure the database connection defines your backend data
store by adding a <literal>sql_connection</literal> line to
store by adding a <literal>connection</literal> line to the
<literal>[database]</literal> section in
<filename>nova.conf</filename>:
<literal>sql_connection=mysql://<replaceable>[user]</replaceable>:<replaceable>[pass]</replaceable>@<replaceable>[primary
<literal>connection=mysql://<replaceable>[user]</replaceable>:<replaceable>[pass]</replaceable>@<replaceable>[primary
IP]</replaceable>/<replaceable>[db
name]</replaceable></literal>, such as
<literal>sql_connection=mysql://nova:yourpassword@192.168.206.130/nova</literal>.</para>
<literal>connection=mysql://nova:yourpassword@192.168.206.130/nova</literal>.</para>
<para>Add these settings to
<filename>/etc/nova/nova.conf</filename> for the network
configuration assumptions made for this installation scenario.