101 Commits

Author SHA1 Message Date
OpenStack Proposal Bot
b64f936f2c Updated from global requirements
Change-Id: I6ce861c60bd0dc285419037b947a1038d66f2894
2016-06-28 18:56:51 +00:00
Yoichiro Iura
5035aa4a57 Support service framework to separate plugin logic
This fix supports service framework in order to separate
the plugin code into backend specific and generic part.

Change-Id: I66d0f4a9ce5453ec7ca0bf0fe52f24a3a2e3c8ea
Closes-Bug: #1567770
2016-06-24 01:40:09 +00:00
Jenkins
11f8fcb94a Merge "Remove network-id from tap-service" 2016-06-23 17:28:30 +00:00
Jenkins
e24cbf9c30 Merge "CLI: Turn comments into docstring" 2016-06-22 07:11:52 +00:00
Jenkins
755a40ab58 Merge "Fix help text for tap flow command" 2016-06-22 06:32:00 +00:00
YAMAMOTO Takashi
d7c5b3c5e0 Remove network-id from tap-service
Currently it's unused.  Thus no good reason to force users to
specify it.

It can be re-introduced when/if we decide automatic port creation
is desirable.  For db models, a boolean to say if the port has been
automatically created might be more appropriate, though.

Change-Id: Ia183635c183fd4ad731fd1ee48c58f6b10f06c5b
2016-06-17 16:38:28 +09:00
YAMAMOTO Takashi
38f1ab3bd2 Use call_and_ignore_notfound_exc directly
This patch makes service client use call_and_ignore_notfound_exc
directly because the client only uses it.

Co-Authored-By: Ken'ichi Ohmichi <ken-oomichi@wx.jp.nec.com>
Closes-Bug: #1589521
Change-Id: I8ee81502a090aa0581e0b46b96bfa6144b456cc4
2016-06-08 04:04:51 +00:00
Jenkins
fe2d77448d Merge "Add report to coverage" 2016-06-06 04:58:23 +00:00
Jenkins
c155e12dbc Merge "Initialize alembic branches for TaaS repo" 2016-06-03 00:49:30 +00:00
Jenkins
0c6d0f60b7 Merge "Provide support for tap-*-update" 2016-06-02 09:53:14 +00:00
Reedip
adb8548d69 Provide support for tap-*-update
Currently tap-*-update is not possible, though the
API documentation states that Update of Name/Description
is possible. This patch adds the functionality.

Change-Id: Ia32136ce80a4e8f4234d00491730dc725d7c7b7b
Closes-Bug: #1540754
2016-06-02 13:33:15 +05:30
OpenStack Proposal Bot
f463829355 Updated from global requirements
Change-Id: I40b2a21ae9d1210669f1f2ccaaaa7ed4f3dec7fd
2016-06-02 04:10:30 +00:00
Jenkins
e8903b444d Merge "Fix tap-flow CLI to take service parameter" 2016-06-02 02:33:05 +00:00
Yoichiro Iura
0f0e3ceead Fix validation of direction on TapFlow
This patch fixes the validation of direction.
 * change API validator from type:string to type:values
 * remove None from direction_enum because of NOT NULL constraint

Change-Id: Iae4f13451002db7567425ae33d1c36bd2013ae75
Closes-Bug: #1585445
2016-05-25 06:09:01 +00:00
YAMAMOTO Takashi
9c4e8a6447 CLI: Turn comments into docstring
These are used for command descriptions by "neutron help".

Closes-Bug: #1565625
Change-Id: I1660c4d0a35d48c728cf30943a1b3a87107e8e23
2016-05-24 07:15:38 +00:00
reedip
3e7fb755bd Fix tap-flow CLI to take service parameter
Earlier, tap-flow CLI could not take the service parameter,
which may be attributed to the destination attribute of parse_args.
The following code fixes the issue, while also modifying the
--service parameter to --tap-service for more similarity with
TaaS.

Change-Id: I813d039afbc26808d593d3a91d0acd7df6377724
Closes-Bug: #1539584
2016-05-13 09:23:41 +00:00
Abhishek Raut
a34da84b72 Fix help text for tap flow command
Remove extra space from help string.

TrivialFix

Change-Id: Ic5503482bdc9afa2be4cff9c44f5b71e50ecdf0b
2016-05-09 19:07:47 -07:00
YAMAMOTO Takashi
75b40370cf Remove new= argument from create_connection
It has been marked deprecated [1] and recently removed. [2]

[1] I57b0229c2b6028796cd10bbbfc9b166cf8a6dab0
[2] I550c65861a8664068e340b7b4689b2345951e888

