]> review.fuel-infra Code Review - openstack-build/neutron-build.git/log
openstack-build/neutron-build.git
11 years agoAdd firewall_driver option to linuxbridge_conf.ini
Akihiro MOTOKI [Mon, 11 Feb 2013 09:26:40 +0000 (18:26 +0900)]
Add firewall_driver option to linuxbridge_conf.ini

Fixes bug 1121855

firewall_driver configuration option has been introduced in the patch
of OVS security group support and it affects Linux Bridge plugin.
The default value of firewall_driver is NoopDriver.
Thus firewall_driver configuration is required in Linux Bridge plugin.

Change-Id: I403be91b01eb6fa679dab28cd4995c85d12100b9

11 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Mon, 11 Feb 2013 08:07:50 +0000 (08:07 +0000)]
Merge "Imported Translations from Transifex"

11 years agoMerge "Sync latest cfg from oslo-incubator"
Jenkins [Mon, 11 Feb 2013 05:04:48 +0000 (05:04 +0000)]
Merge "Sync latest cfg from oslo-incubator"

11 years agofix grammar in NetworkInUse exception
Dan Wendlandt [Mon, 11 Feb 2013 00:28:05 +0000 (16:28 -0800)]
fix grammar in NetworkInUse exception

bug 1121555

Change-Id: Ie06ef45d066505b0ec1cd31e73c43ae6985afcde

11 years agoImported Translations from Transifex
OpenStack Jenkins [Mon, 11 Feb 2013 00:05:19 +0000 (00:05 +0000)]
Imported Translations from Transifex

Change-Id: I3a619c2e95c417169a281986e3d28044383075ca

11 years agoMerge "Improvements to API validation logic."
Jenkins [Sun, 10 Feb 2013 18:21:45 +0000 (18:21 +0000)]
Merge "Improvements to API validation logic."

11 years agoImplements quantum security groups support on OVS plugin
Nachi Ueno [Fri, 11 Jan 2013 00:24:54 +0000 (16:24 -0800)]
Implements quantum security groups support on OVS plugin

implements bp quantum-security-groups-iptables-ovs
- Adding [SECURITYGROUP] firewall_driver to the conf
- Adding NoopFirewallDriver
- Adding OVSHybridIptablesFirewallDriver
- Refactoring security group code to support OVS plugin

Change-Id: I7aabc296265afc47d938121543ace57cce6cc521

11 years agoSync latest cfg from oslo-incubator
Zhongyue Luo [Sat, 9 Feb 2013 22:08:24 +0000 (07:08 +0900)]
Sync latest cfg from oslo-incubator

Main cfg change is:

  e3e5e0e Fixes "is not", "not in" syntax usage
  d156150 Implements import_group

Change-Id: Ie6c0fe0d9d35ef6178a121e4f566207576c8d1e6

11 years agoImprovements to API validation logic.
Henry Gessau [Thu, 7 Feb 2013 21:01:28 +0000 (16:01 -0500)]
Improvements to API validation logic.

Do not automatically map generic exceptions like AttributeError to
http errors (instead they should be handled closer to where they occur
so that they can be "intelligently" converted to the appropriate
error).

Fix up some expected error codes in the unit tests.
Improve some of the validation messages.
Remove all use of locals() in attributes.py

Fixes: bug #1076813
Change-Id: Iabf8808a840e927307bbcae4cd41790af3d79a9e

11 years agoImported Translations from Transifex
OpenStack Jenkins [Sat, 9 Feb 2013 00:05:19 +0000 (00:05 +0000)]
Imported Translations from Transifex

Change-Id: Iba8087a9aba3b75907f19c8ffbf2939a90ea0e61

11 years agoMerge "add non-routed subnet metadata support"
Jenkins [Fri, 8 Feb 2013 22:39:32 +0000 (22:39 +0000)]
Merge "add non-routed subnet metadata support"

11 years agoMerge "Enable OVS and NETNS utilities to perform logging"
Jenkins [Fri, 8 Feb 2013 06:20:02 +0000 (06:20 +0000)]
Merge "Enable OVS and NETNS utilities to perform logging"

