]> review.fuel-infra Code Review - openstack-build/neutron-build.git/log
openstack-build/neutron-build.git
10 years agoFixed floating IP logic in PLUMgrid plugin
Fawad Khaliq [Tue, 8 Apr 2014 22:49:35 +0000 (15:49 -0700)]
Fixed floating IP logic in PLUMgrid plugin

  * Fixed associate and disassociate
    floating IP logic
  * Added unit tests

Change-Id: I310f5550bca1c9015cbda3e0338eb90a36dc96f1
Closes-Bug: 1298495

10 years agoMerge "Deals with fails in update_*_postcommit ops"
Jenkins [Tue, 8 Apr 2014 22:16:04 +0000 (22:16 +0000)]
Merge "Deals with fails in update_*_postcommit ops"

10 years agoMerge "Hide ipv6 subnet API attributes"
Jenkins [Tue, 8 Apr 2014 21:08:16 +0000 (21:08 +0000)]
Merge "Hide ipv6 subnet API attributes"

10 years agoMerge "OFA agent: use hexadecimal IP address in tunnel port name"
Jenkins [Tue, 8 Apr 2014 20:28:54 +0000 (20:28 +0000)]
Merge "OFA agent: use hexadecimal IP address in tunnel port name"

10 years agoMerge "Correctly inherit __table_args__ from parent class"
Jenkins [Tue, 8 Apr 2014 20:24:32 +0000 (20:24 +0000)]
Merge "Correctly inherit __table_args__ from parent class"

10 years agoMerge "set api.extensions logging to ERROR in unit tests"
Jenkins [Tue, 8 Apr 2014 19:50:35 +0000 (19:50 +0000)]
Merge "set api.extensions logging to ERROR in unit tests"

10 years agoMerge "NSX: ensure dhcp port is setup on metadata network"
Jenkins [Tue, 8 Apr 2014 18:57:25 +0000 (18:57 +0000)]
Merge "NSX: ensure dhcp port is setup on metadata network"

10 years agoMerge "Updated from global requirements"
OpenStack Jenkins [Tue, 8 Apr 2014 18:57:15 +0000 (18:57 +0000)]
Merge "Updated from global requirements"

10 years agoNSX: ensure dhcp port is setup on metadata network
armando-migliaccio [Tue, 8 Apr 2014 15:43:00 +0000 (08:43 -0700)]
NSX: ensure dhcp port is setup on metadata network

Change in scheduling behavior caused a regression
where the dhcp port is no longer provisioned on
the (admin) metadata network created when a subnet
is uplinked to a router.

This change recovers the past behavior and extend UT
coverage to avoid further regression.

Closes-bug: #1304127

Change-Id: I8420203f68a43368f3784adb0c4cbbe55f048662

10 years agoHide ipv6 subnet API attributes
Salvatore Orlando [Mon, 7 Apr 2014 23:29:54 +0000 (16:29 -0700)]
Hide ipv6 subnet API attributes

The attributes for ra mode and address mode should be hidden
until the IPv6 feature is fully implemented.

The changes in this patch will be reverted by another patch
which closes this bug.

Change-Id: I69a1a571b5beb566641200e60b84f0716c1ec138
Related-Bug: 1304093

10 years agoMerge "Enforce required config params for ODL driver"
Jenkins [Tue, 8 Apr 2014 10:31:38 +0000 (10:31 +0000)]
Merge "Enforce required config params for ODL driver"

10 years agoEnforce required config params for ODL driver
Kevin Benton [Sun, 6 Apr 2014 11:29:07 +0000 (04:29 -0700)]
Enforce required config params for ODL driver

Raise a config error during initialization if
there is no URL, username, or password specified
in the config for the OpenDayLight ML2 driver.

Closes-Bug: #1301432
Change-Id: I65fc94d3eaaade3d1402d1c82d2c1edfa7133d5a

10 years agoAdd L2 Agent side handling for non consistent security_group settings
Irena Berezovsky [Tue, 25 Mar 2014 07:30:17 +0000 (09:30 +0200)]
Add L2 Agent side handling for non consistent security_group settings

Add setting of the firewall_driver to NoopDriver when firewall_driver is None and
add warning if driver combination is not valid.
Modify is_valid_driver_combination to verify default settings: enable_security_group (True) and firewall_driver (None).

