]> review.fuel-infra Code Review - openstack-build/neutron-build.git/log
openstack-build/neutron-build.git
10 years agoMerge "Add test_handle_router_snat_rules_add_rules"
Jenkins [Thu, 28 Nov 2013 20:01:05 +0000 (20:01 +0000)]
Merge "Add test_handle_router_snat_rules_add_rules"

10 years agoMerge "Rebind allowed address pairs only if they changed"
Jenkins [Thu, 28 Nov 2013 19:58:53 +0000 (19:58 +0000)]
Merge "Rebind allowed address pairs only if they changed"

10 years agoMerge "Optionally delete namespaces when they are no longer needed"
Jenkins [Thu, 28 Nov 2013 13:56:45 +0000 (13:56 +0000)]
Merge "Optionally delete namespaces when they are no longer needed"

10 years agoMerge "Fix showing nonexistent NetworkGateway throws 500 instead of 404"
Jenkins [Thu, 28 Nov 2013 13:51:56 +0000 (13:51 +0000)]
Merge "Fix showing nonexistent NetworkGateway throws 500 instead of 404"

10 years agoMerge "Stop logging unnecessary warning on context create"
Jenkins [Thu, 28 Nov 2013 12:44:06 +0000 (12:44 +0000)]
Merge "Stop logging unnecessary warning on context create"

10 years agoStop logging unnecessary warning on context create
Maru Newby [Wed, 27 Nov 2013 07:57:48 +0000 (07:57 +0000)]
Stop logging unnecessary warning on context create

The context was previously logging at the 'warn' level when unknown
kwargs were being passed to its __init__().  Since the agents were
passing tenant=None with each rpc request, this was generating an
unreasonable amount of log chatter that would not be useful to an
operator.  The fix is to log at the debug level instead so that
the operators don't see the output by default but developers can
still choose to.

Change-Id: I5c328f628c597eb949c1fe67b23120d2b5d1c7da
Related-Bug: #1254530
Partial-Bug: #1255441

10 years agoMerge "Fwaas can't run in operating system without namespace feature"
Jenkins [Thu, 28 Nov 2013 09:10:59 +0000 (09:10 +0000)]
Merge "Fwaas can't run in operating system without namespace feature"

10 years agoMerge "Handle IPAddressGenerationFailure during get_dhcp_port"
Jenkins [Thu, 28 Nov 2013 04:57:37 +0000 (04:57 +0000)]
Merge "Handle IPAddressGenerationFailure during get_dhcp_port"

10 years agoMerge "Avoid dhcp agent race condition on subnet and network delete"
Jenkins [Thu, 28 Nov 2013 02:36:25 +0000 (02:36 +0000)]
Merge "Avoid dhcp agent race condition on subnet and network delete"

10 years agoMerge "Apply six for metaclass"
Jenkins [Wed, 27 Nov 2013 20:31:05 +0000 (20:31 +0000)]
Merge "Apply six for metaclass"

10 years agoMerge "Added check on plugin.supported_extension_aliases"
Jenkins [Wed, 27 Nov 2013 19:34:36 +0000 (19:34 +0000)]
Merge "Added check on plugin.supported_extension_aliases"

10 years agoMerge "Rebind security groups only when they're updated"
Jenkins [Wed, 27 Nov 2013 19:32:14 +0000 (19:32 +0000)]
Merge "Rebind security groups only when they're updated"

10 years agoMerge "Fix downgrade in migration"
Jenkins [Wed, 27 Nov 2013 19:20:21 +0000 (19:20 +0000)]
Merge "Fix downgrade in migration"

10 years agoMerge "Mocking ryu plugin notifier in ryu plugin test"
Jenkins [Wed, 27 Nov 2013 18:27:58 +0000 (18:27 +0000)]
Merge "Mocking ryu plugin notifier in ryu plugin test"

10 years agoMerge "Fix format errors seen in rpc logging"
Jenkins [Wed, 27 Nov 2013 15:46:23 +0000 (15:46 +0000)]
Merge "Fix format errors seen in rpc logging"

10 years agoMerge "Send only one agent notification on port update"
Jenkins [Wed, 27 Nov 2013 12:30:13 +0000 (12:30 +0000)]
Merge "Send only one agent notification on port update"

