]> review.fuel-infra Code Review - openstack-build/neutron-build.git/log
openstack-build/neutron-build.git
12 years agomake sure pip-requires is included in setup.py sdist
Dan Wendlandt [Thu, 1 Mar 2012 01:03:08 +0000 (17:03 -0800)]
make sure pip-requires is included in setup.py sdist

bug 943711

Change-Id: I21a9d047e9fe00d2fa4a47165dd4728f862fdb9f

12 years agoIntroducing the tenant owenrship checks in the Cisco plugin, changes are
Sumit Naiksatam [Wed, 29 Feb 2012 06:30:17 +0000 (22:30 -0800)]
Introducing the tenant owenrship checks in the Cisco plugin, changes are
almost identical to those in Bug#942713

Change-Id: Ia320116e73db72090d925796bb2c832f31f878de

12 years agoFix some plugins that don't check that nets + ports are owned by tenant
Dan Wendlandt [Tue, 28 Feb 2012 20:34:49 +0000 (12:34 -0800)]
Fix some plugins that don't check that nets + ports are owned by tenant

bug 942713. This bug confuses the validate_networks() method of
QuantumManager in Nova, causing it to believe that it is valid for a
tenant to plug into a particular network when in fact that network is not
owned by the tenant, nor the "provider".

The patch also adds unit tests to confirm correct plugin behavior.

This patch fixes the issue for the Sample Plugin, the OVS plugin,
the Linux Bridge plugin, and the Ryu plugin, all of which has the
same DB model.  Validated the fix with the unit tests.

I couldn't run the unit tests for the NVP plugin standalone, but by
inspection, the code seems to handle this case.  I wasn't able to run
the Cisco plugin unit tests, and that code uses its own DB model, so I
am uncertain whether this issue exists in that plugin.

Change-Id: I8c4a5f3eb151b91a1076821dc1916842510dfb90

12 years agoMerge "bug 934459: pip no longer supports -E"
Jenkins [Tue, 28 Feb 2012 05:44:34 +0000 (05:44 +0000)]
Merge "bug 934459: pip no longer supports -E"

12 years agoplugin: introduce ryu plugin
Isaku Yamahata [Sat, 19 Nov 2011 09:17:03 +0000 (18:17 +0900)]
plugin: introduce ryu plugin

blueprint ovs-driver-extention
This patch implements the blueprint ovs-driver-extention
https://blueprints.launchpad.net/quantum/+spec/ovs-driver-extension

This patch factors out ovs common logic from ovs plugin into ovscommon
and adds Ryu NOS plugin.
This patch enhances ovs plugin for generic OVS controller support and

This patch is to add ofp controller support to OVS.
Store ofp controller address in ovs quantum data base.
- nova firewall_driver
- nova linuxnet_interface_driver

There may be ports unmanaged by nova/quantum. Those ports are used
to connect vm to outside of physical machine. They needs special care.

---
Changes 12 -> 13:
- rebased to 543e150d6dc9144ebcc588b7d2bd66374a107730
  changed files are only MANIFEST.in, setup.py, tools/pip-requres

Changes 11 -> 12:
- ryu agent
  eliminated from quantum.common import exceptions as exc
- ryu.db.api
  eliminated ofp_has_servers
- ryu.nova
  eliminated from quantum.plugins.ryu.nova import ovs_utils
  and eliminate ovs_utils

Chnages 10 -> 11:
- rebased to a945d1a30478c644d307c77a8a85f3a08e5a834e
- more Maru's review
- setup.py: fix setup() argument
  This isn't directly related to ryu plugin though
- improve fake ini file when unit test
  remove fake ini file after unit tests.
  use StringIO when no file is required.
- LOG: don't use %

Chnages 8 -> 9 -> 10:
- minor fixes: forgot to commit some hunks

Chnages 7 -> 8:
- rebased to d6bf2b76162ba806b2ad1f636f6273e47e03a117
- catch up d6bf2b76162ba806b2ad1f636f6273e47e03a117 change
  introduced bin/quantum_ryu_agent
- addressed Maru's review
  - avoid custom patching, use mock for test
    and added mox and mock to pip-requires
  - more pep8
  - avoid \ for line continuation
  - avoid single char variables
  - db.api: first() -> one()
  - utilize implicit conversion
    var is not None -> var
  - and more...

Changes 6 -> 7:
- update comment in ryu/run_tests.py
- make unit tests pass without ryu installed
  i.e.
  PLUGIN_DIR=quantum/plugins/ryu/ ./run_tests.sh
  works now

Chages 5 -> 6:
- remove comment

Change 4 -> 5:
- eliminate relative imports
- copyright
- doc string
- naming (s/CONF_FILE/conf_file/g)
- add " check to ryu/nova/ovs_utils
- ryu/nova/linux_net: comment
- ryu agent: eliminated unused methods
- updated ryu/README: add http://www.osrg.net/ryu/using_with_openstack.html
- added unit tests

Changes 3 -> 4:
- reflected Dan's review
- on-OVS in ryu.ini
- update @author
- some naming

Changes 2 -> 3:
- rebased to 04d144ae0b2ad5618847d1784cea48a08d53a46a
- abandoned to share code and duplicated codes from openvswitch plugin
  for ovs plugin stability.
- dropped setup_ryu.sh and added README
- update nova driver to catch up upstream change (gflags -> cfg)

Changes 1 -> 2:
- unbreak openvswtich unit test
- MANIFEST.in

Changes 3 -> new 1:
- rebased to 1eb3c693b5f6f3f301047100c36c7915434f8be7
- factor out common loginc from openvswitch plugin into ovscommon
- Introduced a new independent ryu plugin
- try new review due to the previous effort was marked abandoned.
  > https://review.openstack.org/#change,3055
  > Change-Id: I17801a7a74d4087838a8a26c1b1f97f28c2dcef3

