summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Fix trove guest agent logrotatevictoria-em14.1.0stable/victoriaLingxian Kong2021-09-302-7/+3
| | | | | | | * The logrotate file owner should be root * Log file path is /var/log/trove/trove-guestagent.log Change-Id: I669fedc76aa79d7bfc1e4e64684adc4a89a3a15d
* Add float types to load_items to support configuration parameters of float typechimeng2021-08-051-0/+2
| | | | | | | | | | Complement missing float types when loading configuration group parameters so that parameters of type float can be attached into the trove instance successfully Story: 2008917 Task: 42508 Change-Id: Iae4d8fc52a50da4fd347270271f6761ce766d5c3 (cherry picked from commit 189d3493a844231dfa10062b5e632a3e931e50f2)
* Run reset master when setting up mysql replicasLingxian Kong2021-08-033-25/+43
| | | | | | | | | | * Only run 'FLUSH PRIVILEGES;' when needed * Fix SqlClient contextmanager initialization Story: 2009091 Task: 42921 Change-Id: I05a07402388d214dc95071be709191f63af49411
* Add periodic task to remove postgres archived wal filesLingxian Kong2021-07-2716-36/+333
| | | | | | | | | | | | | * Added a periodic task for postgresql datastore to clean up the archived WAL files. * Added a check when creating incremental backups for postgresql. * A new container image ``openstacktrove/db-backup-postgresql:1.1.2`` is uploaded to docker hub. Story: 2009066 Task: 42871 Change-Id: I235e2abf8c0405e143ded6fb48017d596b8b41a1 (cherry-picked from commit 02971d850b57ac27a126ecb8ca4012f97ae856fd)
* Fix getting config option value for databaseLingxian Kong2021-07-143-5/+12
| | | | | | | Change-Id: If2d3022a59ba535e1361a3ba9bc9dd983ca25256 Story: 2009051 Task: 42821 (cherry picked from commit 69f08ab470a0d1d1d4676b41ad29a9c19ce28648)
* Keep user defined configuration after resizing instanceLingxian Kong2021-07-129-47/+53
| | | | | | | | | | | | | | * Never remove user defined config, changing the function name from save_configuration to reset_configuration in trove-guestagent. * Improved some logs * Do not remove Innodb Log Files after resize which will cause error: Can't open and lock privilege tables: Table './mysql/user' is marked as crashed and should be repaired Story: 2009033 Task: 42773 Change-Id: I9e3165ed9b38b15714542e35456415e65d438497 (cherry picked from commit c274ab9f1a9b270c0ec2cb2d4aebe052aa37d416)
* Add package iptables-persistent inside guest instanceLingxian Kong2021-07-101-0/+2
| | | | | | | | iptables-persistent is needed to persists the iptable settings inside guest instance. Change-Id: I96bb9f948dda22f50ec2a4fb5710ad9778e16b9d (cherry picked from commit 4ce59ace17612a13bc65aea3844b4e4a187288da)
* Fix periodic public image jobLingxian Kong2021-05-041-6/+2
| | | | | | | Cherry picked from https://review.opendev.org/c/openstack/trove/+/789415 Change-Id: I6046f079db210c08ddef22ac2bbe564cb65b8e25
* Fix check_subnet_router filtersDmitriy Rabotyagov2021-04-141-0/+6
| | | | | | | | | | | | | Device owner of router ports is not limited to network:router_interface and can also be network:router_interface_distributed or network:ha_router_replicated_interface depending on the router to which port is attached. Currently, when HA router is used, trove fails with: `Subnet is not associated with router` since port does not pass filter Change-Id: Ie8b3884dd13147f29d5632275fa5c75e801e04c8 (cherry picked from commit d5497179d4789ef1c22ad8f9a39c719459241a62)
* Fix test_create_inactive_datastore_by_adminLingxian Kong2021-03-271-1/+1
| | | | | Change-Id: I7d8a23a2b015d3eead2eefb5df158e950fff0943 (cherry picked from commit e4b70cf73a7e8069f36273690e630022dbabab67)
* Stop using pip-and-virtualenv diskimage elementLingxian Kong2021-03-254-7/+8
| | | | | | | | | | | ALthough diskimage-builder will solve the issue eventually, but we still prefer to put the package installation under trove's own control. Story: 2008559 Task: 41697 Change-Id: Ie704db8233c4b797eeefa140c4a11427280dffd9 (Cherry picked from 1e04b269ca75067e28ae3e6ecb60ac2d11ab5b3b)
* Merge "Change the default agent_heartbeat_expiry to 90s" into stable/victoriaZuul2021-02-191-1/+1
|\
| * Change the default agent_heartbeat_expiry to 90sLingxian Kong2021-02-191-1/+1
| | | | | | | | | | | | | | | | By default, trove guest agent is sending health heartbeat msg for every 60s, so agent_heartbeat_expiry should be bigger than that. Change-Id: I348a82aa948079b7bba5c172b8d57d5f5dee28a0 (cherry picked from commit 5640a61acbfd3449ba700f495aa885f54fd2e080)
* | Remove the incorrect log for creating replication clusterLingxian Kong2021-02-191-1/+0
|/ | | | | Change-Id: Ie370eff134ae0e1394d0b03049a46a125d0db71a (cherry picked from commit 9f7fa5518afca91aa4a2a3bfd3efaff51397f108)
* Do not override RESTART_REQUIRED service statusLingxian Kong2021-02-117-44/+230
| | | | | | | | | | | | | The RESTART_REQUIRED service status set by guest agent should not be overridden by the health heartbeat mechanism. The RESTART_REQUIRED can only be changed when the instance is restarted or rebooted. Story: 2008612 Task: 41795 Change-Id: I98baf252452353237bc8fb14357df4e7bcb2867a (Cherry picked from 9c2e0bf3a0f1bc0b35a148174d8a4d2083f2b3c5)
* Do not rely on description for checking port typeLingxian Kong2020-12-091-1/+1
| | | | | | | Use port network ID is more reasonable. Change-Id: I219bf3db15124e67cd65c7d7f686ba73573e2761 (cherry picked from commit 9a6d41633c1231dd58bce36c06ad0223865441b2)
* Disable openstack-lower-constraints-jobsLingxian Kong2020-12-101-1/+1
| | | | | | | | | | | | 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: I8cd4554a20f89df92dbad4961d5a07a21f26fae8 (cherry picked from commit 9ea87ccf4334e893565c2fa1ee8e587f56e592a1)
* Add Neutron extension check before calling some APIsLingxian Kong2020-12-071-1/+28
| | | | | | | | Story: 2008415 Task: 41356 Change-Id: I5c1717892a167d119e596a11ae8d41e4edc1d27c (cherry picked from commit 5d19f8e40a90bd2381b683ac5959f73d3377557f)
* Get slave_pos to choose latest replicaNguyen Thanh Cong2020-11-301-1/+5
| | | | | | | | Latest replica have slave_pos biggest, so we just need use slave_pos to compare replicas. Change-Id: Ic4e2c79f48bfcaea806babbf50d4757a9c153132 (cherry picked from commit df82af30f21b89097597bf471c2aa5a08d19386c)
* Use current slave_pos of slave to continue replicateNguyen Thanh Cong2020-11-281-7/+3
| | | | | | | | | | | Because gtid is global and all operation are write to binlog, so incase change to new master, we just use current slave_pos of slave, the slave will just continue from the appropriate point in the new master's binlog. Story: #2008376 Task: #41294 Change-Id: If129aef794c9b2e547c0a3acfc6855c3506cf930 (cherry picked from commit 8987244c407b7dcb13dec1f20d3cc8a2c82c4dcd)
* Merge "Remove the experimental claim of dev_mode false" into stable/victoriaZuul2020-11-282-5/+3
|\
| * Remove the experimental claim of dev_mode falseLingxian Kong2020-11-272-5/+3
| | | | | | | | | | (Cherry picked from https://review.opendev.org/c/openstack/trove/+/764391) Change-Id: Ic74d10647f82044038ea9a4d99cb9a0320459675
* | Merge "Fix the guest service name in troubleshooting guide" into stable/victoriaZuul2020-11-281-1/+1
|\ \
| * | Fix the guest service name in troubleshooting guideLingxian Kong2020-11-271-1/+1
| |/ | | | | | | | | Change-Id: Icae399527211a2c4f50b04889b5e1ba09b4982ed (cherry picked from commit 7f62f199d26ea8b066a5aed8a8b4b5ca5b3af85f)
* | No validate when perform eject replica sourceNguyen Thanh Cong2020-11-261-1/+0
|/ | | | | | (cherry picked from commit 652b1e148301416c4e0879be1faa4be998d1ba41) Change-Id: I18607fb80beddf3f4008c7180626bd452edf52f5
* Merge "[docs]Fix wrong links in README" into stable/victoriaZuul2020-11-231-3/+3
|\
| * [docs]Fix wrong links in READMEwu.chunyang2020-11-231-3/+3
| | | | | | | | | | | | Trivial fix, victoria branch Change-Id: Ic7df798f1631b4842643fd80a2cf938f9ee63ab7
* | convert to type str to compareNguyen Thanh Cong2020-11-192-2/+2
| | | | | | | | | | | | | | because type of uuid_set[1] is string and type of master_UUID is int, so it is never equal Change-Id: I45b3e0dc1dfabd000d2db2912e45450eec9a8edf
* | Fix the race condition for creating and deleting instanceLingxian Kong2020-11-172-5/+21
| | | | | | | | | | | | | | | | Story: 2008353 Task: 41255 Change-Id: I02bb0434862819a8dbf3ecf3802c3420731b9ca7 (Cherry picked from commit 293a0764b7430e6afc89edd694003b8fb13bd5e4)
* | Do not check server status when waiting for instance removedLingxian Kong2020-11-141-6/+2
| | | | | | | | Change-Id: Idacd5b0728edd792fd3aa8206c84bc837e9a88d0
* | Merge "Fix deleting volume for instance" into stable/victoriaZuul2020-11-122-11/+16
|\ \
| * | Fix deleting volume for instanceLingxian Kong2020-11-122-11/+16
| | | | | | | | | | | | | | | | | | | | | | | | Story: 2008337 Task: 41238 Change-Id: Ifa333c30d4e24a2d693a6a5229dd1e83ad32d56d (Cherry picked from commit c02d2f74ebfc17d439e85bbe1b57ad93829bf536)
* | | Merge "Make guest agent api changes backwards compatible" into stable/victoriaZuul2020-11-102-17/+44
|\ \ \
| * | | Make guest agent api changes backwards compatibleSam Morrison2020-11-102-17/+44
| | | | | | | | | | | | | | | | | | | | Change-Id: I16303ad0b50a2265b7bd9d4736d5662f67076b61 (cherry picked from commit d39f8a154e05998ee2b5225088ea771d7edf75cc)
* | | | Merge "Fix upgrading instance datastore version" into stable/victoriaZuul2020-11-103-0/+22
|\ \ \ \ | | |/ / | |/| |
| * | | Fix upgrading instance datastore versionLingxian Kong2020-11-103-0/+22
| | | | | | | | | | | | | | | | | | | | Change-Id: I0456688c2e6c72b0312f1f79bb3e68f13fd2cb6e (cherry picked from commit 59a972b312c8d25ffb46b4a994374490731747ea)
* | | | Merge "Pass availability zone through to volume creation." into stable/victoriaZuul2020-11-105-20/+35
|\ \ \ \ | |_|/ / |/| | |
| * | | Pass availability zone through to volume creation.Sam Morrison2020-11-105-20/+35
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 (Cherry picked from commit e8287dfda9159acffc434432a31b6c0b671aa83e)
* | | Fix edit instance action return codeSam Morrison2020-11-081-1/+1
|/ / | | | | | | | | | | | | | | | | c4fd9cbe346de707281c3254bfbbda8f2759ec4d changed the response code when updating an instance from 202 -> 200. Change-Id: I0e64abd29bd54e4e45eef011417777f2352b4969 Story: 2008324 Task: 41222
* | Merge "Revert "Remove flavor API"" into stable/victoriaZuul2020-11-066-3/+75
|\ \
| * | Revert "Remove flavor API"Sam Morrison2020-11-066-3/+75
| | | | | | | | | | | | | | | | | | | | | | | | | | | Story: 2008309 Task: 41201 This reverts commit 910519127d8fb9880863eb219df68a574d00df6a. Change-Id: I77b72a965153e9583d93dee1f3a77d01a57e4ca2
* | | Use datastore manager as opposed to name to restrict actionsSam Morrison2020-11-051-2/+3
|/ / | | | | | | | | | | Change-Id: I0e00de3bc5c0ff797fc5c1a13f0275d596c12b5d Story: 2008314 Task: 41209
* | Fix restore encrypted backupLingxian Kong2020-10-308-38/+76
| | | | | | | | | | | | | | | | | | | | | | 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
* | Fix getting user port for instanceLingxian Kong2020-10-221-1/+1
|/ | | | | | Check the port type by network rather than port description. Change-Id: Id85c25c0cd3903f1b536a08ddcf69e306ce7345d
* Merge "[TrivialFix] Fix '--replica-of' argument format in docs" into ↵Zuul2020-10-221-2/+2
|\ | | | | | | stable/victoria
| * [TrivialFix] Fix '--replica-of' argument format in docsIvan Kolodyazhny2020-10-221-2/+2
| | | | | | | | | | Change-Id: I1410951c46654f1aad0e3aa2904ed006d629c41b (cherry picked from commit 6a12e596012232d5d25c027cf4ef5335c00def83)
* | fix typo in docswu.chunyang2020-10-223-4/+4
|/ | | | | | | | | replace datastore_version with datastore-version in openstack client. trivial fix Change-Id: I5b5198c41af2f6463bf18b49de6f85080c5e05f8 (cherry picked from commit 9e2515aad353c0ad6ced3558c6cc0fcd6d478fff)
* Support to get instances of a specified projectLingxian Kong2020-10-214-13/+111
| | | | | | | This patch also fixes a performance issue when the adm user is getting all the instances. Change-Id: Icd6345d6c97648cdfbfaa8d9edac7315a1409356
* Use victoria branch for CI and image buildLingxian Kong2020-10-205-9/+9
| | | | Change-Id: I8fb00ae6c0c2a400f78b97b9d0bfbf53ac297d5b
* Create floating IP in the user's projectLingxian Kong2020-10-124-11/+31
| | | | | | | | | | 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