]> review.fuel-infra Code Review - openstack-build/neutron-build.git/log
openstack-build/neutron-build.git
11 years agoMerge "metadata proxy will use syslog as default log"
Jenkins [Wed, 29 May 2013 00:11:09 +0000 (00:11 +0000)]
Merge "metadata proxy will use syslog as default log"

11 years agoFix update_port() so that it's done within the transaction
Aaron Rosen [Tue, 28 May 2013 19:49:20 +0000 (12:49 -0700)]
Fix update_port() so that it's done within the transaction

Fixes bug 1185152

Change-Id: I192991650a3562c73af550ec2288d1285412825c

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

Change-Id: Ie111c1f365640b62dbc21700c082a0a77ff91cc2

11 years agoMerge "Add support for OVS l2 agent in XS/XCP domU."
Jenkins [Tue, 28 May 2013 03:44:29 +0000 (03:44 +0000)]
Merge "Add support for OVS l2 agent in XS/XCP domU."

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

Change-Id: Ib68cbb1f513ced852c91f19d3cad1976bd8ea28d

11 years agoMerge "Ensure API extensions for NVP are loaded by default"
Jenkins [Mon, 27 May 2013 00:12:26 +0000 (00:12 +0000)]
Merge "Ensure API extensions for NVP are loaded by default"

11 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Sun, 26 May 2013 23:07:18 +0000 (23:07 +0000)]
Merge "Imported Translations from Transifex"

11 years agoMerge "Added conversion specifier for proper log"
Jenkins [Sun, 26 May 2013 12:31:16 +0000 (12:31 +0000)]
Merge "Added conversion specifier for proper log"

11 years agoMerge "Nicira plugin: List ports on network gateways"
Jenkins [Sun, 26 May 2013 12:31:13 +0000 (12:31 +0000)]
Merge "Nicira plugin: List ports on network gateways"

11 years agoMerge "Perform a sync with oslo-incubator."
Jenkins [Sun, 26 May 2013 12:31:09 +0000 (12:31 +0000)]
Merge "Perform a sync with oslo-incubator."

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

Change-Id: Ic91b2aafdb2bc1e844ea04d0f87ae272475080d0

11 years agoAdded conversion specifier for proper log
Mukul [Fri, 24 May 2013 18:02:12 +0000 (23:32 +0530)]
Added conversion specifier for proper log

In function create_for_sg_rule conversion specifier after string varaible
"rule_id" was missed. It was causing an error during translation of debug
message due to unavailability of conversion specifier. Included proper
conversion specifier for getting proper debug log.

Fixes: bug #1183734
Change-Id: I0342a091fb8199273c1bb9af59c42c0e09c39349

11 years agometadata proxy will use syslog as default log
gongysh [Fri, 24 May 2013 01:49:33 +0000 (09:49 +0800)]
metadata proxy will use syslog as default log

Bug #1183614

Change-Id: I39f07fc7d232148c50cf85fbc4ca6ca7cde8fdfa

11 years agoEnsure API extensions for NVP are loaded by default
armando-migliaccio [Wed, 22 May 2013 05:10:13 +0000 (22:10 -0700)]
Ensure API extensions for NVP are loaded by default

Fixes bug #1182736

Change-Id: I286f5b69d58a4cd3a0e25a984559fdf37068a75c

11 years agoMerge "avoid auto scheduling one dhcp agent twice."
Jenkins [Fri, 24 May 2013 01:07:32 +0000 (01:07 +0000)]
Merge "avoid auto scheduling one dhcp agent twice."

11 years agoMerge "Fix typo in option group shortcut 'aGENT' in NEC plugin"
Jenkins [Fri, 24 May 2013 00:12:07 +0000 (00:12 +0000)]
Merge "Fix typo in option group shortcut 'aGENT' in NEC plugin"

11 years agoPerform a sync with oslo-incubator.
Clark Boylan [Wed, 22 May 2013 21:44:48 +0000 (14:44 -0700)]
Perform a sync with oslo-incubator.

