370 Commits

Author SHA1 Message Date
efc85fb1af Update master for stable/ussuri
Add file to the reno documentation build to show release notes for
stable/ussuri.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/ussuri.

Change-Id: Ia916a95cf9c6c628bcd67c65d3689f44002655f4
Sem-Ver: feature
2020-04-22 12:56:10 +00:00
OpenStack Proposal Bot
a92ba65de0 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I2cf7c9e524a679d57dc042136d591b89b4dbaa9e
14.0.0 14.0.0.0rc1
2020-04-08 10:04:40 +00:00
Andreas Jaeger
34039db3b8 Cleanup py27 support
Make a few cleanups:
- Remove python 2.7 stanza from setup.py
- Add requires on python >= 3.6 to setup.cfg so that pypi and pip
  know about the requirement
- Remove obsolete sections from setup.cfg
- Update classifiers
- Use sphinx-build in tox.ini

Change-Id: I60125ddd4c2a2b2976ca1af156a2c3ab09d8bf34
2020-04-07 18:39:22 +02:00
Zuul
47a3a89788 Merge "Calls manager.py by "$PYTHON" instead of "env python"" 2020-04-07 05:54:51 +00:00
Hirotaka Wakabayashi
0db9bad00c Calls manager.py by "$PYTHON" instead of "env python"
devstack should call manager.py by using $PYTHON variable that devstack
uses through openstack installation because manage.py uses python2
unless caller explicitly uses python3 interpreter.

Currently devstack fails with the following error message when devstack
uses python3::

  ++ /opt/stack/trove-dashboard/devstack/plugin.sh:configure_trove_dashboard:14 :   ../manage.py compilemessages
  Traceback (most recent call last):
    File "../manage.py", line 18, in <module>
      from django.core.management import execute_from_command_line
  ImportError: No module named django.core.management
  + /opt/stack/trove-dashboard/devstack/plugin.sh:configure_trove_dashboard:1 :   exit_trap

The reason for this error is no django.core.management library exists
in python2 site-packages because devstack installs the library as a
python3 library.

Story: 2007463
Task: 39148
Signed-off-by: Hirotaka Wakabayashi <hiwkby@yahoo.com>
Change-Id: Ia5f87788e117e9bbd9823afb6a8f139eb3ae5870
2020-03-31 07:17:34 +00:00
Hirotaka Wakabayashi
7db14da0e8 Adds a full example of devstack local.conf
The current instructions of "How to use with devstack" should be more
accurate and consistent with instructions of "Install Trove in DevStack"
page[1].

Adding a trove-dashboard plugin line to local.conf which is shown in "
Install Trove in DevStack" page[1] is not enough. Because you will see
the following error after executing "./stack.sh"::

    ++ /opt/stack/trove-dashboard/devstack/plugin.sh:source:34 :   configure_trove_dashboard
    ++ /opt/stack/trove-dashboard/devstack/plugin.sh:configure_trove_dashboard:10 :   cp -a /opt/stack/trove-dashboard/trove_dashboard/enabled/_1710_database_panel_group.py /opt/stack/trove-dashboard/trove_dashboard/enabled/_1720_project_databases_panel.py /opt/stack/trove-dashboard/trove_dashboard/enabled/_1730_project_database_backups_panel.py /opt/stack/trove-dashboard/trove_dashboard/enabled/_1731_project_database_backups_panel.py /opt/stack/trove-dashboard/trove_dashboard/enabled/_1740_project_database_clusters_panel.py /opt/stack/trove-dashboard/trove_dashboard/enabled/_1760_project_database_configurations_panel.py /opt/stack/trove-dashboard/trove_dashboard/enabled/__init__.py /opt/stack/horizon/openstack_dashboard/local/enabled/
    cp: target '/opt/stack/horizon/openstack_dashboard/local/enabled/' is not a directory
    + /opt/stack/trove-dashboard/devstack/plugin.sh:configure_trove_dashboard:1 :   exit_trap