11 years agoadd non-routed subnet metadata support
Mark McClain [Tue, 5 Feb 2013 04:59:59 +0000 (23:59 -0500)]
add non-routed subnet metadata support

implements blueprint metadata-non-routed

This patchset completes Quantum metadata support by adding metadata
proxy support for isolated network segments.  The support requires that
the guest instance request host routes, so that the DHCP port can be
used to proxy metadata requests. NOTE: The cirros image does not support
host router, so the UEC or equivalent required for testing and usage.

Change-Id: I962deef7c164ecb2a93b7af326ef8dca6e2b183a

11 years agoImported Translations from Transifex
OpenStack Jenkins [Fri, 8 Feb 2013 00:06:27 +0000 (00:06 +0000)]
Imported Translations from Transifex

Change-Id: I2b516e56252c7973bbdf0583f2756dceccb5be2e

11 years agoMerge "Add NVP Security group support"
Jenkins [Thu, 7 Feb 2013 21:04:46 +0000 (21:04 +0000)]
Merge "Add NVP Security group support"

11 years agoEnable OVS and NETNS utilities to perform logging
Gary Kotton [Thu, 7 Feb 2013 16:22:20 +0000 (16:22 +0000)]
Enable OVS and NETNS utilities to perform logging

Fixes bug 1118517

Change-Id: I623c39b7d05accc49f88922d5d2c7ecfb8562a52

11 years agoMerge "Fix import error in ryu-agent"
Jenkins [Thu, 7 Feb 2013 14:53:14 +0000 (14:53 +0000)]
Merge "Fix import error in ryu-agent"

11 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Thu, 7 Feb 2013 14:21:38 +0000 (14:21 +0000)]
Merge "Imported Translations from Transifex"

11 years agoMerge "Update .coveragerc"
Jenkins [Thu, 7 Feb 2013 13:13:16 +0000 (13:13 +0000)]
Merge "Update .coveragerc"

11 years agoAdd NVP Security group support
Aaron Rosen [Wed, 16 Jan 2013 18:06:52 +0000 (10:06 -0800)]
Add NVP Security group support

Implements blueprint security-groups-nvp

Change-Id: Idfa7a756c7a2845e9aa9e7de4c7bceeec94b036f

11 years agoFix import error in ryu-agent
Yoshihiro Kaneko [Mon, 4 Feb 2013 13:17:54 +0000 (22:17 +0900)]
Fix import error in ryu-agent

Fixes bug #1114183

Change-Id: I7f8c3507840f0eb6190b509ae2b7b35bd03c74e1

11 years agoImported Translations from Transifex
OpenStack Jenkins [Thu, 7 Feb 2013 00:07:38 +0000 (00:07 +0000)]
Imported Translations from Transifex

Change-Id: I95fb1c34482b68c44fe5afc083221116b68ddf51

11 years agoBad translation from network types to nvp transport types
Salvatore Orlando [Wed, 12 Dec 2012 12:22:50 +0000 (04:22 -0800)]
Bad translation from network types to nvp transport types

Bug 1117769

'Flat' and 'Vlan' where not being converted into 'bridge'
This change cannot have unit tests because the fake nvp api
client does not validate such constraints at the moment

Change-Id: I2b918265cb8becf6f023abc7937b92b3058d9446

11 years agoMerge "Updated to latest oslo-version code."
Jenkins [Wed, 6 Feb 2013 18:58:41 +0000 (18:58 +0000)]
Merge "Updated to latest oslo-version code."

11 years agoUpdate .coveragerc
Alessio Ababilov [Wed, 6 Feb 2013 14:47:06 +0000 (16:47 +0200)]
Update .coveragerc

Set up proper source and omit options.

Change-Id: I13cc4bf4b3b349d1c868a4ff93ef33fd5ef292b8
Implements: blueprint update-coveragerc

11 years agoRegister root_helper in test_debug_commands and test_dhcp_agent
Alessio Ababilov [Wed, 6 Feb 2013 11:22:53 +0000 (13:22 +0200)]
Register root_helper in test_debug_commands and test_dhcp_agent

