]> review.fuel-infra Code Review - openstack-build/neutron-build.git/log
openstack-build/neutron-build.git
11 years agoReference DEFAULT_SERVICETYPE OptGoup names in lowercase
Zhongyue Luo [Sat, 18 May 2013 13:52:15 +0000 (21:52 +0800)]
Reference DEFAULT_SERVICETYPE OptGoup names in lowercase

To have consistent option group name format across projects,
oslo.config now normalizes all non lowercase group names to lowercase
when loading conf files.
Thus conf files are backwards compatible but option group references
in the code must now use lowercase before we update oslo.config.

This patch replaces all 'DEFAULT_SERVICETYPE' references to
'default_servicetype'

Change-Id: Iccab055c4664e11c9618706e594416194065048b

11 years agoMerge "Docstrings formatted according to pep257"
Jenkins [Fri, 17 May 2013 17:44:57 +0000 (17:44 +0000)]
Merge "Docstrings formatted according to pep257"

11 years agoMove to pbr.
Monty Taylor [Mon, 29 Apr 2013 04:41:09 +0000 (21:41 -0700)]
Move to pbr.

Closes bug 1179007

Change-Id: I3666e373389da6ad9a21a195a42918d4dec50cb5

11 years agoDocstrings formatted according to pep257
Sergey Skripnick [Fri, 17 May 2013 15:18:35 +0000 (18:18 +0300)]
Docstrings formatted according to pep257

Bug #1020184

Removed H404 from PEP8 ignore list.

Change-Id: Iabc75281c5d92c5b399c24c9b65aca139f204b0a

11 years agoMerge "Docstrings formatted according to pep257"
Jenkins [Fri, 17 May 2013 14:10:37 +0000 (14:10 +0000)]
Merge "Docstrings formatted according to pep257"

11 years agoDocstrings formatted according to pep257
Sergey Skripnick [Wed, 15 May 2013 07:48:33 +0000 (10:48 +0300)]
Docstrings formatted according to pep257

Bug #1020184