10 years agoMocking ryu plugin notifier in ryu plugin test
Akihiro Motoki [Wed, 27 Nov 2013 10:09:01 +0000 (19:09 +0900)]
Mocking ryu plugin notifier in ryu plugin test

Previously RPC notifier is not mocked in ryu plugin test and the
plugin tries to send RPC notifications. It may interact with
impl_fake RPC set up in previous tests by other plugin
and sometimes leads to unexpected ovs-vsctl invoking.

Change-Id: I11714a160faa4d3ded7f312c39afba0b426ccd8a
Closes-Bug: #1255421

10 years agoMerge "fixes test_kill_pids_in_file conflicts"
Jenkins [Wed, 27 Nov 2013 10:16:46 +0000 (10:16 +0000)]
Merge "fixes test_kill_pids_in_file conflicts"

10 years agoRebind security groups only when they're updated
Salvatore Orlando [Tue, 26 Nov 2013 17:53:49 +0000 (09:53 -0800)]
Rebind security groups only when they're updated

Update the security port bindings for a port only when they actually
differ from the stored value.

This will also avoid sending port_update notifications to the agent
even if nothing actually changes in the port configuration.

Closes-Bug: #1255183
Partial blueprint: neutron-tempest-parallel

Change-Id: I00c29dc97c46478433fdf08069a884bb78e5cd0a

10 years agoMerge "Update Zhenguo Niu's mailmap"
Jenkins [Wed, 27 Nov 2013 10:05:47 +0000 (10:05 +0000)]
Merge "Update Zhenguo Niu's mailmap"

10 years agoMerge "Call _destroy_metadata_proxy from _destroy_router_namespaces"
Jenkins [Wed, 27 Nov 2013 09:43:35 +0000 (09:43 +0000)]
Merge "Call _destroy_metadata_proxy from _destroy_router_namespaces"

10 years agoFix format errors seen in rpc logging
Maru Newby [Mon, 25 Nov 2013 17:35:54 +0000 (17:35 +0000)]
Fix format errors seen in rpc logging

The previous commit for this bug didn't include the 'project_name'
key in the context dict.  The missing key was causing the amqp
module to generate log formatting exceptions instead of normal
log output.

Separately, the context module itself was generating logging
exceptions in the quantum service when logging was attempted
before the context was fully initialized

Change-Id: I0f4c6f5a6804442932c9b2bd409a258cfc2419ff
Closes-Bug: #1254530
Related-Bug: #1239923

10 years agoAdd test_handle_router_snat_rules_add_rules
Jian Wen [Fri, 6 Sep 2013 09:08:00 +0000 (17:08 +0800)]
Add test_handle_router_snat_rules_add_rules

Add a unit test to verify that snat rules are added and added in order.
So that it could be refactored without fear next time.

Closes-Bug: #1222660
Change-Id: I07e820cc28c9a6c139a8eed0917aef2cfe62638a

10 years agoRebind allowed address pairs only if they changed
Salvatore Orlando [Tue, 26 Nov 2013 16:18:17 +0000 (08:18 -0800)]
Rebind allowed address pairs only if they changed

This patch ensures allowed address pairs bindings are refreshed
only when they actually change.
This will also avoid sending a notification to the agent if no
change actually occured.

Closes-Bug: #1255145
Partial blueprint neutron-tempest-parallel

Change-Id: Iac2502586a0d215a29194590c16c2e1a064f943b

10 years agoEnforce unique constraint on neutron pool members
Stephen Gran [Sun, 17 Nov 2013 11:35:29 +0000 (11:35 +0000)]
Enforce unique constraint on neutron pool members

Neutron loadbalancer pool members should not be allowed to have
duplicate address/port tuples in the same pool.

Change-Id: Ie52c6033217ec05ee4f59bcf8a0e4167c7b13663
Closes-Bug: #1251867

10 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Tue, 26 Nov 2013 14:38:02 +0000 (14:38 +0000)]
Merge "Imported Translations from Transifex"

10 years agoSend only one agent notification on port update
Salvatore Orlando [Tue, 26 Nov 2013 00:25:43 +0000 (16:25 -0800)]
Send only one agent notification on port update

This patch removes the other redundant notification sent in the same
routine to notify whether a security group changed.

Closes-Bug: #1254924
Partial Blueprint neutron-tempest-parallel

Change-Id: I5bad015decdc197c3fa9b58c680564380d513bc4