root_helper variable currently must be introduced with a call
to register_root_helper, not with a simple assignment.

Change-Id: I3e72379925a994acfb6defb24820ab63eab43957
Fixes: bug #1117240
11 years agoMerge "Adds xml support for quantum v2 API."
Jenkins [Wed, 6 Feb 2013 04:15:21 +0000 (04:15 +0000)]
Merge "Adds xml support for quantum v2 API."

11 years agoMerge "Use policy_file parameter in quantum.policy"
Jenkins [Wed, 6 Feb 2013 02:39:51 +0000 (02:39 +0000)]
Merge "Use policy_file parameter in quantum.policy"

11 years agoMerge "Allow tools/install_venv_common.py to be run from within the source directory."
Jenkins [Wed, 6 Feb 2013 02:39:47 +0000 (02:39 +0000)]
Merge "Allow tools/install_venv_common.py to be run from within the source directory."

11 years agoAdds xml support for quantum v2 API.
gongysh [Sun, 5 Aug 2012 23:04:24 +0000 (20:04 -0300)]
Adds xml support for quantum v2 API.

Fixes bug 1007998.
blueprint quantum-v2-api-xml

Author: gongysh <gongysh@linux.vnet.ibm.com>

Change-Id: I5f5407e767f8203f980b77075109845bc1553ed9

11 years agoAllow tools/install_venv_common.py to be run from within the source directory.
Davanum Srinivas [Tue, 5 Feb 2013 23:08:45 +0000 (18:08 -0500)]
Allow tools/install_venv_common.py to be run from within the source directory.

(Copy latest update from oslo)

Not doing this raised exceptions when it tried importing modules
that didn't exist in the path.

Fixes LP# 1116269

Change-Id: I3e2ed3ac96b51ec89def911054720d11bbcd9407

11 years agoCisco plugin cleanup follow up commit
Arvind Somya [Tue, 5 Feb 2013 22:22:50 +0000 (17:22 -0500)]
Cisco plugin cleanup follow up commit

A commit was made by Alex Xu (https://review.openstack.org/#/c/20073) a day before the Cisco plugin
cleanup that led to some deleted files creeping back into the Cisco plugin. This commit backs out
the deleted files again.

Blueprint cisco-plugin-cleanup

Change-Id: Ibad452dc0497dad452a33d6f41c1785231cd5d5b

11 years agoMerge "Be smarter when figuring out broadcast address"
Jenkins [Tue, 5 Feb 2013 18:58:19 +0000 (18:58 +0000)]
Merge "Be smarter when figuring out broadcast address"

11 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Tue, 5 Feb 2013 18:58:15 +0000 (18:58 +0000)]
Merge "Imported Translations from Transifex"

11 years agoBe smarter when figuring out broadcast address
Ante Karamatic [Mon, 4 Feb 2013 13:02:25 +0000 (14:02 +0100)]
Be smarter when figuring out broadcast address

In most cases, broadcast is set when IP is set, but sometimes
it can be ommitted. In those cases we should figure it out based
on CIDR, and not assume it.

Change-Id: Ia8c07898ddf0eb19f5d552a304d8f38915fc3560
Fixes: bug #1090621
11 years agoUse policy_file parameter in quantum.policy
Alessio Ababilov [Tue, 5 Feb 2013 13:53:38 +0000 (15:53 +0200)]
Use policy_file parameter in quantum.policy

