92 Commits

Author SHA1 Message Date
Davanum Srinivas
7beec04415 Allow tools/install_venv_common.py to be run from within the source directory.
(Copy latest update from oslo)

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

Fixes LP# 1116269

Change-Id: I3e2ed3ac96b51ec89def911054720d11bbcd9407
2013-02-05 18:08:45 -05:00
Jenkins
ce11b62046 Merge "Use install_venv_common.py from oslo." 2013-01-29 06:45:43 +00:00
Matthew Treinish
672549dd4b Use install_venv_common.py from oslo.
This syncs install_venv_common.py from oslo and reworks the
tools/install_venv.py script to use the new library.

Change-Id: I46bbf7d656e6cb9660e37af2d3ce96150e18e7fe
2013-01-28 16:22:17 -05:00
He Jie Xu
c740986599 Use babel to generate translation file
Fixes bug 1103519

Following http://wiki.openstack.org/Translations to integrate transifex
translation into quantum

We added the empty file quantum/locale/quantum.pot to avoid the
failure of the Jenkin's translation-jobs because git doesn't allow empty
directory to be added into the repository.

After this patch accepted, we need to do as below:
1. Make the transifex quantum project
(https://www.transifex.com/projects/p/quantum/) as part of the
openstack transifex project hub and give access to the transifex
openstack Jenkins account.

2. Add the translation-jobs into openstack/openstack-ci-puppet for
ceilometer.

Change-Id: I329a8bdc51ed8a0e75399c592d3991b1ec06a855
2013-01-24 00:20:32 +08:00
Doug Hellmann
cb3384fd67 Update WebOb version to >=1.2
The other projects have merged changes to accept
WebOb>=1.2 now, so update Quantum to use the same
version.

See bug #1092227 for details.

Change-Id: I0969752910b92209408d956f633ad2ccacc7fa46
Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
2013-01-16 15:57:14 -05:00
Jenkins
2bd37127bd Merge "Update latest OSLO." 2013-01-15 21:05:47 +00:00
Gary Kotton
0748f92e44 Update latest OSLO.
Changes include:
1. Removing the 'extras' in the pip-requires
2. Fixes for fake implementations for RPC calls
3. Version updates due to common version update

Change-Id: Iefd32b3f7d529943b078e6d927d06043286ff94e
2013-01-15 14:43:39 +00:00
Arvind Somya
830820184a Adding multi switch support to the Cisco Nexus plugin
This commit adds intelligent multiple nexus physical switch support for the Cisco plugin.
The plugin also has been modified to scan for the host when an instance is created and
selectively trunk VLAN's for the port for that host only. It also deletes VLANs from nexus
switches when no longer required.

Implements: blueprint cisco-plugin-enhancements

Change-Id: I6275eb1815310d0d5a8123ca2edbc0a0937718e9
2013-01-14 13:04:14 -05:00
Gary Kotton
de99585d4f Latest OSLO updates
Change-Id: Ibf223203c8b34f614357fa4539d0dfa953765d6b
2013-01-12 06:16:17 +00:00
Gary Kotton
cfcbc7a66f Port to argparse based cfg
Implements blueprint argparse-based-cfg

Sync the following changes from oslo-incubator:

479f19c Add deprecated --logdir common opt
27b2ff4 Add deprecated --logfile common opt.
9b81289 Allow nova and others to override some logging defaults
3557d84 Fix ListOpt to trim whitespace
01ab910 Fix set_default() with boolean CLI options
af18eaa Improve cfg's argparse sub-parsers support
f21e1d9 Fix regression with cfg CLI arguments
ceb4aa7 Fix broken --help with CommonConfigOpts
5e9503b Hide the GroupAttr conf and group attributes
b6d24bb updating sphinx documentation
403509e Don't reference argparse._StoreAction
e17deb8 Fix minor coding style issue
0c29e1d Remove ConfigCliParser class
5b9cb41 Add support for positional arguments
dbc72a6 Use stock argparse behaviour for optional args
768a147 Use stock argparse --usage behaviour
ac180b9 Use stock argparse --version behaviour
0787e38 Remove add_option() method
5afead0 Completely remove cfg's disable_interspersed_args()
5f564b2 argparse support for cfg
d7b6397 Add a missing comma in a docstring.
aca1805 cfg: fix required if option has a dash

Note: various utilities/services with command line parameters needed to be
updated due to the changes mentioned above. The downside is that these are
not backward compatible. Unknown arguments are no ignored. Only bound
arguments will be treated.

Thanks to Mark McLoughlin for migration cli code changes.

Change-Id: Ia776e78cc55f4ed33ace5efa8d726b70e3fa4131
2013-01-09 11:48:22 -05:00
Jenkins
ae27cf9b5e Merge "Add migration support to Quantum" 2013-01-08 04:10:36 +00:00
Mark McClain
dbf0b22abb Add migration support to Quantum
implements blueprint quantum-db-upgrades

This changeset provide database migration capabilities to Quantum by
wrapping the Alembic library.

Change-Id: I8ba3a07f5a65e0fda9c0e85ed9c07c5978c53bc7
2013-01-07 17:21:27 -08:00
Dan Wendlandt
005251c3b8 Undo change to require WebOb 1.2.3, instead, require only >=1.0.8
This allows ceilometer to use 1.2.3, without breaking devstack for
quantum in the mean time.

See bug #1092227

Change-Id: I1d1b4c0b6dbb917ddf785bdf7ce90be9beb6540c
2013-01-07 12:17:09 -08:00
Zhongyue Luo
30a54fe169 Upgrade WebOb to 1.2.3
The version of WebOb being used in OpenStack was more than
1 year old. This change updates to the latest stable release.

Upgrading WebOb resolves a version conflict between OpenStack
and Pecan, the web framework used by the Ceilometer team for
version 2 of the ceilometer API.

Refer to http://docs.webob.org/en/latest/news.html
for the list of changes between 1.0.8 and 1.2.3.

Fixes Bug #1092227

Change-Id: I07707607ae2067a567e11c347cddda9c7e6bcef7
2013-01-04 00:28:20 +08:00
He Jie Xu
7ae701120a Add script for checking i18n message
Part of bp make-string-localizable

usage: tox -e i18n

tools/check_i18n.py: used check i18n message for one file.

tools/check_i18n_test_case.txt: test case of check_i18n.py.
run test case with cmd:
$ ./tools/check_i18n.py ./tools/check_i18n_test_case.txt -d

Change-Id: I2c383b7bb11ab3bdb8e3bb3b887342b1225840ac
2012-12-10 17:29:54 +08:00
Sascha Peilicke
797036fe62 Remove __init__.py from bin/ and tools/.
To avoid installation into .../site-packages/quantum via
packages=setuptools.find_packages('.') in setup.py. Both directories
are not Python modules.

Change-Id: I794ad047a5ed52cb040490eb1be54c513c9d1e7c
2012-12-03 11:16:00 +01:00
Yaguang Tang
4a4626282b Use auth_token middleware in keystoneclient.
The auth_token middleware moved into keystoneclient so a full
keystone install is not required to use the middleware.Also
add missing signing_dir to api-paste.ini.

Change-Id: If6c339045b70b3d4d70f0297ec32ed3cfdf431de
2012-11-27 19:30:27 +08:00
Gary Kotton
24af9d620e Ensure that the anyjson version is correct.
Fixes bug 1075977

Change-Id: Ieb5a8b3f3eefb8e0faea8bd5dcd8a0f3f7c4ec07
2012-11-03 04:54:03 +00:00
Zhongyue Luo
3df328144e Drop lxml dependency
Fixes bug #1068290

Removed lxml from tools/pip-requires
Removed usused method _to_xml() in quantum.wsgi.XMLDictSerializer

Change-Id: I3410fd8645739abfd853f71efcbb354b58677b18
2012-11-05 14:36:13 +08:00
Gary Kotton
cf54850d15 pin sqlalchemy to 0.7
The sqlalchemy package 0.8.0b1 released on October 30, 2012
removed SQLSoup

(http://docs.sqlalchemy.org/en/latest/changelog/migration_08.html#sqlsoup)

Ensure that the SqlSoup import is still supported. A number of quantum agents
make use of this code to access the database.

Fixes bug 1073555

Change-Id: I78b27716c6e3eb05d874314f0bc544a917fd5853
2012-10-27 06:53:44 +00:00
Gary Kotton
9aac057efd 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
2012-10-06 04:10:09 +00:00
Jenkins
ad18a473ec Merge "Lower webob dep from v1.2.0 to v1.0.8" 2012-09-06 18:58:17 +00:00
Brian Waldon
1ead125c9e Lower webob dep from v1.2.0 to v1.0.8
All other OpenStack projects expect webob v1.0.8 yet Quantum expects
v1.2.0. This discrepancy causes problems for certain projects that
can't actually support v1.2.0 yet. This patch aligns the required
version with that which the other OpenStack projects expect.

Change-Id: I21b4c6c79a0382f241131f22edbeba22388a688d
2012-09-06 10:47:45 -07:00
Nachi Ueno
762cc5d830 Implements agent for Quantum Networking testing
This agent client plugs itself into each network.
Then tries to ping each fixed_ips.
Implements blueprint test-agent

Change-Id: I3908e37401272e9e091ceae66e72cfcdd13b7898
2012-09-04 16:00:23 +00:00
Sumit Naiksatam
0b4cecf682 Execute unit tests for Cisco plugin with Quantum tests
Bug #1041917

On account of the new requirement to run plugin-specific tests also
along with the Quantum tests, changes are being made to
incorporate the Cisco plugin unit tests into the Quantum unit test
suite. Earlier unit tests have been moved and modified.

Change-Id: I099bcaf0b2ca2f7ed7d25176dfaa75966b90dd71
2012-08-27 09:36:58 -07:00
Clark Boylan
f4968d433c Add nosehtmloutput as a test dependency.
Adding nosehtmloutput as a test dependency allows nose to output its
results to an html file. This will be used by Jenkins to save logs on
a different server.

Change-Id: If88ca04bf7e45aa25aaea3cc01bb0f457224c117
2012-08-21 14:41:29 -07:00
Gary Kotton
f1e7ec951a Updates pip requirements
Fixes bug 1036533

Change-Id: I8e1522ac0d1fbb08f7c9200323fbb1fef3fd0e9a
2012-08-14 06:43:39 -04:00
Mark McClain
8e66b33b20 remove old gflags config code
blueprint remove-gflags

This code removes the old gflag based configuration tools.  There was
no code out of the unit tests that were using it.

Change-Id: Id3f2e9bcfc5abcfd29ef683684f56c69c058bdc8
2012-08-13 22:35:21 -04:00
Gary Kotton
5c69013201 RPC support for OVS Plugin and Agent
blueprint scalable-agent-comms

This adds support for the OVS plugin.

Change-Id: I613de63f5c7f374be87520f32a2f7129d86ef109
2012-08-13 05:20:58 -04:00
Gary Kotton
dea9ecf4b2 RPC support for Linux Bridge Plugin and Agent
blueprint scalable-agent-comms

This is the first stage of the blueprint. This adds support to the linux bridge
plugin.

The development followed the design described in:
https://docs.google.com/document/d/1MbcBA2Os4b98ybdgAw2qe_68R1NG6KMh8zdZKgOlpvg/edit?pli=1

Change-Id: I4004c05a63ce49f020c2016c8763e73238b465a7
2012-08-08 10:09:47 -04:00
Yong Sheng Gong
3cff1e7b97 Introduce files from openstack common.
Because the openstack common project does not stick to latest pep8 rules,
I have to exclude some bad-ruled files in the tox.ini and run_tests.sh.
However pep8 does not support exclude option in the format quantum/openstack/common,
so I have to exclude some of openstack common files one by one.

Also, I have changed the Qunatum Context to base on the common context.

I does not update the setup.py in our openstack common dir and the one
under quantum top dir, since it should be maintained in a consistent way
across all of openstack projects.

After this introduction, we are ready for notification feature.

Change-Id: I2729c2dc3958835374c88d704e842e613785ec14
2012-07-17 06:41:14 +08:00
Mark McClain
43960ee448 implement dhcp agent for quantum
blueprint: quantum-dhcp

This change adds an agent to manage DHCP for Quantum networks

Change-Id: If3c62965550dc0b0a7982b01d3468e2e07e2b775
2012-07-08 14:50:49 -04:00
Monty Taylor
6d9ddf1c37 Use setuptools git plugin for file inclusion.
Fixes bug 1018833. We're looking at this as a possible pan-project
option instead of manual MANIFEST.in inclusion and then looking for
where the tarballs differ.

Change-Id: I25287d5aca2046c6b613b05d54281533bdd6f79f
2012-07-01 05:31:22 -07:00
Juliano Martinez
2fcb3ecacf Bug #1013967 - Quantum is breaking on tests with pep 1.3
Fixing files

93/93 files fixed

Change-Id: Ia30f2e2253806fa5f447d44208d13d2c0beba9cd
2012-06-16 15:38:10 -03:00
Dan Wendlandt
44f66c79d2 API v2: mprove validation of post/put, rename few attributes
bug #1012438

Additional work for bp v2-api-melange-integration

- rename few attributes:
  op_state -> status
  additional_routes -> additional_host_routes
  prefix -> cidr

- expand request body validation to indicate whether fields can be
specified during create and or update.
- add test cases to validate defaults, and input validation.

- update db_base_plugin_v2 to generate gateway_ip for subnet and mac
for port when unspecified.

- validate that tenant-id is only specified in req by admin users

- automatically set tenant-id based on request.context.tenant_id if needed

- enable port tests in test_db_plugin.py

Change-Id: If7f5101e4974a6ef93ff8a1d945f8642dd21b16e
2012-06-13 10:41:36 -07:00
Jenkins
c0d0e891c0 Merge "Fix up test running to match jenkins expectation." 2012-06-12 04:15:52 +00:00
Jason Kölker
e791e9e370 Add API v2 support
* Implements BP v2-api-melange-integration
* Adds v2 Plugin specification
* Refactors SQLAlchemy usage for multiple BASE's

Change-Id: I45f008f181c18269afdfe4a9b589a7c5ae56d225
2012-06-11 10:36:10 -05:00
Monty Taylor
20ee7ee0e7 Fix up test running to match jenkins expectation.
Change-Id: I215cd92d707f81ed481897704b31188017a5a8b8
2012-06-10 15:20:16 -04:00
Jenkins
268040c336 Merge "Bug #1002605" 2012-06-07 16:27:11 +00:00
Dan Wendlandt
88deb9f4eb Remove hardcoded version for pep8 from tools/test-requires
In email discussions we decided that the master branch should always
pull in the lastest version of the pep8 tool, which keeps us closest
to the real pep-8 document.  Therefore, I'm removing the hardcoded
version here to match the lack of a pep8 version in tox.ini (which is
what the CI infrastructure uses when running the gating pep8 checks).

Note that your pep8 version will only update when you re-run
pip install --upgrade -r tools/test-requires .

Change-Id: I242cb042cff5f5969aa50d40312f87979191c7b7
2012-06-06 12:41:13 -07:00
Juliano Martinez
9895ac62c0 Bug #1002605
update webob to be version 1.2 or above

It's running without any issue with 1.2, the exception problem was caused
by WebTest. We should use at least version 1.3.3 (supplied by Ubuntu 12.04 and Debian Wheezy)

Version to WebTest==1.3.3

Change-Id: Ia8ef543e32ae46f503dd52e93bed4290d077c286
2012-06-01 12:18:40 -03:00
Guilherme Salgado
d1c563c57d Change Resource.__call__() to not leak internal errors.
That method now catches any non-expected errors raised by the controller's
action method and turn them into an HTTPServerError. Fixes bug 980033.

Change-Id: I7f71c029fae0e27a799f11de0802bde1003683e2
2012-05-09 15:28:27 -03:00
Jenkins
f6c71b52e9 Merge "Removed simplejson from pip-requires." 2012-04-29 22:49:38 +00:00
Maru Newby
676ba0fd70 Removed simplejson from pip-requires.
* Addresses bug 921295

Change-Id: Ied6015b4115a60778dffc18c18e8907d87a7c83d
2012-04-24 14:01:10 -07:00
Maru Newby
f6bc5d0e33 Remove dependency on python-quantumclient
* quantum previously depended on python-quantumclient for the
   functionality in quantum/common.  This change migrates
   the required modules to the quantum repo and removes that
   dependency.
 * Addresses bug 977711

Change-Id: Ia17a486859eb1aa993900a5f3b582b258c6a6d78
2012-04-23 18:42:08 -07:00
Monty Taylor
425e1c782d Add sphinx to the test build deps.
Needed for bug 945259

Change-Id: Idf76b3d253259deff8cc894b03d26420f2de278e
2012-04-10 18:58:34 -07:00
Brad Hall
10f0d6a537 Fix path to python-quantumclient
Change-Id: I428cfd05f8eba34efd06fc6a085e1d7272ef525a
2012-03-15 16:45:26 -07:00
Monty Taylor
8f6de697f0 Split out pip requires and aligned tox file.
Align tox.ini file with standards.
Align setup.py with openstack-common standards.

Change-Id: I333bbd66648c865a5c97ec2661359ab849274446
2012-03-14 23:20:22 -07:00
Maru Newby
4bacc462ea Downgraded required version of WebOb to 1.0.8.
* Maintaining version parity with other OpenStack projects is
   essential to packaging efforts and shared installation (devstack).
 * fixes bug 950374

Change-Id: I9b16f29a3641df7063ec80bc86b03b4857776b42
2012-03-08 14:54:17 -08:00
Jenkins
8d1d6cc94e Merge "remove pep8 and strict lxml version from setup.py" 2012-03-05 16:43:13 +00:00