Commit Graph

1122 Commits

Author SHA1 Message Date
Zuul 2ab986a473 Merge "Add Datastore Version Registry Extension" 2024-03-28 11:17:29 +00:00
OpenStack Release Bot 77757daeb2 Update master for stable/2024.1
Add file to the reno documentation build to show release notes for
stable/2024.1.

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

Sem-Ver: feature
Change-Id: Id3246fb82b4850b44031c2d89c1b2ba904c3b4b5
2024-03-08 14:15:57 +00:00
OpenStack Release Bot dbe25fad30 reno: Update master for unmaintained/yoga
Update the yoga release notes configuration to build from
unmaintained/yoga.

Change-Id: Ic6976cd3fea8a68ae165c2fd14f7f7f1a774dabf
2024-02-19 09:19:09 +00:00
Zuul e1371b3b96 Merge "Remove six" 2024-01-25 08:37:53 +00:00
Ghanshyam Mann 4e6e8cc73f 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: I5f399edc6c553c65581b02d043d29f2170ac41e3
2024-01-04 01:10:02 -08:00
Bo Tran e32a0b0c9c Add Datastore Version Registry Extension
Current, users can config default datastore registry for managers not by
verions. This make you can flexible when have some experimental
datastore.

With this patch, users with the administrator role can configure the
datastore registry external for each datastore version using a command,
without editing configuration files.

Story: #2010860
Task: #48536
Change-Id: I7ee47dd1bb6e52991f0e0028a01e81252a1718c3
2023-12-27 11:09:40 +07:00
OpenStack Release Bot 61db51590c Update master for stable/2023.2
Add file to the reno documentation build to show release notes for
stable/2023.2.

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

Sem-Ver: feature
Change-Id: Ib77debac4722852d2bf2610782938830750d6436
2023-09-08 14:50:53 +00:00
likui 0415e4bc88 Drop openstack-lower-constraints-jobs
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

Change-Id: I0a19802c82c9ea9138a870559748063dca5507e1
2023-06-26 18:03:58 +08:00
wu.chunyang b739fe40ad 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: I743d463c7cf559d089bf5343bba0bca8675f7a27
2023-06-21 17:03:17 +08:00
OpenStack Release Bot 81597a0a34 Update master for stable/2023.1
Add file to the reno documentation build to show release notes for
stable/2023.1.

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

Sem-Ver: feature
Change-Id: Ia04030e034d813fac8fa7983ee7e6569569af88f
2023-02-24 15:01:14 +00:00
OpenStack Release Bot 5a20908cd0 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: Ied8fb9f8decc7322cd3ecea3a9e875e98bf63bcd
2023-01-28 09:14:29 +00:00
wu.chunyang c715b66b53 Fixing tests with tox 4.2.6
Remove basepython from testenv

Change-Id: Idb2a9d9dcc5a73e15e5cbab165b2b629a8b26afe
2023-01-28 15:53:59 +08:00
OpenStack Release Bot e8b2534e0d Update master for stable/zed
Add file to the reno documentation build to show release notes for
stable/zed.

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

Sem-Ver: feature
Change-Id: Ia836b341b287f4f2ca5e9c9690e3c83b89015445
2022-09-09 15:15:24 +00:00
Takashi Kajinami ad6544e8a5 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: I8a07a79a976c82518a6a94b6725719b9375df3a2
2022-07-17 00:54:51 +09:00
Takashi Kajinami 5860dc8ffc Remove six
Python 2 is no longer supported, thus usage of six can be removed.

Change-Id: I7442242289f269d95432209e74caa3cd3917ac5d
2022-05-17 22:02:22 +09:00
wu.chunyang 00a54650d5 Add python3.9 support
This ps adds py39 support and replaces dashes with underscores

Change-Id: I5245be419244c8bd93c7099b61ce0a382f7a5065
2022-04-28 22:14:03 +08:00
Zuul c1a320cef4 Merge "Adapts new API response schema" 2022-04-18 12:54:40 +00:00
Hirotaka Wakabayashi 4815692d8c Uses the "network_id" param creating a cluster
This PR replaces a request parameter name "net-id" with "network_id"
creating a cluster. When creating a cluster, Clusters API internally
calls Instaces API to create a instance. A request parameter name to
create instances has changed[1] but python-troveclient still uses
old parameter name when creating a cluster.

The original problem is instance creation error when creating a
instance that belongs to a cluster. Troves's Instances API has
changed a parameter name from "net-id" to "network_id", but Clusters
API and python-troveclient still uses the "net-id" parameter name.
We need to fix it.

[1]: 5354172407

