263 Commits

Author SHA1 Message Date
Trinath Somanchi
af2f0f031f Switch to oslo_log
tackerclient is currently using python logging module to
implement logging functionality.
This patch made a switch to oslo.log(logging for openstack projects)

Reference:-
http://docs.openstack.org/developer/oslo.log

Change-Id: Iecab180e605c788bb820c7a628781abf9a4918ea
Closes-Bug: #1656167
2017-03-14 14:37:31 +05:30
Jenkins
e401c9a556 Merge "The Python 3.5 is added" 2017-03-13 19:50:56 +00:00
Trinath Somanchi
c80b0c7133 vnfd-delete gives ambiguous success message
When a single vnfd is deleted, the following success message is delivered.

$> tacker vnfd-delete cirros-vnfd-multi-vdu

All vnfd(s) deleted successfully

The above success message has to modified to
" All specified %(resource)s(s) %(msg)s successfully? "

Change-Id: I48443622b718a1d6a1476f53c6378b67ce0d82e4
Closes-Bug: #1672302
2017-03-13 15:31:55 +05:30
kavithahr
410865d358 The Python 3.5 is added
The Python 3 and 3.5 was missing in setup.cfg and tox.ini
hence added that version.

Change-Id: I36b67a969f0521fb7bb638623eddc5d944642dfe
2017-03-08 18:05:48 +05:30
OpenStack Proposal Bot
205c882646 Updated from global requirements
Change-Id: Ibe8b09b110f1b1c3ce6a0433829fc2d3b1ad3cfe
2017-03-07 02:06:17 +00:00
Jenkins
cf43dbbec2 Merge "sync test-requirement with global requirements" 2017-03-06 07:30:55 +00:00
gong yong sheng
1201ae893e sync test-requirement with global requirements
This change is got by tacker tool sync_test_requirements.py
in https://review.openstack.org/#/c/441572/

Change-Id: I5242c6ff856463d30811ec240a5a9fa8eb39e189
2017-03-04 14:15:55 +08:00
OpenStack Proposal Bot
4ca5deea6e Updated from global requirements
Change-Id: Id5ea2f4c62b34e71adcb1ae0dcbb64bd78753f07
2017-03-02 11:55:27 +00:00
OpenStack Proposal Bot
cf980252f3 Updated from global requirements
Change-Id: Ia4f77c8dae757c000c45a75275159f43c7114b3c
2017-03-01 04:16:33 +00:00
OpenStack Proposal Bot
882c739a3f Updated from global requirements
Change-Id: Ib073404e3adb88d1bbf3e632d08ddc9c352566fb
2017-02-11 17:52:20 +00:00
f1c2b46a7d Update reno for stable/ocata
Change-Id: I4a283c9a137bafc1cca8fd3f956f4e55ae866a8a
2017-01-24 22:19:25 +00:00
Sridhar Ramaswamy
9a5588d166 Add release notes for Ocata
Add release notes for new NSD feature and direct
YAML input deprecation

Change-Id: I5dd7a51ef023dd5e6e8db6e0894162d8b933bb25
ocata-em 0.9.0
2017-01-24 21:12:43 +00:00
Jenkins
b3da4a6a7f Merge "Deprecate direct YAML input in tackerclient" 2017-01-24 20:46:38 +00:00
Sridhar Ramaswamy
1dedfd7305 Deprecate direct YAML input in tackerclient
Starting from Ocata tacker payloads will only accept
YAML dict for config and param payload values. Hence
remove the warning when something other than YAML dict
is received by the client. Such a CLI input is no longer
make sense. So, starting Ocata deprecate all direct
YAML input and remove it in Pike.

Change-Id: I03f3ac405e92d7e9fa69fd2b2761c243456fd7e8
Partial-Bug: 1656416
2017-01-24 00:03:58 +00:00
Jenkins
0d47fe20fa Merge "Support VNF creation from inline VNF template" 2017-01-20 20:00:48 +00:00
janki
f66a4e0ccc Support VNF creation from inline VNF template
Allows creating VNF from the VNFD template directly without the need of
VNFD being stored in Tacker VNFD catalog.

