]> review.fuel-infra Code Review - openstack-build/neutron-build.git/log
openstack-build/neutron-build.git
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 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 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

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

Change-Id: Ief49f9846a5fad46a4a8c5f95881ef62948b233b

11 years agoMerge "Let the cover venv run individual tests."
Jenkins [Sun, 5 May 2013 07:06:23 +0000 (07:06 +0000)]
Merge "Let the cover venv run individual tests."

11 years agoMerge "Adds POST method support in the metadata service"
Jenkins [Sun, 5 May 2013 07:05:43 +0000 (07:05 +0000)]
Merge "Adds POST method support in the metadata service"

11 years agoRemove unnecessary code from create_pool_health_monitor method
Eugene Nikanorov [Thu, 2 May 2013 14:49:41 +0000 (18:49 +0400)]
Remove unnecessary code from create_pool_health_monitor method

fixes bug 1175481

Remove incorrect database object fetch and update.
Get rid of unnecessary query for pool object.
Make code that creates monitor list more pythonic

Change-Id: I6d2e9dfafe9ce9f0c089408b2e6e719a46285ba6

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

Change-Id: I2e5b3a00ff52af624620ea0cc625b66faf83d76b

11 years agoPerform a joined query for ports and security group associations
Salvatore Orlando [Sun, 28 Apr 2013 23:40:47 +0000 (01:40 +0200)]
Perform a joined query for ports and security group associations

bug 1174111

Instead of loading security group associations with a separate query
each time a port is loaded from the database, perform the load operation
with a join using a joined sqlalchemy relationship.
Also, this patch removes the need for invoking the mixin method
'extend_port_dict_security_group' from the plugin code.

Change-Id: I40b22281d45ff4f4bf8149211883799a9051c1a0

11 years agoMerge "Treat unbound port"
Jenkins [Fri, 3 May 2013 19:13:56 +0000 (19:13 +0000)]
Merge "Treat unbound port"

11 years agoMerge "Fix usage of Query.all() and NoResultFound"
Jenkins [Fri, 3 May 2013 19:13:54 +0000 (19:13 +0000)]
Merge "Fix usage of Query.all() and NoResultFound"

11 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Fri, 3 May 2013 14:48:39 +0000 (14:48 +0000)]
Merge "Imported Translations from Transifex"

11 years agoFix usage of Query.all() and NoResultFound
Roman Podolyaka [Fri, 26 Apr 2013 15:27:39 +0000 (18:27 +0300)]
Fix usage of Query.all() and NoResultFound

SQLAlchemy Query.all() method doesn't raise NoResultFound
exception in case if no result is found but rather returns
an empty list. So this pattern which is common for our code
doesn't make sense and should be fixed:

    try:
        dns_qry = context.session.query(models_v2.DNSNameServer)
        return dns_qry.filter_by(subnet_id=subnet_id).all()
    except exc.NoResultFound:
        return []

Fixes bug 1173131.

Change-Id: I19b64eecd6edac0dba7dd0bf2ab32690c46e4f8b

11 years agoMerge "Only map nicira_nvp_plugin module if installed"
Jenkins [Fri, 3 May 2013 12:40:52 +0000 (12:40 +0000)]
Merge "Only map nicira_nvp_plugin module if installed"

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

Change-Id: I8ae51f7838cbc35fdb92c004b76a1d256625df5c

11 years agoOnly map nicira_nvp_plugin module if installed
Matt Riedemann [Wed, 1 May 2013 11:05:07 +0000 (04:05 -0700)]
Only map nicira_nvp_plugin module if installed

When starting any quantum plugin agent service, only map the
nicira_nvp_plugin module if nicira is installed and configured for
quantum.

fixes bug 1175750

Change-Id: I7f2c40011363e2579d4c35716f5a7d413663a698

11 years agoMerge "Do not attempt to kill already-dead dnsmasq"
Jenkins [Thu, 2 May 2013 23:35:57 +0000 (23:35 +0000)]
Merge "Do not attempt to kill already-dead dnsmasq"

11 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Thu, 2 May 2013 19:21:45 +0000 (19:21 +0000)]
Merge "Imported Translations from Transifex"

11 years agoLet the cover venv run individual tests.
Monty Taylor [Thu, 2 May 2013 13:37:09 +0000 (09:37 -0400)]
Let the cover venv run individual tests.

Also, delete cruft from tox.ini while we're in there.

Change-Id: I8fe43695bb25b9c5eec10711b12d2002f1237e52

11 years agoDo not attempt to kill already-dead dnsmasq
Gary Kotton [Thu, 2 May 2013 11:35:58 +0000 (11:35 +0000)]
Do not attempt to kill already-dead dnsmasq

Fixes bug 1080846

The fix is following comments by Thiery Carrez (ttx) on the bug.