Task: 44925
Story: 2009958
Change-Id: Ia3d1d6f451296eba34f2389da184c41a7ee9e84e
2022-04-09 18:07:58 +00:00
Hirotaka Wakabayashi 2dbbf5656e Adapts new API response schema
This PR makes troveclient to handle API response in new data schema.
Trove API response data schema has changed by the commit[1].

Original problem is that python-troveclient can't parse a API response
data in new data schema, resulting in an error.

[1]: 429c39890e

Task: 44986
Story: 2009979
Change-Id: I2e446c68c3b82c11d13f6bace54273c109e02069
2022-04-08 04:06:30 +09:00
OpenStack Release Bot ef88f4d6c0 Update master for stable/yoga
Add file to the reno documentation build to show release notes for
stable/yoga.

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

Sem-Ver: feature
Change-Id: I8143ca09cafc3bf2ae68c856f426f2acaa699b38
2022-03-03 10:50:59 +00:00
OpenStack Release Bot 60817623cc 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: Ibb1f0b5a7740d36fda7be637f21802e31623baba
2021-09-10 14:32:45 +00:00
OpenStack Release Bot 2475b3b8b0 Update master for stable/xena
Add file to the reno documentation build to show release notes for
stable/xena.

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

Sem-Ver: feature
Change-Id: I62ae17b426c970e0e595210da0d7656f70b37352
2021-09-10 14:32:43 +00:00
Lingxian Kong 64f3f62368 Fix detach configuration from instance
Change-Id: Id0853dfb207bbd219755d46a9c0d6b4e897bfbeb
2021-07-09 20:47:13 +12:00
likui 5ce2e998b9 Changed minversion in tox to 3.18.0
The patch bumps min version of tox to 3.18.0 in order to
replace tox's whitelist_externals by allowlist_externals option:
https://github.com/tox-dev/tox/blob/master/docs/changelog.rst#v3180-2020-07-23

Change-Id: Ia9928d8fe69a6a3c593ff9b5846ef3123e7dda26
2021-06-03 17:01:07 +08:00
Lingxian Kong cd68986948 Get backup list by instance ID or name
Change-Id: I97d3fcfa2935f76cb8753734fec6dab8669e732a
2021-05-19 20:43:06 +12:00
Lingxian Kong e41d08d243 Support project name in quota CLI
Change-Id: I9886792f346bbe8d4887539ca69588b4957547e1
2021-04-29 14:17:48 +12:00
Dmitriy Rabotyagov 1d533778d7 Respect endpoint, cacert and debug options
When troveclient is used as a plugin for osc, it does not respect
provided endpoint type or cert via osc. This might result in
CERTIFICATE_VERIFY_FAILED error with osc, but not with trove shell.

Change-Id: I3d34774e87fcf0fe8efb024d4e6ff80a4e3f49c6
2021-03-30 14:49:37 +03:00
OpenStack Release Bot 8a3a26eb7d 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: I6b35118b83af7c18baaefaddfdd6cd51912ee0c7
2021-03-18 10:46:18 +00:00
OpenStack Release Bot 23d3ed7db9 Update master for stable/wallaby
Add file to the reno documentation build to show release notes for
stable/wallaby.

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

Sem-Ver: feature
Change-Id: I01e922d4a71d97f4342e5ec6d498c69359e2f987
2021-03-18 10:45:55 +00:00
Lingxian Kong c7319d8fe8 Support to restore backup from data location
This feature needs to bump python-troveclient major version as it
introduced an incompatible change for backup creation CLI.

Change-Id: I6fe94ccb552e2c0020150494ccc2ba6361184229
2021-02-21 00:37:08 +13:00
Lingxian Kong 4c71809fad Bulk backup delete
Change-Id: I100f8a302aeb498e3c0cebd8d36ef5fa437d444d
2021-02-19 11:07:23 +13:00
Joel Capitao 8271ba8719 Switch to collections.abc.*
The abstract base classes previously defined in 'collections' were moved
to 'collections.abc' in 3.3. The aliases will be removed in 3.10.
Preempt this change now with a simple find-replace:

  $ ag -l 'collections.($TYPES)' | \
      xargs sed -i 's/\(collections\)\.\($TYPES\)/\1.abc.\2/g'

Where $TYPES is the list of moved ABCs from [1].

[1] https://docs.python.org/3/library/collections.abc.html

Credit for this commit message to Stephen Finucane <stephenfin@redhat.com>

Change-Id: I782f2449832398cf2cfb886f561635de3d8ac18d
2021-02-11 12:29:00 +01:00
likui 5188cc77c5 add python37 setup.cfg
Add python3.7 from setup.cfg, Wallaby's python
supported runtimes are python 3.7[1]:

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