Change-Id: I841f9cf96ac6ee2ad17a4e8908d6c8a96f368cca
Closes-Bug: #1296957

10 years agoMerge "BigSwitch: Stop HTTP patch before overriding"
Jenkins [Tue, 8 Apr 2014 06:14:06 +0000 (06:14 +0000)]
Merge "BigSwitch: Stop HTTP patch before overriding"

10 years agoMerge "Fix _validate_mac_address method"
Jenkins [Tue, 8 Apr 2014 06:05:09 +0000 (06:05 +0000)]
Merge "Fix _validate_mac_address method"

10 years agoBigSwitch: Stop HTTP patch before overriding
Kevin Benton [Tue, 8 Apr 2014 03:25:23 +0000 (20:25 -0700)]
BigSwitch: Stop HTTP patch before overriding

Stops the default HTTPConnection patch used by the
Big Switch tests before patching HTTPConnection with
another substitution. This prevents mock from losing
track of the default patch which was resulting in it
not consistently being stopped by the stopall call in
cleanup.

This also corrects an incorrectly targeted mock for the
HTTP patch in one of the test files.

Closes-Bug: #1303605
Change-Id: Ia5b374c5f8d3a7905d915de4f1f8d4f3a6f0e58d

10 years agoFix wrong section name "security_group" in sample config files
Akihiro Motoki [Tue, 8 Apr 2014 01:31:06 +0000 (10:31 +0900)]
Fix wrong section name "security_group" in sample config files

The section name [security_group] in Sample config files of
ML2 and Big Switch plugins was wrong and it should be
[securitygroup].

Change-Id: I8204b2f37f96a5e46038e117853ac8637a9705fd
Closes-Bug: #1304105

10 years agoUpdated from global requirements
OpenStack Jenkins [Mon, 7 Apr 2014 21:10:22 +0000 (21:10 +0000)]
Updated from global requirements

Change-Id: I576919f28d7dd1a04ce1a3795bbf940b82d0d76f

10 years agoset api.extensions logging to ERROR in unit tests
Sean Dague [Mon, 7 Apr 2014 21:07:41 +0000 (17:07 -0400)]
set api.extensions logging to ERROR in unit tests

neutron.api.extensions generates a lot of output in a normal
unit test run. It's responsible for > 80% of the lines in the
subunit_log.txt. Logging each file load 10k times slows everything
down, takes up valuable memory, and doesn't really help with testing.

Instead we can set this to ERROR level in a fixture to ignore most
of that logging and help make the unit tests run faster.

Change-Id: I86b41f20342b4080859ee036220ddffa200f0562

10 years agoMerge "Delete routers that are requested but not reported as active"
Jenkins [Mon, 7 Apr 2014 21:06:06 +0000 (21:06 +0000)]
Merge "Delete routers that are requested but not reported as active"

10 years agoMerge "Call policy.init() once per API request"
Jenkins [Mon, 7 Apr 2014 11:03:53 +0000 (11:03 +0000)]
Merge "Call policy.init() once per API request"

10 years agoMerge "Sync service and systemd modules from oslo-incubator"
Jenkins [Mon, 7 Apr 2014 05:34:37 +0000 (05:34 +0000)]
Merge "Sync service and systemd modules from oslo-incubator"

10 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Mon, 7 Apr 2014 03:59:25 +0000 (03:59 +0000)]
Merge "Imported Translations from Transifex"

10 years agoMerge "Add missing comma in nsx router mappings migration"
Jenkins [Sun, 6 Apr 2014 22:20:56 +0000 (22:20 +0000)]
Merge "Add missing comma in nsx router mappings migration"

10 years agoMerge "BigSwitch: Improves server manager UT coverage"
Jenkins [Sun, 6 Apr 2014 19:29:18 +0000 (19:29 +0000)]
Merge "BigSwitch: Improves server manager UT coverage"

10 years agoImported Translations from Transifex
OpenStack Jenkins [Sun, 6 Apr 2014 06:31:46 +0000 (06:31 +0000)]
Imported Translations from Transifex

Change-Id: If8a4e8411119e156943771962b6d959c6936f6af