Change-Id: If4f6baad4212c23845c46703140e15f1ffcfe558

11 years agoMerge "Allow admin to delete default security groups"
Jenkins [Thu, 2 May 2013 09:33:08 +0000 (09:33 +0000)]
Merge "Allow admin to delete default security groups"

11 years ago Copy the RHEL6 eventlet workaround from Oslo
Mark McLoughlin [Thu, 2 May 2013 09:31:16 +0000 (10:31 +0100)]
 Copy the RHEL6 eventlet workaround from Oslo

Tests in oslo-incubator now need the horrendous hack to workaround an
issue with eventlet on RHEL6. We've moved the patch_tox_venv tool
and redhat-eventlet.patch into oslo-incubator, so add them to
openstack-common.conf.

Change-Id: I1acfec282b64d7582144b155119bedb1741db2f7

11 years agoMerge "Set network_device_mtu as integer"
Jenkins [Thu, 2 May 2013 09:06:01 +0000 (09:06 +0000)]
Merge "Set network_device_mtu as integer"

11 years agoMerge "Avoid initialization of policy engine before extensions are loaded"
Jenkins [Thu, 2 May 2013 08:25:58 +0000 (08:25 +0000)]
Merge "Avoid initialization of policy engine before extensions are loaded"

11 years agoAllow admin to delete default security groups
Aaron Rosen [Thu, 2 May 2013 00:12:11 +0000 (17:12 -0700)]
Allow admin to delete default security groups

Previously there was no way to delete a default security groups which
isn't ideal if you want to clean up after deleting a tenant. This patch
allows default security groups to be deleted by the admin.

Fixes bug 1175393

Change-Id: I2214c7dabf0f2ec960ce10ebbbcdc513bc73664c

11 years agoImported Translations from Transifex
OpenStack Jenkins [Thu, 2 May 2013 00:06:38 +0000 (00:06 +0000)]
Imported Translations from Transifex

Change-Id: Ie643ae6a5d064d9dc97472b68c8d757c013a1f8f

11 years agoAdds POST method support in the metadata service
Alessandro Pilotti [Wed, 1 May 2013 04:14:59 +0000 (07:14 +0300)]
Adds POST method support in the metadata service

Fixes bug: #1092311

The password generation feature introduced in Grizzly requires POST
support in the metadata service.

Support has been added to both the metadata agent and namespace proxy.
Tests have been added and updated accordingly.

Change-Id: If7ef6bede1775ad682822cb868518ec732b90805

11 years agoMerge "Update RPC code from OSLO"
Jenkins [Wed, 1 May 2013 20:13:50 +0000 (20:13 +0000)]
Merge "Update RPC code from OSLO"

11 years agoMerge "Fix port_id filter not honored"
Jenkins [Wed, 1 May 2013 19:22:31 +0000 (19:22 +0000)]
Merge "Fix port_id filter not honored"

11 years agoMerge "Fix 'null' response on router-interface-remove operation"
Jenkins [Wed, 1 May 2013 19:19:25 +0000 (19:19 +0000)]
Merge "Fix 'null' response on router-interface-remove operation"

11 years agoSet network_device_mtu as integer
Gary Kotton [Wed, 1 May 2013 07:04:45 +0000 (07:04 +0000)]
Set network_device_mtu as integer

Fixes bug 1175060

Change-Id: Ibce28db0575dd6d6f1f998a7b8d6603f3d6dba63

11 years agoAvoid initialization of policy engine before extensions are loaded
Salvatore Orlando [Wed, 1 May 2013 10:32:17 +0000 (12:32 +0200)]
Avoid initialization of policy engine before extensions are loaded

Bug 1174877

For a particular NVP extension, a database entry was being populated
in the plugin's __init__ method. The entry was added with an admin
context. Grabbing the context caused the policy engine to load before
all the extension were loaded, so rule on extended attribute
were not being parsed correctly.
This cause checks on external networks to fail always.

Change-Id: Icbc759773acab2a7687883d8d2844272c8ea55a3

11 years agoFix port_id filter not honored
openstack [Fri, 26 Apr 2013 12:31:06 +0000 (14:31 +0200)]
Fix port_id filter not honored

Add dict. to map API params to DB columns

Change-Id: I5f10eea77533e91afeb690e39301d7282e1b1620
Fixes: bug #1169706
11 years agoUpdate RPC code from OSLO
Gary Kotton [Wed, 1 May 2013 13:47:59 +0000 (13:47 +0000)]
Update RPC code from OSLO

Fixes bug 1172922

Change-Id: Ieb5f58fe3d2c879bc71f4241288e48e35ab54366

11 years agoMerge "Use sql alchemy to fetch a scalar for the max tunnel id"
Jenkins [Wed, 1 May 2013 06:43:53 +0000 (06:43 +0000)]
Merge "Use sql alchemy to fetch a scalar for the max tunnel id"