quantum.policy depends on configuration parameter `policy_file'
that is defined in quantum.common.context.

Tests from tests/unit/test_policy.py fail without this import.

Fixes: bug #1116263
Change-Id: Iba4792acb0fb6b34b4ebc99fec7bc729cdb306da

11 years agoImported Translations from Transifex
OpenStack Jenkins [Tue, 5 Feb 2013 00:06:58 +0000 (00:06 +0000)]
Imported Translations from Transifex

Change-Id: I0ebe0d71a5891c8bb53833ddc0ba7a9deca0c175

11 years agoDefine root_helper variable under the [AGENT] section
Gary Kotton [Mon, 28 Jan 2013 13:37:47 +0000 (13:37 +0000)]
Define root_helper variable under the [AGENT] section

Fixes bug 1105523

The patch set adds 2 new functions:
1. register_root_helper - this enables all wanting to use
the root_helper variable. This is under the section AGENT.
2. get_root_helper - this is a helper function that returns the
root_helper. This should be used when the application used to
have the root_helper defined under the section DEFAULT. This
ensures backward compatability.

Change-Id: Iba72c4fc89ba5329ea045483287012f82b306250

11 years agoMerge "Fixes rest of "not in" usage"
Jenkins [Mon, 4 Feb 2013 08:29:13 +0000 (08:29 +0000)]
Merge "Fixes rest of "not in" usage"

11 years agoFixes rest of "not in" usage
Zhongyue Luo [Mon, 4 Feb 2013 03:00:50 +0000 (11:00 +0800)]
Fixes rest of "not in" usage

find quantum -type f -name "*py" -exec grep -HE " not [^ ]+ in " {} \;

Change-Id: Ief9560e515c05f05c0b5346609b87a8fdde569d7

11 years agoUpdated to latest oslo-version code.
Monty Taylor [Thu, 1 Nov 2012 13:23:58 +0000 (14:23 +0100)]
Updated to latest oslo-version code.

In support of tag-based versioning, update to latest oslo-version.
This changes from using versioninfo files to using PKG_INFO.

Change-Id: Ia7d212d531305997153204dfffa44beed4bad0d3

11 years agoImported Translations from Transifex
OpenStack Jenkins [Mon, 4 Feb 2013 00:03:10 +0000 (00:03 +0000)]
Imported Translations from Transifex

Change-Id: I342facc85297be2a90d735233e4099a16a97a124

11 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Sun, 3 Feb 2013 16:18:33 +0000 (16:18 +0000)]
Merge "Imported Translations from Transifex"

11 years agoMerge "Improve data access method of ryu-agent"
Jenkins [Sun, 3 Feb 2013 02:19:00 +0000 (02:19 +0000)]
Merge "Improve data access method of ryu-agent"

11 years agoImported Translations from Transifex
OpenStack Jenkins [Sun, 3 Feb 2013 00:04:18 +0000 (00:04 +0000)]
Imported Translations from Transifex

Change-Id: I303cc1f1e73ad708acfd2886c9d53ba4e1e65cfc

11 years agoImported Translations from Transifex
OpenStack Jenkins [Sat, 2 Feb 2013 00:07:19 +0000 (00:07 +0000)]
Imported Translations from Transifex

Change-Id: I88b832c790f88bd6a0d92e26974d561279d3f6c3

11 years agoMerge "Resetting session persisnence for a VIP."
Jenkins [Fri, 1 Feb 2013 22:38:15 +0000 (22:38 +0000)]
Merge "Resetting session persisnence for a VIP."

11 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Fri, 1 Feb 2013 19:31:39 +0000 (19:31 +0000)]
Merge "Imported Translations from Transifex"

11 years agoResetting session persisnence for a VIP.
Roman Prykhodchenko [Tue, 29 Jan 2013 18:33:17 +0000 (20:33 +0200)]
Resetting session persisnence for a VIP.

This change allows to reset session persistence, if it
was configured for a VIP. It's possible by passing None
value for session persistence through the REST API.

Change-Id: I8690850d0589065502a8eb774d51fe40851624f8
Fixes: bug #1109101
11 years agoImprove data access method of ryu-agent
Yoshihiro Kaneko [Wed, 30 Jan 2013 06:50:41 +0000 (15:50 +0900)]
Improve data access method of ryu-agent

fixes bug #1110174

This patch implement rpc in ryu-agent, instead of accessing a
database directly.
Because it was not necessary to transmit information via database,
therefore the table is eliminated.

Also, I remove openflow controller stuff from a configuration file
of the Ryu plugin because it was not used anymore.

Change-Id: I5e261297c3f92c6a1ac5df229084176e84694e87

11 years agoFixes 'not in' operator usage
Zhongyue Luo [Thu, 31 Jan 2013 08:08:26 +0000 (16:08 +0800)]
Fixes 'not in' operator usage

Fixes bug #1110058

Change-Id: I45c10097abfb929918925e7befb8ed6c36b1de1c

11 years agoMerge "Sync latest cfg from oslo-incubator"
Jenkins [Fri, 1 Feb 2013 01:04:19 +0000 (01:04 +0000)]
Merge "Sync latest cfg from oslo-incubator"

11 years agoImported Translations from Transifex
OpenStack Jenkins [Fri, 1 Feb 2013 00:06:48 +0000 (00:06 +0000)]
Imported Translations from Transifex

Change-Id: Iecbd60ab707a91b5ba54431a7f74c479e48950d9

11 years agoAdds support of TCP protocol for LBaaS VIPs.
Roman Prykhodchenko [Fri, 18 Jan 2013 10:56:19 +0000 (12:56 +0200)]
Adds support of TCP protocol for LBaaS VIPs.

Adds validation of supplied protocols for VIPs and Pools at API and DB levels.
Modifies the schema of the database to allow storing TCP VIPs.

Change-Id: Idab3139f280b5f0a16633974c05f88d70fb8d683
Fixes: bug #1100724
11 years agoMerge "Remove redunant key list generation in Cisco plugin"
Jenkins [Thu, 31 Jan 2013 08:25:05 +0000 (08:25 +0000)]
Merge "Remove redunant key list generation in Cisco plugin"

11 years agoSync latest cfg from oslo-incubator
Mark McLoughlin [Mon, 21 Jan 2013 16:53:51 +0000 (16:53 +0000)]
Sync latest cfg from oslo-incubator

Main cfg change is:

  c5984ba Move logging config options into the log module

Change-Id: I3913ea54465658d93dc56e014dfe5d911b0541d6

11 years agoRemove redunant key list generation in Cisco plugin
Zhongyue Luo [Wed, 30 Jan 2013 08:57:20 +0000 (16:57 +0800)]
Remove redunant key list generation in Cisco plugin

Evaluates existance of key directly on dictionary.

Fixes bug #1110957

Change-Id: I9b46a991ab9c764d7451cc122d208e06778c1ee1

11 years agoFixes if statement inefficiency in quantum.agent.linux.interface
Zhongyue Luo [Wed, 30 Jan 2013 08:07:46 +0000 (16:07 +0800)]
Fixes if statement inefficiency in quantum.agent.linux.interface

Changed logic of checking the existance of a port value

Change-Id: Id06447a753fd0201ef44a047657bd747ce18d546

11 years agoMerge "Disable dhcp_domain distribution when dhcp_domain is empty"
Jenkins [Wed, 30 Jan 2013 07:59:09 +0000 (07:59 +0000)]
Merge "Disable dhcp_domain distribution when dhcp_domain is empty"

11 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Wed, 30 Jan 2013 01:58:43 +0000 (01:58 +0000)]
Merge "Imported Translations from Transifex"

11 years agoMerge "correct spelling of Notify in classname"
Jenkins [Wed, 30 Jan 2013 01:32:39 +0000 (01:32 +0000)]
Merge "correct spelling of Notify in classname"

11 years agoImported Translations from Transifex
OpenStack Jenkins [Wed, 30 Jan 2013 00:07:31 +0000 (00:07 +0000)]
Imported Translations from Transifex

Change-Id: I04b8dddcb3f6c3c566e3b383d22989ee454f6146

11 years agoPostgresql ENUM type requires a name exceptions NVP Plugin
Aaron Rosen [Tue, 29 Jan 2013 23:36:58 +0000 (15:36 -0800)]
Postgresql ENUM type requires a name exceptions NVP Plugin

Fixes bug 1109824

Change-Id: I62beceaa14773de94e79d7017658f9f6e6212bb6

11 years agoMerge "Fix OVSQuantumAgent.port_update if not admin_state_up"
Jenkins [Tue, 29 Jan 2013 23:19:47 +0000 (23:19 +0000)]
Merge "Fix OVSQuantumAgent.port_update if not admin_state_up"

11 years agocorrect spelling of Notify in classname
Mark McClain [Tue, 29 Jan 2013 21:25:54 +0000 (16:25 -0500)]
correct spelling of Notify in classname

fixes bug 1109310

Change-Id: Ida94b51d069f44bcc3e1e24f868dbe46bf136ee1

11 years agoDisable dhcp_domain distribution when dhcp_domain is empty
Nachi Ueno [Tue, 15 Jan 2013 17:54:59 +0000 (09:54 -0800)]
Disable dhcp_domain distribution when dhcp_domain is empty

fixes bug 1099625

Change-Id: Ib86770345c46a0dd8bb38a4c3e435420170828af

11 years agoMerge "Make protocol and ethertype case insensitive for security groups"
Jenkins [Tue, 29 Jan 2013 20:02:58 +0000 (20:02 +0000)]
Merge "Make protocol and ethertype case insensitive for security groups"

11 years agoMerge "Fix branch in db migration scripts"
Jenkins [Tue, 29 Jan 2013 16:56:20 +0000 (16:56 +0000)]
Merge "Fix branch in db migration scripts"

11 years agoMerge "Finish adding help strings to all config options in Quantum code."
Jenkins [Tue, 29 Jan 2013 16:56:11 +0000 (16:56 +0000)]
Merge "Finish adding help strings to all config options in Quantum code."

11 years agoMake protocol and ethertype case insensitive for security groups
Aaron Rosen [Thu, 24 Jan 2013 23:45:04 +0000 (15:45 -0800)]
Make protocol and ethertype case insensitive for security groups

Fixes bug 1104495

Change-Id: I0d93f5e849ebe0be72fff8c1d82f5825540df338

11 years agoMerge "Add NVP port security implementation"
Jenkins [Tue, 29 Jan 2013 14:49:58 +0000 (14:49 +0000)]
Merge "Add NVP port security implementation"

11 years agoFix branch in db migration scripts
Akihiro MOTOKI [Tue, 29 Jan 2013 13:50:15 +0000 (22:50 +0900)]
Fix branch in db migration scripts

Fixes bug #1108781

Change-Id: Ia6cfcc4a1cc39136bad99be26f40aac9fa3e3e70

11 years agoFinish adding help strings to all config options in Quantum code.
Kyle Mestery [Mon, 28 Jan 2013 10:18:32 +0000 (10:18 +0000)]
Finish adding help strings to all config options in Quantum code.

This adds reasonable help strings to all remaining config options
in Quantum code. This includes all the plugins as well.

Fixes bug 1101356

Change-Id: I1cbe8303ad6d86756b992ae302707a0365625f52

11 years agoMerge "Use install_venv_common.py from oslo."
Jenkins [Tue, 29 Jan 2013 06:45:43 +0000 (06:45 +0000)]
Merge "Use install_venv_common.py from oslo."

11 years agoMerge "Clean up test_extensions.py imports"
Jenkins [Tue, 29 Jan 2013 06:35:31 +0000 (06:35 +0000)]
Merge "Clean up test_extensions.py imports"

11 years agoMerge "OVS cleanup utility removes veth pairs"
Jenkins [Tue, 29 Jan 2013 03:03:20 +0000 (03:03 +0000)]
Merge "OVS cleanup utility removes veth pairs"

11 years agoMerge "Set default lock_path in state_path"
Jenkins [Tue, 29 Jan 2013 02:47:26 +0000 (02:47 +0000)]
Merge "Set default lock_path in state_path"

11 years agoAdd NVP port security implementation
Aaron Rosen [Tue, 15 Jan 2013 06:45:41 +0000 (22:45 -0800)]
Add NVP port security implementation

Implements blueprint nvp-port-security-extension

Change-Id: I9f09424b963acb4f4847d11e9a98432094f8c164

11 years agoImported Translations from Transifex
OpenStack Jenkins [Tue, 29 Jan 2013 00:06:59 +0000 (00:06 +0000)]
Imported Translations from Transifex

Change-Id: I5a2b3949886393b5926bc98793fe00561ab049e6

11 years agoSet default lock_path in state_path
Jason Kölker [Mon, 28 Jan 2013 23:06:11 +0000 (17:06 -0600)]
Set default lock_path in state_path

* Set the default lock_path to be within quantum's state_path
* Fixes bug 1107950

Change-Id: I346d6088d773b508b4a7ba925fdc91fd4f5bf160

11 years agoUse install_venv_common.py from oslo.
Matthew Treinish [Mon, 28 Jan 2013 19:47:11 +0000 (14:47 -0500)]
Use install_venv_common.py from oslo.

This syncs install_venv_common.py from oslo and reworks the
tools/install_venv.py script to use the new library.

Change-Id: I46bbf7d656e6cb9660e37af2d3ce96150e18e7fe

11 years agoMake get_security_groups() return security group rules
Aaron Rosen [Fri, 25 Jan 2013 19:30:18 +0000 (11:30 -0800)]
Make get_security_groups() return security group rules

In nova, get_security_groups() returns the security groups and their
security group rules. In order to implement the security group proxy
it needs to return this data to nova. This can be done using multiple
requests from nova-api to quantum i.e: get_security_groups(), then
get_security_group() for each group to obtain the rules. If one has a lot
of security groups this will generate a lot of requests. Adding this change
allows all the security groups and their rules to be returned in one shot.

Fix bug 1105399

Change-Id: Ib685960311221ac4e5fe0913c7e00e15ab74accb

11 years agoFix OVSQuantumAgent.port_update if not admin_state_up
Alessio Ababilov [Mon, 28 Jan 2013 15:23:38 +0000 (17:23 +0200)]
Fix OVSQuantumAgent.port_update if not admin_state_up

self.agent does not exist. Use self.plugin_rpc, not
self.agent.plugin_rpc.

Change-Id: Id472c07f5a16891c040cc1afdcb457e1ef81beed

11 years agoClean up test_extensions.py imports
Zhongyue Luo [Sun, 27 Jan 2013 14:48:08 +0000 (22:48 +0800)]
Clean up test_extensions.py imports

Remove unnessesary imports
Import only modules

Change-Id: I4988714e3ae31ce77f3a2c1e27e81dd6258c7546

11 years agoFixes import order errors
Zhongyue Luo [Mon, 21 Jan 2013 00:50:58 +0000 (08:50 +0800)]
Fixes import order errors

Change-Id: I3df7bfb2e0812b006fa41bd76fb6156ebcd74362

11 years agoOVS cleanup utility removes veth pairs
Akihiro MOTOKI [Sat, 29 Dec 2012 20:37:13 +0000 (05:37 +0900)]
OVS cleanup utility removes veth pairs

Fixes bug 1094185

OVSInterfaceDriver plug() creates a veth pair and add it to an OVS
bridge when ovs_use_veth=True. It is useful that OVS cleanup utility
removes such veth paris in addition to removing OVS ports.

Veth pairs to be removed are veth devices corresponding to ports
removed when all_ovs_port==False. Veth pairs created to connect
the integration bridge and physical bridges are not removed.

Change-Id: Ia87f0464e69a45dd0bdfd907ac71a003df9fc23f

11 years agoRevert "Reqd. core_plugin for plugin agents & show cfg opts loaded."
Dan Wendlandt [Mon, 28 Jan 2013 07:58:30 +0000 (23:58 -0800)]
Revert "Reqd. core_plugin for plugin agents & show cfg opts loaded."

This reverts commit 06ce1329a044b8e7be9db59811d4f4316d0d0743.

bug 1059923

patch was found to not be a valid fix.

Change-Id: I465974f60fd65b4d2c9449267ab108fac13d70c8

11 years agoMerge "Reqd. core_plugin for plugin agents & show cfg opts loaded."
Jenkins [Mon, 28 Jan 2013 07:30:13 +0000 (07:30 +0000)]
Merge "Reqd. core_plugin for plugin agents & show cfg opts loaded."

11 years agoMerge "OVS: update status according to admin_state_up"
Jenkins [Sun, 27 Jan 2013 06:38:22 +0000 (06:38 +0000)]
Merge "OVS: update status according to admin_state_up"

11 years agoMerge "Ensure that correct root helper is used"
Jenkins [Fri, 25 Jan 2013 23:35:34 +0000 (23:35 +0000)]
Merge "Ensure that correct root helper is used"

11 years agoReqd. core_plugin for plugin agents & show cfg opts loaded.
Paul Michali [Thu, 24 Jan 2013 13:13:18 +0000 (08:13 -0500)]
Reqd. core_plugin for plugin agents & show cfg opts loaded.

For the linuxbridge, openvswitch, nec, and ryu plugin agents,
require the core_plugin configuration option, and throw an
exception, if not present. Note: cannot make this a required
option for all agents, as there are agent that include the
core config options, but do not require core_plugin.

In addition, log (as debug) the configuration options that
have been loaded at start-up for these four agents. This will
help with diagnosing start-up issues related to the
configuraiton settings (or lack of).

Tested that exception thrown, when missing core_plugin
value in config file(s) included, for these four agents.

bug 1059923
Change-Id: I813f0c2a3d0ec01be74a34e56ab085979197a16a

11 years agoMerge "Fix InvalidContentType can't be raised because of error in constructor"
Jenkins [Fri, 25 Jan 2013 15:58:30 +0000 (15:58 +0000)]
Merge "Fix InvalidContentType can't be raised because of error in constructor"

11 years agoEnsure that correct root helper is used
Gary Kotton [Fri, 25 Jan 2013 15:30:26 +0000 (15:30 +0000)]
Ensure that correct root helper is used

Fixes bug 1105193

Change-Id: Iaaf0b3687c410f5dbfa152d601ae3b2492a610dd

11 years agoFix InvalidContentType can't be raised because of error in constructor
Tatyana Leontovich [Thu, 24 Jan 2013 15:33:57 +0000 (17:33 +0200)]
Fix InvalidContentType can't be raised because of error in constructor

InvalidContentType exception class is defined two times:
in quantum.openstack.common.exception and quantum.common.exceptions
with two different signatures.
A lot of code like wsgi.Serializer.serialize() imports one of them but
attempts to use it with the signature of another one, which ends with
TypeError exception.

This change fixes the bug by removing the second definition of
InvalidContentType class and leaving only one which works correctly
with all code. Also adds unit tests for exceptions to prevent this and similar bugs.

Change-Id: I5d932d75ad184a0a6c6419190f2940bd47b7504e
Fixes: bug #1104090
11 years agoOVS: update status according to admin_state_up
Gary Kotton [Sun, 13 Jan 2013 12:10:23 +0000 (12:10 +0000)]
OVS: update status according to admin_state_up

Fixes bug 1099099

In addition to this the code does the following:
1. validates if the port exists on the OVS when a port update event takes
   place
2. when a port is created the initial state is set as 'DOWN'. this is
   later updated by the agent when it is detected as up

Change-Id: I917d4b5aa8df7395fcaa841d77083546478739d2

11 years agoMerge "Improving code reuse with loadbalancer entity deletion"
Jenkins [Thu, 24 Jan 2013 20:53:14 +0000 (20:53 +0000)]
Merge "Improving code reuse with loadbalancer entity deletion"

11 years agoMerge "Cisco plugin cleanup"
Jenkins [Thu, 24 Jan 2013 19:32:42 +0000 (19:32 +0000)]
Merge "Cisco plugin cleanup"

11 years agoMerge "Use babel to generate translation file"
Jenkins [Thu, 24 Jan 2013 19:10:03 +0000 (19:10 +0000)]
Merge "Use babel to generate translation file"

11 years agoCisco plugin cleanup
Arvind Somya [Wed, 16 Jan 2013 18:40:12 +0000 (13:40 -0500)]
Cisco plugin cleanup

Removing unused plugins and code from the Cisco plugin framework.

Change-Id: Ib22d173a088ad50b410a51a1d92685259d0af473
Implements: blueprint cisco-plugin-cleanup

11 years agoImproving code reuse with loadbalancer entity deletion
Avishay Balderman [Thu, 24 Jan 2013 12:31:49 +0000 (04:31 -0800)]
Improving code reuse with loadbalancer entity deletion

Fixes bug #1103988

Change-Id: I55df965a1592ecc5a76bf9f02d43e3aaa26c1980