]> review.fuel-infra Code Review - openstack-build/neutron-build.git/log
openstack-build/neutron-build.git
11 years agoMerge "Merge OVSVethInterfaceDriver into OVSInterfaceDriver"
Jenkins [Tue, 23 Oct 2012 14:21:22 +0000 (14:21 +0000)]
Merge "Merge OVSVethInterfaceDriver into OVSInterfaceDriver"

11 years agoUpdate common.
Michael Still [Thu, 18 Oct 2012 18:43:37 +0000 (11:43 -0700)]
Update common.

policy.py and setup.py are not updated as they cause test failures.
I will investigate them separately.

Change-Id: Ie46626e67ce5c32baf0eda9f63afb33611d5015a

11 years agoMerge "correct nvplib to update device_id"
Jenkins [Fri, 12 Oct 2012 17:10:09 +0000 (17:10 +0000)]
Merge "correct nvplib to update device_id"

11 years agoMerge OVSVethInterfaceDriver into OVSInterfaceDriver
Akihiro MOTOKI [Fri, 28 Sep 2012 13:05:50 +0000 (22:05 +0900)]
Merge OVSVethInterfaceDriver into OVSInterfaceDriver

Fixes bug 1049385

Due to some issues using OVS internal interfaces across namespaces
with OpenFlow controllers (bug 1048681), a patch introduced the
OVSVethInterfaceDriver in addition to the base OVSInterfaceDriver.
However, OVSVethInterfaceDriver is just a variation of OVSInterfaceDriver
and the difference is how to create an interface (OVS internal vs veth).
This patch merge OVSVethInterfaceDriver into OVSInterfaceDriver
by introducing a new flag 'ovs_use_veth' (which defaults to False).

Change-Id: Ie8b01e6776bf703f72a9e2a471b24e126f6e2322

11 years agoLogging indicates when service starts and terminates
Gary Kotton [Mon, 8 Oct 2012 02:44:50 +0000 (02:44 +0000)]
Logging indicates when service starts and terminates

Fixes bug 1064070

The patch adds a log entry indication that the service has started. In
addition to this if there is an "exit" statement in the code, then the
log message will indicate that the service has been terminated.

Change-Id: Idb6cff4b85d26331df2c6e14aa0680e82b4e2cd7

11 years agoEnsures port is not created when database exception occurs
Gary Kotton [Mon, 8 Oct 2012 04:18:11 +0000 (04:18 +0000)]
Ensures port is not created when database exception occurs

Fixes bug 1064261

The port creation code did not correctly treat a database error. That is,
if there was an exception the port would be created and an error returned
to the client.

Change-Id: I6cf36d1c641b46716afb16f228b8daa631099a5d

11 years agoMerge "Improve unit test times"
Jenkins [Mon, 8 Oct 2012 07:31:54 +0000 (07:31 +0000)]
Merge "Improve unit test times"

11 years agoMerge "Update vif driver of Ryu plugin"
Jenkins [Mon, 8 Oct 2012 01:25:19 +0000 (01:25 +0000)]
Merge "Update vif driver of Ryu plugin"

11 years agoMerge "Add control_exchange option to common/config.py"
Jenkins [Mon, 8 Oct 2012 00:50:46 +0000 (00:50 +0000)]
Merge "Add control_exchange option to common/config.py"

11 years agoMerge "tests/unit/ryu/test_ryu_db: db failure"
Jenkins [Mon, 8 Oct 2012 00:27:33 +0000 (00:27 +0000)]
Merge "tests/unit/ryu/test_ryu_db: db failure"

11 years agoMerge "get_network in nvp plugin didn't return subnet information"
Jenkins [Sun, 7 Oct 2012 22:33:47 +0000 (22:33 +0000)]
Merge "get_network in nvp plugin didn't return subnet information"

11 years agoImprove unit test times
Gary Kotton [Sat, 6 Oct 2012 02:56:11 +0000 (02:56 +0000)]
Improve unit test times

Revert the change using a temporary file for the database.
The sqlalchemy version is updated to >=0.7.8 (this includes
fixes for memory leaks).

Change-Id: Ib5d128edfef0f8e0afebaf408f7834fa3de2481a

11 years agoAdd control_exchange option to common/config.py
Mark McClain [Fri, 5 Oct 2012 19:51:19 +0000 (15:51 -0400)]
Add control_exchange option to common/config.py

fixes bug 1062517

Follows the instructions in the openstack/common/rpc/__init__.py and
defines a control_exchange option.

Change-Id: I92c50e1aea44954b2c9d62db1df536b9044b6951

11 years agoTreat invalid namespace call
Gary Kotton [Fri, 5 Oct 2012 10:07:13 +0000 (06:07 -0400)]
Treat invalid namespace call