Changes:
- rebased to 9c5c2caef13fa58234987527ab6caff829a37050
- some clean ups

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Change-Id: Ia9fe87525cebccc87b7c18a533f48607272cd97f

12 years agobug 934459: pip no longer supports -E
Dan Wendlandt [Sat, 25 Feb 2012 18:24:34 +0000 (10:24 -0800)]
bug 934459: pip no longer supports -E

Change-Id: I2acdef113d147b7130053088d4bcf8515f61b815

12 years agoMerge "Return appropriate error for invalid-port state in create port API."
Jenkins [Sat, 25 Feb 2012 18:16:09 +0000 (18:16 +0000)]
Merge "Return appropriate error for invalid-port state in create port API."

12 years agoMerge "Initial commit: nvp plugin"
Jenkins [Sat, 25 Feb 2012 17:43:44 +0000 (17:43 +0000)]
Merge "Initial commit: nvp plugin"

12 years agoFix bug 940732 stack.sh can't match sql_connection string.
Dave Lapsley [Sat, 25 Feb 2012 01:44:46 +0000 (20:44 -0500)]
Fix bug 940732 stack.sh can't match sql_connection string.

stack.sh can't match sql_connection string in default
ovs_quantum_plugin.ini. A space is missing between sql_connection
and "=" character.

Change-Id: I001e281145c3b6ba23a84e27e3f0e9315c879d96

12 years agoReturn appropriate error for invalid-port state in create port API.
Madhav Puri [Fri, 24 Feb 2012 06:44:07 +0000 (22:44 -0800)]
Return appropriate error for invalid-port state in create port API.

Fixes ovs-plugin to return appropriate error code when create port API is passed a port state value other than ACTIVE or DOWN. Fixes bug 919265.

Also added unit-test to test the behavior and verified it using ovs-plugin with devstack.

Change-Id: Ibd4e7bfdf4483c7ad1ef4ca70a336cb164493ae1

12 years agoblueprint quantum-ovs-tunnel-agent
Dave Lapsley [Tue, 21 Feb 2012 07:41:14 +0000 (02:41 -0500)]
blueprint quantum-ovs-tunnel-agent

Enhance existing Quantum OVS Plugin with a tunneling agent that
enables Hypervisors to be connected via GRE tunnels. The new agent
can be enabled/disabled via configuration file and provides backwards
compatibility with existing non-tunneling OVS Agent.

Change-Id: Id3b79430726b162fcb84f99df152d88a5766328f

12 years agoInitial commit: nvp plugin
Brad Hall [Fri, 17 Feb 2012 18:23:04 +0000 (10:23 -0800)]
Initial commit: nvp plugin

blueprint: quantum-nvp-plugin

Change-Id: I07c5d7b305928c341ef1b35a0d9b3281abcb03ae

12 years agounittests: setup FLAGS.state_path properly: bug 938637
Isaku Yamahata [Wed, 22 Feb 2012 16:55:30 +0000 (01:55 +0900)]
unittests: setup FLAGS.state_path properly: bug 938637

This patch fixes bug 938637
Quantum unittests doesn't pass with plugin (openvswitch, linuxbridge) in venv
as follows.
This is because config file under <quantum src>/etc/ can't be find due to
FLAGS.state_path points to <python-quantumclient src> which can be different
from <quantum src>.
Set FLAGS.state_path to <quantum src> when quantum unit tests.

 $ PLUGIN_DIR=quantum/plugins/openvswitch ./run_tests.sh -V
<snip>
ActionExtensionTest
    test_extended_action_for_adding_extra_data (quantum.tests.unit.test_extensions.ActionExtensionTest)ERROR
<snip>
======================================================================
ERROR: test_extended_action_for_adding_extra_data (quantum.tests.unit.test_extensions.ActionExtensionTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/quantum/tests/unit/test_extensions.py", line 212, in setUp
    self.extension_app = setup_extensions_test_app()
  File "/quantum-src/quantum/tests/unit/test_extensions.py", line 474, in setup_extensions_test_app
    return TestApp(setup_extensions_middleware(extension_manager))
  File "/quantum-src/quantum/tests/unit/test_extensions.py", line 469, in setup_extensions_middleware
    conf, app = config.load_paste_app('extensions_test_app', options, None)
  File "/quantum-src/.venv/src/python-quantumclient/quantum/common/config.py", line 316, in load_paste_app
    conf_file, conf = load_paste_config(app_name, options, args)
  File "/quantum-src/.venv/src/python-quantumclient/quantum/common/config.py", line 286, in load_paste_config
    "Cannot load application %s" % app_name)
RuntimeError: Unable to locate any configuration file. Cannot load application extensions_test_app
-------------------- >> begin captured logging << --------------------
quantum.extensions.extensions: INFO: Initializing extension manager.
quantum.extensions.extensions: INFO: Loading extension file: foxinsocks.py
quantum.extensions.extensions: DEBUG: Ext name: Fox In Socks
quantum.extensions.extensions: DEBUG: Ext alias: FOXNSOX
quantum.extensions.extensions: DEBUG: Ext description: The Fox In Socks Extension
quantum.extensions.extensions: DEBUG: Ext namespace: http://www.fox.in.socks/api/ext/pie/v1.0
quantum.extensions.extensions: DEBUG: Ext updated: 2011-01-22T13:25:27-06:00
quantum.extensions.extensions: WARNING: Loaded extension: FOXNSOX
quantum.extensions.extensions: INFO: Loading extension file: __init__.py
quantum.extensions.extensions: INFO: Loading extension file: foxinsocks.pyc
quantum.extensions.extensions: INFO: Loading extension file: __init__.pyc
--------------------- >> end captured logging << ---------------------

Change-Id: I3b8e1414b22b1a526468488fe885ac39f2e6c420

12 years agoCleanup the source distribution.
Bob Kukura [Fri, 17 Feb 2012 22:00:52 +0000 (17:00 -0500)]
Cleanup the source distribution.

