4474 Commits

Author SHA1 Message Date
Zuul
78772cef68 Merge "Make guest agent api changes backwards compatible" 2020-11-10 06:28:48 +00:00
Zuul
9a0d76aa30 Merge "Pass availability zone through to volume creation." 2020-11-10 01:12:47 +00:00
Zuul
77377adf05 Merge "Fix edit instance action return code" 2020-11-09 01:07:41 +00:00
Sam Morrison
e8287dfda9 Pass availability zone through to volume creation.
New config option `enable_volume_az` (defaults to false)
ensures that the instance and volume will be created in the same
availability zone.

Story: 2008313
Task: 41208

Change-Id: I62ea46991c7398fba4e5027d5170038624d5aec9
2020-11-09 00:50:49 +00:00
Lingxian Kong
59a972b312 Fix upgrading instance datastore version
Change-Id: I0456688c2e6c72b0312f1f79bb3e68f13fd2cb6e
2020-11-08 19:15:13 +13:00
Sam Morrison
b68bcb6f1c Fix edit instance action return code
c4fd9cbe346de707281c3254bfbbda8f2759ec4d changed the response code
when updating an instance from 202 -> 200.

Change-Id: I0e64abd29bd54e4e45eef011417777f2352b4969
Story: 2008324
Task: 41222
2020-11-06 13:40:41 +11:00
Zuul
de056b912b Merge "Fix the functional test related to flavor check" 2020-11-06 01:58:06 +00:00
Zuul
25d66639dc Merge "Use datastore manager as opposed to name to restrict actions" 2020-11-05 22:15:45 +00:00
Lingxian Kong
2d29971108 Fix the functional test related to flavor check
Relating to https://review.opendev.org/#/c/761063/

Change-Id: I6db7f5eac55f9a1556be5e4669a758d884b3cfd3
2020-11-06 10:56:48 +13:00
Sam Morrison
d39f8a154e Make guest agent api changes backwards compatible
Change-Id: I16303ad0b50a2265b7bd9d4736d5662f67076b61
2020-11-05 15:58:50 +11:00
Sam Morrison
3aa0c32815 Revert "Remove flavor API"
Story: 2008309
Task: 41201

This reverts commit 910519127d8fb9880863eb219df68a574d00df6a.

Change-Id: I77b72a965153e9583d93dee1f3a77d01a57e4ca2
2020-11-05 14:31:27 +13:00
Sam Morrison
de12499a57 Use datastore manager as opposed to name to restrict actions
Change-Id: I0e00de3bc5c0ff797fc5c1a13f0275d596c12b5d
Story: 2008314
Task: 41209
2020-11-05 12:02:11 +11:00
Lingxian Kong
71d99e2c56 Add doc for running functional test
Change-Id: I0bb1619435b5fb7cfcc4ea55691d728413939fef
2020-10-31 19:01:35 +13:00
Zuul
aa533e6aea Merge "Update TOX_CONSTRAINTS_FILE" 2020-10-30 07:30:36 +00:00
likui
3753c70225 Update TOX_CONSTRAINTS_FILE
UPPER_CONSTRAINTS_FILE is old name and deprecated
-https://zuul-ci.org/docs/zuul-jobs/python-roles.html#rolevar-tox.tox_constraints_file
This allows to use lower-constraints file as more
readable way instead of UPPER_CONSTRAINTS_FILE=<lower-constraints file>.

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

Change-Id: Ida407c05ad1026820be71ddfb84a97bcb3418df9
2020-10-30 09:04:53 +08:00
Lingxian Kong
bd2b256a37 Fix restore encrypted backup
For the backups created prior to Victoria which may be encrypted, the restore
function in Victoria or later release should correctly decrypt the backup data.

Backup encryption from Victoria is disabled.

Bump the backup docker image tag to 1.1.0.