Fixes bug 1060559

Change-Id: I29250100416b87f55781fb7e97339f6d3761513f

11 years agoget_network in nvp plugin didn't return subnet information
Aaron Rosen [Thu, 4 Oct 2012 23:18:58 +0000 (16:18 -0700)]
get_network in nvp plugin didn't return subnet information

Adds unit test for show network which checks for subnet.

Fixes bug 1061781

Change-Id: I459a1f11a9e4294c31d002c8dbcfde873e43c800

11 years agotests/unit/ryu/test_ryu_db: db failure
Isaku Yamahata [Tue, 18 Sep 2012 14:55:14 +0000 (23:55 +0900)]
tests/unit/ryu/test_ryu_db: db failure

Fixes bug 1061408

The unit test of test_ryu_db fails when it is specified to run as follows.

$ ./run_tests.sh quantum.tests.unit.ryu.test_ryu_db
RyuDBTest
    test_ofp_server (quantum.tests.unit.ryu.test_ryu_db.RyuDBTest)ERROR

======================================================================
ERROR: test_ofp_server (quantum.tests.unit.ryu.test_ryu_db.RyuDBTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/quantum/tests/unit/ryu/test_ryu_db.py", line 30, in setUp
    options = {"sql_connection": cfg.CONF.DATABASE.sql_connection}
  File "/quantum/openstack/common/cfg.py", line 1039, in __getattr__
    return self._get(name)
  File "/quantum/openstack/common/cfg.py", line 1361, in _get
    value = self._substitute(self._do_get(name, group))
  File "/quantum/openstack/common/cfg.py", line 1377, in _do_get
    info = self._get_opt_info(name, group)
  File "/quantum/openstack/common/cfg.py", line 1470, in _get_opt_info
    raise NoSuchOptError(opt_name, group)
NoSuchOptError: no such option: DATABASE

----------------------------------------------------------------------
Ran 1 test in 0.001s

Change-Id: Ie639914c64e6fba10112a58efa7f363615d0c9fd

11 years agocorrect nvplib to update device_id
Aaron Rosen [Thu, 4 Oct 2012 04:52:43 +0000 (21:52 -0700)]
correct nvplib to update device_id

Fixes bug 1061391

Change-Id: Ide8efdfb12dd0f403d7e4f468b1c9f3cc024f9a9

11 years agoMerge "Add quantum-usage-audit"
Jenkins [Tue, 2 Oct 2012 18:54:11 +0000 (18:54 +0000)]
Merge "Add quantum-usage-audit"

11 years agoUpdate rpc and notifier libs from openstack.common
Doug Hellmann [Tue, 2 Oct 2012 16:34:30 +0000 (12:34 -0400)]
Update rpc and notifier libs from openstack.common

Bring in the latest versions of the rpc and notifications
libraries to fix broken imports in the current version
of master.

Change-Id: I6f545df4622eabdf2f7bf4e9cf155db20bd2c4c1
Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
11 years agoAdd quantum-usage-audit
Julien Danjou [Tue, 2 Oct 2012 11:21:41 +0000 (13:21 +0200)]
Add quantum-usage-audit

This adds a program aiming to send "$resource.exists" notifications regularly
via a cronjob. We will use this in Ceilometer to meter resources usage.

Change-Id: I718c67bfb54b74afb3af262bb08cbfd71531188a
Signed-off-by: Julien Danjou <julien@danjou.info>
11 years agoFix filters default value in get_networks
Julien Danjou [Tue, 2 Oct 2012 13:37:49 +0000 (15:37 +0200)]
Fix filters default value in get_networks

With that change, if get_networks() is called without fields set to
something, _filter_nets_l3 fails because it tries to call "filters.get()"
where filters is None.

This fixes bug #1060047

Change-Id: Ia0787e7a278a3562af5409861762f067d71f2cf6
Signed-off-by: Julien Danjou <julien@danjou.info>
11 years agoMerge "Support for several HA RabbitMQ servers."
Jenkins [Tue, 2 Oct 2012 13:25:07 +0000 (13:25 +0000)]
Merge "Support for several HA RabbitMQ servers."

11 years agol3_nat_agent was renamed to l3_agent
Somik Behera [Tue, 2 Oct 2012 05:33:12 +0000 (22:33 -0700)]
l3_nat_agent was renamed to l3_agent
and this was missed.

This broke quantum-l3-agent when setup.py was
used to install but  did not affect package installs.

This change fixes the issue.

Change-Id: I820d26fba5d2774262577ed4fbae81dc7362e93e

11 years agoUpdate vif driver of Ryu plugin
Yoshihiro Kaneko [Mon, 1 Oct 2012 06:56:50 +0000 (15:56 +0900)]
Update vif driver of Ryu plugin

Fixes bug 1059393

This patch allows Ryu plugin to be compatible with Nova Security Groups.

Change-Id: Ief1039f4b73af2e815fed429cd717e64888565c9

11 years agoSupport for several HA RabbitMQ servers.
Emilien Macchi [Thu, 27 Sep 2012 14:20:29 +0000 (16:20 +0200)]
Support for several HA RabbitMQ servers.

Change-Id: I37f73867ff469133c39bf5f1a7fd48f48b0704d4

11 years agoCorrect the error message in the Class NoNetworkAvailable
ivan-zhu [Fri, 28 Sep 2012 14:36:23 +0000 (22:36 +0800)]
Correct the error message in the Class NoNetworkAvailable

Bug #1052294

Change "No virtual network is available." to "No tenant
network is available for allocation."

Change-Id: I8e2b40df1afa46522666d51218b82a4deef2ff64

11 years agoMerge "clean notification options in quantum.conf."
Jenkins [Thu, 27 Sep 2012 07:46:11 +0000 (07:46 +0000)]
Merge "clean notification options in quantum.conf."

11 years agoMerge "Fix flag name for l3 agent external network id"
Jenkins [Thu, 27 Sep 2012 07:39:42 +0000 (07:39 +0000)]
Merge "Fix flag name for l3 agent external network id"

11 years agoFix flag name for l3 agent external network id
Takaaki Suzuki [Tue, 25 Sep 2012 06:32:33 +0000 (15:32 +0900)]
Fix flag name for l3 agent external network id

Bug #1056720

Change-Id: I744da7e1584d5230a23c4fc8b6fc258814babfa9

11 years agoclean notification options in quantum.conf.
gongysh [Wed, 26 Sep 2012 08:48:18 +0000 (16:48 +0800)]
clean notification options in quantum.conf.

Bug #1056637

Change-Id: I9d9002d3dfbbfa94224bc6ed9dc1a7f5207fb563

11 years agoAdd log setting options into quantum.conf.
gongysh [Wed, 26 Sep 2012 04:17:09 +0000 (12:17 +0800)]
Add log setting options into quantum.conf.

Bug #1056584

This will improve the user experiences.

Change-Id: Iaafd4eeb4fc23c5473276b3cf0e5ccffe2150ec2

11 years agoWarn about use of overlapping ips in config file
Salvatore Orlando [Tue, 25 Sep 2012 17:51:59 +0000 (10:51 -0700)]
Warn about use of overlapping ips in config file

Fix bug 1055822

Add an explicity user in the configuration file regarding consequences of
enabling overlapping IPs when Quantum is used with nova security groups
and/or metadata.

Change-Id: Ifa67216fc7479a7858c0653422bf5baab58fb350

12 years agoDo global CIDR check if overlapping IPs disabled.
Salvatore Orlando [Mon, 24 Sep 2012 23:20:35 +0000 (16:20 -0700)]
Do global CIDR check if overlapping IPs disabled.

Fix bug 1055822

This patch adds a global configuration option for enabling or disabling
overlapping IPs for subnets in different networks.
If they are disabled, the validation of the CIDR against overlapping
ones should be performed globally and not just among subnets defined for
the current network.

Change-Id: If6a562324f0a5c3982591be8030c4628ec9007b6

12 years agoFix rootwrap filter for dnsmasq when no namespace is used
Gary Kotton [Mon, 24 Sep 2012 12:31:27 +0000 (12:31 +0000)]
Fix rootwrap filter for dnsmasq when no namespace is used

Fixes bug 1055384

Change-Id: I98381299f28da0e4c443efd4c22ba551022e0288

12 years agoAdd common popen support to the cisco plugin
Gary Kotton [Mon, 24 Sep 2012 05:11:20 +0000 (05:11 +0000)]
Add common popen support to the cisco plugin

Fixes bug 1055290

Change-Id: I5c90b3f23288101c34ac94470476676d5d9c141e

12 years agoMerge "Uses a common subprocess popen function"
Jenkins [Sun, 23 Sep 2012 22:16:51 +0000 (22:16 +0000)]
Merge "Uses a common subprocess popen function"

12 years agoUse sqlite db on file for unit tests
Salvatore Orlando [Sat, 22 Sep 2012 00:06:47 +0000 (17:06 -0700)]
Use sqlite db on file for unit tests

bug 1054387

So far unit tests were executed using an in-memory database.
Memory was not being freed thus causing oom frequently due to
the increased number of unit tests.
Since sqlite in memory db do not work very well anyway with nose,
we are moving to file-based databases; slower, but safer.

Also, this patch removes a bunch of unit tests which do not add
anything to code coverage or number or test cases exercised.

Change-Id: Ib853727a5268643fbe8a99f6ebd0fc10aca6a43a

12 years agoUses a common subprocess popen function
Gary Kotton [Sun, 23 Sep 2012 08:34:33 +0000 (08:34 +0000)]
Uses a common subprocess popen function

Fixes bug 1053381

Change-Id: I8a89ba8d4f03094fcc581981044582c95d1300bb

12 years agoMerge "Remove a function that is not used"
Jenkins [Sat, 22 Sep 2012 19:07:35 +0000 (19:07 +0000)]
Merge "Remove a function that is not used"

12 years agoremove default value of local_ip in OVS agent
Mark McClain [Mon, 17 Sep 2012 21:28:00 +0000 (17:28 -0400)]
remove default value of local_ip in OVS agent

fixes bug 1051744

Remove the default value for local_ip in the OVS agent config.

Change-Id: Ie23ba8510c0cf5c17443c805e0befce6eccb253c

12 years agoMerge "Fix OVS and LB plugins' VLAN allocation table synchronization"
Jenkins [Fri, 21 Sep 2012 14:13:50 +0000 (14:13 +0000)]
Merge "Fix OVS and LB plugins' VLAN allocation table synchronization"

12 years agoRemove a function that is not used
Gary Kotton [Thu, 20 Sep 2012 13:09:45 +0000 (13:09 +0000)]
Remove a function that is not used

Fixes bug 1053393

Change-Id: I7b7ae48d9e7bf34ce280a3aec53f1ec11fcd1158

12 years agoMerge "l3-agent: move check if ext-net bridge exists within daemon loop"
Jenkins [Fri, 21 Sep 2012 09:56:49 +0000 (09:56 +0000)]
Merge "l3-agent: move check if ext-net bridge exists within daemon loop"

12 years agoMerge "all rootwrap filter for 'route', used by l3-agent"
Jenkins [Fri, 21 Sep 2012 09:50:04 +0000 (09:50 +0000)]
Merge "all rootwrap filter for 'route', used by l3-agent"

12 years agoMerge "ZMQ fixes for Quantum from openstack-common"
Jenkins [Fri, 21 Sep 2012 09:49:57 +0000 (09:49 +0000)]
Merge "ZMQ fixes for Quantum from openstack-common"

12 years agoall rootwrap filter for 'route', used by l3-agent
Dan Wendlandt [Fri, 21 Sep 2012 08:49:04 +0000 (01:49 -0700)]
all rootwrap filter for 'route', used by l3-agent

bug 1053889

Change-Id: If35f1f48464cd0bb795af4e9e82f5d7a9867b0aa

12 years agoMerge "Add catch-call try/catch within rpc_loop in ovs plugin agent"
Jenkins [Fri, 21 Sep 2012 08:10:12 +0000 (08:10 +0000)]
Merge "Add catch-call try/catch within rpc_loop in ovs plugin agent"

12 years agol3-agent: move check if ext-net bridge exists within daemon loop
Dan Wendlandt [Fri, 21 Sep 2012 06:52:52 +0000 (23:52 -0700)]
l3-agent: move check if ext-net bridge exists within daemon loop

bug 1052522

the l3 agent checked if the external network bridge exists in its
constructor, raising an uncaught exception if it did not.  this does not
make much sense when running the l3-agent as a deamon, especially since
it can be the case that the l3-agent starts before open vswitch.

Change-Id: Ie1717b2c02c9f0bc0caf34a6fdb0dc3a930123c0

12 years agoMerge "Fix deadlock of Metaplugin"
Jenkins [Fri, 21 Sep 2012 05:29:38 +0000 (05:29 +0000)]
Merge "Fix deadlock of Metaplugin"

12 years agoAdd catch-call try/catch within rpc_loop in ovs plugin agent
Dan Wendlandt [Fri, 21 Sep 2012 04:49:51 +0000 (21:49 -0700)]
Add catch-call try/catch within rpc_loop in ovs plugin agent

related to bug 1050512

when running in db-mode, the ovs plugin agent will catch any unexpected
exceptions generated during processing.  However, in rpc-mode, this
does not happen, meaning a small error, even a transient one, causes the
agent to exit completely.  Thic change adds a try-catch block to the
rcp_loop(), causing the agent to log any unexpected exception, wait for
the polling period, then retry the loop after resetting all state.

Change-Id: I76eae1800831e59c5078c4be8fa5ca22298bfb0a

12 years agoFix OVS and LB plugins' VLAN allocation table synchronization
Bob Kukura [Thu, 20 Sep 2012 20:03:14 +0000 (16:03 -0400)]
Fix OVS and LB plugins' VLAN allocation table synchronization

In both the openvswitch and linuxbridge plugins, if previous entries
for a physical network have been completely removed from the
network_vlan_ranges configuration variable, allocation table records
for unallocated VLANs on that physical network are now removed from
the DB at startup. The test_ovs_db and test_lb_db unit tests have also
been extended to cover this case. Fixes bug 1052289.

Test assertions that were added to the test_ovs_db unit test in
https://review.openstack.org/#/c/11388 have been added to the
test_lb_db unit test. Fixes bug 1045596.

Change-Id: I04e924603eaf0df717414c2aaa83fd203b791308

12 years agoZMQ fixes for Quantum from openstack-common
Eric Windisch [Thu, 20 Sep 2012 22:50:32 +0000 (18:50 -0400)]
ZMQ fixes for Quantum from openstack-common

Change Ifdeff8ae: Support declare_topic_consumer in impl_zmq
Change Ifc132519: fanout subscriptions in impl_zmq

Change-Id: Ic51fd09c302e767316d72fb38892e3761ef36de9

12 years agoMerge "Fix for flat network creation in Cisco plugin"
Jenkins [Thu, 20 Sep 2012 16:57:26 +0000 (16:57 +0000)]
Merge "Fix for flat network creation in Cisco plugin"

12 years agoRestore SIGPIPE default action for subprocesses
Thierry Carrez [Thu, 20 Sep 2012 12:42:53 +0000 (14:42 +0200)]
Restore SIGPIPE default action for subprocesses

Python ignores SIGPIPE on startup, because it prefers to check every
write and raise an IOError exception rather than taking the signal. Most
Unix subprocesses don't expect to work this way. This patch (adapted
from Colin Watson's post at http://tinyurl.com/2a7mzh5) sets SIGPIPE
back to the default action for quantum.agent.linux.utils.execute,
quantum.common.utils.execute and quantum-rootwrap created subprocesses.

Fixes bug 1053364

Change-Id: Ib805f1f8846c245b75a5ea64278c840b823c1fb2

12 years agoFix for flat network creation in Cisco plugin
Sumit Naiksatam [Wed, 19 Sep 2012 20:20:12 +0000 (13:20 -0700)]
Fix for flat network creation in Cisco plugin

Bug #1053154

Checks for the validity of the VLAN ID needed to be performed. In cases where
segmentation ID is not greater than zero, the Nexus sub-plugin does not
need to be invoked for that network.

Change-Id: I813d569c0c3d26c08554bf3599633b700a98c739

12 years agoMerge "Removes test desription that is no longer valid"
Jenkins [Wed, 19 Sep 2012 18:01:47 +0000 (18:01 +0000)]
Merge "Removes test desription that is no longer valid"

12 years agoRemoves test desription that is no longer valid
Gary Kotton [Wed, 19 Sep 2012 13:32:04 +0000 (13:32 +0000)]
Removes test desription that is no longer valid

Fixes bug 1052727

Change-Id: I01b81febfcc3e38a198bed55e55451746f321ab1

12 years agoModified code Pyflakes warning.
siyingchun [Sat, 8 Sep 2012 14:56:17 +0000 (22:56 +0800)]
Modified code Pyflakes warning.

File model_base.py:
W402 'sa' imported but unused

Change-Id: I167fbb81f88ddf6d2c6405832d0fe1c445509402

12 years agoMerge "remove unittest section for nec plugin README file"
Jenkins [Wed, 19 Sep 2012 05:27:25 +0000 (05:27 +0000)]
Merge "remove unittest section for nec plugin README file"

12 years agoMerge "remove unittest section for ryu plugin README file"
Jenkins [Wed, 19 Sep 2012 05:27:07 +0000 (05:27 +0000)]
Merge "remove unittest section for ryu plugin README file"

12 years agoMerge "NVP plugin missing dhcp rpc callbacks"
Jenkins [Wed, 19 Sep 2012 05:22:55 +0000 (05:22 +0000)]
Merge "NVP plugin missing dhcp rpc callbacks"

12 years agoMerge "always push down metadata rules for router, not just if gateway exists"
Jenkins [Wed, 19 Sep 2012 05:04:00 +0000 (05:04 +0000)]
Merge "always push down metadata rules for router, not just if gateway exists"

12 years agoFix deadlock of Metaplugin
Nachi Ueno [Wed, 19 Sep 2012 03:26:07 +0000 (03:26 +0000)]
Fix deadlock of Metaplugin

Fixes bug 1049981
Fix deadlock on network creation
Fix attribute filtering function

Change-Id: I6b75ea9c22b7844f84de16416d9610ad8c628800

12 years agoremove unittest section for nec plugin README file
Jiajun Liu [Wed, 19 Sep 2012 02:47:39 +0000 (10:47 +0800)]
remove unittest section for nec plugin README file

Fixes bug 1052731.

Change-Id: Ie69ab4a8ae805dc2a12aac92e817420c675142a6

12 years agoremove unittest section for ryu plugin README file
Jiajun Liu [Wed, 19 Sep 2012 02:30:57 +0000 (10:30 +0800)]
remove unittest section for ryu plugin README file

Fixes bug 1052729.

Change-Id: I396512678ddb98e2a572a94633fbf8633fd6d930

12 years agoMerge "Fix for DB error in the Cisco plugin"
Jenkins [Tue, 18 Sep 2012 17:01:47 +0000 (17:01 +0000)]
Merge "Fix for DB error in the Cisco plugin"

12 years agoFix for DB error in the Cisco plugin
Sumit Naiksatam [Tue, 18 Sep 2012 06:16:15 +0000 (23:16 -0700)]
Fix for DB error in the Cisco plugin

Bug #1052295

When the Cisco plugin is configured to support the L3 extension, the L3
DB model is not getting loaded correctly. Adding this import fixes that
issue.

Change-Id: I736bd2e767595088de8ebee929258a88f5cbd238

12 years agomodify the wrong phy_brs into phys_brs.
gongysh [Tue, 18 Sep 2012 02:36:12 +0000 (10:36 +0800)]
modify the wrong phy_brs into phys_brs.

Bug #1052281

Change-Id: I569e60aa1f8ab8313e5427bd16798cc6b4079a09

12 years agoNVP plugin missing dhcp rpc callbacks
Aaron Rosen [Mon, 17 Sep 2012 21:44:11 +0000 (17:44 -0400)]
NVP plugin missing dhcp rpc callbacks

Fixes bug 1052202

Change-Id: I6a906bd77cce85c7488d901bb2461fb970d1d5d0

12 years agomake README point to real v2 API spec
Dan Wendlandt [Mon, 17 Sep 2012 22:24:38 +0000 (15:24 -0700)]
make README point to real v2 API spec

bug 1052222

Change-Id: I0ecbcd71b25e6c7f514cc2f7e8cb071b75d53059

12 years agoREADME file changes for Cisco plugin
Sumit Naiksatam [Mon, 17 Sep 2012 17:53:01 +0000 (10:53 -0700)]
README file changes for Cisco plugin

Bug #1052109

Moving the contents to wiki.

Change-Id: I4aef2d710a7a4c1567d8701954ae04ba33095686

12 years agoMerge "fix for nested rootwrap checks with 'ip netns exec'"
Jenkins [Mon, 17 Sep 2012 18:24:53 +0000 (18:24 +0000)]
Merge "fix for nested rootwrap checks with 'ip netns exec'"

12 years agofix for nested rootwrap checks with 'ip netns exec'
Dan Wendlandt [Mon, 17 Sep 2012 17:35:51 +0000 (10:35 -0700)]
fix for nested rootwrap checks with 'ip netns exec'

bug 1051525

Change-Id: Ia52060afec1c573c8f11d658af88cea7e000d774

12 years agoalways push down metadata rules for router, not just if gateway exists
Dan Wendlandt [Mon, 17 Sep 2012 16:29:35 +0000 (09:29 -0700)]
always push down metadata rules for router, not just if gateway exists

bug 1051842

the l3-agent only pushes down some of the DNAT rules for metadata mapping
if there is a gateway set on a router. However, the nova-api server could
itself be running in the local router namespace (or on the same box as
the quantum-l3-agent in the case were namespaces are disabled. In fact,
with namespaces disabled, this is the likely setup for a simple
environment). Thus, we should simply always push down the metadata nat
rules for a router, router than waiting until a gateway is added.

This patch also refactors the actions taken by the l3-agent when a router
is added or removed into a separate function for improved readability,
as add/removing the nat rules made these code segments even longer.

Change-Id: I3c6eb35b51df3babf747dbcff7f943b850e69838

12 years agoRemoved eval of unchecked strings.
Maru Newby [Tue, 18 Sep 2012 01:46:38 +0000 (18:46 -0700)]
Removed eval of unchecked strings.

 * eval() was previously used to marshall unchecked strings as
   filter parameters for QuantumDbPluginV2.get_ports() via
   the --fixed_ips flag.
 * This change removes the use of eval and cleans up the filtering
   implementation for get_ports().
 * The new filtering implementation does not support arbitrary
   OR'ing or AND'ing.  Instead, multiple values for a given filter
   key are logically OR'ed, and filters across keys are AND'ed.
 * Example usage - filter for .2 or .3 in the given subnet:

     quantum port-list -- --fixed_ips ip_address=10.0.0.3 \
         ip_address=10.0.0.2 subnet_id=nOtaRealId

 * Addresses bug 1052179

Change-Id: I451f33ae53e623f86015b3fc2e6a7ca2f51ee836

12 years agoUpdate NVP plugin to Quantum v2.
Salvatore Orlando [Mon, 17 Sep 2012 09:25:01 +0000 (02:25 -0700)]
Update NVP plugin to Quantum v2.

Fix bug 1051870

Change-Id: Ie3885f0bf370f2423ed3dc891736d0bb21014605

12 years agoMerge "ovs-lib: make db_get_map return empty dict on error"
Jenkins [Mon, 17 Sep 2012 07:25:42 +0000 (07:25 +0000)]
Merge "ovs-lib: make db_get_map return empty dict on error"

12 years agoovs-lib: make db_get_map return empty dict on error
Dan Wendlandt [Mon, 17 Sep 2012 06:48:19 +0000 (23:48 -0700)]
ovs-lib: make db_get_map return empty dict on error

bug 1050504

this fixes a crash caused when we try to iterate over the return value
of db_get_map

Change-Id: I56640035c3e166ddcc3d23e76be9118604dbeadc

12 years agoUpdate l3-agent.ini with missing configuration flags
Gary Kotton [Sun, 16 Sep 2012 09:39:57 +0000 (09:39 +0000)]
Update l3-agent.ini with missing configuration flags

Fixes bug 1051349

Change-Id: I7f977c21dbe6bf6fbb8665648a50cd8954c737be

12 years agoMerge "Fix for failing network operations in Cisco plugin"
Jenkins [Sun, 16 Sep 2012 04:52:52 +0000 (04:52 +0000)]
Merge "Fix for failing network operations in Cisco plugin"

12 years agoMerge "Sync a change to rpc from openstack-common."
Jenkins [Sun, 16 Sep 2012 04:46:26 +0000 (04:46 +0000)]
Merge "Sync a change to rpc from openstack-common."

12 years agoSync a change to rpc from openstack-common.
Russell Bryant [Fri, 14 Sep 2012 18:00:45 +0000 (14:00 -0400)]
Sync a change to rpc from openstack-common.

This commit pulls in the following change from openstack-common:

    ee44222 Change the qpid_heartbeat default to 60 seconds.

Fix bug 1050661.

Change-Id: I2cb63d091f3d8a9a35d0e35ef18b70409c1f09ae

12 years agoMerge "add missing files from setup.py"
Jenkins [Sat, 15 Sep 2012 02:29:00 +0000 (02:29 +0000)]
Merge "add missing files from setup.py"

12 years agoFix for failing network operations in Cisco plugin
Sumit Naiksatam [Sat, 15 Sep 2012 00:50:54 +0000 (17:50 -0700)]
Fix for failing network operations in Cisco plugin

Bug #1050545

This fixes the exceptions occurring in the virtual switch mode of the
Cisco plugin for create/delete/update network operations. The exceptions
were occurring on account of the recent changes in the OVS module to the
get_vlan and get_vlans methods, which were still being invoked here.
Test configuration has been changed to increase the code coverage to
catch such issues in the future. All changes are limited to the Cisco
plugin and related tests.

Change-Id: Id18473f7a9a2a22217a59b4f8b1541b4918e07e7

12 years agoadd missing files from setup.py
Jiajun Liu [Thu, 13 Sep 2012 03:43:54 +0000 (11:43 +0800)]
add missing files from setup.py

Fixes bug 1050045.

Currently, setup.py will not copy l3_agent.ini and rootwrap filters
into directory /etc/quantum. Add copy operation in setup.py for those
config files so that those files will be copied into proper directory.

Change-Id: I7052d6c07ffd4d03cafa93187d8072053ee0a832

12 years agoMerge "remove not need shebang line in quantum debug"
Jenkins [Thu, 13 Sep 2012 15:04:48 +0000 (15:04 +0000)]
Merge "remove not need shebang line in quantum debug"

12 years agoAdd quantum-nec-agent to bin directory.
Akihiro MOTOKI [Thu, 13 Sep 2012 04:36:09 +0000 (13:36 +0900)]
Add quantum-nec-agent to bin directory.

Fixes bug 1050047

Change-Id: I8b946b08b0dc58881a9f149d17623462e058debc

12 years agoremove not need shebang line in quantum debug
Jiajun Liu [Thu, 13 Sep 2012 04:17:49 +0000 (12:17 +0800)]
remove not need shebang line in quantum debug

Fixes bug 1050053.

Change-Id: Ia1d8e665d330698d246bddb57330cb376244a1f9

12 years agomake rootwrap filters path consistent with other openstack project
Jiajun Liu [Thu, 13 Sep 2012 02:09:30 +0000 (10:09 +0800)]
make rootwrap filters path consistent with other openstack project

Fixes bug 1050062.

Change-Id: I0c3fc84af8ed9bca2e0bd2f11cbc3b737b6a4001

12 years agoBump version to 2013.1, open Grizzly
Thierry Carrez [Wed, 12 Sep 2012 08:18:12 +0000 (10:18 +0200)]
Bump version to 2013.1, open Grizzly

Bump version number to 2013.1 to open Grizzly development on master
branch.

Change-Id: I653f52bdfdf09b86efab86f69bc4b9dde02827c4

12 years agoMerge "Add a new interface driver OVSVethInterfaceDriver."
Jenkins [Tue, 11 Sep 2012 22:27:26 +0000 (22:27 +0000)]
Merge "Add a new interface driver OVSVethInterfaceDriver."

12 years agoMerge "Create .mailmap file"
Jenkins [Tue, 11 Sep 2012 21:40:33 +0000 (21:40 +0000)]
Merge "Create .mailmap file"

12 years agoFix lack of L3 support of NEC OpenFlow plugin
Akihiro MOTOKI [Tue, 11 Sep 2012 13:24:57 +0000 (22:24 +0900)]
Fix lack of L3 support of NEC OpenFlow plugin

VMs cannot access the external network without l3 support.

Fixes bug 1042109

Change-Id: I19de7c348a62040bb07f431afe287751faf27c32

12 years agoAdd a new interface driver OVSVethInterfaceDriver.
Akihiro MOTOKI [Mon, 10 Sep 2012 13:21:35 +0000 (22:21 +0900)]
Add a new interface driver OVSVethInterfaceDriver.

Fixes bug 1048681

This commit fixes a bug that quantum agent using a namespace does not
work with NEC plugin. NEC plugin uses an Open vSwitch as an OpenFlow switch,
but an OVS port created by ovs-vsctl add-port becomes down when the port is
moved to some network namespace. Usual OpenFlow controllers respect the
OpenFlow port status. Since DHCP server (dnsmasq) is connected to the down
port, DHCP server disappears from the virtual network.

This behavior can be avoided if we use a similar approach used in
BridgeInterfaceDriver, i.e., we first create a veth pair, add one veth device
to OVS and move the other veth device to a network namespace. To accomplish it
this patch introduces a new interface driver OVSVethInterfaceDriver.

In addition, this patch adds a 'prefix' paramter to unplug(). When deleting
a veth pair, a veth device added to OVS bridge is not removed automatically.
Thus we need a mean to know the veth device name from a device_name to be
removed. It is the reason to add 'prefix' parameter to unplug().

Change-Id: I3f4eae371a27a3171a6a8c9e38ddc9354ed1b6b0

12 years agoMerge "Ensure that l3 agent does not crash on restart"
Jenkins [Tue, 11 Sep 2012 16:51:08 +0000 (16:51 +0000)]
Merge "Ensure that l3 agent does not crash on restart"

12 years agoMerge "Exclude openstack-common from pep8 test"
Jenkins [Tue, 11 Sep 2012 15:23:35 +0000 (15:23 +0000)]
Merge "Exclude openstack-common from pep8 test"

12 years agoEnsure that l3 agent does not crash on restart
Gary Kotton [Mon, 10 Sep 2012 08:19:09 +0000 (04:19 -0400)]
Ensure that l3 agent does not crash on restart

Fixes bug 1048108

The changeset also removed the namespace garbage collection from the port unplug. This
attempts to delete the namespace. This is problematic as there may be additional attributes
to the namespace that need to be dealt with.

Change-Id: I418a1ec4e9b65e5bea67ae84414019c3d6b54214

12 years agoMerge "make subnets attribute of a network read-only"
Jenkins [Tue, 11 Sep 2012 09:06:28 +0000 (09:06 +0000)]
Merge "make subnets attribute of a network read-only"

12 years agoMerge "Ensures that the Linux Bridge Plugin runs with L3 agent"
Jenkins [Tue, 11 Sep 2012 08:46:09 +0000 (08:46 +0000)]
Merge "Ensures that the Linux Bridge Plugin runs with L3 agent"

12 years agomake subnets attribute of a network read-only
Dan Wendlandt [Tue, 11 Sep 2012 08:26:57 +0000 (01:26 -0700)]
make subnets attribute of a network read-only

bug 1046173

writing to the subnets attribute is not supported, so rather than
making it looks like we accept it but ignoring it, we should explicitly
reject requests to specify it on network create/update.

Change-Id: I5b6f0f35794c9d5606befb97a89c6c6c97ee3dbf