]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Make default nova_url use a version
authorDan Prince <dprince@redhat.com>
Thu, 10 Apr 2014 16:40:13 +0000 (12:40 -0400)
committerHenry Gessau <gessau@cisco.com>
Sat, 12 Apr 2014 04:22:16 +0000 (00:22 -0400)
The default nova_url for neutron is missing an API
version number. This can cause requests to fail
because the Nova /versions API cannot respond
to Neutron notification requests.

It seems reasonable for the default value to
at least have a chance at being correct so
this patch upgrades the default Nova API url to
use the Nova 'v2' API.

Related-bug: #1298640
Change-Id: Ib1449de84fbc01fb704ebfe4a016ac8f4932be96

etc/neutron.conf
neutron/common/config.py

index f6bef57dd8ca20f93a623e865c10c1892abdd495..193b0260a69318bd9e44b64f77733037e88e0d26 100644 (file)
@@ -303,7 +303,7 @@ notification_driver = neutron.openstack.common.notifier.rpc_notifier
 # notify_nova_on_port_data_changes = True
 
 # URL for connection to nova (Only supports one nova region currently).
-# nova_url = http://127.0.0.1:8774
+# nova_url = http://127.0.0.1:8774/v2
 
 # Name of nova region to use. Useful if keystone manages more than one region
 # nova_region_name =
index e04cc4e338142d36bbf7d9843501a452d49464a2..25558311c30d4cbf9515f8f74d79318f570a8041 100644 (file)
@@ -87,7 +87,7 @@ core_opts = [
                 help=_("Send notification to nova when port data (fixed_ips/"
                        "floatingip) changes so nova can update its cache.")),
     cfg.StrOpt('nova_url',
-               default='http://127.0.0.1:8774',
+               default='http://127.0.0.1:8774/v2',
                help=_('URL for connection to nova')),
     cfg.StrOpt('nova_admin_username',
                help=_('Username for connecting to nova in admin context')),