10 years agoMerge "Fixed TypeError when creating MlnxException"
Jenkins [Sat, 5 Apr 2014 23:25:51 +0000 (23:25 +0000)]
Merge "Fixed TypeError when creating MlnxException"

10 years agoAdd missing comma in nsx router mappings migration
Henry Gessau [Sat, 5 Apr 2014 22:10:52 +0000 (18:10 -0400)]
Add missing comma in nsx router mappings migration

Change-Id: I85bcc9b7fe636f34dbdf6f8c3172352c8e586e2a
Closes-bug: #1303179
Related-bug: #1207402

10 years agoMerge "BigSwitch: Don't import portbindings_db until use"
Jenkins [Fri, 4 Apr 2014 22:45:54 +0000 (22:45 +0000)]
Merge "BigSwitch: Don't import portbindings_db until use"

10 years agoMerge "Don't emit log for missing attribute check policy"
Jenkins [Fri, 4 Apr 2014 21:15:52 +0000 (21:15 +0000)]
Merge "Don't emit log for missing attribute check policy"

10 years agoBigSwitch: Improves server manager UT coverage
Kevin Benton [Fri, 7 Mar 2014 04:51:11 +0000 (20:51 -0800)]
BigSwitch: Improves server manager UT coverage

Improves the unit test coverage for the Big Switch
server manager module (100%). Also reorganizes the
capabilities test to avoid duplicating a lot of
router tests that are already covered.

Closes-Bug: #1289027
Change-Id: Ib51e8160f8d95686e86430b0a9c9f54deeda0e84

10 years agoBigSwitch: Don't import portbindings_db until use
Kevin Benton [Thu, 3 Apr 2014 10:00:37 +0000 (10:00 +0000)]
BigSwitch: Don't import portbindings_db until use

The Big Switch ML2 driver re-uses large parts of
code from the Big Switch plugin. However, the plugin
uses the old portbindings_db in its port tracking
code. This db is not created/used by ML2, so it does
not exist when the Big Switch ML2 driver is being used.
This caused a problem when the portbindings_db module
would be imported even though it wasn't being used
since the SQLAlchemy models would create the
relationships during the import.

This patch moves the portbindings_db import down to
the methods that leverage it so it won't be imported
during use by the ML2 driver.

This is a temporary solution which can be back-ported
if disabling auto schema generation is back-ported
to icehouse. An appropriate fix will require some
refactoring to avoid the port tracking code from
being imported for ML2.

Closes-Bug: #1300628
Change-Id: I551abf9d6ec832c423cba0d50bb27715b43c0b1c

10 years agoMerge "Fix test MAC addresses to be valid"
Jenkins [Fri, 4 Apr 2014 19:52:12 +0000 (19:52 +0000)]
Merge "Fix test MAC addresses to be valid"

10 years agoMerge "fixes broken neutron-netns-cleanup"
Jenkins [Fri, 4 Apr 2014 19:33:20 +0000 (19:33 +0000)]
Merge "fixes broken neutron-netns-cleanup"

10 years agoMerge "Move bash whitelisting to pep8 testenv"
Jenkins [Fri, 4 Apr 2014 19:26:37 +0000 (19:26 +0000)]
Merge "Move bash whitelisting to pep8 testenv"

10 years agoMerge "Cisco VPN driver correct reporting for admin state chg"
Jenkins [Fri, 4 Apr 2014 18:13:19 +0000 (18:13 +0000)]
Merge "Cisco VPN driver correct reporting for admin state chg"

10 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Fri, 4 Apr 2014 15:59:58 +0000 (15:59 +0000)]
Merge "Imported Translations from Transifex"

10 years agoCall policy.init() once per API request
Salvatore Orlando [Fri, 4 Apr 2014 10:09:57 +0000 (03:09 -0700)]
Call policy.init() once per API request

This patch changes the policy engine behaviour and the API base
controller in order to ensure policy.init is invoked only once
for each API request.
This will avoid issues arising from policy file updates during
API processing and speed up response generation for list operations,
by about 5%.

This patch also removes an obsolete TODO comment.

Change-Id: I108ebd26fccdea19cb00959f70d87c3bc1587df9
Closes-Bug: 1302611

10 years agoMerge "Redundant SG rule create calls in unit tests"
Jenkins [Fri, 4 Apr 2014 14:13:45 +0000 (14:13 +0000)]
Merge "Redundant SG rule create calls in unit tests"