Missing text files such as LICENSE and various READMEs are now
included in the tarball source distribution. The Makefile and shell
script for installing the openvswitch agent on xen are also now
included. The openvswitch and linuxbridge agents are included, and
executable wrapper scripts for the agents are provided. The cisco and
linuxbridge nova drivers are now setup to be run from the quantum
namespace rather than copied to nova. Finally, the setup_*.py scripts
have been removed from the project. Fixes bug 925074.

Test by running "python setup.py sdist" and examining the generated
tarball.

Change-Id: I33d336a5eb13678e6d527b575958393b337b6f3d
Signed-off-by: Bob Kukura <rkukura@redhat.com>
12 years agoMerge "Fix ovs config file location"
Jenkins [Thu, 16 Feb 2012 18:59:14 +0000 (18:59 +0000)]
Merge "Fix ovs config file location"

12 years agoMerge "Bug 925372: remove deprecated webob attributes (and also specify stable webob...
Jenkins [Thu, 16 Feb 2012 18:57:11 +0000 (18:57 +0000)]
Merge "Bug 925372: remove deprecated webob attributes (and also specify stable webob version in pip-requires)"

12 years agoFix ovs config file location
Ghe Rivero [Wed, 15 Feb 2012 09:33:34 +0000 (10:33 +0100)]
Fix ovs config file location

Change-Id: I957079434e14222e48fffb00e6bc3d58af8e40c8

12 years agoblueprint quantum-linux-bridge-plugin
Sumit Naiksatam [Sun, 22 Jan 2012 09:35:45 +0000 (01:35 -0800)]
blueprint quantum-linux-bridge-plugin

Squashed commit of the following:

commit 6c4995736a56349923d34353031eb301780fc6d2
Author: Sumit Naiksatam <snaiksat@cisco.com>
Date:   Sat Jan 21 22:31:09 2012 -0800

    Some more explanation in the README.

    Changing defaults in the conf file.

commit 924b118468d7bd21737e9e2cf468ff83d0a20764
Author: Shweta <shpadubi@cisco.com>
Date:   Sat Jan 21 20:58:39 2012 -0500

    Adding Unit Tests for LinuxBridge Agent

commit 12115650257483172c5e2bc889634dbdf3596d27
Author: Sumit Naiksatam <snaiksat@cisco.com>
Date:   Sat Jan 21 05:21:24 2012 -0800

    Adding sqlite requirement

    Changing default mysql port number

    Fixing log statement

commit 0ad1400e5dfc445b94e9024d92321eb3cd0588a5
Merge: 1b7ba8f 9c5c2ca
Author: Sumit Naiksatam <snaiksat@cisco.com>
Date:   Sat Jan 21 05:12:44 2012 -0800

    Merge remote branch 'upstream/master' into snaiksat/linux-bridge-plugin

commit 1b7ba8f7e7b6657734b669194ddfdcfcbfc833be
Author: Sumit Naiksatam <snaiksat@cisco.com>
Date:   Sat Jan 21 04:04:50 2012 -0800

    Fixes to get the tests to run correctly.

    Also incorporated changes to be able to run both sqlite and mysql DBs.

commit 4cead17576c293319dfdfd363dd18e81ba196b3b
Author: Sumit Naiksatam <snaiksat@cisco.com>
Date:   Fri Jan 20 15:32:35 2012 -0800

    Fixed inccorect calls to the DB

commit c4f325729fbd06ee3f5d3520da4d23b2cd8c353b
Author: Sumit Naiksatam <snaiksat@cisco.com>
Date:   Fri Jan 20 12:18:18 2012 -0800

    Removing the specialized db modules (which used InnoDB engine) and
    instead using the Quantum DB now.
    Incorporated changes to setup so that the Linux Bridge plugin can be
    installed.
    Other changes to README and tests.

commit b9498939d723e353808cface87f4453e33e94b41
Author: Sumit Naiksatam <snaiksat@cisco.com>
Date:   Mon Jan 16 20:00:14 2012 -0800

    Adding unit tests

commit a0ab990fdcbf67a950d08c6b5b6d20ceb850619a
Merge: 60e38cc f268b5e
Author: Sumit Naiksatam <snaiksat@cisco.com>
Date:   Mon Jan 16 18:02:55 2012 -0800

    Merge remote branch 'upstream/master' into snaiksat/linux-bridge-plugin

commit 60e38cc44886b5c8c9e47d89d8912d1dee23fbd1
Author: Sumit Naiksatam <snaiksat@cisco.com>
Date:   Mon Jan 16 13:44:37 2012 -0800

    This contains a fix for the earlier reported issue with the DHCP
    failing.

    The gateway IP address is now applied both to the bridge, and the
    gateway interface.

commit ffea86a3465b8a5ed93b13f818e0afaefa6787ee
Author: Sumit Naiksatam <snaiksat@cisco.com>
Date:   Sun Jan 15 20:00:38 2012 -0800

    Fixing an issue in the agent, sometimes the bridges for deleted networks
    were not getting cleaned up

commit 87f76fc34f1c70cd82576b8698d704853c892422
Merge: c8b097a 60d171e
Author: Sumit Naiksatam <snaiksat@cisco.com>
Date:   Sun Jan 15 19:40:33 2012 -0800

    Merge remote branch 'upstream/master' into snaiksat/linux-bridge-plugin

commit c8b097abc2060b2eae01d84f9fed2c89851d93fd
Author: Sumit Naiksatam <snaiksat@cisco.com>
Date:   Sun Jan 15 19:37:08 2012 -0800

    Simplified the logic for creating the bridge on the nova network host.

commit 499dbacd4c5352c5320f3b6e5e8cd7f3629dbcc8
Author: Sumit Naiksatam <snaiksat@cisco.com>
Date:   Fri Jan 13 16:07:53 2012 -0800

    Fix for the DHCP issue, now applying Gateway IP to the bridge

    Also MAC address from original tap device are applied to bridge
    and vlan subinterface