Change-Id: I719237dd04dd7fe13fb7e7964402d7074679b2d6
Implements: blueprint vnf-inline-template
2017-01-20 06:58:02 +05:30
Manikantha Srinivas Tadi
7cd2f2cc6a Adds vnfd_id coloumn in vnf-list
Change-Id: I0c11d7c4710da225d8786a8e9cc29693d0cc5434
Closes-Bug: #1592277
2017-01-18 02:27:28 -05:00
Bharath Thiruveedula
b91c8a745e Remove unwanted 'required' parameters
Closes-Bug: #1655419
Change-Id: I7642161a8b8f68c461cbb08520f9e6c6fa8b7863
2017-01-11 12:13:24 +05:30
dharmendra
27a9ed8a35 Remove support for legacy VNFD templates.
From Mitaka version, Tacker supports TOSCA based VNFD templates.
Legacy templates were deprecated in newton. Server side already
commited in https://review.openstack.org/#/c/382786/.
Removing related checks in client side now.

Implements: blueprint deprecate-legacy-template-dsl
Change-Id: I60b683c6d63b6976d438ff6130d16ddbf0656940
2017-01-08 19:39:59 +00:00
Jenkins
aa7249af3e Merge "Improve help text for events-list command options" 2017-01-06 00:22:49 +00:00
Naoya Harada
5cd75e8727 Improve help text for events-list command options
events-list command's help text for some options does not follow common
format. Also, *-events-list commands have similar issues. This patch
fixes help texts for these commands to make them clearer for users.

Change-Id: Icd85d13fee437bf0f83979eb6625377b38ce39ad
Closes-bug: #1628769
2017-01-05 13:09:00 +09:00
Naoya Harada
59ee90791d Fix invalid unit test code in python-tackerclient
Unit tests are not testing the behavior of command-line client
code properly since mox was replaced with mock in [1].

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

assert_called_once_with() should be called after the target
call of the patched method.

Change-Id: I99873e9cb1d75d1fa2e41c02b9f87dfa4f9ef1f7
Partial-Bug: #1572706
2017-01-05 09:43:47 +09:00
Jenkins
dbc71552f2 Merge "Implement client support for NSD" 0.8.0 2017-01-04 09:18:00 +00:00
Bharath Thiruveedula
1cf8ceb72e Implement client support for NSD
Change-Id: I5653f3bb627b81dfe356e2192c71b13c6cfe6924
Partially-implements: blueprint nsd-support
Co-Authored-By: Dharmendra Kushwaha<dharmendra.kushwaha@nectechnologies.in>
2017-01-04 13:30:18 +05:30
Jenkins
a6a2fa0975 Merge "Support parameter input for vnffg template" 2017-01-03 21:42:24 +00:00
Jenkins
b40c5930d5 Merge "Add Constraints support" 2016-12-23 23:13:06 +00:00
Jenkins
69009d6dad Merge "Remove passing infra and mgmt driver from client" 2016-12-23 01:23:25 +00:00
Jenkins
3b99b49852 Merge "Replaced e.message with str(e)" 2016-12-23 01:22:51 +00:00
gecong1973
3f7cc06aff Replaced e.message with str(e)
For logging the exception message: e.message has been
deprecated. The preferred way is to call str(e).
more details:
https://www.python.org/dev/peps/pep-0352/

Change-Id: Ic22fbd37376843f714d2c1669d2cdc25a3569225
2016-12-23 00:58:02 +00:00
venkatamahesh
d90dac82ca Support parameter input for vnffg template
Change-Id: I93819ff19ae91ca5e24778e220d3d09b63532ddf
Implements: blueprint vnffgd-param-support
2016-12-21 17:19:37 +05:30
Tony Breeds
64e41e103d Add Constraints support
Adding constraints support to libraries is slightly more complex than
services as the libraries themselves are listed in upper-constraints.txt
which leads to errors that you can't install a specific version and a
constrained version.

This change adds constraints support by also adding a helper script to
edit the constraints to remove python-tackerclient.

Change-Id: Ibf4801a72637840cc5f908c4938c5d95077ef9d7
2016-12-21 13:29:52 +11:00
Jenkins
6944ea0405 Merge "Add stevedore to requirements" 2016-12-21 01:57:52 +00:00
Jenkins
592f7d22b3 Merge "Fix oslo.i18n problems in python-tackerclient" 2016-12-21 01:57:51 +00:00
Jenkins
0373528ff3 Merge "Add __ne__ built-in function" 2016-12-21 01:54:07 +00:00
Janki
1e613792fd Remove passing infra and mgmt driver from client
This patch removes passing infra and mgmt driver as part of VNFD body from
client and API.

Change-Id: I4684e69b8993e6c35503317503dd73e2c13f44dd
Partial-Bug: #1630936
2016-12-20 13:25:24 +05:30
Lu lei
ef1585a024 Fix oslo.i18n problems in python-tackerclient
Help msg in tacker project should support oslo.i18n. But
tests directory faces developer, So it needn't support oslo.i18n.