10 years agoDon't emit log for missing attribute check policy
Salvatore Orlando [Fri, 4 Apr 2014 10:30:12 +0000 (03:30 -0700)]
Don't emit log for missing attribute check policy

A missing policy for validating whether an attribute should
be visible or not is a perfectly normal condition, and
there is no value in logging it.

Writing this information to the log is also having a
considerable performance impact on list operations.

Change-Id: Ie9d3ae6b249a5c49f6d81c1e56915174d8479a07
Closes-Bug: 1302467

10 years agoSync service and systemd modules from oslo-incubator
Jakub Libosvar [Mon, 17 Mar 2014 15:36:01 +0000 (16:36 +0100)]
Sync service and systemd modules from oslo-incubator

This patch make systemd know when neutron-service was started. This is
needed in HA environment, previously systemd returned success even
before neutron-server was able to handle requests.

Current oslo-incubator commit on HEAD:
b7ad6ddab8b1d61bf4f52ccaa461a9d68809747b

Implements: blueprint service-readiness
Change-Id: Ic9e4abd11b614a896fbd7454b9a604a69a248d0f

10 years agoMerge "Advanced Services documentation"
Jenkins [Fri, 4 Apr 2014 09:55:34 +0000 (09:55 +0000)]
Merge "Advanced Services documentation"

10 years agoMerge "Set ns_name in RouterInfo as attribute"
Jenkins [Fri, 4 Apr 2014 09:40:56 +0000 (09:40 +0000)]
Merge "Set ns_name in RouterInfo as attribute"

10 years agoImported Translations from Transifex
OpenStack Jenkins [Fri, 4 Apr 2014 06:35:16 +0000 (06:35 +0000)]
Imported Translations from Transifex

Change-Id: I9087690c96e8c0a2e59923eccef33b5934bf4830

10 years agoMove bash whitelisting to pep8 testenv
Henry Gessau [Fri, 4 Apr 2014 03:03:46 +0000 (23:03 -0400)]
Move bash whitelisting to pep8 testenv

Change-Id: If2c3ebf57143cbed04b66a9986d67f91fee89630
Closes-Bug: #1302304

10 years agoFix test MAC addresses to be valid
Brian Haley [Mon, 31 Mar 2014 16:14:59 +0000 (12:14 -0400)]
Fix test MAC addresses to be valid

MAC addresses should have 6 octets - 'ff:ff:ff:ff:ff:ff'.

Change-Id: I9c2457d978ccce15549d3258961093a130375bff
Closes-bug: #1302282

10 years agoML2: ODL driver sets port status
Robert Kukura [Thu, 3 Apr 2014 21:01:00 +0000 (17:01 -0400)]
ML2: ODL driver sets port status

The OpenDaylight mechanism driver does not depend on an L2 agent to
plug the port. Now that nova waits for notification that the port
status is ACTIVE, the ML2 driver API is extended so that the mechanism
driver that binds a port can optionally set the port status, and the
OpenDaylight mechanism driver uses this to set the port status to
ACTIVE.

Closes-Bug: 1301449
Change-Id: I171c405f36b4f2354d9585e8ae3dfa50ddaa9a7e

10 years agoMerge "Permit ICMPv6 RAs only from known routers"
Jenkins [Fri, 4 Apr 2014 00:11:40 +0000 (00:11 +0000)]
Merge "Permit ICMPv6 RAs only from known routers"

10 years agoMerge "Add a note that rpc_workers option is experimental"
Jenkins [Fri, 4 Apr 2014 00:08:42 +0000 (00:08 +0000)]
Merge "Add a note that rpc_workers option is experimental"

10 years agoMerge "Fix Jenkins translation jobs"
Jenkins [Thu, 3 Apr 2014 22:33:43 +0000 (22:33 +0000)]
Merge "Fix Jenkins translation jobs"

10 years agoMerge "Replace HTTPSConnection in NEC plugin"
Jenkins [Thu, 3 Apr 2014 22:33:34 +0000 (22:33 +0000)]
Merge "Replace HTTPSConnection in NEC plugin"