commit 6b4a2aea59702e2c12eeacc86101df9f6770d5ec
Author: Sumit Naiksatam <snaiksat@cisco.com>
Date:   Sat Jan 7 14:29:00 2012 -0800

    Optimizations for processing in the loop

commit 01aa47d3572439b193077432c63bf2b85c629edb
Merge: 184f5dd 05df087
Author: Sumit Naiksatam <snaiksat@cisco.com>
Date:   Sun Jan 1 19:04:17 2012 -0800

    Changes to incorporate Operational Status
    Merge remote branch 'origin' into snaiksat/linux-bridge-plugin

    Conflicts:
     quantum/db/api.py

commit 05df0870191fac0353fe12a33efff68ef7ed0784
Merge: 31d586b 5b23b5e
Author: Sumit Naiksatam <snaiksat@cisco.com>
Date:   Fri Dec 30 12:30:05 2011 -0800

    Merge remote branch 'upstream/master'

commit 184f5dd8b73bc51025509792c15203ee73cd015e
Author: Sumit Naiksatam <snaiksat@cisco.com>
Date:   Mon Dec 12 02:09:12 2011 -0800

    Initial checkin for Linux Bridge L2 plugin.

Change-Id: I5b27538be6a768a6f7eb77409197f7d8b4bbc628

12 years agoRemove quantum CLI console script.
Bob Kukura [Fri, 3 Feb 2012 21:20:28 +0000 (16:20 -0500)]
Remove quantum CLI console script.

The quantum CLI console script is now installed by the
python-quantumclient project, so remove it from the quantum project's
setup.py. Fixes bug 925596.

Test by running "python setup.py install --root <somedir>" and
checking that <somedir>/usr/bin/quantum is not created.

Change-Id: Icd7eff79c8d30511693942a859334829cbf0d9af
Signed-off-by: Bob Kukura <rkukura@redhat.com>
12 years agoBug 925372: remove deprecated webob attributes
Salvatore Orlando [Thu, 2 Feb 2012 10:54:33 +0000 (10:54 +0000)]
Bug 925372: remove deprecated webob attributes
(and also specify stable webob version in pip-requires)

Change-Id: Id8dd53368f88042b71fc73a5f94803e635c4140b

12 years agobug 923510: avoid querying all ports for non-detail GET Network call.
Dan Wendlandt [Sun, 29 Jan 2012 22:11:03 +0000 (14:11 -0800)]
bug 923510: avoid querying all ports for non-detail GET Network call.

Change-Id: I9b4a20e5f6eb22dc234dfa675e7ca4f52893707d

12 years agoMerge "Make tox config work."
Jenkins [Wed, 25 Jan 2012 09:39:15 +0000 (09:39 +0000)]
Merge "Make tox config work."

12 years agoMerge "bp/api-filters This changeset implements filters for core Quantum API and...
Jenkins [Wed, 25 Jan 2012 09:30:13 +0000 (09:30 +0000)]
Merge "bp/api-filters This changeset implements filters for core Quantum API and provides unit tests"

12 years agoMake tox config work.
Monty Taylor [Wed, 25 Jan 2012 09:23:12 +0000 (01:23 -0800)]
Make tox config work.

Change-Id: Ic81c7bb0fa2fe5c73200a9195630a0d5bb999e7d

12 years agoPin versions to standard versions.
Monty Taylor [Wed, 25 Jan 2012 09:20:20 +0000 (01:20 -0800)]
Pin versions to standard versions.

Change-Id: Id6f9d2c01caee3f4c780366d19889b7311fba8d6

12 years agobp/api-filters
Salvatore Orlando [Wed, 11 Jan 2012 17:26:47 +0000 (17:26 +0000)]
bp/api-filters
This changeset implements filters for core Quantum API and provides unit tests

Change-Id: I8247b3587c2cc8e53785781a45d1e457980261d2

12 years agoMerge "Split out quantum.client and quantum.common."
Jenkins [Wed, 25 Jan 2012 04:56:48 +0000 (04:56 +0000)]
Merge "Split out quantum.client and quantum.common."

12 years agoMerge "bp/api-error-codes Restructured API error codes for Quantum API v1.1 This...
Jenkins [Wed, 25 Jan 2012 02:57:30 +0000 (02:57 +0000)]
Merge "bp/api-error-codes Restructured API error codes for Quantum API v1.1 This changeset provides the following changes: - Only standard HTTP errors for Quantum API v1.1 - Customized fault response body formatting according to API version - Changes to unit tests to deal with version specific status codes"

12 years agoSplit out quantum.client and quantum.common.
Monty Taylor [Thu, 19 Jan 2012 00:45:25 +0000 (11:45 +1100)]
Split out quantum.client and quantum.common.

Change-Id: I1241bcd3305b6859c0cd2bb8c35b523e27aa3b18

12 years agoQuantum was missing depend on lxml.
Monty Taylor [Wed, 25 Jan 2012 01:41:51 +0000 (17:41 -0800)]
Quantum was missing depend on lxml.

Change-Id: Ie8d582018f2c5f7972f6d9ab8fcf0f79d00f6a99

12 years agobp/api-error-codes
Salvatore Orlando [Tue, 17 Jan 2012 01:23:00 +0000 (01:23 +0000)]
bp/api-error-codes
Restructured API error codes for Quantum API v1.1
This changeset provides the following changes:
- Only standard HTTP errors for Quantum API v1.1
- Customized fault response body formatting according to API version
- Changes to unit tests to deal with version specific status codes

NOTE: Client side changes are not in this branch.
They should be implemented within bp/quantum-client-1.1.
NOTE-2: Fixing references to QuantumHTTPErrors in extensions framework

Change-Id: I56f50b5c59d73fd6f02905106f0c2a3c8341a741

12 years agoblueprint ovs-portstats
Brad Hall [Wed, 21 Dec 2011 22:47:28 +0000 (14:47 -0800)]
blueprint ovs-portstats

