Commit Graph

66 Commits

Author SHA1 Message Date
Ghanshyam Mann ca28382ed9 Update python classifier in setup.cfg
As per the current release tested runtime, we test
python version from 3.8 to 3.11 so updating the
same in python classifier in setup.cfg

Change-Id: I9d0b62e62da38a83217eec68f0b74c6be40aae87
2024-01-04 01:09:56 -08:00
wuchunyang 2f755b64b3 Add network isolation for trove
this PR adds a network_isolation config option for trove,
with network_isolation enabled, trove guest agent will
plug the user-defined port to database container by
docker host_nic network driver which is implemented in this PR.

docker host_nic network driver is a simple driver to plug host
nic to a container. this driver supports ipv4,ipv6 and dual-stack.

for more details please see the story.

story: 2010733
task: 47957

Change-Id: I35d6f8b81a2c5e847cbed3f5bc6095dc1d387165
2023-08-03 11:35:04 +00:00
wu.chunyang 7ba9901458 Add python 3.10 to setup.cfg metadata
Add python 3.10 to setup.cfg
refer to: https://governance.openstack.org/tc/reference/runtimes/2023.2.html

Change-Id: If20908d4c7dda061629d2eab6aa6fc6978563386
2023-06-21 17:02:23 +08:00
Hirotaka Wakabayashi 6e4dd51c02 Rename api_wsgi.py to app_wsgi.py
This PR changes wsgi script filename to app_wsgi.py.

Original problem is that mod_wsgi script not found after devstack
installation. This bug is created by #854356[1].

--
[1]: https://review.opendev.org/c/openstack/trove/+/854356

Story: 2010264
Task: 46163
Change-Id: I22883c8a8bb7e2818679d667b6868587a040a602
2022-09-02 11:43:00 +09:00
wu.chunyang 44c3cdef5c Rename app.wsgi to app_wsgi.py
1. app.wsgi is a python script and should be end with py extension.
2. Generate trove-wsgi script which is needed by kolla to support
https and ipv6.
3. Ignore build directory in git
4. update docs

Change-Id: Ibbd6ecb8db25aa3a443d3f526f4cf6d418eb26f3
2022-08-25 11:10:33 +08:00
Takashi Kajinami d5542b04c5 Update python testing as per zed cycle testing runtime
In Zed cycle, we have dropped the python 3.6/3.7[1] testing
and its support. Add release notes and update the python
classifier for the same.

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

Co-Authored-By: Ghanshyam Mann <gmann@ghanshyammann.com>
Change-Id: Icb2db7d8db7487432864923740e82b42f52e329c
2022-07-17 00:51:55 +09:00
Zuul 4741b57c09 Merge "Add python3.9 support" 2022-04-29 11:30:38 +00:00
wu.chunyang 2725612128 Add python3.9 support
Add python3.9 support and set the default test env
from py38 to py39

Change-Id: Ie1a4790762b80b8f60eda86b879b73b8a6005eba
2022-04-28 21:50:45 +08:00
likui 5d6fa4fc72 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: I5acc467985d80fe4eb7d7a69055c9b178bcebbd1
2021-05-11 17:44:51 +08:00
Andrew Bogott e232cb800c setup.cfg: add oslo.policy.enforcer
This allows generation of sample policies, policy diffs, etc.

Change-Id: I41d989d876a73f49684d8212d27e48876190f210
2021-05-02 20:32:57 -05:00
likui 7cb6e06bc1 add python37 setup.cfg
Add python3.7 from setup.cfg, since Wallaby's python
supported runtimes are python 3.7[1]:

[1] http://lists.openstack.org/pipermail/openstack-discuss/2021-January/019648.html

Change-Id: I04c22c6142fc51810d9132e82927dc2dae40cf9d
2021-01-12 09:03:19 +08:00
likui bdb00f659d remove py37
Remove python3.7 from setup.cfg, since Wallaby's python
supported runtimes are python 3.6 and python 3.8[1]:

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

Change-Id: I2684608c4e8ae71a9ded46e54cdba926af6b82f3
2020-12-26 12:40:12 +08:00
Lingxian Kong 87b65e3c05 Support to generate config sample file
Change-Id: Ic9dc4630dd96227eb8a655c3aac223316d5a060e
2020-05-29 23:13:29 +12:00
melissaml 8cd3670bdd Remove translation sections from setup.cfg
These translation sections are not needed anymore, Babel can
generate translation files without them.

Change-Id: Ic81e52b5cf6c64d752358ab29a1f9a55bf25c88c
2020-05-27 08:31:09 +00:00
Sean McGinnis 8887503e25
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: Ie13d54bf75f2d632d25b66007748ebccf6069c65
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-05-02 07:48:17 -05:00
Andreas Jaeger ae2709dcd6 Small cleanups
Setup.cfg:
- This repo is python 3 only ,remove universal wheel building.
- Remove pbr.hooks.setup_hook, those are obsolete since a long time