10 years agoAdd a note that rpc_workers option is experimental
Carl Baldwin [Thu, 3 Apr 2014 20:44:49 +0000 (20:44 +0000)]
Add a note that rpc_workers option is experimental

blueprint multiple-rpc-workers

Change-Id: Id354b96fc591752e1e79b072997423b6447d5de9

10 years agoMerge "use floatingip's ID as key instead of itself"
Jenkins [Thu, 3 Apr 2014 18:22:32 +0000 (18:22 +0000)]
Merge "use floatingip's ID as key instead of itself"

10 years agoFix Jenkins translation jobs
Andreas Jaeger [Mon, 31 Mar 2014 20:17:18 +0000 (22:17 +0200)]
Fix Jenkins translation jobs

The job neutron-propose-translation-update
does not update from
transifex since our po files contain duplicate entries where
obsolete entries duplicate normal entries.

Remove all obsolete entries to fix the job.

Add test to pep8 that checks that no new breakages get
introduced.

Change-Id: I9c680eeefecfa124c5b2900b7fa7a0a8f7e8ebd6
Closes-Bug: #1299349

10 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Thu, 3 Apr 2014 18:10:34 +0000 (18:10 +0000)]
Merge "Imported Translations from Transifex"

10 years agoMerge "De-duplicate unit tests for ports in Big Switch"
Jenkins [Thu, 3 Apr 2014 18:08:10 +0000 (18:08 +0000)]
Merge "De-duplicate unit tests for ports in Big Switch"

10 years agoMerge "fixes tests using called_once_ without assert"
Jenkins [Thu, 3 Apr 2014 18:08:00 +0000 (18:08 +0000)]
Merge "fixes tests using called_once_ without assert"

10 years agoMerge "Fix quota_health_monitor opt name in neutron.conf"
Jenkins [Thu, 3 Apr 2014 18:07:48 +0000 (18:07 +0000)]
Merge "Fix quota_health_monitor opt name in neutron.conf"

10 years agoRedundant SG rule create calls in unit tests
sridhargaddam [Thu, 3 Apr 2014 17:59:37 +0000 (23:29 +0530)]
Redundant SG rule create calls in unit tests

This patch removes the redundant calls in the test cases.

Closes-Bug: #1302091
Change-Id: I509843b427dc454c0e6b2fd2cbff1bbbb284337f

10 years agoSet ns_name in RouterInfo as attribute
Jakub Libosvar [Thu, 3 Apr 2014 12:52:59 +0000 (14:52 +0200)]
Set ns_name in RouterInfo as attribute

Closes-Bug: #1302007
Change-Id: I02a9b92eea06010569d3d9c5a987e69f89b23be5

10 years agoReplace HTTPSConnection in NEC plugin
Daniel Gollub [Sun, 2 Mar 2014 08:33:38 +0000 (09:33 +0100)]
Replace HTTPSConnection in NEC plugin

Replace HTTPSConnection in NEC plugin PFC driver with Requests.

SSL Verification is from now on enabled by default.

This changes the default behaviour and is the primary intention of this
change: verify SSL certificates.

This might break existing configuration/setups where the SSL certificate
used by the NEC PFC driver would not pass the verification.

SecurityImpact
DocImpact
Partial-Bug: 1188189

Change-Id: I1e5fdc9c2ed5b812aa6509d1639bd499acc5c337

10 years agoignore build directory for pep8
Sean Dague [Thu, 3 Apr 2014 13:56:14 +0000 (09:56 -0400)]
ignore build directory for pep8

this mirrors the excludes from nova.

Change-Id: I0ca5f02918842fc708c704fcf2845936dc1c5965

10 years agoMerge "Restore NOT NULL constraint lost by earlier migrations"
Jenkins [Thu, 3 Apr 2014 09:52:37 +0000 (09:52 +0000)]
Merge "Restore NOT NULL constraint lost by earlier migrations"

10 years agoMerge "Remove invalid copyright headers under API module"
Jenkins [Thu, 3 Apr 2014 08:15:56 +0000 (08:15 +0000)]
Merge "Remove invalid copyright headers under API module"

10 years agoMerge "Changed the message line of RouterInUse class"
Jenkins [Thu, 3 Apr 2014 07:35:11 +0000 (07:35 +0000)]
Merge "Changed the message line of RouterInUse class"