This adds an extension to support fetching port statistics from any plugin
that supports it.

Change-Id: Id14ee3c9604878b8a06d668126452cd5a5071b10

12 years agoAdd support for dealing with 501 errors (notimplemented)
Brad Hall [Tue, 24 Jan 2012 19:12:55 +0000 (11:12 -0800)]
Add support for dealing with 501 errors (notimplemented)

This allows us to return NotImplemented() from an extension if the plugin
doesn't support a given function.

Change-Id: I73c6dec959aea7b2bde1378222b62e6fc82a5d43

12 years agoMerge "Improved VlanMap."
Jenkins [Tue, 24 Jan 2012 09:40:07 +0000 (09:40 +0000)]
Merge "Improved VlanMap."

12 years agoMerge "Getting ready for the client split."
Jenkins [Tue, 24 Jan 2012 00:13:34 +0000 (00:13 +0000)]
Merge "Getting ready for the client split."

12 years agoMerge "moving batch config out of quantum-server repo."
Jenkins [Mon, 23 Jan 2012 17:41:36 +0000 (17:41 +0000)]
Merge "moving batch config out of quantum-server repo."

12 years agoImproved VlanMap.
Ghe Rivero [Tue, 13 Dec 2011 12:14:22 +0000 (13:14 +0100)]
Improved VlanMap.

Simplified logic and less time spent creating  vlans.

Change-Id: I90fda09faa1869b38993aa0aeed64d813d29afa9

12 years agomoving batch config out of quantum-server repo.
Dan Wendlandt [Mon, 23 Jan 2012 05:40:30 +0000 (21:40 -0800)]
moving batch config out of quantum-server repo.

a commit to the python-quantumclient repo will add it there.

Change-Id: Iefc293adbbf1eab552f2184f021f184511f9ddeb

12 years agobug 920299: remove duplicate + outdate README
Dan Wendlandt [Mon, 23 Jan 2012 05:07:37 +0000 (21:07 -0800)]
bug 920299: remove duplicate + outdate README

Change-Id: I2122e69f7394420c912ab700da5bc91dd77f84af

12 years agoGetting ready for the client split.
Monty Taylor [Wed, 11 Jan 2012 01:44:27 +0000 (17:44 -0800)]
Getting ready for the client split.

Change-Id: Ic2e7d637d2c116dfda3d7ad958ccba39a8da7751

12 years agoMerge "fix mysql port in sql_connection example..."
Jenkins [Tue, 17 Jan 2012 21:14:43 +0000 (21:14 +0000)]
Merge "fix mysql port in sql_connection example..."

12 years agoRemoved erroneous print from setup.py
Major Hayden [Tue, 17 Jan 2012 20:11:03 +0000 (14:11 -0600)]
Removed erroneous print from setup.py

Change-Id: If174ec35f687d4a5acc71b0ce4292a8b7f6397a1

12 years agoFixes setup scripts for quantum plugins.
Major Hayden [Tue, 17 Jan 2012 13:29:23 +0000 (07:29 -0600)]
Fixes setup scripts for quantum plugins.

Fixes bug 917630.

Change-Id: I3cf66acf46bcfc83755b572756896032cb6a11d1

12 years agoBase version.py on glance.
James E. Blair [Mon, 16 Jan 2012 21:02:10 +0000 (08:02 +1100)]
Base version.py on glance.

This makes setting and calculating the versioning of quantum more
like other OpenStack projects, simplifying the work of the CI
and Release Management teams.

Addresses bug 916018 which prevents the quantum-tarball job from
running correctly.

Change-Id: I5b006ccc3d31c5d213c703853dfa38f04d983918

12 years agofix mysql port in sql_connection example...
Dan Wendlandt [Tue, 17 Jan 2012 00:59:22 +0000 (16:59 -0800)]
fix mysql port in sql_connection example...

Change-Id: Ie91b554e5549193fb3568cf0bb0dec7c58a6dfc5

12 years agoMake the quantum top-level a namespace package.
Monty Taylor [Wed, 11 Jan 2012 01:17:00 +0000 (17:17 -0800)]
Make the quantum top-level a namespace package.

Change-Id: I8fa596dedcc72fcec73972f6bf158e53c17b7e6d

12 years agoMerge "Install a good version of pip in the venv."
Jenkins [Mon, 16 Jan 2012 22:24:58 +0000 (22:24 +0000)]
Merge "Install a good version of pip in the venv."

12 years agoMerge "PEP8 quantum cleanup"
Jenkins [Thu, 12 Jan 2012 00:39:39 +0000 (00:39 +0000)]
Merge "PEP8 quantum cleanup"

12 years agoMerge "Add __init__.py from plugin to be copied on setup scripts"
Jenkins [Wed, 11 Jan 2012 10:19:37 +0000 (10:19 +0000)]
Merge "Add __init__.py from plugin to be copied on setup scripts"

12 years agoMerge "Rename .quantum-venv to .venv."
Jenkins [Wed, 11 Jan 2012 10:18:24 +0000 (10:18 +0000)]
Merge "Rename .quantum-venv to .venv."

12 years agoAdd __init__.py from plugin to be copied on setup scripts
Luiz H Ozaki [Thu, 5 Jan 2012 20:09:38 +0000 (18:09 -0200)]
Add __init__.py from plugin to be copied on setup scripts

Using debian building scripts to package Quantum and I was getting this error:
('Inner Exception: %s', ImportError('No module named plugins.sample.SamplePlugin',))

Because none of the setup_*.py was copying the __init__.py from the plugins

Thanks

Change-Id: I29699f1f293e2ca271234a2b708aaa1d3637c9dd

12 years agoFix lp bug 897882
Brad Hall [Wed, 30 Nov 2011 21:10:31 +0000 (13:10 -0800)]
Fix lp bug 897882