This oslo-incubator sync pulls in a new log.py which will make quantum's
default log output format the same as nova, glance and cinder (once
cinder's corresponding oslo sync merges). This common log format
simplifies log indexing as part of CI and makes lives easier for
deployers.

This sync does add a requirement on six as jsonutils depends on it. It
updates install_venv_common.py to be python26 compatible. It also brings
in a bunch of recent python3 compatibility that was added to oslo.

Fixes bug 1183144

Change-Id: Id0f196d7b5680e5950e4a27d66042bf00ccd49e6

11 years agoMerge "Require oslo.config 1.2.0a2"
Jenkins [Thu, 23 May 2013 21:33:42 +0000 (21:33 +0000)]
Merge "Require oslo.config 1.2.0a2"

11 years agoFix typo in option group shortcut 'aGENT' in NEC plugin
Akihiro MOTOKI [Thu, 23 May 2013 21:23:45 +0000 (06:23 +0900)]
Fix typo in option group shortcut 'aGENT' in NEC plugin

Also adds a test to check if option group shortcuts work.

Fix bug #1183576

Change-Id: Ib2843f2b2b4e35964fb4bb5280fda8f5c9e2ba0c

11 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Thu, 23 May 2013 20:12:12 +0000 (20:12 +0000)]
Merge "Imported Translations from Transifex"

11 years agoRequire oslo.config 1.2.0a2
Mark McLoughlin [Wed, 22 May 2013 11:35:57 +0000 (12:35 +0100)]
Require oslo.config 1.2.0a2

Fixes bug #1182662

Commit 362bd7f switched us from using 'QUOTA' as a config file section
name to using 'quota'.

This broke backwards compatibility support for 'QUOTA' because the
version of oslo.config that has that compat support had not yet been
released. The gory details are summarized here:

  http://lists.openstack.org/pipermail/openstack-dev/2013-May/009448.html

Change-Id: I7826087147e0713edaaea85a72283998295e2281

11 years agoMerge "update mailmap"
Jenkins [Thu, 23 May 2013 19:45:39 +0000 (19:45 +0000)]
Merge "update mailmap"

11 years agoNicira plugin: List ports on network gateways
Salvatore Orlando [Thu, 23 May 2013 09:09:19 +0000 (11:09 +0200)]
Nicira plugin: List ports on network gateways

Bug 1183277

This patch adds a read-only attribute to the network gateway API
extension. This attribute will return the list of ports connected to
a gateway, including their segmentation types and ids.
This patch now adds joined load for a gateway's connections, thus
avoiding extra queries to the db.

Change-Id: I2b22c94eed5bc02be16771660008d31c74a8628e

11 years agoavoid auto scheduling one dhcp agent twice.
gongysh [Thu, 23 May 2013 03:45:49 +0000 (11:45 +0800)]
avoid auto scheduling one dhcp agent twice.

Bug #1183173

Change-Id: Iff7b23faae50e6736b253ca5a2b1280451127200

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

Change-Id: I25044718d1a8018994aed3fa5c0b18663dde663d

11 years agoMerge "remove unused db model for openvswitch plugin"
Jenkins [Thu, 23 May 2013 09:24:43 +0000 (09:24 +0000)]
Merge "remove unused db model for openvswitch plugin"

11 years agoupdate mailmap
Jiajun Liu [Thu, 23 May 2013 08:47:08 +0000 (08:47 +0000)]
update mailmap

Reflect new email address that I will be committing under.

Change-Id: I91d763f6020f6aa7a007417c341f952d1efd20c2

11 years agoFix quantum.conf comment
Gary Kotton [Thu, 23 May 2013 06:22:52 +0000 (06:22 +0000)]
Fix quantum.conf comment

Fixes bug 1183209

Change-Id: I87b47e5d5793fde0996712e05b4ddf12be07d3da

11 years agoremove unused db model for openvswitch plugin
Jiajun Liu [Thu, 23 May 2013 06:55:51 +0000 (06:55 +0000)]
remove unused db model for openvswitch plugin