10 years agoMerge "Use os.uname() instead of calling uname in subprocess"
Jenkins [Thu, 3 Apr 2014 07:31:04 +0000 (07:31 +0000)]
Merge "Use os.uname() instead of calling uname in subprocess"

10 years agoImported Translations from Transifex
OpenStack Jenkins [Thu, 3 Apr 2014 06:32:23 +0000 (06:32 +0000)]
Imported Translations from Transifex

Change-Id: Ifcadfb837fc2864214c6d070d90388110742b537

10 years agoMerge "Explicitly import state_path opt in tests.base"
Jenkins [Thu, 3 Apr 2014 01:35:50 +0000 (01:35 +0000)]
Merge "Explicitly import state_path opt in tests.base"

10 years agoMerge "Remove last parts of Quantum compatibility shim"
Jenkins [Thu, 3 Apr 2014 01:04:53 +0000 (01:04 +0000)]
Merge "Remove last parts of Quantum compatibility shim"

10 years agoMerge "Revert changes removing OVSBridge return"
Jenkins [Wed, 2 Apr 2014 22:44:37 +0000 (22:44 +0000)]
Merge "Revert changes removing OVSBridge return"

10 years agoDelete routers that are requested but not reported as active
Carl Baldwin [Tue, 1 Apr 2014 22:02:17 +0000 (22:02 +0000)]
Delete routers that are requested but not reported as active

There are two cases that I can think of that result in a router being
requested but not reported as active.  One is that admin_state_up has
been set to False.  In this case, the router is never removed and
continues to be operational.

The other case is if a router is changed and then deleted before the
change is processed.  In this case, it is prudent to be sure that the
router is queued for deletion.

Change-Id: I4738f599a18f0d130cc8ad4d4dafc488eec75ffd
Closes-Bug: #1215387

10 years agoExplicitly import state_path opt in tests.base
Joe Gordon [Wed, 2 Apr 2014 18:25:27 +0000 (11:25 -0700)]
Explicitly import state_path opt in tests.base

This wasn't explicitly needed in the unit tests because
neutron.common.config was already loaded, but this broke for the
functional tests (which are non-voting) so add a CONF.import_opt line so
functional tests know where to find the definition for state_path.

Change-Id: I5b87a75317e2ba670adaa59b251bfa860920fd61

10 years agoMerge "Enable hacking H301 check"
Jenkins [Wed, 2 Apr 2014 20:39:05 +0000 (20:39 +0000)]
Merge "Enable hacking H301 check"

10 years agoMerge "Fixing Arista CLI command"
Jenkins [Wed, 2 Apr 2014 20:38:57 +0000 (20:38 +0000)]
Merge "Fixing Arista CLI command"

10 years agofixes tests using called_once_ without assert
Miguel Angel Ajo [Mon, 31 Mar 2014 13:50:55 +0000 (15:50 +0200)]
fixes tests using called_once_ without assert

A few tests were using mock's called_once, or called_once_with_args
instead of assert_called_once or assert_called_once_with_args. Those
methods return a bool that needs to be actively checked.

The tests are fixed to avoid them from passing if the call condition
is not met.

Change-Id: I21e5257b26b2a08cc8f0b108233d1d5cc0b97b89
Closes-bug: #1297875

10 years agoMerge "update doc string - correct typo"
Jenkins [Wed, 2 Apr 2014 19:22:17 +0000 (19:22 +0000)]
Merge "update doc string - correct typo"

10 years agoMerge "NSX: Fix pagination support"
Jenkins [Wed, 2 Apr 2014 18:47:44 +0000 (18:47 +0000)]
Merge "NSX: Fix pagination support"

10 years agoRemove invalid copyright headers under API module
Doug Hellmann [Wed, 2 Apr 2014 18:09:03 +0000 (11:09 -0700)]
Remove invalid copyright headers under API module

Change-Id: I629b639f6c94654117fbafb8b21840f7ba6b045a
Partial-bug: #1262424

10 years agoupdate doc string - correct typo
Manish Godara [Wed, 2 Apr 2014 16:30:43 +0000 (09:30 -0700)]
update doc string - correct typo

Change-Id: I70503293cdd17a520dd9ec66ee297f2d36added6

