Commit Graph

880 Commits

Author SHA1 Message Date
Haejin Choe a1840d24ba Support NFV Orchestration API v2.0
Support the latest NFV Orchestration API v2.0 listed below.

* VNF LCM v2
* VNF FM v1
* VNF PM v2

In addition, to manage VNF packages for testing purposes, also support
Orchestration API v1.0 listed below.

* VNF packages

Implements: blueprint v2-api-horizon
Change-Id: I0284cba30154cf4cc5d496be157288e2c2614ccf
2024-03-13 14:40:23 +00:00
Sairam Vengala 4709605bd5 Update metadata in setup.cfg
we are using some "aliases" that the setuptools docs say
"are supported for compatibility reasons" but their use is not advised[1].

[1] https://setuptools.pypa.io/en/latest/userguide/declarative_config.html#metadata

please check this below reference link

[2] https://review.opendev.org/c/openstack/charm-cinder/+/854987

Change-Id: I562fe1d322bd7d4e7370f43917e167027a780070
2023-07-31 05:42:36 +00:00
Sairam Vengala 1e072b475b Cleanup py27 support
This repo is now testing only with Python 3
So removing python 2.7 stanza from ``setup.py`` file.

Change-Id: I8962837bd2231fb6407079ce243fad31a2d210cc
2023-07-05 08:27:33 +00:00
Zuul 555d3ed3e6 Merge "Update ``bindep.txt`` to sync with the horizon" 2023-03-01 08:24:32 +00:00
manchandavishal eab63f575b Update ``bindep.txt`` to sync with the horizon
horizon recently switch nodeset for a few jobs from
focal to debian-bullseye [1] as per the runtime of 2023.1
cycle but looks like 'tacker-horizon-integration-tests'
start failing because the firefox package for debian-bullseye
is missing in ``bindep.txt``. This patch updates the ``bindep.txt``
file to sync with the horizon.

[1] https://review.opendev.org/c/openstack/horizon/+/865453

Change-Id: I06e996fca4192a838233994e97611a545fa2abdb
2023-03-01 03:16:28 +00:00
manchandavishal ef2bebf58e Address RemovedInDjango40Warning
django.utils.translation.ugettext(), ugettext_lazy(), ugettext_noop(),
ungettext(), and ungettext_lazy() are deprecated in favor of the
functions that they’re aliases for: django.utils.translation.gettext(),
gettext_lazy(), gettext_noop(), ngettext(), and ngettext_lazy().
For more info. please refer [1].

https://docs.djangoproject.com/en/4.0/releases/3.0/#id3

[1] https://review.opendev.org/c/openstack/horizon/+/827092

Change-Id: Idea2712e701488575c3f418f11ecae12516fdc68
2023-01-20 15:31:34 +05:30
Manpreet Kaur 1e9a7d3a52 Fix tox4 error
tox.ini started failing with Tox4 which had some
incompatible changes.
Remove skipsdist option as it is causes breakage
when used with usedevelop.

Change-Id: I514b6e6d4adf3ed3b7afd0690d5b5a6c6c4971b2
2023-01-12 16:01:32 +05:30
Manpreet Kaur 5a15ddd0ad Update python classifier for python 3.10
In 2023.1 cycle, we are testing the python 3.10
as voting job so updating the python classifier.

Currently we have python 3.8 unit test job running on
Ubuntu Focal and python 3.10 job on Ubuntu Jammy.

Change-Id: I101c88bd234eeff3642c18e4723ca6135bfe7b57
2022-12-15 12:17:47 +05:30
OpenStack Release Bot 4c4863838f Switch to 2023.1 Python3 unit tests and generic template name
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for antelope. Also,
updating the template name to generic one.

See also the PTI in governance [1].

