1714 Commits

Author SHA1 Message Date
OpenStack Proposal Bot
61520ccc02 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: If8eecda5ba152152fb59c0478108a2e81ce18375
2019-10-01 11:19:23 +00:00
Zuul
e4c7805f9b Merge "Fix: VNF update_wait always raise exception" 2019-09-26 01:58:49 +00:00
Zuul
54af5031a6 Merge "Imported Translations from Zanata" 2019-09-26 01:52:17 +00:00
Zuul
82b8801e5a Merge "Remove deprecation warning messages" 2019-09-25 21:29:31 +00:00
OpenStack Proposal Bot
0011e39ee1 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I421534f84c4c9db5b97ff4b8c804134a75431ed7
2019-09-21 07:32:11 +00:00
Zuul
462cfd2e52 Merge "Add vnf packages documentation" 2019-09-20 23:51:20 +00:00
Zuul
0c64860edf Merge "Add vnf packages RestFul APIs" 2019-09-20 23:51:19 +00:00
Zuul
0e6caa8432 Merge "Fix import library error" 2019-09-20 17:51:58 +00:00
bhagyashris
554f7cd0a6 Remove deprecation warning messages
Below deprecation warning message is emitted continuously during each
API call due to the introduction of glance_store library in patch [1].

DeprecationWarning: Property 'user'  has moved to 'user_id' in version
'2.6' and will be removed in version '3.0'"
DeprecationWarning: Property 'tenant'  has moved to 'project_id' in
version '2.6' and will be removed in version '3.0'"

There is an issue in glance_store library which is reported in
LP bug [2] and it will be fixed by patch [3].
But we are not sure whether this issue will be fixed in Train
cycle Moreover, in future we will need to deal and remove
`tenant` and `user` attributes from context as these attributes
are deprecated from oslo.context in version 2.6 and it's planned
to be removed in 3.0. so this patch removes these 'tenant' and
'user' attributes from context. Also, added warnings fixture in
the unit test to ensure these attributes are not used anywhere
in the code. If used, it will result in test failure.

[1] : https://review.opendev.org/#/c/675600
[2] : https://bugs.launchpad.net/glance-store/+bug/1844462
[3] : https://review.opendev.org/#/c/683034

Implements: blueprint tosca-csar-mgmt-driver
Change-Id: I0cb320bbf237ebfac72b8e65128901c70cdd6780
2019-09-20 12:27:06 +05:30
bhagyashris
d7ca6c5f9b Add vnf packages documentation
Following are the list of documents updated for vnf package feature
usage:

1. api-reference document
2. release notes

Partial-Implements: blueprint tosca-csar-mgmt-driver
Change-Id: I82fc2e9d3f39e78b24eeb8034b0f611798c1aeb8
2019-09-20 12:26:11 +05:30
Niraj Singh
4fa204b370 Add vnf packages RestFul APIs
Implemented following APIs:-

* GET    /vnf_packages
* POST   /vnf_packages/
* GET    /vnf_packages/{vnfPkgId}
* DELETE /vnf_packages/{vnfPkgId}
* PUT    /vnf_packages/{vnfPkgId}/package_content
* POST   /vnf_packages/{vnfPkgId}/package_content/upload_from_uri

Partial-Implements: blueprint tosca-csar-mgmt-driver

Depends-On: If8155399df12a96cb86631dfa22eaca7a5a8d398

Co-Author: Neha Alhat <neha.alhat@nttdata.com>
Change-Id: Id3b4812e24a1ed84fe94429e074f96ae11530517
2019-09-20 06:48:28 +00:00
niraj singh
8cdf3e543b Add devstack support for vnf_package required dirs
This patch will add devstack support to create two directories one for
storing extracted csar file and another for glance store file required
for vnf_package.

Partial-Implements: blueprint tosca-csar-mgmt-driver

Change-Id: Iad5e93f3d706d22a84f538bba6010c03cbddc486
2019-09-20 06:48:05 +00:00
Niraj Singh
202e2594a2 Add vnf package conf options and sample config file to docs
1. Added new config options for vnf packages.

2. This will generate a new sample config each time build
   sphinx is run. This is then used on a new docs page
   where you can either view the file in its entirety,
   or download the file.

Partial-Implements: blueprint tosca-csar-mgmt-driver

Co-Author: Bhagyashri Shewale <bhagyashri.shewale@nttdata.com>
Co-Author: Neha Alhat <neha.alhat@nttdata.com>
Change-Id: I900af00af7f939e6069411104caa714f396dc509
2019-09-19 08:49:08 +00:00
Niraj Singh
a95ffbc668 Implement rpc conductor for vnf packages
Added new RPC APIs for uploading and deleting vnf packages.

Partial-Implements: blueprint tosca-csar-mgmt-driver

Co-Author: Neha Alhat <neha.alhat@nttdata.com>
Change-Id: Ia5051f3c1bf2ce5f45c94711a67be5f9a8ef21d0
2019-09-19 06:31:41 +00:00
Niraj Singh
34b661ad08 Implement policy in code
* Added policy in code as per community goals [1] for vnf packages.
* Modified tox to generate policy sample json file.