10 years agoMerge "Sync openstack.common.local from oslo"
Jenkins [Tue, 26 Nov 2013 08:00:31 +0000 (08:00 +0000)]
Merge "Sync openstack.common.local from oslo"

10 years agoFix showing nonexistent NetworkGateway throws 500 instead of 404
berlin [Tue, 26 Nov 2013 01:02:27 +0000 (09:02 +0800)]
Fix showing nonexistent NetworkGateway throws 500 instead of 404

Change-Id: I5304bd52f7a5ae22fbc0d48206d7c1d282b34a91
Closes-Bug: #1252921

10 years agoImported Translations from Transifex
OpenStack Jenkins [Tue, 26 Nov 2013 06:39:28 +0000 (06:39 +0000)]
Imported Translations from Transifex

Change-Id: I53a442a9afbd2ee886d3408acda042bd362681e4

10 years agoUpdate Zhenguo Niu's mailmap
Zhenguo Niu [Fri, 25 Oct 2013 08:18:32 +0000 (16:18 +0800)]
Update Zhenguo Niu's mailmap

Using new email address.

Change-Id: I77190d0da0dbd4480ff03bcfe84540292cc81ea3

10 years agoFwaas can't run in operating system without namespace feature
zhhuabj [Mon, 18 Nov 2013 10:09:54 +0000 (18:09 +0800)]
Fwaas can't run in operating system without namespace feature

Adding the check before generating the local_ns_list
to fix the issue.

Change-Id: If8edb5c0bb0fc0fd9aaf48a3441287f99bcdcf13
Closes-Bug: #1252201

10 years agoImported Translations from Transifex
OpenStack Jenkins [Mon, 25 Nov 2013 06:40:49 +0000 (06:40 +0000)]
Imported Translations from Transifex

Change-Id: I15e9e920c71f502016731fd550c7b104b894c8a9

10 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Mon, 25 Nov 2013 05:39:33 +0000 (05:39 +0000)]
Merge "Imported Translations from Transifex"

10 years agoMerge "Replace stubout with fixtures"
Jenkins [Mon, 25 Nov 2013 05:39:24 +0000 (05:39 +0000)]
Merge "Replace stubout with fixtures"

10 years agoMerge "remove repeated network type definition in cisco plugin"
Jenkins [Mon, 25 Nov 2013 04:55:13 +0000 (04:55 +0000)]
Merge "remove repeated network type definition in cisco plugin"

10 years agoReplace stubout with fixtures
Monty Taylor [Mon, 11 Nov 2013 09:30:54 +0000 (04:30 -0500)]
Replace stubout with fixtures

blueprint remove-mox

The last step in removing mox is to remove stubout usage. Lucky for us,
the fixtures library, which we are already using, can take on the
challenge quite well.

Change-Id: Id33cc8988935a1905f9a14351964f0bb24ef82e3

10 years agoMerge "MidoNet: Added support for the admin_state_up flag"
Jenkins [Sun, 24 Nov 2013 10:02:04 +0000 (10:02 +0000)]
Merge "MidoNet: Added support for the admin_state_up flag"

10 years agoImported Translations from Transifex
OpenStack Jenkins [Sun, 24 Nov 2013 06:40:28 +0000 (06:40 +0000)]
Imported Translations from Transifex

Change-Id: Ifc40ea5ab56019cf466a275135ecef5914730785

10 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Sat, 23 Nov 2013 21:18:17 +0000 (21:18 +0000)]
Merge "Imported Translations from Transifex"

10 years agoMerge "NVP plugin:fix connectivity to fip from internal nw"
Jenkins [Sat, 23 Nov 2013 19:12:06 +0000 (19:12 +0000)]
Merge "NVP plugin:fix connectivity to fip from internal nw"

10 years agoImported Translations from Transifex
OpenStack Jenkins [Sat, 23 Nov 2013 06:40:58 +0000 (06:40 +0000)]
Imported Translations from Transifex

Change-Id: I26f10ec24fa6684284d6946e541fc6fe26f36d6f

10 years agoAvoid dhcp agent race condition on subnet and network delete
armando-migliaccio [Fri, 13 Sep 2013 18:26:18 +0000 (11:26 -0700)]
Avoid dhcp agent race condition on subnet and network delete

Ensure that ports that are about to be deleted are 'selected
for update'. By doing so, we avoid a race condition between
subnet and network delete operations carried out by two
separate server instances.