This moves the tree to having a standard setup.py.  For those who want to
build individual packages you'll need to use the setup_<package>.py files.

This allows us to support the traditional setup.py commands (i.e. sdist, etc)
that the openstack CI scripts will be using.

Change-Id: I7fe286d9973f43ae118a715276b0c089230f4f7e

12 years agoPEP8 quantum cleanup
lzyeval [Wed, 4 Jan 2012 09:10:35 +0000 (17:10 +0800)]
PEP8 quantum cleanup

Fixes bug #911663

The None, True, and False values are singletons.

All variable *comparisons* to singletons should use 'is' or 'is not'.
All variable *evaluations* to boolean should use 'if' or 'if not'.
All Object type comparisons should use isinstance()
instead of comparing types directly.

Change-Id: Id5c797d3339d0d7015bac386088133540f0c0c9e

12 years agoInstall a good version of pip in the venv.
Monty Taylor [Mon, 2 Jan 2012 21:59:59 +0000 (13:59 -0800)]
Install a good version of pip in the venv.

Change-Id: If55032a5018b50cd7cc359ec4a013c8c18dc735e

12 years agoRename .quantum-venv to .venv.
James E. Blair [Fri, 23 Dec 2011 23:02:57 +0000 (15:02 -0800)]
Rename .quantum-venv to .venv.

This simplifies a number of Jenkins jobs which currently, other
than directory names, could be the same for all OpenStack
projects. By renaming the virtualenv directory, the redundant
Jenkins virtualenv build and copy jobs can be eliminated.

Change-Id: I93c7f6577b4c3a76b021f002bda59fcb8fac3f95

13 years agoUpdating Cisco README with instructions on installing the patched ncclient library
Tyler Smith [Thu, 13 Jan 2011 01:44:27 +0000 (20:44 -0500)]
Updating Cisco README with instructions on installing the patched ncclient library

Change-Id: I6bd7cb96fc6e1d2ac0bc811561b7f89d1c7d18c8

12 years agoRemove plugin pip-requires.
James E. Blair [Tue, 20 Dec 2011 00:25:21 +0000 (16:25 -0800)]
Remove plugin pip-requires.

Fixes bug 906636.

The cisco plugin included ncclient, but does not use it when testing.
The openvswitch plugin included SQLAlchemy which is already required
by quantum itself.

I've also changed the install_venv.py script to only look at
tools/pip-requires, so that it behaves more like the rest of the
OpenStack projects.  In Jenkins that's the only file we look at
to see if we need to rebuild the virtualenv, so it would be best
if the project only hade one pip-requires.

Also added .gitignore to ignore files created during testing.

Change-Id: Ic460452ec89aa8377c975ca63b57563119860e6b

12 years agoblueprint refactor-readme-to-manual
Dan Wendlandt [Wed, 14 Dec 2011 09:53:55 +0000 (01:53 -0800)]
blueprint refactor-readme-to-manual

Removes most of the content from the README to avoid it becoming outdated
and stale given that our currently maintained docs are now on
http://docs.openstack.org .  In some cases, including keystone config,
extension writing, etc. this means text from the README is being
transferred directly from the README to an external doc so we make
sure we don't lose anything.

Change-Id: Ie08db4bd4854bb45e6777b1e0abe37f51d3e5c5c

12 years agoMerge "Implementation of the BP services-insertion-wrapper inside the Cisco Plugin"
Jenkins [Wed, 14 Dec 2011 00:56:21 +0000 (00:56 +0000)]
Merge "Implementation of the BP services-insertion-wrapper inside the Cisco Plugin"

12 years agoMerge "Bug #890028"
Jenkins [Wed, 14 Dec 2011 00:54:21 +0000 (00:54 +0000)]
Merge "Bug #890028"

12 years agoMerge "Fix for bug 902175"
Jenkins [Wed, 14 Dec 2011 00:38:01 +0000 (00:38 +0000)]
Merge "Fix for bug 902175"

12 years agoBug #890028
Salvatore Orlando [Mon, 14 Nov 2011 00:48:28 +0000 (00:48 +0000)]
Bug #890028

Change run_tests.sh for running pep8/pylint validation only
(also adds .pylintrc file)

Resubmitting this time making sure we run pylint for Quantum!
Also run just with -l for total number of messages
Run with -l -v for detailed pylint messages

Change-Id: I593c8aed4e0e6b06204c6c4308934da198778fd6

12 years agoMerge "bug 903580: remove invalid extensions path from quantum.conf"
Jenkins [Wed, 14 Dec 2011 00:12:53 +0000 (00:12 +0000)]
Merge "bug 903580: remove invalid extensions path from quantum.conf"

12 years agoMerge "blueprint operational-status-ovs-plugin"
Jenkins [Tue, 13 Dec 2011 22:37:24 +0000 (22:37 +0000)]
Merge "blueprint operational-status-ovs-plugin"

12 years agoMerge "Fixing bug/903829 Making setup_server.py not try to install quantum.conf.sample"
Jenkins [Tue, 13 Dec 2011 21:35:49 +0000 (21:35 +0000)]
Merge "Fixing bug/903829 Making setup_server.py not try to install quantum.conf.sample"

12 years agoImplementation of the BP services-insertion-wrapper inside the Cisco Plugin
Edgar Magana [Tue, 13 Dec 2011 07:41:59 +0000 (23:41 -0800)]
Implementation of the BP services-insertion-wrapper inside the Cisco Plugin

This utility offers a simplify way to insert and remove network services
in the path of the traffic to the server VMs, by splitting the network
into two, and having the service bridge between the two networks,
in the process applying the service. This model is called In-Path
(Bump in the Wire)

Change-Id: If7e9ad2dcb8124e7d82ac837c5b62c0d09b00bcd

12 years agoblueprint operational-status-ovs-plugin
Dan Wendlandt [Tue, 13 Dec 2011 20:54:02 +0000 (12:54 -0800)]
blueprint operational-status-ovs-plugin

