summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Fix trove guest agent logrotatestable/wallabyLingxian 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
* Run reset master when setting up mysql replicasLingxian Kong2021-08-033-23/+43
| | | | | | | | | | | * Only run 'FLUSH PRIVILEGES;' when needed * Fix SqlClient contextmanager initialization Story: 2009091 Task: 42921 Change-Id: I05a07402388d214dc95071be709191f63af49411 (cherry picked from commit a12b2be7060f6a98d5ff52a0823b40f012a31449)
* Add periodic task to remove postgres archived wal filesLingxian Kong2021-07-2718-36/+332
| | | | | | | | | | | | | * 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)
* Merge "Fix rebuild instances in replication cluster" into stable/wallabyZuul2021-07-131-2/+31
|\
| * Fix rebuild instances in replication clusterLingxian Kong2021-07-121-2/+31
| | | | | | | | | | | | | | Story: 2009043 Task: 42806 Change-Id: I3499956a7ba0a5d0ab4a49f5938ce038446d91b7 (cherry picked from commit f0bf45ea120f5b22be50fdc0f588c431fea0e8f5)
* | 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-091-0/+1
| | | | | | | | iptables-persistent is needed to persists the iptable settings inside guest instance. Change-Id: I96bb9f948dda22f50ec2a4fb5710ad9778e16b9d (cherry picked from commit 4ce59ace17612a13bc65aea3844b4e4a187288da)
* Use bridge network for db containerLingxian Kong2021-06-2211-11/+71
| | | | | | | | | | - Changed the network mode of database container to "bridge" and exposed the service ports. - Use socket file to connect with the database. - Upgrade the backup container image for postgressql. Change-Id: Id5b119f8a474befc3a2cd6e061bbffc4ae5f7bb6 (cherry picked from commit b050996b9f6df738a0f68ac36a5b5f17f8bb2bc2)
* Merge "Fix backup using customized container image registry" into stable/wallabyZuul2021-06-223-1/+10
|\
| * Fix backup using customized container image registryLingxian Kong2021-06-213-1/+10
| | | | | | | | | | | | | | Change-Id: Ib35743e1c315bb7fd4d0fbd99eaa409a4bf5c792 Story: 2008996 Task: 42658 (cherry picked from commit 6d2ab68a8aa0406ee6320e778b8e290827c9e730)
* | Add float types to load_items to support configuration parameters of float typechimeng2021-06-211-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)
* Fix periodic public image jobLingxian Kong2021-05-041-6/+2
| | | | Change-Id: I2f6acb879004feb4d935ba81e3dabf6e54ec2ab4
* 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)
* Merge "Change settings for stable/wallaby" into stable/wallabyZuul2021-04-147-9/+9
|\
| * Change settings for stable/wallabyLingxian Kong2021-03-287-9/+9
| | | | | | | | Change-Id: Ib00bfc636cf47256128c1169127979d14f37f86a
* | Fix test_create_inactive_datastore_by_adminwallaby-em15.0.0.0rc215.0.0Lingxian Kong2021-03-271-1/+1
|/ | | | | Change-Id: I7d8a23a2b015d3eead2eefb5df158e950fff0943 (cherry picked from commit e4b70cf73a7e8069f36273690e630022dbabab67)
* Update TOX_CONSTRAINTS_FILE for stable/wallabyOpenStack Release Bot2021-03-221-1/+1
| | | | | | | | | | | | Update the URL to the upper-constraints file to point to the redirect rule on releases.openstack.org so that anyone working on this branch will switch to the correct upper-constraints list automatically when the requirements repository branches. Until the requirements repository has as stable/wallaby branch, tests will continue to use the upper-constraints list on master. Change-Id: Ib56ef0e030243abdc2c5d961fd9a0a8665a07006
* Update .gitreview for stable/wallabyOpenStack Release Bot2021-03-221-0/+1
| | | | Change-Id: I03ef3a3331c69224a9587a31b8a8ce7bcc820671
* doc: Restore backup from other regions15.0.0.0rc1Lingxian Kong2021-02-221-2/+41
| | | | Change-Id: Id9d9ea26d2a9cdc45d9e84764a49baa46d052281
* Merge "Support to restore backup from remote location"Zuul2021-02-1815-65/+329
|\
| * Support to restore backup from remote locationLingxian Kong2021-02-1815-65/+329
| | | | | | | | | | | | | | | | In multi-region deployment with geo-replicated Swift, the user can restore a backup in one region by manually specifying the original backup data location created in another region. Change-Id: Iefef3bf969163af707935445bc23299400dc88c3
* | Merge "Change the default agent_heartbeat_expiry to 90s"Zuul2021-02-181-1/+1
|\ \
| * | Change the default agent_heartbeat_expiry to 90sLingxian Kong2021-02-181-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
* | Remove the incorrect log for creating replication clusterLingxian Kong2021-02-181-1/+0
|/ | | | Change-Id: Ie370eff134ae0e1394d0b03049a46a125d0db71a
* Do not override RESTART_REQUIRED service statusLingxian Kong2021-02-105-43/+138
| | | | | | | | | | | | 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
* Doc: custom container image registryLingxian Kong2021-02-091-0/+31
| | | | Change-Id: I6a144fbf5d79c29dc204483bb7403ea850983a73
* Support custom container registry for database imagesLingxian Kong2021-02-033-0/+36
| | | | | | | | Currently, trove guest agent is pulling container images from docker hub, it's impossible to use private container registry, this patch is adding that support. Change-Id: I3d14810b43acbf5d2fe6afcc138d476e366042f4
* Stop using pip-and-virtualenv diskimage elementLingxian Kong2021-01-274-3/+5
| | | | | | | | | | 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
* update ci job descriptionlikui2021-01-191-1/+1
| | | | | | update publish-trove-guest-image-ubuntu-bionic-dev description Change-Id: Ic5a977cf629ddc8ac53734881b8d14f732c5b954
* add python37 setup.cfglikui2021-01-121-0/+1
| | | | | | | | | 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
* Merge "remove py37"Zuul2021-01-051-1/+0
|\
| * remove py37likui2020-12-261-1/+0
| | | | | | | | | | | | | | | | | | 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
* | remove unicode from codelikui2021-01-039-53/+53
| | | | | | | | | | Implements: blueprint remove-unicode Change-Id: Ib7eb517f404fe87b880f7091366721d2cfc5cdf8
* | [goal] Deprecate the JSON formatted policy fileGhanshyam Mann2020-12-268-16/+54
|/ | | | | | | | | | | | | | | | | | As per the community goal of migrating the policy file the format from JSON to YAML[1], we need to do two things: 1. Change the default value of '[oslo_policy] policy_file'' config option from 'policy.json' to 'policy.yaml' with upgrade checks. 2. Deprecate the JSON formatted policy file on the project side via warning in doc and releasenotes. Also replace policy.json to policy.yaml ref from doc and tests. [1]https://governance.openstack.org/tc/goals/selected/wallaby/migrate-policy-format-from-json-to-yaml.html Change-Id: I790409da69df8479ad2fe152b15c32ba45067c23
* Merge "update cliff to 3.5.0 support python3.8"Zuul2020-12-151-1/+1
|\
| * update cliff to 3.5.0 support python3.8likui2020-12-141-1/+1
| | | | | | | | | | | | [1] https://pypi.org/project/cliff/3.5.0/ Change-Id: I96f331d0978d2f8ace5d48a3dc801a9a3ab38a33
* | Merge "Support instance operating_status"Zuul2020-12-1419-275/+319
|\ \ | |/ |/|
| * Support instance operating_statusLingxian Kong2020-12-0919-275/+319
| | | | | | | | | | | | | | Added a new field ``operating_status`` for the instance to show the actual operational status of user's database. Change-Id: I7c52cff0ec48289fe1a260e99e02a506d4f8ddec
* | Merge "Disable some tempest tests that always failed in CI"Zuul2020-12-111-5/+3
|\ \
| * | Disable some tempest tests that always failed in CILingxian Kong2020-12-091-5/+3
| |/ | | | | | | | | | | | | The same with trove-tempest-plugin CI settings: https://github.com/openstack/trove-tempest-plugin/blob/355a351fccb286bf7d9025829e5362a4f0f6a223/.zuul.yaml#L102 Change-Id: I971c50007c580a077e5e7e0c7fc5086492f3b883
* | Do not rely on description for checking port typeLingxian Kong2020-12-091-1/+1
|/ | | | | | Use port network ID is more reasonable. Change-Id: I219bf3db15124e67cd65c7d7f686ba73573e2761
* Disable openstack-lower-constraints-jobsLingxian Kong2020-12-091-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
* Merge "Add Neutron extension check before calling some APIs"Zuul2020-12-071-1/+28
|\
| * Add Neutron extension check before calling some APIsLingxian Kong2020-12-041-1/+28
| | | | | | | | | | | | | | Story: 2008415 Task: 41356 Change-Id: I5c1717892a167d119e596a11ae8d41e4edc1d27c
* | Update doc8 versionlikui2020-12-062-2/+2
| | | | | | | | | | | | | | | | doc8 only supports python version less than 3.4 [1] https://pypi.org/project/doc8/0.8.0/ Change-Id: Icd49aed78a9f15d07e12ffc790241435307577e7
* | Merge "use HTTPStatus instead of http.client"Zuul2020-12-031-4/+6
|\ \
| * | use HTTPStatus instead of http.clientlikui2020-12-031-4/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | We don't need an HTTP client for this, we only need status codes. Just load that instead. https://docs.python.org/3/library/http.html Change-Id: I2be70b395877ede3f594232a19cab4b83835dcc5
* | | Merge "Fixup zuul nodetype for nested"Zuul2020-12-031-1/+1
|\ \ \
| * | | Fixup zuul nodetype for nestedSam Morrison2020-12-021-1/+1
| | |/ | |/| | | | | | | | | | | | | Need tempest group to get tempest jobs to work Change-Id: I3d8cfd57278ba426067f0631d63c02f2b73dcbf4