]> review.fuel-infra Code Review - openstack-build/neutron-build.git/log
openstack-build/neutron-build.git
9 years agoMerge "portsecurity_db: Use is_attr_set instead of a home-grown equivalent"
Jenkins [Tue, 17 Mar 2015 14:42:49 +0000 (14:42 +0000)]
Merge "portsecurity_db: Use is_attr_set instead of a home-grown equivalent"

9 years agoMerge "Remove router binding with router-interface-delete"
Jenkins [Tue, 17 Mar 2015 14:39:53 +0000 (14:39 +0000)]
Merge "Remove router binding with router-interface-delete"

9 years agoMerge "Move mlnx agent to be under ml2/drivers/mlnx"
Jenkins [Tue, 17 Mar 2015 12:08:05 +0000 (12:08 +0000)]
Merge "Move mlnx agent to be under ml2/drivers/mlnx"

9 years agoMerge "OVS UT: Remove useless return_value for setup_integration_br"
Jenkins [Tue, 17 Mar 2015 11:59:31 +0000 (11:59 +0000)]
Merge "OVS UT: Remove useless return_value for setup_integration_br"

9 years agoMerge "Fix netns-cleanup broken by ProcessMonitor refactor"
Jenkins [Tue, 17 Mar 2015 10:03:20 +0000 (10:03 +0000)]
Merge "Fix netns-cleanup broken by ProcessMonitor refactor"

9 years agoMerge "Schedule net to a DHCP agt on subnet create"
Jenkins [Tue, 17 Mar 2015 07:29:22 +0000 (07:29 +0000)]
Merge "Schedule net to a DHCP agt on subnet create"

9 years agoMerge "Fix l3_agentschedulers_db for consistency of code"
Jenkins [Tue, 17 Mar 2015 06:14:26 +0000 (06:14 +0000)]
Merge "Fix l3_agentschedulers_db for consistency of code"

9 years agoSchedule net to a DHCP agt on subnet create
Kevin Benton [Thu, 12 Mar 2015 01:32:52 +0000 (18:32 -0700)]
Schedule net to a DHCP agt on subnet create

Change the DHCP notifier behavior to schedule a network
to a DHCP agent when a subnet is created rather than
waiting for the first port to be created.

This will reduce the possibility to get a VM port created
and have it send a DHCP request before the DHCP agent is
ready. Before, the network would be scheduled to an agent
as a result of the API call to create the VM port, so the
DHCP port wouldn't be created until after the VM port.
After this patch, the network will have been scheduled to
a DHCP agent before the first VM port is created.

There is still a possibility that the DHCP agent could be
responding so slowly that it doesn't create its port and
activate the dnsmasq instance before the VM sends traffic.
A proper fix will ensure that the dnsmasq instance is
truly ready to serve requests for a new port will require
significantly more code for barriers (either on the subnet
creation, port creation, or the nova boot process) are too
complex to add this late in the cycle.

This patch also eliminates the logic in the n1kv plugin that
was already doing the same thing.

Closes-Bug: #1431105
Change-Id: I1c1caed0fdda6b801375a07f9252a9127058a07e

9 years agoMerge "Revert "Set default of api_workers to number of CPUs""
Jenkins [Tue, 17 Mar 2015 03:13:58 +0000 (03:13 +0000)]
Merge "Revert "Set default of api_workers to number of CPUs""

9 years agoMerge "Prevent updating mac address of bound port"
Jenkins [Tue, 17 Mar 2015 03:13:43 +0000 (03:13 +0000)]
Merge "Prevent updating mac address of bound port"

9 years agoMerge "Add MTU selection & advertisement settings to Neutron config"
Jenkins [Tue, 17 Mar 2015 03:09:09 +0000 (03:09 +0000)]
Merge "Add MTU selection & advertisement settings to Neutron config"

9 years agoMerge "Revert "fix check_ports_exist_on_l3agent in no subnet case""
Jenkins [Tue, 17 Mar 2015 02:04:38 +0000 (02:04 +0000)]
Merge "Revert "fix check_ports_exist_on_l3agent in no subnet case""

9 years agoMerge "Move Unix domain socket helpers to a common place"
Jenkins [Tue, 17 Mar 2015 01:40:39 +0000 (01:40 +0000)]
Merge "Move Unix domain socket helpers to a common place"

9 years agoRevert "Set default of api_workers to number of CPUs"
Salvatore Orlando [Fri, 13 Mar 2015 22:37:05 +0000 (22:37 +0000)]
Revert "Set default of api_workers to number of CPUs"

This reverts commit c65175811baf29e75556045e3b44ab948e02a9c3.

