4388 Commits

Author SHA1 Message Date
Lingxian Kong
4fb41b5198 Postgresql: Backup and restore
Change-Id: Icf08b7dc82ce501d82b45cf5412256a43716b6ae
2020-09-07 20:40:56 +12:00
Zuul
768ec34dfe Merge "Use sudo when deleting image cache dir" 2020-09-04 07:14:16 +00:00
Zuul
488d8a71e2 Merge "Remove six.PY3" 2020-09-04 04:21:02 +00:00
Lingxian Kong
ec8a10e36b Use sudo when deleting image cache dir
Change-Id: I8a9fd906d6b70dfad1c38e751cadc004a5aeb13f
2020-09-04 13:58:56 +12:00
likui
5bf159de36 Remove six.PY3
The Python 2.7 Support has been dropped since Ussuri.
So remove hacking rules for compatibility between python 2 and 3.

Change-Id: Id3fd78b5d3e21579975ea0d0fc65e4f66ea4582e
2020-09-03 18:30:24 +08:00
Zuul
a10d38df71 Merge "Use pip3 instead of pip in trovestack" 2020-09-02 12:19:04 +00:00
Zuul
ff66f30a69 Merge "Improve docker image for database backup/restore" 2020-09-02 01:32:08 +00:00
Lingxian Kong
00a07f2423 Use pip3 instead of pip in trovestack
Change-Id: Icbbfaa07a699e1280b0d39dfbae87d7468cbb260
2020-09-02 10:11:12 +12:00
Lingxian Kong
43d7aec774 Improve docker image for database backup/restore
* Decrease the image size by not installing unnecessary packages.
* Move the option 'backup_docker_image' to separate database config
  section.

Change-Id: I3362e1f8a7dc21b89c060352f2db2f138c16db07
2020-09-02 09:37:01 +12:00
Luigi Toscano
ca4e029f2a Remove the definition of trove-grenade
(and of its now unused parent trove-legacy-dsvm-base)

The job is not used in this repository anymore (since
I49bd6c824b837d22d9f3945a3e8c2343c831b352).
It was only used by grenade.git, but that usage has been removed
by I8f976041e98502de4770ece8cb7f04a928e8f3d9.

Moreover, it is a legacy job and it should be ported to a native
Zuul v3 job, and more important it doesn't really test the upgrade,
because there are no grenade plugins for trove.

An upgrade job is useful, but a grenade trove plugin should be written
first and a new native job should be created instead of restoring
the legacy one.

Depends-On: https://review.opendev.org/749212
Change-Id: Ib5ecc496aee28a6a2bbb01138e1f511bfc179302
2020-09-01 12:08:46 +02:00
Zuul
efc9bae2b9 Merge "[API doc] Add more description for deleting backups" 2020-09-01 06:10:29 +00:00
Zuul
410b8ee25c Merge "PostgreSQL support" 2020-09-01 06:10:27 +00:00
Lingxian Kong
77ca2079a8 [API doc] Add more description for deleting backups
Change-Id: I24f3963c32a226411af8fe3155ff7d4a8ab5a880
2020-09-01 14:00:57 +12:00
Lingxian Kong
d0cfb41b25 PostgreSQL support
Change-Id: I7c77b210f5a1438739daebffea104eda3bda1a45
2020-09-01 13:58:05 +12:00
Lingxian Kong
5e1cd054b8 [API doc] Improve description of swift_container for creating backups
Change-Id: Ie3d4c9994ae802db016a9d8c63fc2f1fad6cd77a
2020-08-31 21:14:05 +12:00
Lingxian Kong
8daade000c Support to check if subnet is associated with router
Change-Id: I8041fbfdb01a7a1efa721c623ab3f43efd2cc0f0
2020-08-24 13:17:49 +12:00
Zuul
1113980613 Merge "Trove upgrade guide" 2020-08-13 23:43:46 +00:00
Lingxian Kong
9e7c4c0832 Trove upgrade guide
Change-Id: Ib270f967cd9dc2ee72c96d93baa853c0a4e8c780
2020-08-14 11:06:39 +12:00
Lingxian Kong
7486a7c382 Fix access field for instances created before upgrade
For instances created prior to Victoria, the access field in trove db
is None. We need to check 'is_public' based on instance addresses.

Change-Id: I3302ddea19f32683fda404802550ca5dd1081312
2020-08-13 23:45:37 +12:00
Zuul
a1275bbc43 Merge "Allow to specify root password when building guest image" 2020-08-12 23:08:52 +00:00
Zuul
648b3e372f Merge "Fix functional test for instance access operation" 2020-08-12 20:38:20 +00:00
Lingxian Kong
9914bd6aad Allow to specify root password when building guest image
For testing purpose.