remove unused TunnelIP db model.

fixes bug 1182759

Change-Id: I68c271019761e82a554c0d6c719b1689ef76eb98

11 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Wed, 22 May 2013 23:56:08 +0000 (23:56 +0000)]
Merge "Imported Translations from Transifex"

11 years agoMerge "Recycle IPs used by 'gateway' ports"
Jenkins [Wed, 22 May 2013 14:46:00 +0000 (14:46 +0000)]
Merge "Recycle IPs used by 'gateway' ports"

11 years agoMerge "Revert "Fix ./run_tests.sh --pep8""
Jenkins [Wed, 22 May 2013 14:45:57 +0000 (14:45 +0000)]
Merge "Revert "Fix ./run_tests.sh --pep8""

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

Change-Id: Ifad0cce53e9102e2fc2cd5abd4a14d59b5920c12

11 years agoreference quota options in lowercase
Jiajun Liu [Wed, 22 May 2013 07:28:39 +0000 (07:28 +0000)]
reference quota options in lowercase

QUOTAS section have been renamed to quotas so reference quota options in
lowercase.

fixes bug 1182772

Change-Id: Ia08cb51deacc26620e512020b6a3c3b67185ec34

11 years agoMerge "Fix Cisco Nexus plugin failures for vlan IDs 1006-4094"
Jenkins [Wed, 22 May 2013 06:51:44 +0000 (06:51 +0000)]
Merge "Fix Cisco Nexus plugin failures for vlan IDs 1006-4094"

11 years agoRevert "Fix ./run_tests.sh --pep8"
Monty Taylor [Fri, 17 May 2013 02:18:56 +0000 (02:18 +0000)]
Revert "Fix ./run_tests.sh --pep8"

We are explicitly trying to get rid of scripts like this and flake8 makes
this one non-necessary.
Fix run_tests.sh to run flake8 properly.

This reverts commit 42243d6eb221d52bf6f62f835726cbe026e43447

Change-Id: I435e34b6acde7931a75f456ccc88da6476581643

11 years agoMerge "Restore correct alias for network-gateway extension"
Jenkins [Wed, 22 May 2013 04:10:25 +0000 (04:10 +0000)]
Merge "Restore correct alias for network-gateway extension"

11 years agoMerge "Enable network to be scheduled to N DHCP agents"
Jenkins [Wed, 22 May 2013 04:10:22 +0000 (04:10 +0000)]
Merge "Enable network to be scheduled to N DHCP agents"

11 years agoRestore correct alias for network-gateway extension
Salvatore Orlando [Tue, 21 May 2013 23:24:13 +0000 (00:24 +0100)]
Restore correct alias for network-gateway extension

Bug 1182682

Change-Id: I85a93e6ccac32515c7ebb2dfe41ba67cf11c9d9f

11 years agoRecycle IPs used by 'gateway' ports
Salvatore Orlando [Tue, 21 May 2013 18:05:00 +0000 (20:05 +0200)]
Recycle IPs used by 'gateway' ports

Bug 1182602

Previous code simply removed IP allocation for these ports which
should never have an IP. This patch triggers IP recycling so the
IP addresses can be reused by other ports.

Change-Id: I594e02d5bbc78b219eab07e595cde713d6450ffe

11 years agoReference OVS OptGoup names in lowercase
Zhongyue Luo [Tue, 21 May 2013 16:37:00 +0000 (00:37 +0800)]
Reference OVS 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 'OVS' references to 'ovs'

Change-Id: Id8697138d822e331a6776f847915c61b40f8dd6a

11 years agoMerge "Add update method of security group name and description"
Jenkins [Tue, 21 May 2013 16:13:53 +0000 (16:13 +0000)]
Merge "Add update method of security group name and description"

11 years agoEnable network to be scheduled to N DHCP agents
Gary Kotton [Wed, 1 May 2013 12:54:11 +0000 (12:54 +0000)]
Enable network to be scheduled to N DHCP agents