I propose to add a full example of local.conf that includes trove
plugin and horizon service. Devstack is a tool to make an all-in-one
OpenStack environment for development. It is natural that trove and
trove-dashboard will be installed together. By doing so, developers
can easily make an all-in-one trove-dashboard environment.

1: https://docs.openstack.org/trove/latest/install/install-devstack.html

Story: 2007462
Task: 39142
Signed-off-by: Hirotaka Wakabayashi <hiwkby@yahoo.com>
Change-Id: Id05348b4ba7cf55f21297933ac60f5b7fcc2edbd
2020-03-26 10:16:59 +00:00
Zuul
e03bad61e9 Merge "Remove six usage" 2020-02-06 01:09:11 +00:00
Zuul
88a9849a86 Merge "Drop Django 1.11 support" 2020-01-22 21:02:40 +00:00
Ivan Kolodyazhny
3ac29e7f86 s/assertItemsEqual/assertCountEqual/g
assertItemsEqual was renamed to assertCountEqual in Python 3, and the
testsuite is failing now - rename it.
See also https://six.readthedocs.io/#six.assertCountEqual

This unbreaks the testsuite.

Change-Id: Ia04b22a61dab28a986216ae2f4f49106ee843fa0
2020-01-20 18:47:02 +02:00
Akihiro Motoki
06f7b483a8 Remove six usage
This repo does not support Python 2 anymore, so we don't need
six for compatibility between Python2 and 3, convert six usage to Python
3 code.

Change-Id: I3edab6e67ac79d14fe9d38f6f75abfd50030fa1e
Needed-By: https://review.opendev.org/701743
2020-01-12 02:42:29 +09:00
Zuul
d38aa6140a Merge "translation: drop babel extractor definitions" 2020-01-08 08:39:20 +00:00
Akihiro Motoki
1d80e9a48b 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 is updated accordingly.

Depends-On: https://review.opendev.org/#/c/700733/
Change-Id: I5ac3da11e140593733992d9d5243c5c44fb72fd6
2019-12-29 06:40:55 +09:00
Zuul
50c31953a8 Merge "Drop python 2.7 support and testing" 2019-12-28 17:09:56 +00:00
Akihiro Motoki
aaade9111c 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: I50adcba093605590f956e8a31bae257816b2f6ff
2019-12-27 02:31:06 +09:00
OpenStack Proposal Bot
89cf5070c0 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I819f5948d2abaa26bd4d99b1c9a361095c712343
2019-12-22 07:05:43 +00:00
Ghanshyam Mann
60924242e1 Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

trove-dashboard is ready with python 3 and ok to drop the
python 2.7 support.

Also this patch update minimum tox version in tox.ini file.
Complete discussion & schedule can be found in
- http://lists.openstack.org/pipermail/openstack-discuss/2019-October/010142.html
- https://etherpad.openstack.org/p/drop-python2-support

Ussuri Communtiy-wide goal - https://review.opendev.org/#/c/691178/

Change-Id: I7fcfcb5c32481ad5a5839b98cf35198545d2e6a0
2019-12-05 06:15:25 +00:00
kangyufei
6f61e85960 Switch to Ussuri jobs
Change-Id: If7429fbfd1d687411c266161ffa4f093d498b220
2019-10-22 15:32:49 +08:00
Zuul
2bae009ec2 Merge "Use Horizon project template for django jobs" 2019-10-13 20:50:09 +00:00
Zuul
8fd9bdab2d Merge "Update master for stable/train" 2019-10-12 06:19:31 +00:00
manchandavishal
a49b21ae59 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: I0d1349fc71ab3779a009b7a612e8f673c8217db9
2019-10-09 16:34:32 +00:00
OpenStack Proposal Bot
f73e8d3b94 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I4058f241b324fac45d2a26f126a18e89c8d1eb68
2019-09-25 09:59:17 +00:00
aaac8156ab Update master for stable/train
Add file to the reno documentation build to show release notes for
stable/train.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/train.