10 years agoMerge "Only send notifications on uuid device_id's"
Jenkins [Wed, 2 Apr 2014 16:29:45 +0000 (16:29 +0000)]
Merge "Only send notifications on uuid device_id's"

10 years agoRevert changes removing OVSBridge return
Kyle Mestery [Wed, 2 Apr 2014 14:39:13 +0000 (14:39 +0000)]
Revert changes removing OVSBridge return

This reverts changes from this review [1] which incorrectly removed
the return of the OVSBridge object when calling BaseOVS.add_bridge.
This broke all functional tests relying on this return.

[1] https://review.openstack.org/#/c/71142/

Related-Bug: #1301363

Change-Id: If32e155cc2bd368b2e842f14b1d1da0827ccfeff

10 years agofixes broken neutron-netns-cleanup
Miguel Angel Ajo [Tue, 18 Mar 2014 12:33:19 +0000 (13:33 +0100)]
fixes broken neutron-netns-cleanup

Some configuration parameters used in neutron.agent.linux.utils
were missing. The namespace attribute in the FakeNetwork object
was missing, and used in neutron.agent.linux.dhcp. Also, the
plugin object was missing for release_dhcp_port operation.

We provide a fake plugin object to accept current and any future
plugin calls as this is meant to be an standalone tool that
should work without any RPC connectivity.

FakeNetwork was switched for neutron.agent.linux.dhcp.NetModel
to follow any future changes in NetModel.

Two wrong called_once_with_args calls without assert were fixed.

Change-Id: Ia51ea9bd4c8eea6b250858964ad5286c933702e0
Closes-Bug: #1291915
Partial-Bug: #1297875

10 years agoMerge "Update BigSwitch Name to its correct name"
Jenkins [Wed, 2 Apr 2014 10:57:52 +0000 (10:57 +0000)]
Merge "Update BigSwitch Name to its correct name"

10 years agoMerge "Return 409 for second firewall creation"
Jenkins [Wed, 2 Apr 2014 10:12:58 +0000 (10:12 +0000)]
Merge "Return 409 for second firewall creation"

10 years agoMerge "Stop using portbindings_db in BSN ML2 driver"
Jenkins [Wed, 2 Apr 2014 10:06:32 +0000 (10:06 +0000)]
Merge "Stop using portbindings_db in BSN ML2 driver"

10 years agoMerge "Removing vim header lines"
Jenkins [Wed, 2 Apr 2014 08:57:02 +0000 (08:57 +0000)]
Merge "Removing vim header lines"

10 years agoMerge "NSX plugin: return 400 for invalid gw certificate"
Jenkins [Wed, 2 Apr 2014 08:56:01 +0000 (08:56 +0000)]
Merge "NSX plugin: return 400 for invalid gw certificate"

10 years agoPermit ICMPv6 RAs only from known routers
Xuhan Peng [Mon, 10 Feb 2014 03:02:33 +0000 (22:02 -0500)]
Permit ICMPv6 RAs only from known routers

Currently ingress ICMPv6 RAs are permitted from any IPs by
default to allow VMs to accept ICMPv6 RA from provider network.
In this way, VM can accept RAs from attacker VM and configure
a network prefix specified by the attacher VM.

Remove permitting ICMPv6 RAs from any IPs and add security rule
to only permit ICMPv6 RA from:

1. If the port's subnet is configured with ipv6_ra_mode value
(i.e.value is slaac, dhcpv6-stateful, or dhcpv6-stateless), RA
is sending from dnsmasq controlled by OpenStack. In this case,
allow RA from the link local address of gateway port (if the
gateway port is created).

2. If the subnet's gateway port is not managed by OpenStack, allow
the ICMPv6 RA sent from the subnet gateway IP if it's a link local
address. The administrator needs to configure the gateway IP as
link local address in this case to make the RA rule work.

Change-Id: I1d5c7aaa8e4cf057204eb746c0faab2c70409a94
Closes-Bug: 1262759

10 years agoReturn 409 for second firewall creation
Akihiro Motoki [Wed, 2 Apr 2014 02:34:01 +0000 (11:34 +0900)]
Return 409 for second firewall creation

Second firewall creation returns 500, but it is an expected behavior
of firewall reference implementation and an internal server error
should not be returned.

Change-Id: I9f537b238007d35172e2504591d9d3568ba3a41a
Closes-Bug: #1301105