quantum/*

Change-Id: I771e0f0d6121b7c03cecd82583e9a6c1915f891d

11 years agoImported Translations from Transifex
OpenStack Jenkins [Fri, 17 May 2013 12:11:58 +0000 (12:11 +0000)]
Imported Translations from Transifex

Change-Id: I85fd554f5181991c77b415764ebc6e032ef83fac

11 years agoMerge "Add support for dnsmasq version 2.48"
Jenkins [Fri, 17 May 2013 09:00:57 +0000 (09:00 +0000)]
Merge "Add support for dnsmasq version 2.48"

11 years agoMerge "fix reference to tenant id."
Jenkins [Fri, 17 May 2013 07:18:26 +0000 (07:18 +0000)]
Merge "fix reference to tenant id."

11 years agoImported Translations from Transifex
OpenStack Jenkins [Thu, 16 May 2013 12:12:08 +0000 (12:12 +0000)]
Imported Translations from Transifex

Change-Id: Ia41af63051b2a8cc7aa898a44d5fb44905e2e448

11 years agofix reference to tenant id.
fujioka yuuichi [Tue, 14 May 2013 00:01:17 +0000 (09:01 +0900)]
fix reference to tenant id.

Administrator can create resource, even if the tenant of resource is
different from the one of authentication. For example, administrator
can operate 'quantum net-create' command with different tenant
between the authentication tenant(--os-tenant-name) and --tenant-id.

In this case, quota cannot be restricted with the resource tenant,
because it is restricted with --os-tenant-name.

This patch fixes this problem.

Fixes: bug #1179729
Change-Id: I8ce893bb583d52f81c661082372d725bebf9c1be

11 years agoImprove ovs and linuxbridge agents rpc exception handling
Oleg Bondarev [Thu, 21 Mar 2013 14:18:09 +0000 (18:18 +0400)]
Improve ovs and linuxbridge agents rpc exception handling

Fixes bug 1053497

Change-Id: Id946542b204cf75586224f3749b0007cc2d6b3a7

11 years agoMerge "Add negative UT cases for subnet/GW create/update"
Jenkins [Thu, 16 May 2013 06:50:13 +0000 (06:50 +0000)]
Merge "Add negative UT cases for subnet/GW create/update"

11 years agoMerge "relax amqplib and kombu version requirements"
Jenkins [Thu, 16 May 2013 06:49:27 +0000 (06:49 +0000)]
Merge "relax amqplib and kombu version requirements"

11 years agoMerge "Fix logic in test_db_loadbalancer"
Jenkins [Thu, 16 May 2013 06:11:28 +0000 (06:11 +0000)]
Merge "Fix logic in test_db_loadbalancer"

11 years agoMerge "Fix linuxbridge RPC message format"
Jenkins [Thu, 16 May 2013 06:06:39 +0000 (06:06 +0000)]
Merge "Fix linuxbridge RPC message format"

11 years agoMerge "Remove calls to policy.check from plugin logic"
Jenkins [Thu, 16 May 2013 02:09:26 +0000 (02:09 +0000)]
Merge "Remove calls to policy.check from plugin logic"

11 years agoFix linuxbridge RPC message format
Bob Kukura [Tue, 14 May 2013 21:35:08 +0000 (17:35 -0400)]
Fix linuxbridge RPC message format

The linuxbridge, openvswitch, and hyperv plugins all use the same
basic RPC interface between their plugins and L2 agents. But the
attributes describing a virtual network passed from the plugin to the
agent over this interface differed for historical reasons. The
openvswitch and hyperv plugins each pass network_type,
physical_network, and segmentation_id attributes, whereas the
linuxbridge plugin previously passed vlan_id and physical_network
attributes, using special vlan_id values to indicate flat or local
network types.

This patch changes the linuxbridge plugin to pass network_type and
segmentation_id attributes instead of the vlan_id attribute, bringing
its message formats into sync with the other plugins. RPC
compatibility is required for blueprint modular-l2 so that the ml2
plugin can work with all three existing types of L2 agent. This RPC
message format change is also required for blueprint
vxlan-linuxbridge.

Unlike the vxlan-linuxbridge patch on which it is based (see
https://review.openstack.org/#/c/26516/), this patch does not bump the
linuxbridge RPC version number, as the ml2 plugin will require all
three L2 agents to use the same RPC version. Instead, the updated
linuxbridge agent maintains compatibility with old linuxbridge plugins
by accepting either the old or new attributes. There is also a
configuration option, currently turned on by default, to enable the
updated linuxbridge plugin to pass the vlan_id attribute expected by
old linuxbridge agents along with the new attributes. These message
format compatibility mechanisms are intended to aid during upgrades,
and can eventually be removed.

Change-Id: I7cc1c9f96b09db6bab2c7d9f2b30b79fa4dab919

11 years agorelax amqplib and kombu version requirements
YAMAMOTO Takashi [Wed, 8 May 2013 00:48:07 +0000 (09:48 +0900)]
relax amqplib and kombu version requirements

as nova did while ago.

this particular version of kombu doesn't work if newer msgpack happens
to be installed on the system.

bug 1178512

Change-Id: I2749623036723b5a772b1c4c01dc07437e421925

11 years agoImported Translations from Transifex
OpenStack Jenkins [Wed, 15 May 2013 12:12:08 +0000 (12:12 +0000)]
Imported Translations from Transifex

Change-Id: I0ac9882823e4e0d5bc8b2427715389d4fa847ced

11 years agoFix logic in test_db_loadbalancer
Eugene Nikanorov [Tue, 14 May 2013 21:14:30 +0000 (01:14 +0400)]
Fix logic in test_db_loadbalancer

Fix code to check HTTP error code before attempt to deserialize body

fixes bug 1180113

Change-Id: I1d75e0fe739dfa70ef415602e669319797af026f

11 years agoAdd negative UT cases for subnet/GW create/update
Paul Michali [Fri, 10 May 2013 13:17:24 +0000 (06:17 -0700)]
Add negative UT cases for subnet/GW create/update

When force_gateway_on_subnet is configured, ensure
that a GW with IP same as subnet, and BCAST GW IP
are rejected during subnet create. For subnet update,
ensure GW outside of subnet is rejected.

bug 1178675

Change-Id: Ice58f7e1be7966b247c165e52807405401e5a4ea

11 years agoRemove calls to policy.check from plugin logic
Salvatore Orlando [Thu, 2 May 2013 17:39:30 +0000 (19:39 +0200)]
Remove calls to policy.check from plugin logic

Blueprint make-authz-orthogonal

This patch implements part #3 of this blueprint, according to its
specification.
It does so by allowing the view generator in the API layer to strip
off fields which do not satify authorization policies.
Also, some checks in unit tests for plugins relied on the
capability of the plugin to invoke directly the policy engine.
This checks have been removed and replaced by equivalent unit tests.
Finally, this patch required changes to most test cases for API
extensions in order to ensure the resource attribute map was
updated with the extension's attributes

Change-Id: I1ef94a8a628d34697254b68d7a539bd1c636876e

11 years agoMerge "Allow ports to be created on networks that do not exist in NVP"
Jenkins [Tue, 14 May 2013 18:48:28 +0000 (18:48 +0000)]
Merge "Allow ports to be created on networks that do not exist in NVP"

11 years agoMerge "get_security_groups now creates default security group"
Jenkins [Tue, 14 May 2013 18:43:24 +0000 (18:43 +0000)]
Merge "get_security_groups now creates default security group"

11 years agoMerge "Fix ./run_tests.sh --pep8"
Jenkins [Tue, 14 May 2013 18:25:29 +0000 (18:25 +0000)]
Merge "Fix ./run_tests.sh --pep8"

11 years agoAdd support for dnsmasq version 2.48
Gary Kotton [Tue, 14 May 2013 13:20:44 +0000 (13:20 +0000)]
Add support for dnsmasq version 2.48

Following the bug fix for bug 1170793 we are able to add
in support for dnsmasq versions that do not support tags.

2.48 is the version shipped in RHEL 6.4

Change-Id: Ia7d2b1c0adb477159ce146bcd4323d4b2795bff5

11 years agoImported Translations from Transifex
OpenStack Jenkins [Tue, 14 May 2013 12:12:05 +0000 (12:12 +0000)]
Imported Translations from Transifex

Change-Id: Ie5ff2a1f033c57b690b3a71be9f93b32d8db0b73

11 years agoMerge "Add ability for core plugin to implement advanced services"
Jenkins [Tue, 14 May 2013 08:12:13 +0000 (08:12 +0000)]
Merge "Add ability for core plugin to implement advanced services"

11 years agoAdd missing unit test for NVP metadata_mode option
Aaron Rosen [Tue, 14 May 2013 04:02:00 +0000 (21:02 -0700)]
Add missing unit test for NVP metadata_mode option

Note: I didn't squash this change in my patch that made the default
transport type configurable because this change was not in grizzly
and we do not want to backport it.

Change-Id: Ie71e5e56d1bed219caba74799cc2310ace987b8f

11 years agomake default transport type configurable nvp
Aaron Rosen [Tue, 14 May 2013 02:48:27 +0000 (19:48 -0700)]
make default transport type configurable nvp

Fixes bug 1179759

Change-Id: I8f644f2bc0d5d144f52e5ed0bd2e991503581ad2

11 years agoFix ./run_tests.sh --pep8
Akihiro MOTOKI [Tue, 14 May 2013 02:27:04 +0000 (11:27 +0900)]
Fix ./run_tests.sh --pep8

Create a common script to call flake8 to share flake8 options and
make tox and run_tests.sh use this script.

Fixes bug: 1179331

Change-Id: I92dc54fa3f4bb22aa39bde226b6d769088f9a2e3

11 years agoAllow ports to be created on networks that do not exist in NVP
Aaron Rosen [Mon, 13 May 2013 00:25:04 +0000 (17:25 -0700)]
Allow ports to be created on networks that do not exist in NVP

If a network exists in the quantum database but not in NVP we should allow
someone to create a port on this network and set the status to ERROR. The
reason for this is if one deletes a network from NVP and when the dhcp agent
goes to create it's dhcp port on this network an error will be raised to the
agent and it will enter a constant state of resyncing.

This patch also adds a unit test for update_port() for the same situation.

Fixes bug 1179327

Change-Id: Ie77fc48d11644b820c0cc3b3fa341856e36f8511

11 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Mon, 13 May 2013 14:42:01 +0000 (14:42 +0000)]
Merge "Imported Translations from Transifex"

11 years agoMerge "add db to save host for port"
Jenkins [Mon, 13 May 2013 13:50:09 +0000 (13:50 +0000)]
Merge "add db to save host for port"

11 years agoadd db to save host for port
gongysh [Thu, 21 Mar 2013 06:34:19 +0000 (14:34 +0800)]
add db to save host for port

blueprint portbinding-ex-db

related patch in nova:
https://review.openstack.org/#/c/21141/

Only OVS and linux bridge plugins now support this feature.

Change-Id: I42d9bc59130e2758dd6a221d8953d63ec10e1f3c

11 years agoblueprint mellanox-quantum-plugin
Irena Berezovsky [Mon, 11 Mar 2013 10:10:15 +0000 (12:10 +0200)]
blueprint mellanox-quantum-plugin

Implements Mellanox Quantum plugin.
This plugin implements Quantum v2 APIs with support for Mellanox embedded
switch functionality as part of the VPI (Ethernet/InfiniBand) HCA.

Change-Id: I22907dfec5b6cb8f6ad8c3b6e390abc4f8e0ac10

11 years agoMerge "Fix testcase 'test_create_subnet_with_two_host_routes' failed"
Jenkins [Mon, 13 May 2013 12:30:12 +0000 (12:30 +0000)]
Merge "Fix testcase 'test_create_subnet_with_two_host_routes' failed"

11 years agoImported Translations from Transifex
OpenStack Jenkins [Mon, 13 May 2013 12:12:13 +0000 (12:12 +0000)]
Imported Translations from Transifex

Change-Id: If88aa74ce88cbcf89f60174206907bfb5c2b16f3

11 years agoFix testcase 'test_create_subnet_with_two_host_routes' failed
He Jie Xu [Mon, 13 May 2013 02:43:38 +0000 (10:43 +0800)]
Fix testcase 'test_create_subnet_with_two_host_routes' failed

Fix bug 1179348

Change-Id: I0cd5d303da0f394cec173aeee52efcd337282c94

11 years agoAdd ability for core plugin to implement advanced services
Eugene Nikanorov [Fri, 3 May 2013 14:57:00 +0000 (18:57 +0400)]
Add ability for core plugin to implement advanced services

implements blueprint api-core-for-services

Add check for supported_extension_aliases in QuantumManager.
If core plugin supports certain service extension, then core plugin is
stored in service_plugins for the service type of this extension
so corresponding extension could set it as a controller for REST calls.

Change-Id: I9c883491f6f13770371e3444e7c17bd2164a7c07

11 years agoMerge "Fix invalid status code assertion after handle expected exception"
Jenkins [Mon, 13 May 2013 07:48:17 +0000 (07:48 +0000)]
Merge "Fix invalid status code assertion after handle expected exception"

11 years agoMerge "Fix testcase 'TestPortsV2.test_range_allocation' failed randomly"
Jenkins [Mon, 13 May 2013 07:48:14 +0000 (07:48 +0000)]
Merge "Fix testcase 'TestPortsV2.test_range_allocation' failed randomly"

11 years agoMerge "Add a configuration item to disable metadata proxy"
Jenkins [Mon, 13 May 2013 06:01:16 +0000 (06:01 +0000)]
Merge "Add a configuration item to disable metadata proxy"

11 years agoFix testcase 'TestPortsV2.test_range_allocation' failed randomly
He Jie Xu [Mon, 13 May 2013 05:00:15 +0000 (13:00 +0800)]
Fix testcase 'TestPortsV2.test_range_allocation' failed randomly

Fix bug 1179370

Change-Id: Id5645546c98549c9d7cf68359e0f6fa128ad84b7

11 years agoFix invalid status code assertion after handle expected exception
He Jie Xu [Mon, 13 May 2013 02:26:09 +0000 (10:26 +0800)]
Fix invalid status code assertion after handle expected exception

Fix bug 1179350

Change-Id: I88b511206d97f2ad607a7889c61df69a8638ced3

11 years agoMerge "Update flake8 pinned versions."
Jenkins [Sun, 12 May 2013 18:18:12 +0000 (18:18 +0000)]
Merge "Update flake8 pinned versions."

11 years agoImported Translations from Transifex
OpenStack Jenkins [Sun, 12 May 2013 12:12:00 +0000 (12:12 +0000)]
Imported Translations from Transifex

Change-Id: Ic35873cb4e370a1ab5a1cc880752e261afe93621

11 years agoUpdate flake8 pinned versions.
Monty Taylor [Thu, 2 May 2013 14:33:59 +0000 (10:33 -0400)]
Update flake8 pinned versions.

We've learned this lesson the hard way in the past...

Change-Id: I02c75853234c16f3666185998202431cc7a4f2eb

11 years agoImported Translations from Transifex
OpenStack Jenkins [Sat, 11 May 2013 12:11:57 +0000 (12:11 +0000)]
Imported Translations from Transifex

Change-Id: I04fdf1c00edf8a0ac9bc1c91223cc5caef105b51

11 years agoDo not require sudo/rootwrap to check for dnsmasq version
armando-migliaccio [Fri, 10 May 2013 20:10:02 +0000 (13:10 -0700)]
Do not require sudo/rootwrap to check for dnsmasq version

The dnsmasq version check does not need root privileges
to run as with low privs it works just fine. As a side
effect, the use of the rootwrapper was causing unit tests
to hung because the execute call in check_version was not
being stubbed out. Weirdly enough this wasn't caught in
a previous Gerrit run; there must be a passwordless sudo
lurking around somewhere in the Gerrit infrastructure.

Fixes bug #1178800

Change-Id: I4d0bd218768eec2439d3907587682ff35884a262

11 years agoMerge "Change Daemon class to better match process command lines."
Jenkins [Fri, 10 May 2013 19:19:03 +0000 (19:19 +0000)]
Merge "Change Daemon class to better match process command lines."

11 years agoMerge "Fix usage of SQLAlchemy Query.first() method"
Jenkins [Fri, 10 May 2013 19:19:00 +0000 (19:19 +0000)]
Merge "Fix usage of SQLAlchemy Query.first() method"

11 years agoMerge "Fix usage of NexusPortBindingNotFound exception"
Jenkins [Fri, 10 May 2013 19:08:27 +0000 (19:08 +0000)]
Merge "Fix usage of NexusPortBindingNotFound exception"

11 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Fri, 10 May 2013 15:03:57 +0000 (15:03 +0000)]
Merge "Imported Translations from Transifex"

11 years agoMerge "Log a warning if dnsmasq version is below the minimum required"
Jenkins [Fri, 10 May 2013 12:40:37 +0000 (12:40 +0000)]
Merge "Log a warning if dnsmasq version is below the minimum required"

11 years agoImported Translations from Transifex
OpenStack Jenkins [Fri, 10 May 2013 12:11:59 +0000 (12:11 +0000)]
Imported Translations from Transifex

Change-Id: Iabc0688a9d195eb85bbc7d134b72084839bd7d49

11 years agoAdd kill-metadata rootwrap filter to support RHEL.
Maru Newby [Thu, 9 May 2013 21:04:44 +0000 (21:04 +0000)]
Add kill-metadata rootwrap filter to support RHEL.

 * Fixes bug 1178419

Change-Id: I9c1cf0d19d1134ec3b85c905c6c8bb7145847ce7

11 years agoMerge "Create a common function for method _parse_network_vlan_ranges used by plugins."
Jenkins [Thu, 9 May 2013 19:38:30 +0000 (19:38 +0000)]
Merge "Create a common function for method _parse_network_vlan_ranges used by plugins."

11 years agoMerge "Fetch routers ports for metadata access from DB"
Jenkins [Thu, 9 May 2013 19:08:56 +0000 (19:08 +0000)]
Merge "Fetch routers ports for metadata access from DB"

11 years agoMerge "Improve checking of return values for functions in linuxbridge agent plugin"
Jenkins [Thu, 9 May 2013 19:08:53 +0000 (19:08 +0000)]
Merge "Improve checking of return values for functions in linuxbridge agent plugin"

11 years agoMerge "in dhcp_agent, always use quantum.conf root_helper"
Jenkins [Thu, 9 May 2013 16:45:05 +0000 (16:45 +0000)]
Merge "in dhcp_agent, always use quantum.conf root_helper"

11 years agoCreate a common function for method _parse_network_vlan_ranges used
Henry Gessau [Thu, 9 May 2013 04:28:39 +0000 (00:28 -0400)]
Create a common function for method _parse_network_vlan_ranges used
by plugins.

The _parse_network_vlan_ranges method does the same thing for the
linuxbridge, ovs, and hyperv plugins. Create a common function for
the plugins to use instead. This paves the way for improving vlan
range verification (see #1169266) in one place.

Fixes Bug #1177428

Change-Id: Ie8c20807e9146dd9c8bc011dd3a4dc10ec871e0b

11 years agoImported Translations from Transifex
OpenStack Jenkins [Thu, 9 May 2013 12:11:57 +0000 (12:11 +0000)]
Imported Translations from Transifex

Change-Id: I7149051e67d4a9e2932b04b066b7e06983a1dde0

11 years agoDon't run metadata proxy when it is not needed
gongysh [Tue, 9 Apr 2013 01:11:32 +0000 (09:11 +0800)]
Don't run metadata proxy when it is not needed

Bug #1159015

Change-Id: I6063e75525a2a727d063bb1745c897ac8c4ba3e8

11 years agoAdd a configuration item to disable metadata proxy
gongysh [Tue, 9 Apr 2013 02:33:43 +0000 (10:33 +0800)]
Add a configuration item to disable metadata proxy

Bug #1166543

Change-Id: If7aee8d79b7ca275f89cf9299eac1f76d5500fcc

11 years agoin dhcp_agent, always use quantum.conf root_helper
Peter Feiner [Wed, 8 May 2013 21:53:21 +0000 (17:53 -0400)]
in dhcp_agent, always use quantum.conf root_helper

Fixes bug #1178003.

For the most part, the dhcp agent uses the root_helper setting from the [AGENT]
section of /etc/quantum/quantum.conf. However, in a couple of spots, the
root_helper setting from the [DEFAULT] section of /etc/quantum/dhcp_agent.ini
was being used.

Change-Id: Id2f3140374a705cf7a0d2a784e4f321cc54f602e

11 years agoFix usage of SQLAlchemy Query.first() method
Roman Podolyaka [Wed, 8 May 2013 15:34:51 +0000 (18:34 +0300)]
Fix usage of SQLAlchemy Query.first() method

Query.first() doesn't raise the NoResultFound exception
if no result is found but rather returns None, so wrapping
of Query.first() call into a try/except NoResultFound block
is useless.

Fixes bug 1177842.

Change-Id: I0bd0e6d8299734b485dd1a1ac36bf6c295fd8932

11 years agoFix usage of NexusPortBindingNotFound exception
Roman Podolyaka [Tue, 7 May 2013 18:57:53 +0000 (21:57 +0300)]
Fix usage of NexusPortBindingNotFound exception

Currently the required keyword argument (port_id)
is not passed when the exception is raised. In fact
this exception has never been raised before due to
another bug (1173131) so this change also has to
ensure it doesn't break any existing code using
functions which can possibly raise this exception.

Fixes bug 1174323.

Change-Id: I81f0b0def7db163fb0fbb5e03be511113c8d0be5

11 years agoMerge " Copy the RHEL6 eventlet workaround from Oslo"
Jenkins [Wed, 8 May 2013 19:03:30 +0000 (19:03 +0000)]
Merge " Copy the RHEL6 eventlet workaround from Oslo"

11 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Wed, 8 May 2013 19:03:27 +0000 (19:03 +0000)]
Merge "Imported Translations from Transifex"

11 years agoImported Translations from Transifex
OpenStack Jenkins [Wed, 8 May 2013 12:11:56 +0000 (12:11 +0000)]
Imported Translations from Transifex

Change-Id: Ia061d1b4580b4363a734b571f25755e50feab119

11 years agoAvoid extra queries when retrieving routers
Eugene Nikanorov [Mon, 6 May 2013 11:28:09 +0000 (15:28 +0400)]
Avoid extra queries when retrieving routers

fixes bug 1160333

Instead of making N additional sql requests,
use relationship and joined query.

Change-Id: I8f650691916a252bf2a525343bfa0521ff6fbe43

11 years agoMerge "Import recent rootwrap features in local rootwrap"
Jenkins [Wed, 8 May 2013 15:18:26 +0000 (15:18 +0000)]
Merge "Import recent rootwrap features in local rootwrap"

11 years agoLog a warning if dnsmasq version is below the minimum required
armando-migliaccio [Wed, 8 May 2013 00:10:22 +0000 (17:10 -0700)]
Log a warning if dnsmasq version is below the minimum required

It has been noted that older versions of dnsmasq may have unexpected
behavior, so this patch introduces a check on dnsmasq version; if
the minimum version is not met, a warning is logged. This is less
invasive than raising an Exception and abort the dhcp agent, even
though this also seems like a perfectly acceptable behavior.

Fixes bug 1170793

Change-Id: Idd91c3753fb05f223ed0e3c53ad692ee65ea4905

11 years agoChange Daemon class to better match process command lines.
Brian Haley [Tue, 7 May 2013 15:06:29 +0000 (11:06 -0400)]
Change Daemon class to better match process command lines.

Add additional uuid argument Daemon class to help it better
match output from /proc/$id/cmdline to the correct daemon.
If there is a stale pid in the pidfile, and that process has
the same name, then it could match accidentally and not
start the daemon up properly.

Fixes bug 1177416

Change-Id: I1109ca73c539c5e96cbe3dbb55ce68c92013ee10

11 years agoImprove checking of return values for functions in linuxbridge agent plugin
sadasu [Thu, 25 Apr 2013 20:05:22 +0000 (16:05 -0400)]
Improve checking of return values for functions in linuxbridge agent plugin

Fixes bug 1167780

Changed return values for some ensure_* functions to make them more consistent.
Now all ensure_* functions return None on failure and return the entity that was
created within the function when successful. Made changes to the unit tests to
reflect the changed return values.

Change-Id: Ib015ee7cee50bae5d91a4e109e7381519c1e14f7

11 years agoMerge "Log msg for load policy file only if the file is actually loaded"
Jenkins [Tue, 7 May 2013 15:29:00 +0000 (15:29 +0000)]
Merge "Log msg for load policy file only if the file is actually loaded"

11 years agoMerge "Calculate nicira plugin NAT rules order according to CIDR prefix"
Jenkins [Tue, 7 May 2013 15:25:12 +0000 (15:25 +0000)]
Merge "Calculate nicira plugin NAT rules order according to CIDR prefix"

11 years agoMerge "blueprint cisco-plugin-exception-handling"
Jenkins [Tue, 7 May 2013 15:25:09 +0000 (15:25 +0000)]
Merge "blueprint cisco-plugin-exception-handling"

11 years agoMerge "Validate that netaddr does not receive a string with whitespace"
Jenkins [Tue, 7 May 2013 15:25:06 +0000 (15:25 +0000)]
Merge "Validate that netaddr does not receive a string with whitespace"

11 years agoMerge "Update import of oslo's processutils."
Jenkins [Tue, 7 May 2013 15:25:03 +0000 (15:25 +0000)]
Merge "Update import of oslo's processutils."

11 years agoMerge "update-port error if port does not exist in nvp"
Jenkins [Tue, 7 May 2013 15:25:00 +0000 (15:25 +0000)]
Merge "update-port error if port does not exist in nvp"

11 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Tue, 7 May 2013 15:24:58 +0000 (15:24 +0000)]
Merge "Imported Translations from Transifex"

11 years agoImported Translations from Transifex
OpenStack Jenkins [Tue, 7 May 2013 12:11:58 +0000 (12:11 +0000)]
Imported Translations from Transifex

Change-Id: Ieed02d3f78c8073d659d5ed3c085f9b5582415c1

11 years agoValidate that netaddr does not receive a string with whitespace
Gary Kotton [Tue, 7 May 2013 09:58:31 +0000 (09:58 +0000)]
Validate that netaddr does not receive a string with whitespace

Fixes bug 1177277

Change-Id: Ibecaeed3e5918b06e74d8fa68cbe443bcbada7fc

11 years agoImport recent rootwrap features in local rootwrap
Thierry Carrez [Mon, 6 May 2013 15:02:39 +0000 (17:02 +0200)]
Import recent rootwrap features in local rootwrap

Import features developed in oslo-rootwrap during the Grizzly cycle (and
recently in havana) into quantum-rootwrap. This is the first step toward
using the common oslo-rootwrap into Quantum: the goal being to make both
implementations converge, we should avoid making local changes (and push
any required change into oslo-rootwrap instead from now on).

New features include:
- Optional logging (use_syslog)
- Searching for executables in a specified binary path (exec_dirs)
- New path-based PathFilter

Those features required a refactoring in the way executables are matched
and in configuration loading.

Implements bp quantum-rootwrap-new-features

Change-Id: Ia6a2e91c297ade471448dae0964adfd001a46086

11 years agoFix 500 raised on disassociate_floatingips when out of sync
Aaron Rosen [Tue, 7 May 2013 03:21:57 +0000 (20:21 -0700)]
Fix 500 raised on disassociate_floatingips when out of sync

If one deletes NAT rules directly from NVP and not through quantum,
an error will be raised when deleting a port that is associated with
the floating ip. This patch catches the NotFound exception and logs
it so that the port can successfully be deleted.

Fixes bug: 1177176

Change-Id: Ia7d0b94957d0c6b014d242439245b0e4fa9de40d

11 years agoget_security_groups now creates default security group
Aaron Rosen [Tue, 30 Apr 2013 02:49:36 +0000 (19:49 -0700)]
get_security_groups now creates default security group

If one called get_security_groups() previously the default security
group would not be created until the tenant created a network. This
exposed a bug when an admin creates a shared network and a tenant tried
to boot a vm on it without having any networks.

Fixes bug 1171997

Change-Id: I899203424c03353a1ee6567c9ddbaecd7dc25001

11 years agoUpdate import of oslo's processutils.
Michael Still [Tue, 7 May 2013 03:06:09 +0000 (13:06 +1000)]
Update import of oslo's processutils.

Brings processutils inline with the current state of oslo.

Change-Id: I9f34a2d2acc527c438ecb3466d77b2f2775f2e00

11 years agoCalculate nicira plugin NAT rules order according to CIDR prefix
Salvatore Orlando [Mon, 6 May 2013 15:13:15 +0000 (17:13 +0200)]
Calculate nicira plugin NAT rules order according to CIDR prefix

Bug 1176947

Change-Id: Ibe81b9905cacea51d954416588f5c50d6337bbb0

11 years agoLog msg for load policy file only if the file is actually loaded
Salvatore Orlando [Sun, 5 May 2013 15:29:37 +0000 (17:29 +0200)]
Log msg for load policy file only if the file is actually loaded

The Load entry was previousy in init(), whereas it should have
been in _set_rules() which is invoked only when policies are
(re)loaded from the json file.

Change-Id: Ib4ce66569a64fc4be8f5f77d7f503cc93ac0006e

11 years agoFetch routers ports for metadata access from DB
Salvatore Orlando [Mon, 6 May 2013 15:33:44 +0000 (17:33 +0200)]
Fetch routers ports for metadata access from DB

Bug 1176963

There is no need to retrieve the ports from the NVP backend, so
a DB query will be enough.

Change-Id: If3529cc5694434e8cdc9d21a4043f94212146d2d

11 years agoupdate-port error if port does not exist in nvp
Aaron Rosen [Tue, 23 Apr 2013 20:23:17 +0000 (13:23 -0700)]
update-port error if port does not exist in nvp

Previously the NVP plugin would query NVP for the quantum port id that was
stored in the port as a tag in NVP. Later, a look up table was added in order
to directly look up the ID without having to go to NVP. The problem that can
arise is that if a port was created in folsom before this lookup table was
added and then deleted from NVP directly an error will be raised when calling
update_port(). This patch fixes this potential problem.

Fixes bug 1172006

Change-Id: I08c74e305449f7fe32897abf43ceb430c959b02d

11 years agoMerge "Duplicate line in Brocade plugin"
Jenkins [Mon, 6 May 2013 16:03:13 +0000 (16:03 +0000)]
Merge "Duplicate line in Brocade plugin"

11 years agoblueprint cisco-plugin-exception-handling
Dane LeBlanc [Wed, 10 Apr 2013 22:23:37 +0000 (18:23 -0400)]
blueprint cisco-plugin-exception-handling

Improvements to exception handling in the Cisco plugins. Changes
include:

- Added mapping of Cisco exceptions to HTTP codes
  (extension to FAULT_MAP).
- Removed several unused Cisco exception definitions.
- Added several new Cisco exceptions for fault conditions.
- Added several rollbacks for various sequential operations, e.g.:
  * Create port: Nexus sub-plugin fails after OVS sub-plugin success
  * Create port: Nexus switch conig fails after adding binding to
                 Nexus binding database
  * Delete port: OVS sub-plugin fails after Nexus sub-plugin success
- Delete Port: Reversed order of OVS/Nexus sub-plugin calls so that
  it is done in the reverse order as is done for create port.
- Removed several empty except/raise blocks
- Delete network: Removed call to Nexus sub-plugin delete_network,
  since that is a no-op.
- Removed a block of unused code in model's create_network method.
- Added several unit testcases, including patching of OVS, Cisco
  and Nexus config.
- Remove CISCO_TEST configuration from cisco plugin
  config .ini file.

Change-Id: Iabdf4842aa2f0b090a90e2c565848290832b5197

11 years agoImported Translations from Transifex
OpenStack Jenkins [Mon, 6 May 2013 12:12:01 +0000 (12:12 +0000)]
Imported Translations from Transifex

Change-Id: Ie9afcb1e31d15a1e39d9a66b5abc4248c1e2af15

11 years agoMerge "Perform a joined query for ports and security group associations"
Jenkins [Mon, 6 May 2013 08:02:32 +0000 (08:02 +0000)]
Merge "Perform a joined query for ports and security group associations"

11 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Sun, 5 May 2013 19:14:14 +0000 (19:14 +0000)]
Merge "Imported Translations from Transifex"

11 years agoDuplicate line in Brocade plugin
Salvatore Orlando [Sun, 5 May 2013 15:40:38 +0000 (17:40 +0200)]
Duplicate line in Brocade plugin

Bug 1176570

Change-Id: Ic79913ae313d299f274db6f0d3f6d0eb21c9f4ce
binding:vif_type was being set twice