This is in relation to:
https://bugs.launchpad.net/neutron/+bug/1432065

Change-Id: I97562840ff57f43958c1e3e56aa41219bd01c8c5

9 years agoRevert "fix check_ports_exist_on_l3agent in no subnet case"
Swaminathan Vasudevan [Mon, 16 Mar 2015 20:20:36 +0000 (20:20 +0000)]
Revert "fix check_ports_exist_on_l3agent in no subnet case"

This reverts commit e99f6e00cfd397bb74d44c9462dfcfa545dbed8c.

This patch introduces an issue with the Tempest test. Already there was a similar patch that broke the tempest test for DVR.
This patch consistently failed to pass  test_add_list_remove_router_on_l3_agent.
I would recommend to revert this patch until the tempest test is fixed.

Change-Id: Ibd1fcb7f5f3196ebc1ffa01b8d5d7c6e8f1aaaac

9 years agoMerge "fix check_ports_exist_on_l3agent in no subnet case"
Jenkins [Mon, 16 Mar 2015 17:33:24 +0000 (17:33 +0000)]
Merge "fix check_ports_exist_on_l3agent in no subnet case"

9 years agoMove Unix domain socket helpers to a common place
Assaf Muller [Thu, 12 Mar 2015 23:50:24 +0000 (19:50 -0400)]
Move Unix domain socket helpers to a common place

As part of the all consuming report-ha-router-master, a new
per router neutron-keepalived-state-change daemon will alert
the L3 agent on every keepalived state change. Since it will
use the Unix domain socket helpers, and they're currently
located in metadata related places, this patch moves them
to a common location.

Also, the UnixDomainHTTPConnection connection string
may now be overridden.

Partially-Implements: blueprint report-ha-router-master
Change-Id: Ib2cde90059f4e089064b2def2838e9bcf9af30de

9 years agoMove mlnx agent to be under ml2/drivers/mlnx
Moshe Levi [Sun, 8 Mar 2015 13:24:45 +0000 (15:24 +0200)]
Move mlnx agent to be under ml2/drivers/mlnx

* move the mlnx agent to be under ml2/drivers/mlnx
* update the main entry point to be under cmd
* remove unused vnic_type parameter in agent config

Partially-implements: blueprint core-vendor-decomposition

Change-Id: Ibbb99de3124d5d81bbccbc06b33ce32b19c1daef

9 years agoMerge "Reduce db calls count in get_devices_details_list"
Jenkins [Mon, 16 Mar 2015 08:40:37 +0000 (08:40 +0000)]
Merge "Reduce db calls count in get_devices_details_list"

9 years agoMerge "portsecurity_db: Fix a usage of is_attr_set"
Jenkins [Sun, 15 Mar 2015 03:56:48 +0000 (03:56 +0000)]
Merge "portsecurity_db: Fix a usage of is_attr_set"

9 years agoMerge "Update api tests from tempest"
Jenkins [Sat, 14 Mar 2015 17:37:25 +0000 (17:37 +0000)]
Merge "Update api tests from tempest"

9 years agoPrevent updating mac address of bound port
ChuckC [Mon, 9 Mar 2015 00:51:09 +0000 (17:51 -0700)]
Prevent updating mac address of bound port

Currently, a port's mac address can be updated even if it is bound.
This fixes the _check_mac_update_allowed() call to pass just port update
attributes rather than the entire payload and fills in missing testing.

Change-Id: Iee8492e9b4fcdb07eb438eb6f5958d7addeb3d8f
Closes-bug: #1429672

9 years agoMerge "Brocade vendor code decomposition from neutron repo."
Jenkins [Fri, 13 Mar 2015 23:44:43 +0000 (23:44 +0000)]
Merge "Brocade vendor code decomposition from neutron repo."

9 years agoMerge "Add rootwrap daemon mode support"
Jenkins [Fri, 13 Mar 2015 23:30:35 +0000 (23:30 +0000)]
Merge "Add rootwrap daemon mode support"

9 years agoMerge "Set TEMPEST_CONFIG_DIR in the api tox env"
Jenkins [Fri, 13 Mar 2015 23:11:34 +0000 (23:11 +0000)]
Merge "Set TEMPEST_CONFIG_DIR in the api tox env"

9 years agoMerge "Remove vendor entry point"
Jenkins [Fri, 13 Mar 2015 23:11:19 +0000 (23:11 +0000)]
Merge "Remove vendor entry point"

9 years agoMerge "ML2 cisco_nexus MD: sync config and models with vendor repo"
Jenkins [Fri, 13 Mar 2015 23:08:28 +0000 (23:08 +0000)]
Merge "ML2 cisco_nexus MD: sync config and models with vendor repo"