11 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Wed, 1 May 2013 06:42:40 +0000 (06:42 +0000)]
Merge "Imported Translations from Transifex"

11 years agoTreat unbound port
Gary Kotton [Tue, 30 Apr 2013 15:23:10 +0000 (15:23 +0000)]
Treat unbound port

Following a nice suggestion by S Orlando regarding the fix for
bug 1173463

Change-Id: I2fa2a2fa7852025f0c18ff27c5fffc5667ce8378

11 years agoMerge "Docstrings formatted according to pep257"
Jenkins [Wed, 1 May 2013 05:29:29 +0000 (05:29 +0000)]
Merge "Docstrings formatted according to pep257"

11 years agoMerge "Docstrings formatted according to pep257"
Jenkins [Wed, 1 May 2013 05:28:18 +0000 (05:28 +0000)]
Merge "Docstrings formatted according to pep257"

11 years agoUse sql alchemy to fetch a scalar for the max tunnel id
Salvatore Orlando [Wed, 1 May 2013 00:57:55 +0000 (02:57 +0200)]
Use sql alchemy to fetch a scalar for the max tunnel id

Bug 1174998

Change-Id: I77203c81c2c910a1a601416efc4567f1320a2eef

11 years agoImported Translations from Transifex
OpenStack Jenkins [Wed, 1 May 2013 00:09:17 +0000 (00:09 +0000)]
Imported Translations from Transifex

Change-Id: Ifad1de1eb9891cc0639470a19058135c21753db7

11 years agoFix 'null' response on router-interface-remove operation
armando-migliaccio [Tue, 30 Apr 2013 23:19:04 +0000 (16:19 -0700)]
Fix 'null' response on router-interface-remove operation

To avoid a 'null' response body, the delete operation returns a response
that is consistent with its add counterpart, i.e. we return the router
id with details about the interface being affected by the operation, as
well as the tenant id.

A unit test is added to ensure that the right body is returned and minor
adjustments have been made to the plugins affected by the change.

Long-term, a delete operation should really return 204 w/o a body, but
this requires some major rework of the WSGI handling within Quantum.
This is an interim solution that deals with an 'ugly' response body,
whilst keeping backward compatibility.

Fixes bug 1173284

Change-Id: Icaab87ad0c8561c0690c8f0a14db815d8886bc71

11 years agoMerge "Docstrings formatted according to pep257"
Jenkins [Tue, 30 Apr 2013 23:46:47 +0000 (23:46 +0000)]
Merge "Docstrings formatted according to pep257"

11 years agoDocstrings formatted according to pep257
Sergey Skripnick [Tue, 30 Apr 2013 07:47:43 +0000 (10:47 +0300)]
Docstrings formatted according to pep257

Bug #1020184

quantum/plugins/cisco/*

Change-Id: Ibb6a865a17de0ea4f1865972624e4c5da0e96b34

11 years agoDocstrings formatted according to pep257
Sergey Skripnick [Tue, 30 Apr 2013 13:52:33 +0000 (16:52 +0300)]
Docstrings formatted according to pep257

Bug #1020184

quantum/tests/*

Change-Id: I5c31a70e80c7fd448b92b43d34341301533b59ba

11 years agoDocstrings formatted according to pep257
Sergey Skripnick [Tue, 30 Apr 2013 10:35:37 +0000 (13:35 +0300)]
Docstrings formatted according to pep257

Bug #1020184

quantum/plugins/hyperv/*
quantum/plugins/linuxbridge/*
quantum/plugins/nec/*
quantum/plugins/nicira/*
quantum/plugins/plumgrid/*
quantum/plugins/ryu/*
quantum/plugins/services/*

Change-Id: I3525aa57235935d90ec7b70c65ba15012ce575a3

11 years agoMerge "Use Query instances as iterables when possible"
Jenkins [Tue, 30 Apr 2013 13:06:12 +0000 (13:06 +0000)]
Merge "Use Query instances as iterables when possible"

11 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Tue, 30 Apr 2013 06:54:46 +0000 (06:54 +0000)]
Merge "Imported Translations from Transifex"

11 years agoDocstrings formatted according to pep257
Sergey Skripnick [Mon, 29 Apr 2013 13:46:51 +0000 (16:46 +0300)]
Docstrings formatted according to pep257

Bug #1020184

quantum/plugins/bigswitch/*
quantum/plugins/brocade/*

Change-Id: I9bf4381738319551a5993d4b279a5cec3425b7ef

11 years agoMerge "Improve Python 3.x compatibility"
Jenkins [Tue, 30 Apr 2013 06:18:07 +0000 (06:18 +0000)]
Merge "Improve Python 3.x compatibility"