Co-Authored-By: ShuYingya<yingya.shu@easystack.cn>
Change-Id: I60106b106cfd77b46663ff35a2735cfa5ea158f0
2016-12-16 18:46:50 +08:00
venkatamahesh
f673cea49c Changed the help message of --config-file parameter
In this patch the description for --config-file parameter
is modified to be more informative

Change-Id: I61213a675cbb48a89ddb0b2f66fa1bd5bfab6efa
2016-12-06 05:46:37 +00:00
Jenkins
fb1c3cd273 Merge "Usability improvements of vim-update options" 2016-12-05 20:00:10 +00:00
OpenStack Proposal Bot
10711d5b47 Updated from global requirements
Change-Id: I682279972d619c4f1a2615ed023c4b6a5507e4fd
2016-12-02 17:18:29 +00:00
Jenkins
0d941634ae Merge "Show team and repo badges on README" 2016-11-28 04:52:31 +00:00
Flavio Percoco
7617b71841 Show team and repo badges on README
This patch adds the team's and repository's badges to the README file.
The motivation behind this is to communicate the project status and
features at first glance.

For more information about this effort, please read this email thread:

http://lists.openstack.org/pipermail/openstack-dev/2016-October/105562.html

To see an example of how this would look like check:

b'https://gist.github.com/8ad887687a27a845ca0c9e13e2462d27\n'

Change-Id: I59225608c5b19443e20f9877c33de49ecf738a14
2016-11-25 13:07:03 +01:00
OpenStack Proposal Bot
33b1d3f20b Updated from global requirements
Change-Id: I9af4a8bd556aa4356d602a39462e6c83a7c0fcfc
2016-11-16 22:16:57 +00:00
howardlee
2b3b1792d5 Add __ne__ built-in function
In Python 3 __ne__ by default delegates to __eq__ and inverts the
result, but in Python 2 they urge you to define __ne__ when you define
__eq__ for it to work properly [1]. There are no implied relationships
among the comparison operators. The truth of x==y does not imply that
x!=y is false. Accordingly, when defining __eq__(), one should also
define __ne__() so that the operators will behave as expected.

[1]https://docs.python.org/2/reference/datamodel.html#object.__ne__

Change-Id: I6adceadb6e3749e34cf847654f28a3b6eea832fd
2016-11-16 16:20:29 +08:00
Naoya Harada
b45904f7a1 Usability improvements of vim-update options
Tacker CLI does not support updating name and description of VIM.
This patch introduces --name and --description options to vim-update.

Also, existing --is-default option's behavior can be improved.
Currently is_default attribute will be set to False when --is-default
is ommited, and will be set to True when --is-default is specified.
So even a user, who wants to update attributes other than is_default,
needs to be aware of current is_default setting. This patch will make
the behavior of --is-default option clearer like below:

 1.When --is-default True is specified, it'll be set to True.
 2.When --is-default False is specified, it'll be set to False.
 3.When --is-default is ommited, it will stay as-is.

In addition, --config-file should be a required option because both
server and client expect it to be given when updating VIM.

Change-Id: Ic19fb6b0efb48bc3486f94836be4f2ff35f8c84b
Partial-Bug: 1637360
2016-11-11 17:35:52 +09:00
OpenStack Proposal Bot
d26d358145 Updated from global requirements
Change-Id: Ic88221fb4f5da1db7034eac0670b852ac51c3df9
2016-11-06 02:07:31 +00:00
OpenStack Proposal Bot
8a5679c4b0 Updated from global requirements
Change-Id: Iee2abbd51fc118411d4becdb62647d7c4703416e
2016-11-02 15:40:56 +00:00
Tony Xu
bdba1b1384 Add stevedore to requirements
This module is be used in:
tackerclient/common/extension.py

Change-Id: I31e8f8de4572b3868b2ea5264c3276e15c1d62f8
Closes-Bug: #1636374
2016-10-25 13:13:28 +08:00
OpenStack Proposal Bot
ca132cbb3b Updated from global requirements
Change-Id: I50150edf94fadfc54c1421f6941b8831eca9fffd
2016-10-22 01:27:44 +00:00
Jenkins
10f286989d Merge "Using assertIsInstance() instead of assertEqual(True, isinstance())" 2016-10-18 04:08:29 +00:00
Jenkins
71312260d1 Merge "Enable release notes translation" 2016-10-17 05:38:42 +00:00