Implements operational status API for OVS plugin.   Uses existing
database model for operational status.  For network, status is always
up.  For a port, status is down unless there is an agent that
indicates that the port is active on its compute host.

Updated: use Salvatore's config hook to set default op-status for OVS
in OVS run_tests.py

Updated: fixed issue in _make_port_dict() found by Brad.

Change-Id: I0560cbde9dc69bd4211d9aaf12cef204df2f7664

12 years agobug 903580: remove invalid extensions path from quantum.conf
Dan Wendlandt [Tue, 13 Dec 2011 07:40:13 +0000 (23:40 -0800)]
bug 903580: remove invalid extensions path from quantum.conf

Avoids error message at boot.

Specifying a path here is actually not needed at all.

Change-Id: Id16609bc557a94e1e66191bee589dfd543eda6e6

12 years agoFix for bug 902175
Brad Hall [Mon, 12 Dec 2011 18:26:21 +0000 (18:26 +0000)]
Fix for bug 902175

We can't use merge if we're removing a field from the port object so use add
instead.  Also, pass the session to port_get so that we don't run into the
"this port is already bound to session x" error.

Change-Id: I54a8484c8f6429ad18fb0c5e088720d21fc16299

12 years agoMerge "bug #891246: Fix paths in agent Makefile"
Jenkins [Sun, 11 Dec 2011 07:12:06 +0000 (07:12 +0000)]
Merge "bug #891246: Fix paths in agent Makefile"

12 years agoMerge "Fix for bug 900316"
Jenkins [Sun, 11 Dec 2011 07:07:20 +0000 (07:07 +0000)]
Merge "Fix for bug 900316"

12 years agoMerge "blueprint api-framework-essex"
Jenkins [Sun, 11 Dec 2011 07:06:01 +0000 (07:06 +0000)]
Merge "blueprint api-framework-essex"

12 years agoReadme Fix
Shweta P [Fri, 9 Dec 2011 13:40:16 +0000 (08:40 -0500)]
Readme Fix

Change-Id: I3bf79cbd591b911e4f6d9329a7bf0c77f811ee8a

12 years agoMerge "Fix for bug 900277"
Jenkins [Thu, 8 Dec 2011 16:38:31 +0000 (16:38 +0000)]
Merge "Fix for bug 900277"

12 years agoblueprint api-framework-essex
Ghe Rivero [Thu, 1 Dec 2011 01:14:29 +0000 (01:14 +0000)]
blueprint api-framework-essex

Addressing Dan's comments.

This changeset provides:
- improved framework for API versioning, with separated controllers for each API version
- Taken from nova:'Resource' class in WSGI framework. This class is a container for serializers, deserializers and controller
- Better deserialization thanks to resource class. _parse_request_params has been removed
- Improved management of HTTP client errors
NOTE: this changeset does not update the framework used by API extensions.

Change-Id: I88a669ce418225c415e0da22e951762d0708e0a5

12 years agoFix for bug 900277
Rohit Agarwalla [Mon, 5 Dec 2011 17:56:36 +0000 (09:56 -0800)]
Fix for bug 900277

Removes duplicate network name checks from cisco db api module

Change-Id: I620b3abefeb2cb80eb98778807fd26c5a084bb0e

12 years agoFix for bug 900316
Brad Hall [Mon, 5 Dec 2011 17:52:24 +0000 (09:52 -0800)]
Fix for bug 900316

This fixes the --venv and --user install options as well as the path in the
cli script.

Change-Id: Ie9f265ca248db3d91ff92b7dc3090e1bfdbb0eb6

12 years agoModified the Readme for Unit Test Execution Instructions
Shweta P [Mon, 5 Dec 2011 12:58:58 +0000 (07:58 -0500)]
Modified the Readme for Unit Test Execution Instructions

Change-Id: Ib7ff79c166e34c4f99a8df55feb0191f37555597

Removed the trailing whitespaces in the README

Change-Id: Ic2299bf35d9e0d8512ae4f57976884d12ba92159

12 years agoBug 900093
Salvatore Orlando [Mon, 5 Dec 2011 01:09:49 +0000 (01:09 +0000)]
Bug 900093
Remove unused function in db/api.py

Change-Id: Icbf72ea4069bf56e147d7bc5160ed8c9905a6791

12 years agobug #891246: Fix paths in agent Makefile
Brad Hall [Tue, 29 Nov 2011 00:55:43 +0000 (16:55 -0800)]
bug #891246: Fix paths in agent Makefile

Change-Id: I7093ca14eaf45986fcc50e914f9ccf8fa868fb07

12 years agoSecond round of packaging changes
Brad Hall [Thu, 10 Nov 2011 06:57:13 +0000 (22:57 -0800)]
Second round of packaging changes

This change condenses the directory structure to something more similar to
what we had before while producing similar packages.

It also introduces version.py which allows us to get the version from git tags
(or a fallback version if not available).

Fixes lp bug 889336
Fixes lp bug 888795

Change-Id: I86136bd9dbabb5eb1f8366ed665ed9b54f695124

12 years agoBug 891705
Sumit Naiksatam [Fri, 18 Nov 2011 23:48:21 +0000 (15:48 -0800)]
Bug 891705
Fix to change reference to the Quantum CLI from within the Cisco extensions' CLI module

Removed "tools" from the PYTHONPATH

Change-Id: Icbd3800668219d16fc33a25da9170e9ec7fb6ddb

12 years agoMerge "Add quantum.exceptions path to configed ext paths"
Jenkins [Fri, 18 Nov 2011 21:29:51 +0000 (21:29 +0000)]
Merge "Add quantum.exceptions path to configed ext paths"

12 years agoCorrecting the plugins classpath in the Quantum README.
Sumit Naiksatam [Fri, 18 Nov 2011 03:25:34 +0000 (19:25 -0800)]
Correcting the plugins classpath in the Quantum README.