Fixes bug 1174132

Change-Id: Iabe96fd8a98f3539eb21268fb5ef58df8dbd8782

11 years agoMerge "Make endpoint_type configurable for the metadata agent"
Jenkins [Tue, 21 May 2013 14:06:22 +0000 (14:06 +0000)]
Merge "Make endpoint_type configurable for the metadata agent"

11 years agoMake endpoint_type configurable for the metadata agent
Oleg Bondarev [Tue, 14 May 2013 12:32:21 +0000 (16:32 +0400)]
Make endpoint_type configurable for the metadata agent

Fixes bug 1176227

Change-Id: Ib4efe29a08efb7ec391d6b16779b27aeb9178324

11 years agoMerge "Reference DEFAULT_SERVICETYPE OptGoup names in lowercase"
Jenkins [Tue, 21 May 2013 09:47:15 +0000 (09:47 +0000)]
Merge "Reference DEFAULT_SERVICETYPE OptGoup names in lowercase"

11 years agoMerge "Enable quantum-netns-cleanup to receive force as cli parameter"
Jenkins [Tue, 21 May 2013 09:39:51 +0000 (09:39 +0000)]
Merge "Enable quantum-netns-cleanup to receive force as cli parameter"

11 years agoMerge "Reference QUOTA OptGoup names in lowercase"
Jenkins [Tue, 21 May 2013 09:35:46 +0000 (09:35 +0000)]
Merge "Reference QUOTA OptGoup names in lowercase"

11 years agoMerge "Make logging level in unit tests configurable."
Jenkins [Tue, 21 May 2013 09:34:52 +0000 (09:34 +0000)]
Merge "Make logging level in unit tests configurable."

11 years agoEnable quantum-netns-cleanup to receive force as cli parameter
Gary Kotton [Thu, 16 May 2013 11:44:06 +0000 (11:44 +0000)]
Enable quantum-netns-cleanup to receive force as cli parameter

Fixes bug 1180767

Change-Id: Icd58fbe995129806426b70ea54d98f213988dbe5

11 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Tue, 21 May 2013 07:00:41 +0000 (07:00 +0000)]
Merge "Imported Translations from Transifex"

11 years agoMake logging level in unit tests configurable.
Ryota MIBU [Mon, 20 May 2013 05:36:39 +0000 (14:36 +0900)]
Make logging level in unit tests configurable.

Added a debug option to unittest(BaseTestCase) which sets logging level of
fixtures.FakeLogger to DEBUG. To enable this option, set OS_DEBUG=True or
OS_DEBUG=1 in environment variables.

Fixes: bug #1181925
Change-Id: Id09008ddabb837290edf12e1cbd014dc74760113

11 years agoMerge "Fix logic in api.v2.base.Controller._is_visible"
Jenkins [Tue, 21 May 2013 00:32:56 +0000 (00:32 +0000)]
Merge "Fix logic in api.v2.base.Controller._is_visible"

11 years agoMerge "Check network vlan ranges for correctness."
Jenkins [Mon, 20 May 2013 18:55:51 +0000 (18:55 +0000)]
Merge "Check network vlan ranges for correctness."

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

Change-Id: Id056834e767bc29e5bca4421677e6d8da122bba9

11 years agoFix logic in api.v2.base.Controller._is_visible
Eugene Nikanorov [Sun, 19 May 2013 14:01:33 +0000 (18:01 +0400)]
Fix logic in api.v2.base.Controller._is_visible

Fix accessing yet unassigned local variable in case
exception is thrown.

fixes bug 1181718

Change-Id: Iea8f0cc252c1d2105cc696d917a347aa10b206a8

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

Change-Id: I381510446f6990c4126ae4246138f578e4997433

11 years agoMerge "Add l3 attribute to network"
Jenkins [Sat, 18 May 2013 18:54:13 +0000 (18:54 +0000)]
Merge "Add l3 attribute to network"