9 years agoMerge "Move internal port processing to router classes"
Jenkins [Fri, 13 Mar 2015 19:11:56 +0000 (19:11 +0000)]
Merge "Move internal port processing to router classes"

9 years agoUpdate api tests from tempest
Maru Newby [Fri, 13 Mar 2015 18:46:40 +0000 (18:46 +0000)]
Update api tests from tempest

This change is the result of running tools/copy_api_tests_from_tempest.sh

Change-Id: Ibcb6d11b3f7ed8b859c69d4c591bf785b0611416

9 years agoSet TEMPEST_CONFIG_DIR in the api tox env
Maru Newby [Fri, 13 Mar 2015 18:17:29 +0000 (18:17 +0000)]
Set TEMPEST_CONFIG_DIR in the api tox env

TEMPEST_CONFIG_DIR needs to be set for the api job to execute
successfully.  Previously this was being set by the gate but local
execution required manually setting the variable.

Change-Id: Ic1364388e812a5fca26f37049242f7d09ee75fef

9 years agoMerge "Refactor _remove_unused_security_group_info"
Jenkins [Fri, 13 Mar 2015 17:58:55 +0000 (17:58 +0000)]
Merge "Refactor _remove_unused_security_group_info"

9 years agoRemove vendor entry point
Henry Gessau [Fri, 13 Mar 2015 17:18:24 +0000 (13:18 -0400)]
Remove vendor entry point

Remove entry point pointing to external vendor package.
This console script entry point already exists in the vendor repo.

Change-Id: Ib85acffc155ae6b49477f90d06346269330220b5
Closes-bug: #1431627

9 years agoReduce db calls count in get_devices_details_list
Sergey Belous [Mon, 9 Feb 2015 16:38:05 +0000 (19:38 +0300)]
Reduce db calls count in get_devices_details_list

Each Neutron agent will impose db calls to Neutron Server
to query devices, port and networks.
Network caching is added to reduce the number
of db calls on get_devices_details_list.
Added unit tests for the check caching.

Change-Id: I933dfe9b020b15b39bc932e62d599c5d654347e1
Closes-Bug: #1370361

9 years agoMove internal port processing to router classes
Carl Baldwin [Tue, 10 Feb 2015 05:17:51 +0000 (05:17 +0000)]
Move internal port processing to router classes

Change-Id: I38b18f6d24c788c96b2d13ccca5d2e9a7a4fcdeb
Partially-Implements: bp/restructure-l3-agent

9 years agoBrocade vendor code decomposition from neutron repo.
Shiv Haris [Tue, 3 Feb 2015 01:58:53 +0000 (17:58 -0800)]
Brocade vendor code decomposition from neutron repo.

Brocade code decomposition of VDX mechanism driver,
includes moving out the driver and unit tests. Left
behind are the DB model for migration and config

Closes bug: #1427793

Change-Id: I3b06a1800cce1ddbb87c6ebd7981e3f249df5060

9 years agoMerge "Fix incorrect comments"
Jenkins [Fri, 13 Mar 2015 14:18:22 +0000 (14:18 +0000)]
Merge "Fix incorrect comments"

9 years agoRefactor _remove_unused_security_group_info
Miguel Angel Ajo [Tue, 3 Feb 2015 13:35:40 +0000 (13:35 +0000)]
Refactor _remove_unused_security_group_info

_remove_unused_security_group_info is refactored into smaller
functions, to make this block easier to understand.

Implements blueprint refactor-iptables-firewall-driver

Change-Id: I4107f1a702d059337e7b2d701a5d0372ee2cfe11

9 years agoAdd MTU selection & advertisement settings to Neutron config
Tim Swanson [Fri, 6 Feb 2015 23:49:49 +0000 (18:49 -0500)]
Add MTU selection & advertisement settings to Neutron config

neutron.conf parameter additions in support of MTU selection
and advertisement.  Also, under ML2 group, add an additional
configuration params to optionally set the path and segment
MTU values as well as optionally map physnets to MTU values.

DocImpact

Change-Id: I1be0074ba05d8f9f70bf0f8f5b26b0eb6587fdac
Partially-Implements: blueprint mtu-selection-and-advertisement

9 years agoML2 cisco_nexus MD: sync config and models with vendor repo
Rich Curran [Tue, 10 Mar 2015 14:55:19 +0000 (10:55 -0400)]
ML2 cisco_nexus MD: sync config and models with vendor repo

Updates required to the upstream neutron ML2 cisco nexus MD code to
support stackforge repo changes.

Original development done under cisco-openstack repo. File history for
these changes can be found under the staging/junoplus branch.