[1]: https://governance.openstack.org/tc/goals/queens/policy-in-code.html

Partial-Implements: blueprint tosca-csar-mgmt-driver

Co-Author: Neha Alhat <neha.alhat@nttdata.com>
Co-Author: Bhagyashri Shewale <bhagyashri.shewale@nttdata.com>
Change-Id: I7cedbca4abe41223e3f8d6211a74b4347299e9e5
2019-09-19 06:30:04 +00:00
Niraj Singh
354da78e0c Add versioned objects for vnf packages
Added new objects required for vnf packages.

Partial-Implements: blueprint tosca-csar-mgmt-driver

Co-Author: Neha Alhat <neha.alhat@nttdata.com>
Change-Id: I743c106b618aec75b4bf0877b812211296d7e816
2019-09-18 12:24:39 +00:00
Niraj Singh
156d9bfe47 Add DB script and models for vnf packages
* Added a new db script to add new db tables needed for vnf packages.
* Added new db models for vnf packages.

Partial-Implements: blueprint tosca-csar-mgmt-driver

Co-Author: Neha Alhat <neha.alhat@nttdata.com>
Change-Id: Ib754c6cab2de5ffb8932ef66e7c17bd20e34c16b
2019-09-18 12:24:14 +00:00
Niraj Singh
f519f23638 Jsonschema validation: base schema framework
This patch adds a base jsonschema framework.

This patch follows the Nova-Schema-framework:
https://github.com/openstack/nova/tree/master/nova/api/validation

Partial-Implements: blueprint tosca-csar-mgmt-driver

Co-Author: Neha Alhat <neha.alhat@nttdata.com>
Change-Id: I6ffeaaffb92fa9949a439a049f3092878b884634
2019-09-18 09:34:18 +00:00
Niraj Singh
2e461e1223 Add vnfpkgm api support
Added base framework for vnf packages.

Partial-Implements: blueprint tosca-csar-mgmt-driver

Co-Author: Neha Alhat <neha.alhat@nttdata.com>
Change-Id: I7efdc03ed2b7ef15bf3006523dbc09894366779c
2019-09-18 09:33:57 +00:00
Zuul
a131f4eac3 Merge "Add release note for bug-1833505" 2019-09-17 06:48:28 +00:00
dharmendra
a6eb1ca5c1 Add release note for bug-1833505
Change-Id: I0e5afc2613d7f97912c6b9ebafa9aa7f96c38af3
2019-09-17 05:24:22 +00:00
Zuul
b81bd7ceb5 Merge "Add release note for bug-1829384." 2019-09-16 16:47:34 +00:00
dharmendra
443ad22e29 Add release note for VNF and NS force delete.
Change-Id: Ib08d5423be32207add4d2383fcd389bdb34e598c
2019-09-13 12:19:06 +00:00
dharmendra
b951741d40 Add release note for bug-1829384.
Change-Id: I7275d99a163a5320ce85fb7e6d4ed237fedb46af
2019-09-12 07:28:16 +00:00
manchandavishal
df6dbc9290 Blacklist eventlet 0.23.0,0.25.0
For more information please refer [1]

[1] https://review.opendev.org/#/c/678078/

Change-Id: I95691f3b4f6e1cb89c876f1b97834bc22b599ee7
2019-09-09 08:12:34 +00:00
Hiroya Nakaya
3e29adbff9 Fix: VNF update_wait always raise exception
vnf-update don't change heat stack's state.
But update_wait function currently  check stack's state.
Therefore update_wait always raise exception,when tacker
execute update. The reason that this function execute
check process is because vdu_autoheal action shares
update_wait with update action.

this commit splits update_wait into heal_wait and update_wait.

Closes-Bug:#1837205

Change-Id: I7ab059bb30b5de38943555883a92d77a64a56d34
2019-09-09 04:44:42 +00:00
Q.hongtao
7d955f1b27 Fix import library error
Change-Id: I4b1f886bafdcfe8e110249596e85947e567babe8
2019-09-06 16:34:48 +08:00
Zuul
eea4060f03 Merge "Fix python3.7 unittest failure" 2019-08-30 07:29:31 +00:00
Zuul
617c3f884c Merge "Adds support force delete for NS" 2019-08-29 05:13:01 +00:00
Hiroyuki JO
931b580294 Fix python3.7 unittest failure
In python3.7 unittest, there is a failure that the dictionary changed size
during iteration, so fixing it by list instead of dict.

Change-Id: I6ef95e2cc7f49f9d82625e1e5a5ac0f554435465
2019-08-27 17:50:45 +09:00
Zuul
f9f5765cfb Merge "Fix gate failure" 2019-08-23 16:24:16 +00:00
Zuul
6bcdfa6220 Merge "Make non-admin's VIM accessible for admin" 2019-08-21 02:55:48 +00:00
dharmendra
216b3859ab Adds support force delete for NS
This patch adds '--force' parameter to NS delete command,
to force delete NS instances.
e.g: openstack ns delete test_ns --force