Change-Id: I554fe56a263bad10b27acb6cb6238c16bcff2b5a
Sem-Ver: feature
2019-09-25 08:36:39 +00:00
manchandavishal
1879195d64 Fix failed Unit tests
Due to [1][2] default auth_version change to 3.
This patch done the same changes in unit test.

[1] I917e273d3174adf0874e516b3d635ccb8ba58a27
[2] https://opendev.org/openstack/horizon/src/branch/master/openstack_dashboard/api/swift.py#L131

Change-Id: Ieb30da56109d485f592f94fefa3dd2d629651a6e
13.0.0.0rc1 13.0.0 train-em
2019-09-18 05:45:20 +00:00
Corey Bryant
b2df5ef689 Update tox.ini for Python 3 Train unit test goal
This is a mechanically generated patch to ensure unit testing is in place
for all of the Tested Runtimes for Train. This particular patch is
just limiting the tox envlist to py37 to enable efficient use of 'tox'.

See the Train python3-updates goal document for details:
https://governance.openstack.org/tc/goals/train/python3-updates.html

Change-Id: I323112d05e998d682c12de45f099536c62552a41
Story: #2005924
Task: #34254
2019-07-25 12:26:32 -04:00
pengyuesheng
e53d44782f Add python37 job
Since we've entered Train and the runtime proposed include py37[1],
we need to include it in gate as well as local env.
This patch adds the support for the same.

Update the constraints url For more detail, see [2]

[1] https://governance.openstack.org/tc/reference/runtimes/train.html
[2] http://lists.openstack.org/pipermail/openstack-discuss/2019-May/006478.html

Change-Id: I8c512c95322cde5e1163ee35154a48826871cb36
2019-06-26 14:27:13 +08:00
Zuul
e16a66dffa Merge "Dropping the py35 testing" 2019-05-15 11:00:00 +00:00
Ghanshyam Mann
d71ab92ba6 Dropping the py35 testing
All the integration testing has been moved to
Bionic now[1] and py3.5 is not tested runtime for
Train or stable/stein[2].

As per below ML thread, we are good to drop the py35
testing now:
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/005097.html

[1] http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004647.html
[2]
https://governance.openstack.org/tc/reference/runtimes/stein.html
https://governance.openstack.org/tc/reference/runtimes/train.html

Change-Id: I42bcf5bd05a5cf38444969cdb930052527372bf6
2019-05-10 16:32:13 +05:30
Zuul
085cdf4aa0 Merge "Update master for stable/stein" 2019-05-09 11:39:03 +00:00
caoyuan
d1b9681e06 Replace git.openstack.org URLs with opendev.org URLs
Change-Id: Idd7c4089cc19443e615151eee113a8c89f510171
2019-04-24 15:30:49 +08:00
OpenDev Sysadmins
48bf17a515 OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019-04-19 19:44:38 +00:00
Ian Wienand
7d24c8903f Replace openstack.org git:// URLs with https://
This is a mechanically generated change to replace openstack.org
git:// URLs with https:// equivalents.