Change-Id: Idc9da84cefa4131a84b911f77d99a3b1647103a8
Closes-Bug: 1429879

9 years agoMerge "Break coupling between ML2 and L3 during create/update operations"
Jenkins [Fri, 13 Mar 2015 13:07:21 +0000 (13:07 +0000)]
Merge "Break coupling between ML2 and L3 during create/update operations"

9 years agofix check_ports_exist_on_l3agent in no subnet case
lzklibj [Thu, 26 Feb 2015 05:19:07 +0000 (21:19 -0800)]
fix check_ports_exist_on_l3agent in no subnet case

If no subnets attached to the given router, this check
should return False.

Currently, if no subnets attached to given router, the
following process in this method will fetch all ports
to continue its checking, consider those ports are not
related to the given router, the following checking
should be invalid.

To issue #1378066, after running "router-gateway-clear",
_schedule_router will be triggered, and the invalid
checking will make processing in get_candidates believe
that all l3-agents are valid to schedule this router,
and finally, invalid records are inserted into table
RouterL3AgentBindings.

Closes-Bug: #1378066
Closes-Bug: #1417908
Closes-Bug: #1420032

Change-Id: If96d866c831330cca68a5fe5a0f27f178bbf40a6

9 years agoFix netns-cleanup broken by ProcessMonitor refactor
Miguel Angel Ajo [Wed, 11 Mar 2015 12:23:20 +0000 (12:23 +0000)]
Fix netns-cleanup broken by ProcessMonitor refactor

Change I0da6071037f9728cc20403324e36c32116bcf00d broke the
netns-cleanup script. As the process_monitor parameter
is now mandatory for the dhcp driver.

Change-Id: I69617c67815b71a05a25936c5e7acc7c116c0dd6
Closes-bug: #1430762

9 years agoMerge "Set default of api_workers to number of CPUs"
Jenkins [Fri, 13 Mar 2015 09:25:26 +0000 (09:25 +0000)]
Merge "Set default of api_workers to number of CPUs"

9 years agoMerge "Refactor retry mechanism used in some DB operations"
Jenkins [Fri, 13 Mar 2015 07:54:20 +0000 (07:54 +0000)]
Merge "Refactor retry mechanism used in some DB operations"

9 years agoMerge "Use common agent.linux.utils.ensure_dir method"
Jenkins [Fri, 13 Mar 2015 07:41:38 +0000 (07:41 +0000)]
Merge "Use common agent.linux.utils.ensure_dir method"

9 years agoMerge "Revert "Revert "Remove port from ovsdb after its deletion"""
Jenkins [Fri, 13 Mar 2015 06:26:41 +0000 (06:26 +0000)]
Merge "Revert "Revert "Remove port from ovsdb after its deletion"""

9 years agoMerge "Update contribute.rst with Big Switch decomp"
Jenkins [Fri, 13 Mar 2015 04:47:29 +0000 (04:47 +0000)]
Merge "Update contribute.rst with Big Switch decomp"

9 years agoSet default of api_workers to number of CPUs
Russell Bryant [Tue, 9 Dec 2014 21:59:20 +0000 (14:59 -0700)]
Set default of api_workers to number of CPUs

The current default for api_workers is 0.  This patch changes it to
use the number of CPUs available, which is the default that will
provide best performance.  This is consistent with some other
OpenStack service (Nova and Swift, at least, perhaps others).

Note that devstack is updated in another patch to ensure multiple API
workers is being tested for Neutron the same way it's tested for
several other services:

    https://review.openstack.org/140482

Co-Authored-By: Eugene Nikanorov <enikanorov@mirantis.com>
DocImpact
UpgradeImpact
Change-Id: I4d76baf68b014fc80693f53874734783089abda2

9 years agoRefactor retry mechanism used in some DB operations
Eugene Nikanorov [Thu, 22 Jan 2015 12:54:29 +0000 (15:54 +0300)]
Refactor retry mechanism used in some DB operations

Use oslo_db helper that will allow to restart the whole
transaction in case it needs a certain operation to be repeated.
This is a workaround for the REPEATABLE READ problem where
retrying logic will not work because queries inside a transation
will not see updates made by other transactions.
So, run every attempt in a separate transaction.

Change-Id: I68f9ae8019879725df58f5da2c83bb699a548255
Closes-Bug: #1382064

9 years agoRevert "Revert "Remove port from ovsdb after its deletion""
Kevin Benton [Sun, 1 Mar 2015 09:59:54 +0000 (01:59 -0800)]
Revert "Revert "Remove port from ovsdb after its deletion""

This reverts commit 294019139d575bd7144cfcc229c98c8497bfbf7c.