A race caused by the dhcp agent deleting the DHCP port
(caused by a subnet-delete event notification) can
still occur and will be addressed in a subsequent patch.

delete_subnet's way to delete ports has been tweaked to
ensure that postgres db can handle the SELECT FOR UPDATE
correctly.

Partial-Bug:1197627

Change-Id: I5bd75a758395a2faeff9db35a03c42dfa8ae0eab

10 years agoMerge "ML2 plugin should not delete ports on subnet deletion"
Jenkins [Fri, 22 Nov 2013 21:24:19 +0000 (21:24 +0000)]
Merge "ML2 plugin should not delete ports on subnet deletion"

10 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Fri, 22 Nov 2013 17:34:27 +0000 (17:34 +0000)]
Merge "Imported Translations from Transifex"

10 years agoMerge "Add state reporting to the metadata agent"
Jenkins [Fri, 22 Nov 2013 15:14:48 +0000 (15:14 +0000)]
Merge "Add state reporting to the metadata agent"

10 years agoSync openstack.common.local from oslo
Ilya Pekelny [Fri, 22 Nov 2013 12:04:26 +0000 (14:04 +0200)]
Sync openstack.common.local from oslo

`local` has a broken TLS symbol - strong_store, fixed in oslo some time ago in
Ib544be1485823f6c619312fdee5a04031f48bbb4. All direct and indirect
(lockutils and rpc) usages of strong_store might be potentially affected.
Original change to Nova: If4dd973acc23921dbc2bc69bb76225deb2802dad

Closes-Bug: #1254046
Change-Id: I6e5efa156c9a905a979a469244cd483723e6b1e3

10 years agoMerge "Fix sqlalchemy DateTime type usage"
Jenkins [Fri, 22 Nov 2013 09:55:56 +0000 (09:55 +0000)]
Merge "Fix sqlalchemy DateTime type usage"

10 years agoMerge "Fix OVS agent reclaims local VLAN"
Jenkins [Fri, 22 Nov 2013 09:55:46 +0000 (09:55 +0000)]
Merge "Fix OVS agent reclaims local VLAN"

10 years agoMerge "Adds delete of a extra_dhcp_opt on a port"
Jenkins [Fri, 22 Nov 2013 09:55:36 +0000 (09:55 +0000)]
Merge "Adds delete of a extra_dhcp_opt on a port"

10 years agoMerge "LBaaS UT: use constants vs magic numbers for http error codes"
Jenkins [Fri, 22 Nov 2013 09:55:27 +0000 (09:55 +0000)]
Merge "LBaaS UT: use constants vs magic numbers for http error codes"

10 years agoMerge "Adds tests, fixes Radware LBaaS driver as a result"
Jenkins [Fri, 22 Nov 2013 09:55:17 +0000 (09:55 +0000)]
Merge "Adds tests, fixes Radware LBaaS driver as a result"

10 years agoMerge "Add request-id to log messages"
Jenkins [Fri, 22 Nov 2013 09:55:07 +0000 (09:55 +0000)]
Merge "Add request-id to log messages"

10 years agoImported Translations from Transifex
OpenStack Jenkins [Fri, 22 Nov 2013 06:41:28 +0000 (06:41 +0000)]
Imported Translations from Transifex

Change-Id: Icea5a49b16be31eeef34078ef216a4818c253819

10 years agoML2 plugin should not delete ports on subnet deletion
Oleg Bondarev [Fri, 1 Nov 2013 11:20:27 +0000 (15:20 +0400)]
ML2 plugin should not delete ports on subnet deletion

On subnet deletion ports are deleted asynchronously by dhcp agent
so plugin doesn't need to delete them itself.
Instead Ml2Plugin.delete_subnet() method should call update_port()
for each allocation to remove the IP from the port and call the MechanismDrivers.
The patch also adds subnets test suite from test_db_plugin to test_ml2_plugin.

Closes-Bug: #1246737
Change-Id: I7cf0461e9a3cfec4921e2de41fb1ab3fc119fddc

10 years agoAdd state reporting to the metadata agent
Oleg Bondarev [Fri, 15 Nov 2013 12:21:42 +0000 (16:21 +0400)]
Add state reporting to the metadata agent

Need to add state reporting in order metadata agent
to appear in Neutron's agent list output