Closes-Bug: #1570202
Closes-Bug: #1570840
Change-Id: Ia384be8d13431dbd6327a6bb689622d8d3731538
2016-05-07 09:40:27 +09:00
Abhishek Raut
ced6e31d20 Initialize alembic branches for TaaS repo
Add alembic migration branch for tap-as-a-service repo. Scripts
for new tables owned by TaaS must now be added here.
Also adds PEP8 changes to check migration branch points.

Closes-Bug: #1583889
Change-Id: I6d03090c3c90bf7d05eddafa5ac7e502cc13cfe8
2016-05-06 05:56:59 -07:00
Jenkins
a7d933dec0 Merge "Change stackforge to openstack" 2016-04-07 15:19:16 +00:00
reedip
0b319b560c Dont pass tenant-id in request unless given
Currently, if tenant-id is not passed during tap-service-create,
it is passed as None.
This is not correct, tenant-id should be populated in the request
body only when it is passed as an attribute.

Change-Id: Idc6e117955a13f9aa70167e6997e83fca9bcae37
Closes-Bug: #1540739
2016-04-07 11:27:38 +09:00
Jenkins
88fba95134 Merge "Fix in install and api guide" 2016-04-07 02:13:09 +00:00
reedip
ab4daff32a Improve exception messages
This patch improves some exception messages.

TrivialFix

Depends-On: I1b97fe8541c1c1325aaad739a30e5989c1fd806a
Change-Id: I71d107bed3685e4c7ac9a4fbae7172941f1e10e3
2016-04-04 06:04:26 +00:00
reedip
5727ad19df Fix API end point for tapservice/tapflow
Due to the difference of API Endpoint and Resource Body,
NeutronClient could not succesfully create the tap-services
( and consecutively, tapflow).
The following code change modifies the API end point, and fixes
the problem with NeutronClient.

Change-Id: I9fa21bb273ef8a5c6fabece0a29673839cf8e945
Closes-Bug: #1539130
2016-04-04 06:03:34 +00:00
OpenStack Proposal Bot
22eb795620 Updated from global requirements
Change-Id: I73cdaf060097c29d671fe0f9350819826b60d411
2016-03-28 19:32:45 +00:00
Jenkins
1d58d20ede Merge "Avoid using _get_tenant_id_for_create" 2016-03-22 04:55:18 +00:00
Jenkins
41186fc025 Merge "devstackgaterc: Disable unrelated services" 2016-03-16 11:04:50 +00:00
Jenkins
4e1c887cc9 Merge "Deprecated tox -downloadcache option removed" 2016-03-13 12:38:57 +00:00
YAMAMOTO Takashi
fcb2365749 devstackgaterc: Disable unrelated services
By explicitly specifying the list of services.
This effectively disable the following services:

    c-api
    c-bak
    c-sch
    c-vol
    ceilometer-acentral
    ceilometer-acompute
    ceilometer-alarm-evaluator
    ceilometer-alarm-notifier
    ceilometer-anotification
    ceilometer-api
    ceilometer-collector
    cinder
    horizon
    q-fwaas
    q-lbaas
    s-account
    s-container
    s-object
    s-proxy

Closes-Bug: #1555457
Change-Id: I1d8b23a4942a33bf872306a9c10e553ab4e742aa
2016-03-13 12:53:22 +09:00
YAMAMOTO Takashi
6f16de6f32 Update tempest plugin after tempest-lib deprecation
This is a combination of the following 2 commits.
(I combined them to pass the gate job.)

------
Update tempest plugin after tempest-lib deprecation

Closes-Bug: #1552598
Related: blueprint tempest-lib-reintegration
------
TrivialFix: Move from tempest to tempest.lib

As [1] has merged, to prevent future tempest gate failures,
we can move tempest to tempest.lib for the Network Client.

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

Co-authored-by: reedip <reedip.banerjee@nectechnologies.in>
Change-Id: I8b952811dd7ebfa24b269802f1f0c56362bbe12e
2016-03-11 13:03:47 +09:00
reedip
dff4505697 Fix Gate tests
Seems [1] and an unnecessay inheritance may be the
cuplrit for the newly occurring failures [2] of
Python2.7 and Python3.4 gate jobs for tap-as-a-service.

[1]: https://bugs.launchpad.net/python-neutronclient/+bug/1532258
[2]: http://paste.openstack.org/show/489947/

Closes-Bug: #1532258
Change-Id: I1b97fe8541c1c1325aaad739a30e5989c1fd806a
2016-03-10 05:44:52 +00:00
reedip
a9e37e53f2 Avoid using _get_tenant_id_for_create
It will be removed in N.

TrivialFix

Change-Id: I7b013550a8ee030209743c48e73441a0844aa766
2016-03-03 18:16:10 +09:00
reedip
d3c73b86f8 Add report to coverage
Following patch adds report display to the
output of coverage.

TrivialFix

Change-Id: I47f30e3ce13ef4f1a3dd05f6079db8f1f4dda847
2016-02-16 12:09:13 +09:00
Ondřej Nový
e6100387fc Deprecated tox -downloadcache option removed
Caching is enabled by default from pip version 6.0