Change-Id: I7e3a3e063e57fe904f5c6703cfa5704a94fd87a0

9 years agoAdd rootwrap daemon mode support
Terry Wilson [Mon, 23 Feb 2015 20:56:44 +0000 (14:56 -0600)]
Add rootwrap daemon mode support

This patch introduces support for rootwrap daemon mode. It adds
a new config option, AGENT.root_helper_daemon with no default. To
enable, set to something like:

root_helper_daemon = sudo neutron-rootwrap-daemon /etc/neutron/rootwrap.conf

The patch currently assumes that the root_helper_daemon value, and specifically
the rootwrap config, will not change once calls to execute() happen. While it
would not be hard to generate a rootwrap daemon client for each new config, I
couldn't think of a legitimate reason to support it and left it out as YAGNI.

This patch does change the behavior of the addl_env argument to create_process
and execute. Previously, an environment dict would be passed to Popen. If
a root helper was used, this environemnt would actually be passed to 'sudo'
which would filter it before passing it to the underlying command. In the case
of daemon mode, this would cause a problem as the enviornment is filtered by
sudo only once, at daemon startup. Any environment variables added at execute
time would then just be passed directly to the underyling command unfiltered.

oslo.rootwrap 1.6.0 fixes this issue by denying the passing of environment
variables to the daemon altogether. Instead, anything using rootwrap and needing
to pass additional environment variables should define an EnvFilter and run the
command with env var=val cmd. utils.execute/create_process have been modified to
run code in this way (which netns.execute already did).

No code in neutron currently uses both run_as_root=True and addl_env, so this
change does not require any change in code or filters.

DocImpact
Implements: blueprint rootwrap-daemon-mode
Change-Id: I567334bb611253c7b9d830d50c5be308a5153baf

9 years agoBreak coupling between ML2 and L3 during create/update operations
armando-migliaccio [Thu, 5 Feb 2015 16:40:04 +0000 (08:40 -0800)]
Break coupling between ML2 and L3 during create/update operations

This is an initial patch in a series that, by using an event framework,
cleans up the relationship between ML2 and L3, so that they are no longer
tightly coupled. A follow-up will take address the coupling during the
port delete operation.

The newly introduced notification hooks not only benefit the L3 service
plugin, but any other plugin that has an interest in knowing about port
events.

Long term, the notification bits can move in a more 'common' place so that
other plugins can take advantage of them, but as mentioned in a parent patch,
the perestroika is not quite there yet.

Related-blueprint: services-split
Related-blueprint: plugin-interface-perestroika

Change-Id: I6527b1cb53a71a1f68329a7a3b1878094558f8c2

9 years agoMerge "ofagent: Update after networking-ofagent release"
Jenkins [Fri, 13 Mar 2015 01:34:02 +0000 (01:34 +0000)]
Merge "ofagent: Update after networking-ofagent release"

9 years agoMerge "Don't start transaction during floating IP delete"
Jenkins [Fri, 13 Mar 2015 01:31:03 +0000 (01:31 +0000)]
Merge "Don't start transaction during floating IP delete"

9 years agoMerge "Migrate to oslo.log"
Jenkins [Fri, 13 Mar 2015 01:28:48 +0000 (01:28 +0000)]
Merge "Migrate to oslo.log"

9 years agoFix incorrect comments
shihanzhang [Fri, 13 Mar 2015 01:28:29 +0000 (09:28 +0800)]
Fix incorrect comments

some functions already change, so the comments also should change.

Change-Id: Id55a064c53b89df24150130e526e9be39d229f3a

9 years agoMerge "Remove dead code"
Jenkins [Thu, 12 Mar 2015 22:28:16 +0000 (22:28 +0000)]
Merge "Remove dead code"

9 years agoMerge "Fix non-existent self.local_subnets in DvrRouter class"
Jenkins [Thu, 12 Mar 2015 18:24:10 +0000 (18:24 +0000)]
Merge "Fix non-existent self.local_subnets in DvrRouter class"

9 years agoRemove router binding with router-interface-delete
lzklibj [Wed, 11 Mar 2015 13:59:43 +0000 (06:59 -0700)]
Remove router binding with router-interface-delete

When "neutron router-interface-delete ROUTER subnet"
command is executed to delete a router interface, it
should check for dvr ports changing on nodes which
have their l3-agent binded to the router. And if there
is any node has no port related to the router, the
binding to the L3-agent should be removed from the
"RouterL3AgentBindings" table.

This patch fixes the problem mentioned above.

Closes-Bug: #1413630

Change-Id: I9e2b115079fa2c66c98b9c45386d139fdebf63e7