Closes-Bug: #1250369
Change-Id: I3a001e065004685d9702e817336e5d4923597791

10 years agoMerge "Catch PortNotFound exception during get_dhcp_port"
Jenkins [Fri, 22 Nov 2013 03:08:38 +0000 (03:08 +0000)]
Merge "Catch PortNotFound exception during get_dhcp_port"

10 years agoMerge "Linux device name can have '@' or ':' characters"
Jenkins [Fri, 22 Nov 2013 03:08:27 +0000 (03:08 +0000)]
Merge "Linux device name can have '@' or ':' characters"

10 years agoMerge "Correct handling mock.patch.stop method"
Jenkins [Fri, 22 Nov 2013 02:21:44 +0000 (02:21 +0000)]
Merge "Correct handling mock.patch.stop method"

10 years agoMerge "Use correct device_manager member in dhcp driver"
Jenkins [Fri, 22 Nov 2013 02:21:35 +0000 (02:21 +0000)]
Merge "Use correct device_manager member in dhcp driver"

10 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Thu, 21 Nov 2013 23:54:03 +0000 (23:54 +0000)]
Merge "Imported Translations from Transifex"

10 years agoHandle IPAddressGenerationFailure during get_dhcp_port
armando-migliaccio [Thu, 21 Nov 2013 21:07:28 +0000 (13:07 -0800)]
Handle IPAddressGenerationFailure during get_dhcp_port

If a network/subnet is deleted while the dhcp agent is trying
to get/create a dhcp port for that network, the exception
will be raised because no IP Allocation Range is available.

However, this particular failure mode causes just noise, because
the dhcp agent can cope with it without problems.

A follow-up patch will deal with the other exception traces during
create_dhcp_port

Partial-bug: #1253344

Change-Id: I7fe35455ce905daa22ff96367e120864a7d3fb92

10 years agoMerge "LBaaS: when returning VIP include session_persistence even if None"
Jenkins [Thu, 21 Nov 2013 11:25:40 +0000 (11:25 +0000)]
Merge "LBaaS: when returning VIP include session_persistence even if None"

10 years agoAdd request-id to log messages
Akihiro MOTOKI [Wed, 16 Oct 2013 10:43:10 +0000 (19:43 +0900)]
Add request-id to log messages

request-id needs to be stored in thread local store to allow
openstack.common.log use request-id.
tenant_name and user_name are added to the context so that
they can be logged by customizing the log format.

Also replaces 'cxt' with 'ctx' in test_neutron_context.py.
Previously both 'ctx' and 'cxt' are used mixed in one file.

Change-Id: Ib921585e648e92491c1366bc0ad26a6ae71e2fc9
Partial-Bug: #1239923

10 years agoImported Translations from Transifex
OpenStack Jenkins [Thu, 21 Nov 2013 06:40:51 +0000 (06:40 +0000)]
Imported Translations from Transifex

Change-Id: I1e1acda6a6e02f0aa7cadeff4fade8fad311b955

10 years agoMerge "Enable polling minimization"
Jenkins [Thu, 21 Nov 2013 01:12:50 +0000 (01:12 +0000)]
Merge "Enable polling minimization"

10 years agoMerge "Add configurable ovsdb monitor respawn interval"
Jenkins [Thu, 21 Nov 2013 01:12:32 +0000 (01:12 +0000)]
Merge "Add configurable ovsdb monitor respawn interval"

10 years agoMerge "Move Loadbalancer Noop driver to the unit tests"
Jenkins [Thu, 21 Nov 2013 01:12:09 +0000 (01:12 +0000)]
Merge "Move Loadbalancer Noop driver to the unit tests"

10 years agoEnable polling minimization
Salvatore Orlando [Tue, 19 Nov 2013 17:32:35 +0000 (09:32 -0800)]
Enable polling minimization

In some cases the OVS agent might end up wiring a port for a VM
several seconds after the VM has booted. As a result, there is a
risk that the VM won't receive an IP address from DHCP in time.

This patch changes the default value for agent.minimize_polling to
True. This change should reduce the time needed for configuring
an interface on br-int consistently.

Change-Id: I009f606fd34a132376f1d50f8ccda9d35d064bfa
Related-bug: 1224001

10 years agoAdd configurable ovsdb monitor respawn interval
Terry Wilson [Wed, 20 Nov 2013 15:55:02 +0000 (09:55 -0600)]
Add configurable ovsdb monitor respawn interval