10 years agoMerge "Log configuration values for OFA agent"
Jenkins [Wed, 2 Apr 2014 05:45:18 +0000 (05:45 +0000)]
Merge "Log configuration values for OFA agent"

10 years agoOFA agent: use hexadecimal IP address in tunnel port name
fumihiko kakuma [Tue, 18 Mar 2014 02:36:29 +0000 (11:36 +0900)]
OFA agent: use hexadecimal IP address in tunnel port name

The remote IP address is used to form the tunnel port name
With some OVS/Linux combinations there is a 15 character limit
on port names, so a name like 'gre-192.168.10.10' does not work.
This fix uses the shorter hexadecimal representation of
the IP address instead.
This problem was reported and fixed for OVS agent.

Closes-Bug: 1294474

Change-Id: Ieab1eb8a5c430f69aff61a317cc28f23ba95ad2d

10 years agoFixing Arista CLI command
sukhdev [Wed, 2 Apr 2014 02:01:50 +0000 (19:01 -0700)]
Fixing Arista CLI command

A minor change is made to the Arista API between ML2 Driver and the
back-end. This fix addresses this change to align Icehouse release with
Arista EOS releases.

Change-Id: Ia7cd3701c76d920a7e0d1334290c73ce7e8e5576
Closes-Bug: 1301093

10 years agouse floatingip's ID as key instead of itself
Yong Sheng Gong [Wed, 19 Mar 2014 08:14:33 +0000 (16:14 +0800)]
use floatingip's ID as key instead of itself

Change-Id: I267f174a0e2e611ec007404c7b44e2c73a359c38
Closes-Bug: 1294526

10 years agoUse a temp dir for CONF.state_path
Joe Gordon [Tue, 1 Apr 2014 22:06:36 +0000 (15:06 -0700)]
Use a temp dir for CONF.state_path

external_pids will defaults to $state_path(/var/lib/neutron)/external/pids
which isn't accessible when running unit tests so use a tempdir for
CONF.state_path. This bug arose when oslo.config 1.3.0 came out which
fixed bug #1282250 (I4324bda6f3de3cdf05f8eb3cf16052c04018dec8) and
caused this issue.

Change-Id: I253c5ea85c51eff94399da0b9462d10a9c509a0f
Closes-Bug: #1301027

10 years agoUse os.uname() instead of calling uname in subprocess
Jakub Libosvar [Tue, 1 Apr 2014 14:41:38 +0000 (16:41 +0200)]
Use os.uname() instead of calling uname in subprocess

Related-Bug: #1291535

Change-Id: I57e18c0b95904f318e3fff08cd18b32e28f48834

10 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Tue, 1 Apr 2014 18:13:39 +0000 (18:13 +0000)]
Merge "Imported Translations from Transifex"

10 years agoEnable hacking H301 check
Matthew Treinish [Mon, 31 Mar 2014 21:17:44 +0000 (17:17 -0400)]
Enable hacking H301 check

This commit enables the H301 hacking rule by removing all the
multiple imports in a single line from neutron.

Partial-Bug: #1291032

Change-Id: I7ba7f82fb36a433d73190eb3d568b6961ccb57c6

10 years agoMerge "Move test_ovs_lib to tests/unit/agent/linux"
Jenkins [Tue, 1 Apr 2014 16:33:29 +0000 (16:33 +0000)]
Merge "Move test_ovs_lib to tests/unit/agent/linux"

10 years agoMerge "Fix function parsing the kernel version"
Jenkins [Tue, 1 Apr 2014 16:27:45 +0000 (16:27 +0000)]
Merge "Fix function parsing the kernel version"

10 years agoStop using portbindings_db in BSN ML2 driver
Kevin Benton [Tue, 1 Apr 2014 08:05:29 +0000 (01:05 -0700)]
Stop using portbindings_db in BSN ML2 driver

Avoids using the portbindings_db in the Big Switch
ML2 driver since ML2 has deprecated that database for
its own version that tracks the same information.

Also eliminates unnecessary 'binding_host' field since
it is now always the same as as the 'portbinding:host_id'
field.

Closes-Bug: #1300628
Change-Id: I17d47cb446cdd2e989c3e0d01b797a81309faaa7