Change-Id: Ia1e29c25df0b3f47b9513b863a6f3866a7e802c3
2021-01-12 09:28:03 +08:00
likui 3bdae37673 remove unicode from code
Change-Id: Iadc87779bf513c9d04847b6cf8ecbc60b300d7db
Implements: blueprint remove-unicode
2021-01-03 13:03:32 +08:00
zhangjunhui 182301ac68 Fix a bug in print_list when using formatters
If using formatters it will raise a error that local variable
'data' referenced before assignment

story: 2008472
task: 41511
Change-Id: I6c66139b54a203bd8af01e8534e4d7ce7735e02d
2020-12-29 16:29:51 +08:00
likui 7c89521ae4 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: I26e748d804743ffc3f30cd05347fdd51dedb051c
2020-12-26 12:50:39 +08:00
Lingxian Kong 961ef31807 Fix getting server id for listing instances
Just use 'server_id' from the instance response instead.

Story: 2008464
Task: 41496
Change-Id: Ib84dbd5fbd752ab7c7607ccb874663b01bfb7388
2020-12-23 13:29:41 +13:00
Zuul 77023b350e Merge "update cliff to 3.5.0 support python3.8" 2020-12-21 00:45:25 +00:00
likui 05c178e0af update cliff to 3.5.0 support python3.8
[1] https://pypi.org/project/cliff/3.5.0/

Change-Id: I1d6fb5ca4e0856a2766a69f7fce9b56d7253f754
2020-12-16 08:57:30 +08:00
Lingxian Kong 23b5546f53 Support operating_status for instance
Change-Id: I3f5badc4d3bbb41de008d39e813d48f6aa670dc1
2020-12-09 11:10:28 +13:00
Lingxian Kong b02459fb1d Show server_id for listing instance by admin
Story: 2008420
Task: 41361

Change-Id: I4dd67cf9aa9a13a520e69872d2752d22f19e63cf
2020-12-09 09:36:33 +13:00
Lingxian Kong 6aac8ded86 Disable openstack-lower-constraints-jobs
The community doesn't have a final solution, the following are what we found:

* virtualenv 20.2.2 released recently with pip bumped to 20.3.1
* pip before 20.3 is not actually satisfying the full dependency set and those
  issues were uncovered by the newer version.
* Disable this job for now until the community has a decent solution

Change-Id: Ib4a59ae54cc6d86234226ad8b78fbb0058cc02de
2020-12-09 09:35:41 +13:00
Lingxian Kong 6fab3f7fff Fix creating datastore version
Story: 2008419
Task: 41360

Change-Id: Ib14e5d56f75b68f32ee3ec23a198f618e5141931
2020-12-05 12:26:15 +13:00
likui 61d36db2d5 Add support for python 3.8
Introduce support of python 3.8 [1] and move tox and jobs to py38.

jsonschema 3.2.0 [2] support python 3.8
pyOpenSSL 19.1.0 [3] support python 3.8

[1] https://governance.openstack.org/tc/reference/runtimes/victoria.html#python-runtimes-for-victoria
[2] https://github.com/Julian/jsonschema/pull/627
[3] https://pypi.org/project/pyOpenSSL/19.1.0/

Change-Id: I8f561325780a95173501f42e10b6fce617bb17f4
2020-12-03 09:02:51 +08:00
Zuul 8b892239dc Merge "Revert "Fix resize flavor for instance"" 2020-11-26 02:17:17 +00:00
Lingxian Kong 3647805c67 Revert "Fix resize flavor for instance"
Story: 2008341
Task: 41244

This reverts commit f859692cc3.

Change-Id: I690956927fb2558950362d1f223596db92e53d1e
2020-11-26 13:37:58 +13:00
Lingxian Kong e43454f4b0 Fix getting datastore versions against previous trove service release
Change-Id: I9d08740b9e220d24aad7f691491d5eea8a7e16f9
2020-11-22 22:50:26 +13:00
Lingxian Kong a57568397e Support datastore version number
- Support "--datastore-version-number" for creating configuration
- Support "--datastore-version-number" for creating instance
- Support "--version-number" for creating datastore version
- Support "--version-name" for updating datastore version
- Support showing version number for datastore version, instance and
  configuration

Story: 2008358
Task: 41264

Change-Id: Ie84b4506736a82a214b0416f7e451d565552f651
2020-11-21 23:44:42 +00:00
Zuul f28390ee5d Merge "Revert "Remove flavor API"" 2020-11-13 08:53:57 +00:00
Lingxian Kong c04e299b1d Revert "Remove flavor API"
Story: 2008341
Task: 41242

This reverts commit 27cf71299e.

Change-Id: I036a0423263b1a0332415c6403647ae82c9e34c4
2020-11-13 20:53:10 +13:00