More info:
https://testrun.org/tox/latest/config.html#confval-downloadcache=path
https://pip.pypa.io/en/stable/reference/pip_install/#caching

Change-Id: Ie151f3719de540e11516b8b2eddbe82bc4123978
2016-02-15 08:10:19 +00:00
venkatamahesh
3bb160d034 Change stackforge to openstack
Change-Id: Ic669faee76d8c971c1950191c6e0494dc18497cf
2016-02-02 04:44:30 +00:00
Dongcan Ye
94e0833d59 Fix in install and api guide
Trivial fix for typo and adding some description for workflow.

Change-Id: I5e6758cbbd580df531aa35cdee6d723a5c0f3bbb
2016-01-20 02:09:20 +00:00
Jenkins
b1a7accda0 Merge "Remove old TaaS CLI repo, update API reference" 2016-01-19 17:11:08 +00:00
Jenkins
9cc9332fe1 Merge "Re-implement TaaS CLI as a NeutronClient extension" 2016-01-19 17:10:26 +00:00
Jenkins
ed5c97f189 Merge "Fix TempestPlugin function signature" 2016-01-19 16:54:22 +00:00
Jenkins
f131dddbc3 Merge "Fix db error when running python34 unit tests" 2016-01-19 08:58:28 +00:00
reedip
87c469126c Remove old TaaS CLI repo, update API reference
With the introduction of NeutronExtension for TaaS, the previous
TaaS CLI repository is not required anymore.
Therefore this patch removes the old TaaS CLI repo.
Also, with the introduction of the Neutron base TaaS CLI, the API
reference document is updated.

Change-Id: Iade483ab93583c5699ceee2259e3c309c3c5bb10
2016-01-17 04:02:11 +00:00
Reedip Banerjee
22af25fa1f Re-implement TaaS CLI as a NeutronClient extension
The following patch introduces the NeutronClient extension
of tap-as-a-service, thus integrating TAAS with the python-neutronclient.

Change-Id: I8ce10e3001c46e24980dc701540cca8e837c3700
Closes-Bug: #1517357
Depends-On: I41fb7b538c81eba848b78c071edaf806663063a1
2016-01-15 18:05:15 +09:00
Reedip Banerjee
930189e8c6 Fix db error when running python34 unit tests
If tests for py27 is executed before py34 tests, then
there is a chance that py34 related tests may fail.The following
patch fixes it.

Ref: https://review.openstack.org/#/q/status:merged++topic:bug/1489059,n,z

TrivialFix

Change-Id: I9dd8cab4425eb010a9d03e7c103cd00989a96cda
Closes-bug: #1489059
2015-12-14 02:41:29 +00:00
Reedip Banerjee
72b8fb80aa Fix TempestPlugin function signature
Currently, tempest plugin for TaaS can fail due to a wrong
function signature. This patch fixes the function signature.

Change-Id: Id051e011bc3f0beb837542c6655e9e4379228b1e
2015-12-14 02:40:55 +00:00
Reedip Banerjee
e3511392c6 Delete python bytecode before every test run
Because python creates pyc/pyo files during tox runs, certain
changes in the tree, like deletes of files, or switching
branches, can create spurious errors.

This patch removes these unrequired files when tox
starts execution, along with the __pycache__ folder for
py3* compilation.

Change-Id: Iea5f19ab8a4d56dedaa8c3a3950af041d3ff5b9f
Closes-Bug: #1368661
2015-12-14 02:40:18 +00:00
YAMAMOTO Takashi
c6a42502bb Create specs directory
Change-Id: I9b39a8285b03f7849a10bf1e178df8a9a14cb9b1
2015-12-11 13:29:30 +09:00
YAMAMOTO Takashi
a6aec8a8c6 devstackgaterc: Specify tests to run on gate
Let's start with network related ones + ours.

Change-Id: I4389db0ea7d4248277b3191ce5764606ac592c1c
2015-11-25 14:34:11 +09:00
YAMAMOTO Takashi
746a6cef40 Add a few dumb api tests
Partial-Bug: #1501792
Change-Id: I21baed7665cbaa60ef2a22ab04b76cd2a0a8747c
2015-11-20 15:51:00 +09:00
YAMAMOTO Takashi
a9cb0b67e0 Add TaaS services client for tempest
Partial-Bug: #1501792
Change-Id: I7156697d68e748572733218097d7a2f61d61da5a
2015-11-20 15:51:00 +09:00
YAMAMOTO Takashi
f195a82dc4 Add a skeleton tempest plugin
Partial-Bug: #1501792
Change-Id: I987f86c626c7c1b335b3376fc2bc83a3d1feddf3
2015-11-20 15:51:00 +09:00