9 years agoRemove dead code
Paul Michali [Wed, 11 Mar 2015 19:38:44 +0000 (15:38 -0400)]
Remove dead code

Since VPNaaS has been updated, the get_snat_ns_name() method
is no longer needed.

Change-Id: Id852614efc5ef20f8dc2c8ed5cd0b97b354e995e
Closes-Bug: #1430967

9 years agoMerge "Return 404 when executing net-list-on-dhcp-agent with invalid agent_id"
Jenkins [Thu, 12 Mar 2015 13:35:58 +0000 (13:35 +0000)]
Merge "Return 404 when executing net-list-on-dhcp-agent with invalid agent_id"

9 years agoUpdate contribute.rst with Big Switch decomp
Kevin Benton [Thu, 12 Mar 2015 11:22:24 +0000 (04:22 -0700)]
Update contribute.rst with Big Switch decomp

Update the status of the Big Switch Networks code split
in the contribute devref.

Partial-implements: blueprint core-vendor-decomposition
Change-Id: I46d762bb637793b51b46a9d7ae88ceef0efffecf

9 years agoMigrate to oslo.log
Ihar Hrachyshka [Thu, 26 Feb 2015 22:26:41 +0000 (23:26 +0100)]
Migrate to oslo.log

It's mostly a matter of changing imports to a new location.

Non-obvious changes needed:
* pass overwrite= argument to oslo_context since oslo.log reads context
  from its thread local store and not local.store from incubator
* don't store context at local.store now that there is no code that
  would consume it
* LOG.deprecated() -> versionutils.report_deprecated_feature()
* dropped LOG.audit check from hacking rule since now the method does
  not exist
* WritableLogger is now located in oslo_log.loggers

Dropped log module from the tree. Also dropped local module that is now
of no use (and obsolete, as per oslo team).

Added versionutils back to openstack-common.conf since now we use the
module directly from neutron code and not just as a dependency of some
other oslo-incubator module.

Note: tempest tests are expected to be broken now, so instead of fixing
all the oslo.log related issues for the subtree in this patch, I only
added TODOs with directions for later fix.

Closes-Bug: #1425013
Change-Id: I310e059a815377579de6bb2aa204de168e72571e

9 years agoMerge "Stop using RPC namespace to unbreak rolling upgrades"
Jenkins [Thu, 12 Mar 2015 09:39:23 +0000 (09:39 +0000)]
Merge "Stop using RPC namespace to unbreak rolling upgrades"

9 years agoFix l3_agentschedulers_db for consistency of code
Hirofumi Ichihara [Thu, 12 Mar 2015 09:26:57 +0000 (18:26 +0900)]
Fix l3_agentschedulers_db for consistency of code

Fix for consistency between l3_agentschedulers_db and agentschedulers_db.

Change-Id: I62d411a3effec5eb3335306298959635768c0999

9 years agoReturn 404 when executing net-list-on-dhcp-agent with invalid agent_id
Hirofumi Ichihara [Wed, 25 Feb 2015 09:02:35 +0000 (18:02 +0900)]
Return 404 when executing net-list-on-dhcp-agent with invalid agent_id

Neutron server returns HTTP code 200 when users execute
net-list-on-dhcp-agent with invalid agent_id.
Users expect HTTP code 404 to be returned.

Change-Id: I41652a9bf4a81835abb6646ea870781472757623
Closes-bug: 1425138

9 years agoofagent: Update after networking-ofagent release
YAMAMOTO Takashi [Wed, 11 Mar 2015 03:23:59 +0000 (12:23 +0900)]
ofagent: Update after networking-ofagent release

Closes-Bug: #1412653
Related: blueprint core-vendor-decomposition
Change-Id: Ibccc46f1d2b944ac12d8765fddd94f01fd89390b

9 years agoUse common agent.linux.utils.ensure_dir method
zengfagao [Mon, 9 Feb 2015 16:17:24 +0000 (08:17 -0800)]
Use common agent.linux.utils.ensure_dir method

We repeated os.makedirs(dir, 0o755) in several places. We should use
common neutron.agent.linux.utils.ensure_dir. Unit tests are also added.

Change-Id: Iaeae5ff7dc6676420c000d6501f69a5997ad4b6c
Closes-bug: 1419042

9 years agoMerge "linuxbridge UT: Mock get_interface_by_ip"
Jenkins [Thu, 12 Mar 2015 03:30:12 +0000 (03:30 +0000)]
Merge "linuxbridge UT: Mock get_interface_by_ip"

9 years agoMerge "Imported Translations from Transifex"
Jenkins [Thu, 12 Mar 2015 03:10:20 +0000 (03:10 +0000)]
Merge "Imported Translations from Transifex"