Change-Id: I14645f3c388698ac34cade9f8e8599c12884141a

12 years agoThe relative path for the "ucs_inventory.ini" file has been fixed
Edgar Magana [Wed, 16 Nov 2011 22:52:40 +0000 (14:52 -0800)]
The relative path for the "ucs_inventory.ini" file has been fixed

Change-Id: I38053df8b398e3fadcc6820c1118b3685ccd4174

12 years agobug #891267 : for XS, grab iface-id from XAPI directly if needed.
Dan Wendlandt [Wed, 16 Nov 2011 18:07:03 +0000 (10:07 -0800)]
bug #891267 : for XS, grab iface-id from XAPI directly if needed.

The version of OVS that ships with XenServer by default does not include
the script to automatically sync the XAPI other_config:nicira-iface-id
field of a VIF with the external_ids:iface-id in the OVS interfaces table.
Thus, make the agent grab the value directly from XAPI if iface-id is
not already populated.

Change-Id: Id01d9da1761016bcd983ad06621c62e94b2445c1

12 years agoChanges to make pip-based tests work with jenkins.
Monty Taylor [Wed, 16 Nov 2011 03:30:40 +0000 (01:30 -0200)]
Changes to make pip-based tests work with jenkins.

The git line for the cisco pip-requires was wrong.
The venv needs to be installed in the source tree, not in the home
directory for self-contained builds.
The version of python can't be assumed and must be calculated.

Change-Id: I23d381eb273e82796e309483086dc68f27ce6093

12 years agoFix for bug 890498
Brad Hall [Tue, 15 Nov 2011 00:54:12 +0000 (16:54 -0800)]
Fix for bug 890498

Add mysql-python to pip-requires for the openvswitch plugin

Change-Id: I4f66270cbaa16a6259c130e00c378acbe9abe931

12 years agoFix for bug 888811
Brad Hall [Mon, 14 Nov 2011 19:04:04 +0000 (11:04 -0800)]
Fix for bug 888811

Use version 0.6.24 of python-distribute which allows us to find all of the
test directories on ubuntu oneiric.

Change-Id: Ibdd7f84e3f344b98cc979b2afcdd3dd2d423dfd1

13 years agoFixing find_config_file after packaging changes
Tyler Smith [Wed, 30 Mar 2011 03:15:10 +0000 (23:15 -0400)]
Fixing find_config_file after packaging changes

Change-Id: I687793b0f8f7284019e05c044e53d91e0f3f09c2

12 years agoAdded timeout flag to ovs-vsctl to avoid infinte waiting
Ghe Rivero [Thu, 17 Nov 2011 08:21:09 +0000 (09:21 +0100)]
Added timeout flag to ovs-vsctl to avoid infinte waiting

Fixes bug 890180

Change-Id: Iba76359d5ee4f625b6a7007b318cf0eb5f1119da

13 years agoAdd quantum.exceptions path to configed ext paths
Tyler Smith [Fri, 18 Mar 2011 02:38:31 +0000 (22:38 -0400)]
Add quantum.exceptions path to configed ext paths

Change-Id: Ica9e1de290d963ef8919e15a242655f933df5b03

13 years agoFix for Bug #888820 - pip-requires file support for plugins
Tyler Smith [Sat, 12 Mar 2011 00:14:38 +0000 (19:14 -0500)]
Fix for Bug #888820 - pip-requires file support for plugins

Change-Id: I6e0833ec0c875ec38db419a88fd6c2db02142f08

13 years agoFixing Cisco plugin after update_* change
Tyler Smith [Thu, 10 Mar 2011 05:12:54 +0000 (00:12 -0500)]
Fixing Cisco plugin after update_* change

Also a few fixes from packaging changes

Change-Id: I7ad7d5bc741fed9d09120148ad75f41df6722b59

12 years agoFix for bug 888207
Brad Hall [Sat, 5 Nov 2011 11:44:36 +0000 (04:44 -0700)]
Fix for bug 888207

Instead of splitting the tests (server/client) we just run the tests like is
done in run_tests.py.

Change-Id: I204e54eaca4473416b5a540719a13988b90adc30

12 years agoFix for bug 877525
Brad Hall [Sat, 5 Nov 2011 11:42:16 +0000 (04:42 -0700)]
Fix for bug 877525

We now have a verbose flag (-v) for run_tests.sh if you want ot see all that
crap printed to the screen.  The default behavior is just to print "test nam
.. OK".  Also, we took the code from nova to cat run_tests.log if there is a
error so that if we hit an import error we will see it in the console jenkin
output.

Change-Id: Id8997c658a61691bf9f25b1c01e6a5db0eca428f

12 years agoMerge "Make the openvswitch plugin tests work again"
Jenkins [Wed, 9 Nov 2011 16:36:24 +0000 (16:36 +0000)]
Merge "Make the openvswitch plugin tests work again"

12 years agoMerge "Change version numbers to be compatible with debian packaging"
Jenkins [Wed, 9 Nov 2011 15:42:47 +0000 (15:42 +0000)]
Merge "Change version numbers to be compatible with debian packaging"

12 years agoBug #875995: Quantum README fixes
Dan Wendlandt [Wed, 9 Nov 2011 04:03:57 +0000 (20:03 -0800)]
Bug #875995: Quantum README fixes

Fix the most obvious issues with the Quantum README and add pointers to
external documentation resources.

In a future commit, we plan to remove most of the content in the README
and leave it just as references to external documentation.  However,
this change requires us to be able to support multiple version of our
external documentation (not yet possible) and have a good location for
developer documentation.

Change-Id: I57d7f99f070d17564b7a5fdcef8ae8ad2a6575a6

12 years agoChange version numbers to be compatible with debian packaging
Brad Hall [Sat, 5 Nov 2011 10:21:42 +0000 (03:21 -0700)]
Change version numbers to be compatible with debian packaging

Change-Id: I4548049e678ca04f33857b9ae21c1bc879e30cef