blueprint force-delete-resources

Change-Id: I739ad1e1e764f38edffa3d7fa423da370b53242b
2019-08-20 23:07:53 +00:00
dharmendra
ff00c86b1e Fix gate failure
Functional test test_vnf_with_placement_policy_invalid failing with
MismatchError on gate due to invalid string check. Please see [1].
Fixing it with correct string check.

[1]: http://logs.openstack.org/96/666496/7/check/tacker-functional-devstack-multinode-python3/fae7692/testr_results.html.gz

Change-Id: I3b448067036f122e16826d4729c59a65e70109ac
2019-08-20 10:06:25 +00:00
Zuul
3a198b0ba6 Merge "Switch to oslo_utils.importutils to load module" 2019-08-19 01:39:46 +00:00
Zuul
484c05a898 Merge "Blacklist sphinx 2.1.0 (autodoc bug)" 2019-08-12 16:17:19 +00:00
Zuul
24d4545cb7 Merge "from i18n import _ when quoting them" 2019-08-12 16:17:18 +00:00
Zuul
2de0782c99 Merge "FT to check SSH access after VNF is created." 2019-08-12 16:02:52 +00:00
hexiang zhang
72111bbe51 from i18n import _ when quoting them
Change-Id: Ic40decb87f3e569953e2d1586449893eea897410
Closes-Bug:#1836342
2019-08-09 09:59:48 +08:00
dharmendra
e254845470 Switch to oslo_utils.importutils to load module
The imp module is deprecated since a while and the load_source
method has been removed from docs because broken [1][2].
Switch to oslo_utils.importutils for the same.

[1] https://bugs.python.org/issue14551
[2] https://mail.python.org/pipermail/python-ideas/2014-December/030265.html

Change-Id: Ic567e48b925befe2c196a5d46de8e504f273387e
2019-08-03 09:25:49 +00:00
pengyuesheng
301c2eb497 Bump the openstackdocstheme extension to 1.20
Some options are now automatically configured by the version 1.20:
- project
- html_last_updated_fmt
- latex_engine
- latex_elements
- version
- release.

Change-Id: Iae2061c63ba1eee98d979a22daf04756c485192b
2019-08-02 16:18:21 +08:00
pengyuesheng
f6d035a1f7 Blacklist sphinx 2.1.0 (autodoc bug)
See https://github.com/sphinx-doc/sphinx/issues/6440 for upstream details

Change-Id: Ia86d038cf244a9a0612cebe450801e0fc81d020f
2019-08-02 14:04:09 +08:00
Zuul
452d2a29eb Merge "[Trivial Fix]" 2019-07-30 08:23:45 +00:00
dharmendra
f43264a420 Make non-admin's VIM accessible for admin
In current code, One tenant can not access other tenant's Vim,
even though this tenant has admin role. Due to it operations like
force delete fails. In another scenario, a VNf of non-admin tenants
also fails to scale as admin not able to access VIM.
With this fix, admin tenants can access other tenant's VIMs.

Change-Id: If65098ed5f1cfda29f63a28031d895afb04d5e31
Closes-Bug:#1833505
2019-07-30 05:15:44 +00:00
dharmendra
456e7ef617 [Trivial Fix]
tacker cli is depricated since rocky.
Refactor use of tackr cli from code.

Change-Id: I4f010420d4278aa538c0b86e9ab8b41cdbe11858
2019-07-23 07:38:38 +00:00
Andreas Jaeger
c1d2ab00ca Update api-ref location
The api documentation is now published on docs.openstack.org instead
of developer.openstack.org. Update all links that are changed to the
new location.

Note that redirects will be set up as well but let's point now to the
new location.

For details, see:
http://lists.openstack.org/pipermail/openstack-discuss/2019-July/007828.html

Change-Id: Ibb1b3c39c931e194d7eec0a19aae457d0f73689d
2019-07-22 18:52:27 +02:00
Zuul
2417ececbd Merge "Update the constraints url" 2019-07-12 15:49:00 +00:00
dharmendra
90dbc5e4aa Update the constraints url
For more detail, please refer:
http://lists.openstack.org/pipermail/openstack-discuss/2019-May/006478.html

Change-Id: Ie29b2732981a5e025726299307dfb93ded6b7386
2019-07-10 10:04:03 +00:00
ritika.sharma
ad39d21b92 Add Python 3 Train unit tests
See the Train python3-updates goal document for details:
https://governance.openstack.org/tc/goals/train/python3-updates.html

Change-Id: Ib6f6526db795b2ff74c5d176d4d56e4ec55fe29c
2019-07-05 14:57:56 +05:30
dharmendra
fc8f7d2b18 FT to check SSH access after VNF is created.
Adding functional test case for cmd_executer.py to check SSH
access after VNF is created.

Closes-Bug:#1592235

Change-Id: I4e5e677aad59fc3fe6ea37ef339044b10e5792da
2019-07-03 06:39:56 +00:00