9 years agoMerge "Arista L3 Service Plugin decomposition"
Jenkins [Thu, 12 Mar 2015 03:09:33 +0000 (03:09 +0000)]
Merge "Arista L3 Service Plugin decomposition"

9 years agoMerge "Add Mellanox decomposition progress to chart"
Jenkins [Thu, 12 Mar 2015 02:33:37 +0000 (02:33 +0000)]
Merge "Add Mellanox decomposition progress to chart"

9 years agoStop using RPC namespace to unbreak rolling upgrades
Assaf Muller [Thu, 12 Mar 2015 02:11:33 +0000 (22:11 -0400)]
Stop using RPC namespace to unbreak rolling upgrades

This is a temporary patch until we get an Oslo messaging
release that supports Targets with multiple namespaces:
https://review.openstack.org/#/c/163673/

Change-Id: I96e01c00991a9d8602ebc89dbad5206b805c67eb
Related-Bug: #1430984

9 years agoMerge "linuxbridge UT: Do not create the same instance in each cases"
Jenkins [Thu, 12 Mar 2015 02:13:07 +0000 (02:13 +0000)]
Merge "linuxbridge UT: Do not create the same instance in each cases"

9 years agoAdd Mellanox decomposition progress to chart
Moshe Levi [Thu, 5 Mar 2015 09:25:00 +0000 (11:25 +0200)]
Add Mellanox decomposition progress to chart

Change-Id: Ib8f0178625d6ecc1d21bd831c84acbe0a5280811
Partially-implements: blueprint core-vendor-decomposition

9 years agoMerge "Add README and requirements.txt for VMware plugins"
Jenkins [Thu, 12 Mar 2015 00:18:14 +0000 (00:18 +0000)]
Merge "Add README and requirements.txt for VMware plugins"

9 years agoArista L3 Service Plugin decomposition
Sukhdev [Fri, 6 Mar 2015 01:28:25 +0000 (17:28 -0800)]
Arista L3 Service Plugin decomposition

Moving back-end drivers of Arista L3
Service Plugin from neutron tree to
stackforge networking-arista.

Change-Id: I0b10ce12bc10fb74c905ec11e64be8da12f341f4
Closes-bug: 1428909
Related-blueprint: core-vendor-decomposition

9 years agoMerge "Raise QuotaResourceUnknown in the quota engine"
Jenkins [Wed, 11 Mar 2015 23:59:21 +0000 (23:59 +0000)]
Merge "Raise QuotaResourceUnknown in the quota engine"

9 years agoMerge "Change linux/ip_lib code to better handle address families"
Jenkins [Wed, 11 Mar 2015 22:54:32 +0000 (22:54 +0000)]
Merge "Change linux/ip_lib code to better handle address families"

9 years agoFix pylint issue with type VS isinstance in event_observers
Assaf Muller [Wed, 11 Mar 2015 15:45:00 +0000 (11:45 -0400)]
Fix pylint issue with type VS isinstance in event_observers

New version of pylint started complaining about the unpythonic
usage of type. This patch fixes the issue. Another patch will
propose to pin the version of pylint.

Change-Id: I5377cf152e62a74f6bf0c4ccc8ce3a563066adab

9 years agoMerge "utils.execute: Add a debug-level log to record stdin"
Jenkins [Wed, 11 Mar 2015 13:41:20 +0000 (13:41 +0000)]
Merge "utils.execute: Add a debug-level log to record stdin"

9 years agoMerge "Added oslo.log dependency"
Jenkins [Wed, 11 Mar 2015 13:28:02 +0000 (13:28 +0000)]
Merge "Added oslo.log dependency"

9 years agoMerge "contribute.rst: Use consistent tags"
Jenkins [Wed, 11 Mar 2015 12:10:40 +0000 (12:10 +0000)]
Merge "contribute.rst: Use consistent tags"

9 years agoRaise QuotaResourceUnknown in the quota engine
Salvatore Orlando [Tue, 10 Mar 2015 20:37:07 +0000 (13:37 -0700)]
Raise QuotaResourceUnknown in the quota engine

This patch lets the quota engine verify whether it manages a resource
for which a limit is being checked.

So far this check has been delegated to the drivers. This is
conceptually wrong and also lead to code duplication.

Unit tests and some docstrings are also fixed accordingly as a
part of this patch.

Closes-Bug: #1430519
Related to blueprint better-quotas

Change-Id: If1467881f13e30afa53a23b904f8eae5c7264834

9 years agoutils.execute: Add a debug-level log to record stdin
YAMAMOTO Takashi [Wed, 11 Mar 2015 05:33:28 +0000 (14:33 +0900)]
utils.execute: Add a debug-level log to record stdin