If minimize_polling=True and the ovsdb-client process died, the
default respawn interval of 0 would mean that we'd start polling
again. This patch adds the option ovsdb_monitor_respawn_interval and
defaults it to 30 seconds.

Change-Id: I12c1e05ec4d6d2bd4d84024a91116e2ac3974868
Close-Bug: 1243867

10 years agoEnsure get_pid_to_kill works with rootwrap script
Terry Wilson [Tue, 22 Oct 2013 18:22:18 +0000 (13:22 -0500)]
Ensure get_pid_to_kill works with rootwrap script

To ensure that correct process is killed when using a rootwrap
script, we must recursively list the children of our top-level
process and kill the last one. This patch uses the psutil python
module which is already used in the heat-cfntools project.

Change-Id: I702bb9dd794c08fcaab637284ee303de1778cbb9

10 years agoAdds tests, fixes Radware LBaaS driver as a result
Evgeny Fedoruk [Mon, 28 Oct 2013 17:43:10 +0000 (10:43 -0700)]
Adds tests, fixes Radware LBaaS driver as a result

Adding more tests for Radware LBaaS driver.
Adding new exception module for the Radware lbaas driver.
The base radware lbaas exception, called RadwareLBaasException,
Several specific exceptions for different failures.
Driver was changed for using new exceptions as well.
Changing the way OperationsHandler obtains context.
Always waiting 1 second before handling the operation
next time, to prevent busy-wait requests on vDirect.
Several code optimizations were done as well.

Change-Id: I15f7845fc2575eedb62c47d15ee6c1cea08e22f5
Closes-Bug: #1236741

10 years agoMerge "Reduce the severity of dhcp related log traces"
Jenkins [Wed, 20 Nov 2013 08:29:30 +0000 (08:29 +0000)]
Merge "Reduce the severity of dhcp related log traces"

10 years agoMerge "Replace mox in unit tests with mock"
Jenkins [Tue, 19 Nov 2013 22:17:12 +0000 (22:17 +0000)]
Merge "Replace mox in unit tests with mock"

10 years agoOptionally delete namespaces when they are no longer needed
Carl Baldwin [Tue, 12 Nov 2013 19:31:45 +0000 (19:31 +0000)]
Optionally delete namespaces when they are no longer needed

Adds a configuration option to tell the network agents to delete
namespaces when they are no longer in use.  The option defaults to
False so that the agent will not attempt to delete namespaces in
environments where this is not safe.

This has been working well in deployments where iproute2 has been
patched with commit 58a3e8270fe72f8ed92687d3a3132c2a708582dd or it is
new enough to include it without being patched.

Change-Id: Ice5242c6f0446d16aaaa7ee353d674310297ef72
Closes-Bug: #1250596
Related-Bug: #1052535

10 years agoCall _destroy_metadata_proxy from _destroy_router_namespaces
Carl Baldwin [Tue, 19 Nov 2013 17:47:43 +0000 (17:47 +0000)]
Call _destroy_metadata_proxy from _destroy_router_namespaces

Refactor _spawn/destroy_metadata_proxy so that it can be called
with only the namespace and the router_id.

Change-Id: Id1c33b22c7c3bd35c54a7c9ad419831bfed8746b
Closes-Bug: #1252856

10 years agoAdded check on plugin.supported_extension_aliases
Amir Sadoughi [Thu, 5 Sep 2013 06:38:41 +0000 (01:38 -0500)]
Added check on plugin.supported_extension_aliases

Added check to neutron.api.extensions.PluginAwareExtensionManager
which raises an exception when an alias in the plugin's
`supported_extension_aliases` list is not found in the set of loaded
extension aliases. If an alias is missing, it means the extension for
that alias has not been loaded, has not been found, and the file is
missing from paths listed in `oslo.config.CONF.api_extensions_path`.

This guards against a common class of bugs in plugins,
such as typographical errors in the `supported_extension_aliases`
property.

Plugin changes:

* bigswitch.plugin: Moves api_extensions_path override to plugin's
__init__ method, similar to other plugins.

* cisco.n1kv.n1kv_neutron_plugin: Removes "policy_profile_binding" and
"network_profile_binding" as they don't exist in Neutron currently.
Removed override of api_extensions_path as it is loaded through
cisco.network_plugin.