11 years agoMerge "Deprecate "extension:xxx" policies but preserve bw compatibility"
Jenkins [Sat, 18 May 2013 17:33:56 +0000 (17:33 +0000)]
Merge "Deprecate "extension:xxx" policies but preserve bw compatibility"

11 years agoCheck network vlan ranges for correctness.
gessau [Wed, 15 May 2013 01:57:47 +0000 (21:57 -0400)]
Check network vlan ranges for correctness.

Check that the range beginning and end tags are valid values 1-4094.
Supply two global constants for min/max vlan tags and update all
local usage of these values to use the global constants.

Fixes: Bug #1169266
Change-Id: I054a8bebd16d95ea40414e3cecb6d24a970c730f

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 agoAdd update method of security group name and description
Zhenguo Niu [Tue, 14 May 2013 02:44:08 +0000 (10:44 +0800)]
Add update method of security group name and description

make it possible to edit the name and description of
common security groups, we can not rename the default
security group.

Fixes: bug #918393
Change-Id: I7003c47e054f032572adbb901be4dbc61839b695

11 years agoAdd l3 attribute to network
Kanzhe Jiang [Fri, 17 May 2013 21:35:29 +0000 (14:35 -0700)]
Add l3 attribute to network

The fix is to add l3 attribute(s) to the returned objects in get_network() and get_networks()

Fixes: bug #1180971
Change-Id: I4b9c932fae90a169ad1c0119f45e90a2ee260acd

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 agoReference QUOTA OptGoup names in lowercase
Zhongyue Luo [Wed, 15 May 2013 00:36:11 +0000 (08:36 +0800)]
Reference QUOTA 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 'QUOTA' references to 'quota'

Change-Id: I74c2a35aea7a52f9586eb598fe52d2cecb1851ef

11 years agoDeprecate "extension:xxx" policies but preserve bw compatibility
Salvatore Orlando [Tue, 14 May 2013 23:46:13 +0000 (01:46 +0200)]
Deprecate "extension:xxx" policies but preserve bw compatibility

Blueprint make-authz-orthogonal

Patch #4 for this blueprint.
With this change, if policies starting with 'extension' are still
present in policy.json, a deprecation warning will be emitted, and
the policy will be translated in the corresponding, new-style,
policy(ies).

Change-Id: Iccf0f36cc2547c35c66854b8a3fdb7185b5214bd

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 agoFix Cisco Nexus plugin failures for vlan IDs 1006-4094
Dane LeBlanc [Tue, 30 Apr 2013 03:43:14 +0000 (23:43 -0400)]
Fix Cisco Nexus plugin failures for vlan IDs 1006-4094

Fixes bug 1174593

VLAN IDs in the range 1006-4094 are considered to be in the extended
range by the Cisco Nexus 3K switch. As such, the 3K rejects any
state change configuration commands for VLANs in this range, including
"state active" and "no shutdown". The errors returned by the 3K for
these commands can be ignored, since the default states for these commands
are acceptable for the 3K.

For the 5K and 7K versions of the Nexus switch, on the other hand, the
"state active" and "no shutdown" commands are required for proper VLAN
configuration, regardless of VLAN ID.

This fix splits the configuration commands which are used to create a
VLAN on the Nexus switch into three separate configurations:
  - VLAN creation
  - state active
  - no shutdown
For the "state active" and "no shutdown" configurations, the Cisco Nexus
plugin will tolerate (ignore) errors involving invalid setting of state
for VLANs in the extended VLAN range. These specific errors can be
identified by looking for the appearance of certain signature strings
in the associated exception's message string, i.e. "Can't modify
state for extended" or "Command is allowed on VLAN".

This approach will yield a very small hit in performance, but the solution
is much less error prone than requiring customers to configure the
Cisco plugin for 3K vs. 5K vs. 7K, or perhaps even specific software
versions of the 3K, in order to inform the Cisco plugin whether
VLAN state configuration commands should be used or not.

Change-Id: I1be4966ddc6f462bca38428c4f904f8c982f318f

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"