[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html

Change-Id: I8414d73ee04989ef573d1d9229fa565f7c4a8f62
2022-09-13 14:16:29 +00:00
Zuul 24a80d355f Merge "Drop lower-constraints.txt and its testing" 2022-05-16 08:52:07 +00:00
zhangboye afc4b89b0a Drop lower-constraints.txt and its testing
As discussed in TC PTG[1] and TC resolution[2], dropping
the lower-constraints.txt file and its testing.
We will keep lower bounds in the requirements.txt file but
with a note that these are not tested lower bounds and we
try our best to keep them updated.

[1] https://etherpad.opendev.org/p/tc-zed-ptg#L326
[2] https://governance.openstack.org/tc/resolutions/20220414-drop-lower-constraints.html#proposal

Co-Authored-By: Manpreet Kaur <kaurmanpreet2620@gmail.com>

Change-Id: Iff303aee59ca9232e10e41d478f04abb085b9051
2022-05-03 09:26:05 +05:30
manchandavishal cb5ca26b17 Address RemovedInDjango40Warning
In Django 3.1, django.conf.urls.url() is deprecated
in favor of django.urls.re_path(). For more info see [1]
These were already replaced in Horizon repo by [2].

[1] https://docs.djangoproject.com/en/4.0/releases/3.1/#id2
[2] https://review.opendev.org/c/openstack/horizon/+/827093

Change-Id: I6426fe8fe26b377b531c200e5bd5bcec5e686931
2022-04-29 16:44:49 +05:30
OpenStack Release Bot 84e5380a31 Add Python3 zed unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for zed.

See also the PTI in governance [1].

[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html

Change-Id: I4a8a4602b7c671a623358efbe95e434a2bd62f33
2022-03-08 12:26:36 +00:00
Manpreet Kaur bb69fed635 Update python testing classifier
Yoga testing runtime[1] has been updated to add py39
testing as voting. Unit tests update are handled by the
job template change in openstack-zuul-job

- https://review.opendev.org/c/openstack/openstack-zuul-jobs/+/820286

this commit updates the classifier in setup.cfg file.

[1] https://governance.openstack.org/tc/reference/runtimes/yoga.html

Change-Id: I47c8f5c94f2850600dd7359b2b3db1e50859008a
2021-12-14 21:10:39 +05:30
Hiromu Asahina 1d18379c94 Fix rendering failure in the VNF Manager tab
After creating VNF Instance using vnflcm v1 API, tacker-horizon VNF
Manager tab becomes not being able to redner the view correctly. This
happens because VNF Manager tab tries to obtain `vim_name` and fails.
The `vim_name` attribute is no longer available in vnflcm v1 API.

This patch fix this problem by simply using `get` method to obtain
`vim_name`.

Closes-bug: #1950783
Signed-off-by: Hiromu Asahina <hiromu.asahina.az@hco.ntt.co.jp>
Change-Id: If78ffe41dbe3e04cde5678a07df9f55382eb5481
2021-11-15 09:22:32 +09:00
OpenStack Release Bot f0ebb6d620 Add Python3 yoga unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for yoga.

See also the PTI in governance [1].

[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html

Change-Id: I1938134ffadc0e04292a14564fca51627a0d327f
2021-09-16 11:20:10 +00:00
Zuul 69a6eb481f Merge "Add Python3 xena unit tests" 2021-09-09 07:14:44 +00:00
Zuul f2c6294388 Merge "Add tacker-horizon integration test framework" 2021-08-31 02:03:13 +00:00
Manpreet Kaur b952869e6b Add tacker-horizon integration test framework
This patch implements an integration framework and adds basic
test cases to verify whether tacker-horizon is installed and
could be opened.

The integration test suite "tacker-horizon-integration-tests"
is added as a gate job in non-voting mode.

Selenium exception details:
The tacker-horizon consists of panel groups "VNF Management"
and "NFV Orchestration".

The selenium reports an exception ElementNotInteractableException
while opening pages for panel group "NFV Orchestration".
This exception occurs when an element is not clickable or is not
visible yet.

By default, panel group "VNF Management" is expanded hence test
cases for pages under this panel group pass.
As per openstack-dashboard integration test case logic, the panel
group "NFV Orchestration" is never clicked hence requested pages
are not visible.

[1] comprises of modified openstack-dashboard integration test
logic to fix the above selenium exception.

[1] https://review.opendev.org/c/openstack/horizon/+/803465
Implements: blueprint tacker-horizon-integration-test

Change-Id: I6a09b945506450d9947afbd92dbab9a4a6c30de4
2021-08-30 17:29:20 +05:30
Manpreet Kaur 6e8063140d Fix retrieval of VNF details in NFV dashboard
The VNF details are retrieved using VNF mgmt IP address
(parameter: mgmt_url) received in "show_vnf" API response.

But this functionality was failing as "mgmt_url" parameter was
missing from API response.

Reason:
Earlier in tacker, VNF mgmt IP address was assigned to parameter
named "mgmt_url". But in [1] it was changed to "mgmt_ip_address".

This patch replaces "mgmt_url" to "mgmt_ip_address" for vnf as well
as for vnffg details retrieval.

[1] https://review.opendev.org/c/openstack/tacker/+/490471

Closes-Bug: #1899740
Change-Id: I47d8cb12ae004a8b927277ee1fe222daa800214f
2021-08-25 11:08:48 +05:30
Manpreet Kaur 3618f21972 Drop block storage v2 API
Cinder has dropped block storage v2 API [1].
This patch update python-cinderclient to 8.0.0 and also update its
depending packages.

- python-cinderclient 8.0.0 depends on keystoneauth1>=4.3.1
- python-cinderclient 8.0.0 depends on oslo.i18n>=5.0.1
- python-cinderclient 8.0.0 depends on oslo.utils>=4.8.0
- oslo-utils 4.8.0 depends on packaging>=20.4
- python-cinderclient 8.0.0 depends on pbr>=5.5.0
- python-cinderclient 8.0.0 depends on requests>=2.25.1
- python-cinderclient 8.0.0 depends on stevedore>=3.3.0

[1] http://lists.openstack.org/pipermail/openstack-discuss/2020-November/018876.html

Change-Id: I1f029dc1a04d5a92e5078c3abb1c8d3d3c679bdc
2021-07-28 15:46:48 +05:30
Manpreet Kaur c4f27e2373 Remove broken link from tacker horizon guide
In tacker horizon guide, under "Indices and tables" section,
"Module Index" refer to a broken link [1].

The documentation build does not generate module index, thus
we can remove the link [1] from page.

[1] https://docs.openstack.org/tacker-horizon/latest/py-modindex.html

Closes-Bug: #1934177
Change-Id: I85a3e74372bb47647bc873ae0c5e320e9adad5a2
2021-07-03 22:36:42 +05:30
Zuul 1a419590dc Merge "setup.cfg: Replace dashes with underscores" 2021-06-08 08:48:52 +00:00
Manpreet Kaur 028ca199d1 setup.cfg: Replace dashes with underscores
Setuptools v54.1.0 introduces a warning that the use of dash-separated
options in 'setup.cfg' will not be supported in a future version [1].
Get ahead of the issue by replacing the dashes with underscores.
Without this, we see 'UserWarning' messages like the following on new
enough versions of setuptools:

  UserWarning: Usage of dash-separated 'description-file' will not be
  supported in future versions. Please use the underscore name
  'description_file' instead

[1] https://github.com/pypa/setuptools/commit/a2e9ae4cb

Change-Id: Ib8150a62dfd0e575ef90363cd5b6e15136bdf7b4
2021-05-18 13:04:15 +05:30
Manpreet Kaur 9a85cce99c Update min version of tox
This patch bumps the minimum version of tox to 3.18.0.
Additionally fix the argument such as "whitelist_externals"
which is deprecated, it replaces whitelist_externals by
allowlist_externals option. Please refer [1] for details.

[1] https://github.com/tox-dev/tox/blob/master/docs/changelog.rst#v3180-2020-07-23

Change-Id: I03c8367614fb977b35c10f4529bbc3aaa5c8db47
2021-05-10 17:21:43 +05:30
OpenStack Release Bot ffcb8c490a Add Python3 xena unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for xena.

See also the PTI in governance [1].

[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html

Change-Id: Ia614f7edae98aecb183ff7a19314fa2d218e8ab4
2021-03-23 10:17:50 +00:00
Manpreet Kaur 70566f4861 Dropping explicit unicode literal
In python 3, all strings are considered as unicode string.

This patch drops the explicit unicode literal (u'...')
or (u"..") appearances from the unicode strings.

Change-Id: I50655850fe2d1baf34dee9938f35c92266ccab83
2021-01-30 15:54:21 +05:30
Manpreet Kaur aa79455735 Update TOX_CONSTRAINTS_FILE
UPPER_CONSTRAINTS_FILE is old name and deprecated, refer [1].
This allows to use lower-constraints file as more
readable way instead of UPPER_CONSTRAINTS_FILE=<lower-constraints file>.

[1] https://zuul-ci.org/docs/zuul-jobs/python-roles.html#rolevar-tox.tox_constraints_file

Change-Id: Ibc075451ba0b4658138e3c8ee1ce3250157ed876
2021-01-29 05:53:21 +05:30
Manpreet Kaur b34d7cdb16 Move tacker-horizon to new hacking 4.0.0
New rule enforcement has been enabled in the latest hacking code.

This patch bumps new version of hacking in test-requirements file,
for early detection and to avoid code breakage later when hacking
changes are released.

Additionally addresses dependencies,
flake8 3.8.4 depends on mccabe==0.6.0 and pyflakes==2.1.1.
These Dependencies mccabe==0.6.0 and pyflakes==2.1.1. are internal
requirement for hacking which is managed by hacking itself[1],
removing those from tacker-horizon so that they can be pulled by
hacking as per compatible version.

[1] https://github.com/openstack/hacking/blob/4.0.0/lower-constraints.txt

Change-Id: I4a83f8a783380475071f2e4b62e3c5b7dd9bca2b
2020-12-08 03:17:06 +00:00
OpenStack Release Bot 15fe713eba Add Python3 wallaby unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for wallaby.

See also the PTI in governance [1].

[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html

Change-Id: I7b692a7ba93878ec39e0f1cedf408c24775264e6
2020-09-23 13:17:41 +00:00
Zuul fe74538ae2 Merge "Fix generating empty pagination link in TableTab" 2020-09-19 10:40:22 +00:00
manchandavishal 9936fccf34 Cleanup for Refactor-error-messages
This patch is a clean-up patch for refactor-error-messages bp
which remove the exception message from base message otherwise
the same exception message display twice like
this https://ibb.co/XyFWMdz .

Depends-On: https://review.opendev.org/#/c/708069/
Change-Id: I00f3153dc3c1de65f6fe36fe444dd2d74c9fbd85
2020-08-28 18:59:55 +00:00
Yasufumi Ogawa 58b0de5dcb Fix generating empty pagination link in TableTab
In `NFV` dashboard, each of panels, such as `VNF Catalog` or `VIM
Management`, has a table with pagination. However, some of tables
cannot be displayed, or have a `Next` link which doesn't work. The
reason why the tables cannot be displayed is because some table
templates in Horizon doesn't expect a pagination link which is not None
but empty filled with a white space.

Generating pagination link is defined in each of TableTab class derived
from `tabs.TableTab` in Horizon. For example, TableTab for `VNF Catalog`
is defined as `VNFCatalogTab` in
`tacker_horizon/openstack_dashboard/dashboards/nfv/vnfcatalog/tabs.py`
in tacker-horizon repository. Considering the behavior of the
pagination, it should generate `Next` link if the number of entries of
the table is larger than the maximum number of entries per page which is
defined in Horizon as `20` as default.

The problem is it always set `self._has_more = True` without checking
the number of entries, and Horizon wrongly expects it must be over the
maximum number. As a result, it generates a empty pagination link.

Closes-Bug: #1889993

Change-Id: I9dc7ebc58405048b333d1ca7dd9ec05bd692c01e
Signed-off-by: Yasufumi Ogawa <yasufum.o@gmail.com>
2020-08-13 15:26:15 +00:00
Ghanshyam Mann 0865bba79f [goal] Migrate testing to ubuntu focal
As per victoria cycle testing runtime and community goal[1]
we need to migrate upstream CI/CD to Ubuntu Focal(20.04).

Fixing:
- bug#1886298
Bump the lower constraints for required deps which added python3.8
support in their later version.

Story: #2007865
Task: #40222

Closes-Bug: #1886298

[1] https://governance.openstack.org/tc/goals/selected/victoria/migrate-ci-cd-jobs-to-ubuntu-focal

Change-Id: Ib51838017f207ad93d2abb063d965a409a138051
2020-08-04 09:51:44 +00:00
Zuul 68b5b32035 Merge "Bump default tox env from py37 to py38" 2020-07-22 14:41:11 +00:00
Zuul c28ff74b35 Merge "Add py38 package metadata" 2020-07-22 14:41:10 +00:00
manchandavishal 3e2d3fa65e Bump default tox env from py37 to py38
Python 3.8 is now our highest level supported python runtime.
This updates the default tox target environments to swap out
py37 for py38 to make sure local development testing is
covering this version.

This does not impact zuul jobs in any way, nor prevent local
tests against py37. It just changes the default if none is
explicitly provided.

Change-Id: Ia852a117466efde5f79f89c31b65388003f854c2
2020-07-20 10:48:06 +00:00
manchandavishal 13aea583c9 Add py38 package metadata
Now that we are running the Victoria tests that include a
voting py38, we can now add the Python 3.8 metadata to the
package information to reflect that support.

Change-Id: I64c0f5cb0ca97a0b0d1e4e2ae4863c5b50beabf0
2020-07-20 10:45:26 +00:00
Yasufumi Ogawa 4f35c40a39 Quick fix for installation guide
You failed to install tacker-horizon as following [1] because it
doesn't support python3 completely. This update is to fix the
installation.

[1] https://docs.openstack.org/tacker-horizon/latest/install/index.html#manual-installation

Change-Id: Id69c80822752b0f972d6e2ccf87e2921acd1d04b
Signed-off-by: Yasufumi Ogawa <yasufum.o@gmail.com>
2020-07-19 14:24:32 +00:00
Manpreet Kaur 7d2e934435 Fix for broken link in Tacker Horizon Guide.
The Tacker Horizon has a broken link for Tacker-Horizon docs.
Present link [1] has a misspelled word "lastest" which should
be "latest".The correct link is [2].

[1] https://docs.openstack.org/tacker-horizon/lastest
[2] https://docs.openstack.org/tacker-horizon/latest

Change-Id: Ifad05db26b8bc390711f2b51aa77b4bb3eb0bb54
Closes-Bug: #1879962
2020-07-14 10:08:45 +00:00
Hervé Beraud d2f5814f66 Stop to use the __future__ module.
The __future__ module [1] was used in this context to ensure compatibility
between python 2 and python 3.

We previously dropped the support of python 2.7 [2] and now we only support
python 3 so we don't need to continue to use this module and the imports
listed below.

Imports commonly used and their related PEPs:
- `division` is related to PEP 238 [3]
- `print_function` is related to PEP 3105 [4]
- `unicode_literals` is related to PEP 3112 [5]
- `with_statement` is related to PEP 343 [6]
- `absolute_import` is related to PEP 328 [7]

[1] https://docs.python.org/3/library/__future__.html
[2] https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html
[3] https://www.python.org/dev/peps/pep-0238
[4] https://www.python.org/dev/peps/pep-3105
[5] https://www.python.org/dev/peps/pep-3112
[6] https://www.python.org/dev/peps/pep-0343
[7] https://www.python.org/dev/peps/pep-0328

Change-Id: Id3e2dbb85330e6924194b16b6fbf377b44f56584
2020-06-02 21:00:36 +02:00
Zuul 1db3fe5a29 Merge "Switch to hacking 3.0" 2020-05-25 10:12:14 +00:00
Andreas Jaeger 6cce95fbee Switch to newer openstackdocstheme and reno versions
Switch to openstackdocstheme 2.2.1 and reno 3.1.0 versions. Using
these versions will allow especially:
* Linking from HTML to PDF document
* Allow parallel building of documents
* Fix some rendering problems

Update Sphinx version as well.

Set openstackdocs_pdf_link to link to PDF file. Note that
the link to the published document only works on docs.openstack.org
where the PDF file is placed in the top-level html directory. The
site-preview places the PDF in a pdf directory.

Change pygments_style to 'native' since old theme version always used
'native' and the theme now respects the setting and using 'sphinx' can
lead to some strange rendering.

Remove docs requirements from lower-constraints, they are not needed
during install or test but only for docs building.

openstackdocstheme renames some variables, so follow the renames
before the next release removes them. A couple of variables are also
not needed anymore, remove them.

See also
http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014971.html

Change-Id: I0740851043d2e323cf9a04d2e2579a9164393258
2020-05-21 20:32:48 +02:00
manchandavishal b68276c75d Switch to hacking 3.0
This patch update hacking version to 3.0.0[1]. In order to make code
compatible with new hacking rules E305, E117 pep8 errors are fixed
in code. It also drop flake8, hacking, django-babel, mox3, six
packages from lower-requirements.txt

[1] http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014828.html

Change-Id: I86bc2faed43e7df38682e23866ad4a4303e82667
2020-05-15 15:10:49 +00:00
OpenStack Release Bot 61f183f70f Add Python3 victoria unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for victoria.

See also the PTI in governance [1].

[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html

Change-Id: I0821fbe3a3a82397c47f8ee71ce178de89e07619
2020-04-24 18:19:09 +00:00
Zuul ab081554d0 Merge "Drop Django 1.11 support" 2020-01-29 01:33:06 +00:00
manchandavishal 17798fadc5 Drop Django 1.11 support
Django 1.11 ends its extended support in April 2020 (which is before
Ussuri release), so horizon drops Django 1.11 support in Ussuri.

tox envs for non-primary Django versions are no longer needed in tox.ini
as testing environments for non-primary Django versions are setup in
the zuul jobs now.

horizon>=17.1.0 is required to use Django 2.2. requirements.txt and
lower-constraints.txt are updated accordingly. for more info. please
refer [1] [2].
[1] https://review.opendev.org/#/c/700733/
[2] https://etherpad.openstack.org/p/Enable_Django22_support_in_Horizon_Plugin

Change-Id: Icfa76c6d916af4548059a44704972877ad457e2f
2020-01-08 02:07:46 +00:00
Akihiro Motoki 888b6fd784 translation: drop babel extractor definitions
babel extractors are now registered via python entry points,
so there is no need to declare babel extractors in babel configs.

This change is important to make translation work in Django 2.2.
django-babel does not work with Django 2.2 and looks unmaintained
for over two years. The horizon team is thinking to switch the extractor
to enmerkar (a fork of django-babel) to make extraction of translation
string work again near future. It is important to drop the extractor
definition to make the transition smooth.

Change-Id: I11a63c67adf8cd28106f750a53745f2e59d53b1b
2020-01-07 18:07:28 +00:00
Akihiro Motoki 3b2fd8ef55 Use constraints file
Almost all OpenStack projects use the constraints file to install
python modules. It mitigate unexpected gate breakage.
tacker-horizon does not follow this best practice somehow.

All missing lower constraints are added.
I checked python modules installed without specific versions in
.tox/lower-constraints/log/lower-constraints-1.log and
copied such modules from horizon lower-constriants.txt if missing:

  grep Collecting .tox/lower-constraints/log/lower-constraints-1.log | grep -v ==

horizon requirement is also updated to match Ussuri env.

Change-Id: I3287429d415271e1cff15c91223ab85ea320caa6
2020-01-07 16:51:54 +09:00
manchandavishal 1b1ee9e7e2 Use Horizon project template for django jobs
Horizon defined a project template 'horizon-non-primary-django-jobs'
for django jobs. This patch use that template to run django jobs
here. For information please refer [1]

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

Change-Id: I186bb5edfaece73222534fbede928f0903595b04
2019-11-20 12:26:17 +00:00