This is in aid of a planned future move of the git hosting
infrastructure to a self-hosted instance of gitea (https://gitea.io),
which does not support the git wire protocol at this stage.

This update should result in no functional change.

For more information see the thread at

 http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003825.html

Change-Id: I9fcda9130c7c79f4451f248dc731bc018569ed8c
2019-03-24 20:36:21 +00:00
4b8c4a9a79 Update master for stable/stein
Add file to the reno documentation build to show release notes for
stable/stein.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/stein.

Change-Id: Ic9a1d55bc9c0b1f00c444595a774246f0d993a21
Sem-Ver: feature
2019-03-22 16:28:17 +00:00
Zuul
82de617505 Merge "Add Volume Size value in cluster instances details" 2019-03-19 22:03:36 +00:00
Zuul
cc11fc13ee Merge "Removed older version of python added 3.5" 12.0.0.0rc1 12.0.0 stein-em 2019-02-26 15:37:31 +00:00
Zuul
3d091ed522 Merge "fix tox python3 overrides" 2019-01-28 18:57:08 +00:00
Zuul
49582f902c Merge "Update hacking version" 2019-01-28 18:55:39 +00:00
huang.zhiping
666c2b092e Removed older version of python added 3.5
Change-Id: Ia7631e316dc5dc27b9bcd7f58a8b4595d8dc0a77
2019-01-23 03:35:40 +00:00
OpenStack Proposal Bot
cef840dfa7 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I3f6ce2baf0711ff8d3d6b4f7bb03d07cfccc97ba
2019-01-22 07:22:12 +00:00
jacky06
47a8febdbc Update hacking version
Use latest release 1.1.0 and compatible changes w.r.t pep8

Change-Id: I61f95439c6d79cd7bcc15badb729e4b8278cf37e
2019-01-20 20:34:03 +08:00
Vieri
0ab709957e fix tox python3 overrides
Change-Id: Id4acab46d129543e06ee7268d285441493491b39
2018-12-25 06:57:45 +00:00
Zuul
145e78516c Merge "Don't quote {posargs} in tox.ini" 2018-12-14 14:36:48 +00:00
huang.zhiping
78822fe96f Change openstack-dev to openstack-discuss
Mailinglists have been updated. Openstack-discuss replaces openstack-dev.

Change-Id: I60aaaeb02aab8cf186709df25c5054ddad12487a
2018-12-04 12:19:17 +00:00
melissaml
b020bf1de4 Don't quote {posargs} in tox.ini
Change-Id: I6e5bc64d51355d249ca5fb1d80d4e54c2b6a3922
2018-11-15 23:18:55 +08:00
Marcin Piwowarczyk
8e0d5bce17 Add Volume Size value in cluster instances details
Volume Size parameter was not shown for cluster instances.
This change makes Volue Size visible in instances table.

Change-Id: Iee819189f7ca49aeec579aa06d88911b0ac37b19
Signed-off-by: Marcin Piwowarczyk <m.piwowarczy@samsung.com>
2018-11-07 10:24:45 +00:00
Marcin Piwowarczyk
b2a85223e7 Remove object-store permission for Clusters panel
Object-store is not needed for managing Trove clusters.

This change removes object-store permission causing that Cluster panel
will be registered even if object-store is unavailable.

Change-Id: I72a9cac16625ff6745b97d65b467e5227bd24045
Signed-off-by: Marcin Piwowarczyk <m.piwowarczy@samsung.com>
2018-11-07 11:15:22 +01:00
OpenStack Proposal Bot
bda4bd1850 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I0b7c39d0f192f63392a06fd64487b5c85ff678bd
2018-10-26 07:19:11 +00:00
OpenStack Proposal Bot
7c53b7988a Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I45269636e38e62cc59c98862ab9c5dee9a4cfa7d
2018-10-20 07:11:16 +00:00
Zuul
9aa5624ebf Merge "fix tox python3 overrides" 2018-10-19 13:58:05 +00:00
Sean McGinnis
06582f4686 Increment versioning with pbr instruction
With moving away from required milestone releases, the version numbers
calculated by PBR on the master branch will not work for those testing
upgrades from the last stable release. More details can be found in the
mailing list post here:

    http://lists.openstack.org/pipermail/openstack-dev/2018-October/135706.html

This is an empty commit that will cause PBR to increment its calculated
version to get around this.

PBR will see the following which will cause it to increment the version:

Sem-Ver: feature

Please merge this patch as soon as possible to support those testing
upgrades.

Change-Id: Iafbf190511422cf9a69327e0d347ca0cd3c39be3
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2018-10-12 13:09:45 -05:00
Doug Hellmann
dc7c4cdf3f fix tox python3 overrides
We want to default to running all tox environments under python 3, so
set the basepython value in each environment.

We do not want to specify a minor version number, because we do not
want to have to update the file every time we upgrade python.

We do not want to set the override once in testenv, because that
breaks the more specific versions used in default environments like
py35 and py36.

Change-Id: Ib45159432550c6c15a29443d8c786e8f28c1d0c4
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
Co-Authored-By: Bartosz Zurkowski <b.zurkowski@samsung.com>
2018-10-10 09:58:54 +02:00