* cisco.network_plugin: Renames "Cisco Credential" to "credential".
Adds api_extension_path override to plugin's __init__ method.

* metaplugin.meta_neutron_plugin: Avoids alias of empty string when
cfg.CONF.META.supported_extension_aliases is an empty string.

* midonet.plugin: Fixes regression of 98e16a06 from 715b16ac.

* nec.nec_plugin: Extended override of api_extensions_path to append
nec extensions path to existing configured path.

* nicira.NeutronPlugin: Extended override of api_extensions_path to
append NXP_EXT_PATH to existing configured path.

Fixes: bug 1225080
Change-Id: Idcaade221d83c611fcbd87b503b2c8377d106962

10 years agoCatch PortNotFound exception during get_dhcp_port
armando-migliaccio [Mon, 18 Nov 2013 20:13:36 +0000 (12:13 -0800)]
Catch PortNotFound exception during get_dhcp_port

Close-bug: 1252437

Change-Id: I3a7954b869b4f5b909c806f8e47180e1ba6ba374

10 years agoReduce the severity of dhcp related log traces
armando-migliaccio [Sat, 16 Nov 2013 18:07:31 +0000 (10:07 -0800)]
Reduce the severity of dhcp related log traces

Due to timing issues, when the agent synchronizes
with the server wrt the representation of server's
and agent's networks, networks may have already
been deleted from the db. In such circumstances,
it is more appropriate to emit warnings rather than
full-blown exceptions as the agent handles these
circumstances just fine.

Close-bug: 1251874

Change-Id: I4b118b6087c7f42226f0d4265d2176c028d99f22

10 years agoMidoNet: Added support for the admin_state_up flag
Duarte Nunes [Thu, 3 Oct 2013 14:03:14 +0000 (16:03 +0200)]
MidoNet: Added support for the admin_state_up flag

This commit enhances the port, bridge and router resources with the
admin_state_up flag in the MidoNet plugin.

Implements: blueprint midonet-admin-state
Change-Id: I67f4f9ad4099a05f8161aae79331ebba84f561b8

10 years agoFix OVS agent reclaims local VLAN
Édouard Thuleau [Mon, 18 Nov 2013 15:31:25 +0000 (15:31 +0000)]
Fix OVS agent reclaims local VLAN

If a port disappears on an OVS agent, the port is removed of the lvm
vif_ports list. And if it's the last port of the network on this agent,
the network local VLAN is reclaim.

Change-Id: I07e03107eb86a84eeb8e4d06f27a1d2fbd7cea57
Closes-Bug: #1252284

10 years agoReplace mox in unit tests with mock
Akihiro MOTOKI [Sun, 27 Oct 2013 13:42:12 +0000 (22:42 +0900)]
Replace mox in unit tests with mock

blueprint remove-mox

Removing mox from test-requirements.txt will be done in another patch
because stubout module is a part of mox and it is used in several modules.

Change-Id: I9370e8da815d2234a032a8875da73a86d4126d46

10 years agoLBaaS: fix reported binary name of a loadbalancer agent
Oleg Bondarev [Wed, 6 Nov 2013 09:24:43 +0000 (13:24 +0400)]
LBaaS: fix reported binary name of a loadbalancer agent

Loadbalancer agent's actual binary name differs from what it reports
to Neutron server, so need to fix:
neutron-loadbalancer-agent -> neutron-lbaas-agent

Closes-Bug: #1248222
Change-Id: Ic4e05d0258ba8eb48b96c60d69c1dbf9f27731f6

10 years agoApply six for metaclass
fujioka yuuichi [Thu, 10 Oct 2013 11:54:40 +0000 (20:54 +0900)]
Apply six for metaclass

__metaclass__ cannot be used in python3.
six be used in general for python 3 compatibility.

Change-Id: Ib0d71b9676dc01390679396443575c05975d3b58
Closes-Bug: #1236648

10 years agoMerge "Do not run "ovs-ofctl add-flow" with an invalid in_port"
Jenkins [Mon, 18 Nov 2013 06:18:48 +0000 (06:18 +0000)]
Merge "Do not run "ovs-ofctl add-flow" with an invalid in_port"

10 years agoNVP plugin:fix connectivity to fip from internal nw
Salvatore Orlando [Mon, 18 Nov 2013 00:59:06 +0000 (16:59 -0800)]
NVP plugin:fix connectivity to fip from internal nw