It's important to record stdin than it used to be because
the recent versions of ovs_lib passes flow strings to
ovs-ofctl command via stdin.

Change-Id: I3b3d5742076e05a3d4ebf5adc26356742b2928e4

9 years agoMerge "Add proccess monitor to keepalived"
Jenkins [Wed, 11 Mar 2015 08:36:57 +0000 (08:36 +0000)]
Merge "Add proccess monitor to keepalived"

9 years agoMerge "Prevent calling waitall() inside a GreenPool's greenthread"
Jenkins [Wed, 11 Mar 2015 08:10:54 +0000 (08:10 +0000)]
Merge "Prevent calling waitall() inside a GreenPool's greenthread"

9 years agoImported Translations from Transifex
OpenStack Proposal Bot [Wed, 11 Mar 2015 06:14:01 +0000 (06:14 +0000)]
Imported Translations from Transifex

For more information about this automatic import see:
https://wiki.openstack.org/wiki/Translations/Infrastructure

Change-Id: Idf397a2c4ffca0468f9f93a4efc11d63a254fd96

9 years agoMerge "FIP debug messages"
Jenkins [Wed, 11 Mar 2015 04:52:13 +0000 (04:52 +0000)]
Merge "FIP debug messages"

9 years agoMerge "ofagent: Have a thin driver module"
Jenkins [Wed, 11 Mar 2015 03:21:21 +0000 (03:21 +0000)]
Merge "ofagent: Have a thin driver module"

9 years agocontribute.rst: Use consistent tags
YAMAMOTO Takashi [Wed, 11 Mar 2015 01:44:18 +0000 (10:44 +0900)]
contribute.rst: Use consistent tags

Related: blueprint core-vendor-decomposition
Change-Id: I7a6d6d96cfe58f52477b091e4b484ddc19cb4fbb

9 years agoAdd README and requirements.txt for VMware plugins
Salvatore Orlando [Wed, 11 Mar 2015 00:41:53 +0000 (17:41 -0700)]
Add README and requirements.txt for VMware plugins

These files were forgotten in the decomposition patch.

Related to Blueprint core-vendor-decomposition

Change-Id: Ibd7bba5a287b455c4fcb8252e13ce277c12d44cb

9 years agoFix non-existent self.local_subnets in DvrRouter class
Assaf Muller [Fri, 20 Feb 2015 00:59:21 +0000 (19:59 -0500)]
Fix non-existent self.local_subnets in DvrRouter class

Found via the pylint no-member check.

Co-Authored-By: michael.smith6@hp.com
Closes-Bug: #1423777
Change-Id: I280948300810f199988a943aeb6577243423a4e7

9 years agoMerge "tests: initialize policy in BaseTestCase"
Jenkins [Tue, 10 Mar 2015 22:12:22 +0000 (22:12 +0000)]
Merge "tests: initialize policy in BaseTestCase"

9 years agoMerge "policy: don't hack around oslo.config path search algorithm"
Jenkins [Tue, 10 Mar 2015 22:12:06 +0000 (22:12 +0000)]
Merge "policy: don't hack around oslo.config path search algorithm"

9 years agoAdded oslo.log dependency
Ihar Hrachyshka [Tue, 10 Mar 2015 21:57:58 +0000 (22:57 +0100)]
Added oslo.log dependency

This is needed for vendor libraries out of tree to start switching their
code to oslo.log logging interface. Hopefully, they will be able to run
against neutron core using neutron.openstack.common.log while executing
oslo_log.log.* calls.

Change-Id: I666389efe65526bda66c5f70170687638d1a5038
Related-Bug: #1425013

9 years agoMerge "Don't notify dead DHCP agent of removed networks"
Jenkins [Tue, 10 Mar 2015 20:57:10 +0000 (20:57 +0000)]
Merge "Don't notify dead DHCP agent of removed networks"

9 years agoMerge "Imported Translations from Transifex"
Jenkins [Tue, 10 Mar 2015 17:42:09 +0000 (17:42 +0000)]
Merge "Imported Translations from Transifex"

9 years agoMerge "Update default tox envlist to match voting gate checks"
Jenkins [Tue, 10 Mar 2015 15:55:50 +0000 (15:55 +0000)]
Merge "Update default tox envlist to match voting gate checks"

9 years agoMerge "Fix wrong log output in neutron/neutron/agent/linux/dhcp.py"
Jenkins [Tue, 10 Mar 2015 15:15:09 +0000 (15:15 +0000)]
Merge "Fix wrong log output in neutron/neutron/agent/linux/dhcp.py"