Change-Id: I8193f4262156ed9b0784666f5981ebd6df4d525b
2020-08-12 21:36:00 +12:00
Lingxian Kong
c4fd9cbe34 Fix functional test for instance access operation
Change-Id: I8557782dc80b9bc691268bc96d3188bf55cdd86d
2020-08-12 18:25:31 +12:00
Zuul
0428553a32 Merge "Support to update instance access" 2020-08-11 11:04:26 +00:00
Zuul
31be2613c6 Merge "Show instance access information" 2020-08-11 10:59:46 +00:00
Lingxian Kong
4de40cb514 Support to update instance access
Change-Id: I640cd8b50fd0e0f80a1a45399b8bfdac437ae2b9
2020-08-11 09:35:14 +12:00
Lingxian Kong
680a43002b Show instance access information
Change-Id: I8c0a7827624ea432edc765ba14e1f6a7228509c3
2020-08-11 08:30:49 +12:00
Lingxian Kong
722ac4bcc9 Wait for instance after rebuild
Change-Id: Ie6a44c442e1d17587435638851a58058408d5ea8
2020-08-07 11:57:39 +12:00
Lingxian Kong
6b1c31e2ed Add instruction for upgrading trove guest agent
Change-Id: I574f93d2023d35b2ede0e6e532a06ea1bdddad5f
2020-08-07 09:08:48 +12:00
Lingxian Kong
cf3e9a6e74 Support to rebuild instance by admin
Change-Id: I48f8c6f997daeb6d82ff62b3325277d86fee2147
2020-08-06 20:38:11 +12:00
Lingxian Kong
8e48d757e6 Resize replicas (volume) together with primary
When resizing volume for an instance which is the primary of a
replication, cluster, Trove also resizes the volume for all the replicas
automatically.

Change-Id: I2e719772fe7abc719255ea2a705d9ec342aced2a
2020-07-28 09:13:05 +12:00
Zuul
be6f8565f5 Merge "Using same config with primary for replicas" 2020-07-27 04:08:07 +00:00
Lingxian Kong
efb6a811be Using same config with primary for replicas
Change-Id: Icadc95ea54e4509dc148f8e84f2eaac5840509f3
2020-07-27 09:28:17 +12:00
Zuul
c7d78e0a56 Merge "Support online volume resize" 2020-07-25 11:12:17 +00:00
Lingxian Kong
309555210a Fix oslo-config-generator command example in doc
Change-Id: Iaa4a1793e6ed9e42e516c72545c04278b1fcd291
2020-07-24 14:09:56 +12:00
Lingxian Kong
ba046b2a14 Support online volume resize
Trove now supports to resize volume without downtime. To use this
feature, the version of Nova and Cinder needs to be at least Pike, the
config option ``cinder_service_type`` needs to be set to ``volumev3``.
The cloud admin can disable this feature by setting
``online_volume_resize=False``, default is enabled.

Change-Id: I000a4e90800454972dd39f2f82d286571bc0b96c
2020-07-24 13:55:51 +12:00
Zuul
39b0df0a6b Merge "Fix the slow start of mariadb container" 2020-07-18 12:08:40 +00:00
Corey Bryant
56bb6f39b6 Monkey patch original current_thread _active
Monkey patch the original current_thread to use the up-to-date _active
global variable. This solution is based on that documented at:
https://github.com/eventlet/eventlet/issues/592

Change-Id: I61e5e270bf66b0355da3282c19cbc9fd42c4090b
Closes-Bug: #1863021
2020-07-18 10:09:51 +00:00
Lingxian Kong
058490a609 Fix the slow start of mariadb container
Adding '-e MYSQL_INITDB_SKIP_TZINFO=1' when starting database
container.

Ref:
https://github.com/docker-library/mariadb/issues/262

Change-Id: I3398557700dd76ec831e441ba074032fd4b67cca
2020-07-18 22:00:42 +12:00
Lingxian Kong
828e873846 Support backup strategy API
Change-Id: I0ddd7214dae6e29ddfaf045fdb282f4980a8afff
2020-07-17 11:35:53 +12:00
Lingxian Kong
f8ca333b43 Correct some information in docs
Change-Id: I27815fe075aa7cae49d24d57e9e48c091376a213
2020-06-24 13:14:36 +12:00
Zuul
0520181a33 Merge "Use unittest.mock instead of mock" 2020-06-23 12:05:42 +00:00
Zuul
002b337169 Merge "Update location of file validation-rules.json" 2020-06-23 10:15:33 +00:00
Lingxian Kong
d81542481b Doc: Fix configuration API
Change-Id: Ieff5200c220376f5927835f46c1b0a5a4f34052e
2020-06-16 22:46:16 +12:00
Nguyen Thanh Cong
d2643794a8 Update location of file validation-rules.json
Change-Id: If95cd6ff63dfb42970903e945adf4dcb38eb97ae
2020-06-16 16:57:43 +07:00
Lingxian Kong
428e3644f8 Support image type for guest image building
Change-Id: I8d640c47f00446d7f912ece9892b17585cde3add
2020-06-12 22:41:23 +12:00
Hervé Beraud
4b654a840f Use unittest.mock instead of mock
The mock third party library was needed for mock support in py2
runtimes. Since we now only support py36 and later, we can use the
standard lib unittest.mock module instead.

Change-Id: I7b97fab683e45118327b93c776f8c487feab7374
2020-06-11 17:06:19 +02:00
Lingxian Kong
4bf6c496bb Release note for adding replicas in list instance response
Change-Id: Ib4e14d600841b6e6769a1e557b34c9c7787cb02d
2020-06-11 10:00:00 +12:00
Lingxian Kong
fb70d24c3f Show replicas info for listing instances
Change-Id: I909cd37b34466f41ae4cca0e85cb8a917ba163cc
2020-06-10 22:51:37 +12:00
Lingxian Kong
5354172407 Support subnet and IP for instance creation
Support ``subnet_id`` and ``ip_address`` for creating instance. When
creating instance, trove will check the network conflicts between user's
network and the management network, additionally, the cloud admin is
able to define other reserved networks by configuring
``reserved_network_cidrs``.

Change-Id: Icc4eece2f265cb5a5c48c4f1024a9189d11b4687
2020-06-10 22:41:35 +12:00