The current set of NAT rules configured in the NVP logical router
prevents instances on an internal network from establishing TCP
connections with a floating IP associate with an internal port
on the same Neutron network.

This patch add a SNAT rule to ensure connections coming from the
internal network always appear to the port associate with the
floating IP as coming from the external network.

Change-Id: I12da12ee136c61fddb04f2b216382b51d751a02c
Closes-Bug: 1221419

10 years agoMerge "Round-robin SVI switch selection fails on Cisco Nexus plugin"
Jenkins [Sun, 17 Nov 2013 18:04:00 +0000 (18:04 +0000)]
Merge "Round-robin SVI switch selection fails on Cisco Nexus plugin"

10 years agoMerge "Removes unused nvp plugin config param"
Jenkins [Sun, 17 Nov 2013 17:01:40 +0000 (17:01 +0000)]
Merge "Removes unused nvp plugin config param"

10 years agoImported Translations from Transifex
OpenStack Jenkins [Sun, 17 Nov 2013 06:41:30 +0000 (06:41 +0000)]
Imported Translations from Transifex

Change-Id: If02d797b5d423db899bba128e2efedfd4afb1ad3

10 years agoMerge "Add log statements for policy check failures"
Jenkins [Sun, 17 Nov 2013 05:22:18 +0000 (05:22 +0000)]
Merge "Add log statements for policy check failures"

10 years agoMerge "Lower severity of log trace for DB integrity error"
Jenkins [Sat, 16 Nov 2013 04:07:51 +0000 (04:07 +0000)]
Merge "Lower severity of log trace for DB integrity error"

10 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Fri, 15 Nov 2013 23:26:40 +0000 (23:26 +0000)]
Merge "Imported Translations from Transifex"

10 years agoMerge "Refactor configuring of floating ips on a router"
Jenkins [Fri, 15 Nov 2013 20:40:51 +0000 (20:40 +0000)]
Merge "Refactor configuring of floating ips on a router"

10 years agoMerge "Fix import log_handler error with publish_errors set"
Jenkins [Fri, 15 Nov 2013 13:52:27 +0000 (13:52 +0000)]
Merge "Fix import log_handler error with publish_errors set"

10 years agoMerge "Cleanup HACKING.rst"
Jenkins [Fri, 15 Nov 2013 10:24:48 +0000 (10:24 +0000)]
Merge "Cleanup HACKING.rst"

10 years agoFix downgrade in migration
Ann Kamyshnikova [Tue, 22 Oct 2013 07:02:55 +0000 (11:02 +0400)]
Fix downgrade in migration

In 63afba73813_ovs_tunnelendpoints_id_unique migration mistake in
usage drop_constraint parameter type_ and positional agruments name
and table_name.

Closes-Bug: #1243073

Change-Id: I60cd6e7f18b193b71f8f20759251b9f59a79965a

10 years agoImported Translations from Transifex
OpenStack Jenkins [Fri, 15 Nov 2013 06:40:44 +0000 (06:40 +0000)]
Imported Translations from Transifex

Change-Id: I38683ac890169536497e2c1ed9178d00a441328b

10 years agoAdd log statements for policy check failures
armando-migliaccio [Wed, 30 Oct 2013 01:20:53 +0000 (18:20 -0700)]
Add log statements for policy check failures

Misconfiguration of the policy.json file may
cause policy check failures. It's kind to the
developer to log the underlying exception
so that he/she can have more information as to
how to address the problem.

Closes bug: #1246139

Change-Id: I8664959cb98b3a41d159db3acb91da9baba810ae

10 years agoLower severity of log trace for DB integrity error
armando-migliaccio [Fri, 15 Nov 2013 02:22:26 +0000 (18:22 -0800)]
Lower severity of log trace for DB integrity error

LOG.exception is not appropriate, since a concurrent
port creation can occur and it has been dealt with
in the except block.

This avoids spooking users who are on the hunt for
real bugs.

Supports fix for 1239637

Change-Id: I9489702ee63db0b004fe41195fa4727af261d514

10 years agoMerge "Remove deprecated fields in keystone auth middleware"
Jenkins [Fri, 15 Nov 2013 00:12:38 +0000 (00:12 +0000)]
Merge "Remove deprecated fields in keystone auth middleware"