Change-Id: I7abf5563b22ab1914fa355c089a3793da07f2215
2020-10-29 23:19:03 +13:00
Lingxian Kong
69c8467854 Return instances by created order
Change-Id: I558c36b4f0894f8476ce7fc9c88c1829e8762011
2020-10-29 12:25:20 +13:00
Zuul
d21d37d628 Merge "Release note for mysql 8 support" 2020-10-26 23:14:59 +00:00
Zuul
82f2dbf660 Merge "Support mysql 8.0" 2020-10-26 09:53:09 +00:00
Lingxian Kong
33f5c2d63d Release note for mysql 8 support
Change-Id: Ib885a05eaa74fc1566a398935402b76ca414e99e
2020-10-26 20:56:19 +13:00
Lingxian Kong
d1af33f17b Support mysql 8.0
* MySQL 5.7 and MySQL 8.0 need different percona-xtrabackup package version.
  Added Percona XtraBackup 8 support for MySQL 8.x backup and restore.
* Construct different backup container image names for MySQL 5.7 and MySQL 8.0
  based on the default option value.
* Two docker images are uploaded for backup/restore:
  openstacktrove/db-backup-mysql5.7:1.0.0 and
  openstacktrove/db-backup-mysql8.0:1.0.0. Trove guest agent can automatically
  choose the approriate one based on the datastore version.
* Added option "secure-file-priv=NULL" in MySQL config template to fix
  https://github.com/docker-library/mysql/issues/541.
* Stop using IDENTIFIED BY in GRANT clause (also REVOKE). Starting with MySQL 8
  creating a user implicitly using the GRANT command is not supported.

Story: #2008275
Task: #41143

Change-Id: Ibdec63324b1b39ba9b8a38dbe529da17bbb06767
2020-10-23 23:50:39 +13:00
Zuul
aed908910f Merge "Fix getting user port for instance" 2020-10-22 21:31:05 +00:00
Zuul
4df3dceeee Merge "Update quota API description" 2020-10-22 11:24:14 +00:00
Zuul
fae7070fd9 Merge "Support to get instances of a specified project" 2020-10-22 11:24:10 +00:00
Lingxian Kong
d734037cb9 Fix getting user port for instance
Check the port type by network rather than port description.

Change-Id: Id85c25c0cd3903f1b536a08ddcf69e306ce7345d
2020-10-22 23:16:34 +13:00
Lingxian Kong
d77229e7eb Update quota API description
Change-Id: Ia8d36dca81e2dd028b36289cb4547c1a8b88a1b1
2020-10-22 21:31:26 +13:00
Zuul
060a100aa0 Merge "Remove the unused coding style modules" 2020-10-21 23:37:23 +00:00
Lingxian Kong
bfa2392d16 Support to get instances of a specified project
This patch also fixes a performance issue when the adm user is getting
all the instances.

Change-Id: Icd6345d6c97648cdfbfaa8d9edac7315a1409356
2020-10-21 23:31:01 +00:00
Zuul
347c2c2ee9 Merge "Warning user running command trove-manage db_recreate" 2020-10-21 21:24:50 +00:00
wu.chunyang
e0840af504 Remove the unused coding style modules
Python modules related to coding style checks (listed in blacklist.txt in
openstack/requirements repo) are dropped from lower-constraints.txt
they are not needed during installation.

Change-Id: Id08d82ccfa2336b2990fa93a1a56735cd10aa745
2020-10-22 00:37:38 +08:00
Ivan Kolodyazhny
6a12e59601 [TrivialFix] Fix '--replica-of' argument format in docs
Change-Id: I1410951c46654f1aad0e3aa2904ed006d629c41b
2020-10-19 18:54:17 +03:00
Zuul
74f3829fe3 Merge "Remove six usage and basestring check" 2020-10-18 22:33:23 +00:00
wangzihao
e954184693 Remove six usage and basestring check
Remove basestring check.
Remove six Replace the following items with Python 3 style code.