tox.ini:
- remove tox:jenkins, this is not used since ages

Change-Id: Ia6c1bc28b4935859c29924141965f47c4bcbd2c3
2020-03-10 10:08:52 +13:00
Andreas Jaeger cc1ccae629 Cleanup docs building
Remove build_sphinx from setup.cfg, it's not used anymore since this
repo uses sphinx-build directly.

Require newer openstackdocstheme version and remove settings in conf.py
that are now default.

Remove doc/source/install/conf.py, it is not used anymore.

Change-Id: Id89c664384c3ad443d701f5d4135a9f3f9f744d7
2020-02-22 19:11:19 +01:00
Ghanshyam Mann e6f55c57d5 [ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

Trove is ready with python 3 and ok to drop the
python 2.7 support.

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://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html

Change-Id: I6b448747c873bfc9c0138c0f7e3ca67ddce02dee
2019-12-05 22:38:19 +13:00
Lingxian Kong c33fa67066 Support to create public trove instance
- The users need to specify the network to create Trove instance, but
  trove-taskmanager will create port in that network for Nova instance
  creation. Using port gives Trove more capabilities to define how the
  database service is exposed.
- Deprecate ICMP protocol for the instance.
- Restrict 'nics' parameter for creating instance.
- Add 'access' parameter for creating instance.
- Add 'public_network_id' option in order to create floating IP for the
  instance.
- Do not create records for security groups, but Trove can still delete
  existing instances for backward compatibility.
- Delete unreasonable Host, Account, Storage API.

Story: 2006500
Task: 36468
Task: 36466
Change-Id: I80827e1ad5e6b130cbf94c2bb7a909c44d5cf1e5
2019-09-11 11:28:00 +12:00
ZhongShengping b51f371d97 Update Python 3 test runtimes for Train
This goal is to implement the process set out in the 2018-10-24 Python
Update Process TC resolution[1], for the Train cycle to ensure unit
testing is in place for all of the Tested Runtimes for Train[2].
In practice, this generally means adding unit tests for Python 3.7 and dropping
unit tests for Python 3.5. Using the Zuul template for Train will ensure that
all projects that support Python3 will be tested against the agreed runtime
versions, and make it easier to update them in future.

[1]https://governance.openstack.org/tc/resolutions/20181024-python-update-process.html
[2]https://governance.openstack.org/tc/reference/runtimes/train.html

Change-Id: I018f79c6819ead9ffee777addb7ba6b369304962
Depends-On: https://review.opendev.org/#/c/641878/
2019-05-09 17:34:56 +08:00
ZhongShengping 4e63540245 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: I0d0a3f62d652853963dc4fe204a413eec2bc1830
2019-04-28 15:36:48 +08:00
Lingxian Kong fe4c72807c Remove SecurityGroup API extension
SecurityGroup API extension is not mentioned in Trove API doc. Security
group information could be retrieved from Neutron.

Change-Id: Ifb134eaada09ca4dc739eddb5772681b486cad93
Story: #2005366
Task: #30341
2019-04-06 23:46:07 +13:00
ZhongShengping 0e6fe97946 Change openstack-dev to openstack-discuss
Mailinglists have been updated. Openstack-discuss replaces openstack-dev.

Change-Id: I1063113e64f698ff4cb45a4dde78242a16050a37
2018-12-04 10:07:38 +08:00
whoami-rajat ace53c47fa Add trove-status upgrade check command framework
This adds basic framework for trove-status upgrade
check commands. For now it has only "check_placeholder"
check implemented.
Real checks can be added to this tool in the future.

Change-Id: Idfeab4c06cba6f841c17ab6e255a29e8707bfa55
Story: 2003657
Task: 26162
2018-10-22 12:56:28 +05:30
yatin 267138d1b3 Remove entry of policy.json from setup.cfg
Review https://review.openstack.org/#/c/506203/ added
non existent policy.json(removed in [1]) file in setup.cfg.

This patch removes policy.json entry from data_files in
setup.cfg.

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

Change-Id: I45afef481aa084f7f9fe716c4768ddf34be848a2
2018-02-28 12:03:29 +05:30
Zuul b59b6ae968 Merge "Add default configuration files to data_files" 2018-02-27 23:39:00 +00:00
Zhao Chao 71ebd353ca Generate policy sample file automatically.
A new entrypoint in setup.cfg and a config file are added for
using olso.policy helper script to generate the sample file.

A new tox target also is added to simplify the environment
setting up. Now policy sample file can be generated
automatically, so the in-repo sample file is no longer needed.

Co-Authored-By: Andrew Laski <andrew@lascii.com>
Partial-Implements: blueprint policy-in-code
Change-Id: Ic336fa154ccc05b5e9db3a8e751a484b1cc5aa9c
Signed-off-by: Zhao Chao <zhaochao1984@gmail.com>
2018-02-12 18:11:22 +08:00
Chandan Kumar 5ff2de001e Remove bundled intree trove tempest plugin
* https://review.openstack.org/#/c/527122/ moves the intree
  tempest plugin to a new repo trove-tempest-plugin. Let'use
  it for the same.

* https://review.openstack.org/#/c/530024/ consumes new trove
  tempest plugin in python-troveclient

Change-Id: I59aafa0ec978033ba4add2bc2a2144d177afb9ac
2017-12-25 16:34:51 +05:30
melissaml 1a999f084b Update URLs in documents according to document migration
Change-Id: I4ef8a26df071746b6855a6a278840abdd77f2607
2017-11-03 17:17:01 +08:00
Jesse Pretorius 39ae2ee3a9 Add default configuration files to data_files
In order to make it simpler to use the default
configuration files when deploying services
from source, the files are added to pbr's
data_files section so that the files are
included in the built wheels and therefore
deployed with the code. Packaging and deployment
tools can then more easily use the default files
if they wish to.

This pattern is already established with similar
files for neutron, designate and glance as has
been mentioned in the related bug report.

Change-Id: I3bb03644674f016018a178a76cca9d12afe11c43
Closes-Bug: #1718356
2017-09-21 15:16:08 +01:00
Jenkins 3371343613 Merge "Revert "Remove the tempest plugin"" 2017-04-11 07:27:54 +00:00
Jenkins 1098ebe298 Merge "update setup.cfg for classifier python 3.5" 2017-04-10 20:51:02 +00:00
Emilien Macchi d59df5d7bf Revert "Remove the tempest plugin"
It broke Puppet OpenStack CI and all users
running Tempest tests for Trove.

This is a terrible user experience, please don't
do that.

This reverts commit d29221ae48.

Change-Id: I6086a383bacc3ada3914fb2f8eb439b8175c0f37
2017-04-10 19:22:13 +00:00
Jenkins 3d145a537c Merge "Remove the tempest plugin" 2017-04-10 12:01:18 +00:00
Amrith Kumar f6776a23f5 update setup.cfg for classifier python 3.5
This change is part of trove's python 3.5 goal for the pike release.

Change-Id: If94e2f616a47994f358c8ba2bfe1080fa2bbc635
2017-04-07 08:13:02 -04:00
Andreas Jaeger a23e5451fb Sphinx: Treat warnings as errors
Add warning-is-error to setup.cfg to treat sphinx warnings as errors.
Fix all existing warnings so that docs build with this change.
Also fix some display problems in secure_oslo_messaging.

Change-Id: I7b2fe76cfc388c49f6be4c2d62e983b19bd7e927
2017-03-03 22:16:49 +01:00
Matthew Treinish d29221ae48
Remove the tempest plugin
The trove plugin provides limited coverage which is duplicated in other
functional tests. They were originally added to check the project
integration requirements for having tempest tests, back before the big
tent. This commit removes the plugin to save test resources and reduce
the maintainence burden.

Depends-On: I0082c483b849deeffe872a5489c7123c2b2c706c
Change-Id: Iccc9e62bcd46c7aa8b67a454a9882f41f743f332
2017-02-22 11:29:16 -05:00
jiansong 11e5175773 About update setup.cfg homepage
http://www.openstack.org/ is openstack homepage, trove homepage is
https://wiki.openstack.org/wiki/Trove, so I commit the
changes to update it.

Change-Id: Ia4387f45e80aa7bbd24e4aa920038259269877ac
2016-08-12 05:29:41 -07:00
Jenkins 6e2922bc49 Merge "Add New Relic License module driver" 2016-07-17 03:54:48 +00:00
Matthew Treinish acd7e5155a Add trove tempest plugin
This commit takes the trove tests which previously lived in tempest
and creates an in-tree tempest plugin out of them. The contents of
the plugin are taken with tempest checkout out at commit:
eda607cb1c89762a54290c4525d81c1b192c421f with modifications made for
things to live in the trove repo.

Change-Id: Ibad5502cdca0e34cca4b5bc8a7106611f7393cf2
2016-06-27 18:53:05 +00:00
Peter Stachowski 31b0fe39b6 Add New Relic License module driver
The recent addition of module support in Trove (see
https://blueprints.launchpad.net/trove/+spec/module-management ) does
not include the New Relic license module driver. This has been added.

A decorator to streamline writing drivers (by handling common errors)
was also added, and the ping driver modified to use it as well.

Since this code is dependent on having an image with New Relic
installed, no changes were made to the scenario tests with
respect to this new driver.

An addition flag was added to the 'apply' interface that passes in
whether a module was created with 'admin options.'  This allows
some rudimentary access control to be implemented.

Depends-On: I6fb23b3dbbec98de9ee1e2731bcfc56ab3c0ca42
Change-Id: I282cf533c99e351d23f3b86aae727ae4bf279b64
Closes-Bug: #1571711
2016-06-07 17:44:41 +00:00
Peter Stachowski 7d33401ee3 Server support for instance module feature
This changeset handles the details of applying,
removing, listing and retrieving 'modules'
from Trove instances.
See https://review.openstack.org/#/c/290177 for
the corresponding troveclient changes.

Scenario tests have been extended to cover the
new functionality.  These tests can be run by:
./redstack int-tests --group=module

A sample module type 'driver' - ping - is included
that simply parses the module contents for a
message=Text string and returns the 'Text' as the
status message.  If no 'message=' tag is found, then
the driver reports an error message.

Due to time constraints, a few unimplemented
parts/tests of the blueprint have been triaged as bugs
and are scheduled to be fixed before mitaka-rc1.
These include:
Vertica license module driver:
    https://bugs.launchpad.net/trove/+bug/1554898
Incomplete module-instances command:
    https://bugs.launchpad.net/trove/+bug/1554900
Incomplete 'live-update' of modules:
    https://bugs.launchpad.net/trove/+bug/1554903

Co-Authored-by: Peter Stachowski <peter@tesora.com>
Co-Authored-by: Simon Chang <schang@tesora.com>

Partially Implements: blueprint module-management
Change-Id: Ia8d3ff2f4560a6d997df99d41012ea61fb0096f7
Depends-On: If62f5e51d4628cc6a8b10303d5c3893b3bd5057e
2016-03-15 12:21:55 -04:00
Vincent Untz 55a26c175c Update setup.cfg entry points for oslo namespace-less import paths
Oslo moved away from oslo.* namespace quite some time ago.

Change-Id: I78e3acae3918c3a136fe47ae99426701ba99c0e6
2016-02-22 21:34:13 +01:00
Chaozhe.Chen 25c0463358 Trivial: replace deprecated _impl_messaging
Use oslo_messaging.notify.messaging instead of the deprecated
oslo_messaging.notify._impl_messaging.

ref:
https://github.com/openstack/oslo.messaging/blob/master/oslo_messaging/
notify/_impl_messaging.py#L20

Change-Id: I146e031e336454a5e55c584ab34477f34d343cbf
2016-01-05 17:51:53 +08:00
Craig Vyvial ecca97864e Remove version per M-1 release instructions
Depends-On: I122d06e4465142a02e0ceb4d2d778be8639c7165
Change-Id: If0762057e1e2b2c2c37d64bd521e37777d341857
2015-12-02 20:57:19 -06:00
Nikhil Manchanda 2cd95107b6 Open Mitaka Development
Mark the start of the Mitaka development branch by upping the
preversion. The Liberty release branch will be cut from the
previous commit.

Change-Id: I1b929ea560a9717aff864eeaf379d16e20898f9e
2015-09-23 16:27:25 -07:00
Doug Hellmann 32c4bf40a9 Update version for Liberty
Update the version for Liberty, switching from date-based versioning
to pre-versioning using SemVer. See
http://lists.openstack.org/pipermail/openstack-dev/2015-May/065211.html
and
http://lists.openstack.org/pipermail/openstack-dev/2015-June/067082.html
for details.

Change-Id: I6a35fa0dda798fad93b804d00a46af80f08d475c
2015-06-17 20:23:51 +00:00
Thierry Carrez 7104471e99 Open Liberty development
Bump pre-version in setup.cfg to formally open Liberty development.
Kilo release branch will be cut from the previous commit.

Change-Id: I2291c69fee029dcac163b5fb05137bb5c45a1988
2015-04-07 18:32:29 +02:00
Sergey Gotliv ea148d7dfe Integration with oslo.messaging library
Port Trove to use oslo messaging library instead of obsolete messaging
code from oslo incubator.

Change-Id: Ibd886f3cb4a45250c7c434b3af711abee266671c
Implements: blueprint rpc-versioning
2015-01-06 09:16:39 +02:00
Julien Danjou 414507227e Remove Python 2.6 classifier
Trove does not support Python 2.6 anymore starting with Kilo and might
not work correctly with it, so remove the classifier.

Change-Id: Ida17ce3ce76258442222b591846e1e1717119eed
2014-12-02 09:57:52 +01:00