- six.string_types
- six.int2byte
- six.indexbytes
- six.add_metaclass
- six.StringIO
- six.text_type
- six.integer_types
- six.binary_type
- six.BytesIO
- six.reraise

Change-Id: I4fb9033d152963c504ceb4d5c4d08f934ee4accb
2020-10-16 10:40:22 +08:00
Zuul
349c632335 Merge "Fix error handling on instance create" 2020-10-14 09:36:53 +00:00
Lingxian Kong
e21f90a025 [Doc] datastore guide
Change-Id: Id2ab6f94a372395563eef12a6fd5f0682eb94777
2020-10-13 10:27:49 +00:00
Ivan Kolodyazhny
03a3be8340 Fix error handling on instance create
exception.BadRequest expects string as a 'message' argument, so we can't
pass ValueError without casting it to string.

Change-Id: Iff43c38dca596e694cc7c6bc20e71669d83e31e2
2020-10-12 22:24:45 +03:00
wu.chunyang
9e2515aad3 fix typo in docs
replace datastore_version with datastore-version in openstack client.

trivial fix

Change-Id: I5b5198c41af2f6463bf18b49de6f85080c5e05f8
2020-10-12 17:10:03 +08:00
Zuul
7377173e48 Merge "Add resource quota description for production guide" 2020-10-12 08:09:40 +00:00
Lingxian Kong
e3429a5b53 Add resource quota description for production guide
Change-Id: Id51ec601e84a3fcf9cfe2ab206a91126a4af9321
2020-10-12 19:23:46 +13:00
Lingxian Kong
5efbc15985 Create floating IP in the user's project
From the perspective of the public cloud, the floating IP should be
created in the user's own project.

Story: #2008246
Task: #41093

Change-Id: Ic358a2844c1b1f94a1b77ee67102b1c9c236a365
2020-10-12 11:48:49 +13:00
Zuul
ddea7c5831 Merge "Fix the image CI job" 2020-10-10 08:26:18 +00:00
Zuul
99c7c2c9af Merge "Remove six.moves" 2020-10-10 08:26:17 +00:00
Zuul
c7549b0deb Merge "bump py37 to py38 in tox.ini" 2020-10-09 11:51:33 +00:00
Lingxian Kong
1d659d0342 Fix the image CI job
Change-Id: I08a3a5873bf883c453e86e662296f7d0c7fbaf49
2020-10-10 00:13:22 +13:00
wangzihao
91ba6d1d7c Remove six.moves
Remove six.moves Replace the following items with Python 3 style code.
- six.moves.urllib
- six.moves.http_client
- six.moves.configparser
- six.moves.cStringIO

Change-Id: I004b6b9a81079c67451395bfe31ec75d58802c16
2020-10-09 18:08:32 +08:00
likui
d729fe9c2e bump py37 to py38 in tox.ini
in 'victoria' cycle, we should test py38 by default.

ref:
  https://governance.openstack.org/tc/reference/runtimes/victoria.html

Change-Id: I7947901ac31b170e334a51880b996d2d3143f310
2020-10-09 13:52:37 +08:00
Lingxian Kong
c1be8a41d9 Support database version image tags for creating instance
Change-Id: If6ffacb5bab1aa5ffc51dd5678bd110c0beeb51d
2020-10-09 13:44:38 +13:00
Lingxian Kong
1d24b65052 Image tags support in datastore version
Change-Id: I0e51d08515c121e3a7b0e82b6e4c4161bb4fbc4a
2020-10-09 11:43:48 +13:00
Sam Morrison
680c7b8361 Set default-authentication-plugin default for mysql
The default has changed in mysql8, set this explicitly
so this will work with mysql5.x and mysql8.x

Change-Id: I252c8bf2272fdad61b977f2388dd6a2704fdf872
2020-10-06 10:01:44 +11:00
Zuul
d4941f01bd Merge "Update OS Ubuntu and fix create configuration" 2020-10-02 12:19:36 +00:00