summaryrefslogtreecommitdiff
path: root/integration
Commit message (Collapse)AuthorAgeFilesLines
* Drop bionic supportwu.chunyang2022-08-124-15/+5
| | | | | | | | drop the support of bionic. ref: https://governance.openstack.org/tc/reference/runtimes/zed.html Change-Id: I6dd126d49196af30bd5578c6aefa90fff9f1d5c1
* Increase guest image size to 5Gwu.chunyang2022-08-121-1/+1
| | | | | | | | | trovestack built image failed due to the less disk space. this ps increases the image size from 3 to 5G ref: https://zuul.opendev.org/t/openstack/build/fedba359fbc8427c886ff2b2f0767d37/console Change-Id: I7e48d74e2e03fe168a185949b162b3dfcc6fb7d5
* Add ubuntu focal support for trove guest imagewu.chunyang2022-04-193-4/+14
| | | | | | story: 2009996 task: 45072 Change-Id: Ib3613119dc136c8a0d96a27c52e0bc1874065775
* Add image build test on Centos8 streamwu.chunyang2022-04-174-3/+18
| | | | | | build image on Centos8 stream Change-Id: I759d482430eaf0e9304986c9fad047cbd44c09ca
* WIP: add guest image build checkwu.chunyang2022-04-131-1/+1
| | | | | | This PR adds trove-guest-image-build check in ci. Change-Id: If512cb7c094d14850555215d412b8e7b418c35ce
* Fix trove guest agent logrotateLingxian 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 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
* Use bridge network for db containerLingxian Kong2021-06-221-1/+1
| | | | | | | | | - 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
* 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
* Merge "Improve trove guest image build script"Zuul2020-11-295-25/+58
|\
| * Improve trove guest image build scriptLingxian Kong2020-11-265-25/+58
| | | | | | | | | | | | | | Also using ubuntu-minimal to decrease the image size a little bit, from 963M to 815M in the test. Change-Id: I6d70add380f4b61ebe89c72765612d8cb6127ccb
* | Remove the experimental claim of dev_mode falseLingxian Kong2020-11-271-2/+1
| | | | | | | | | | | | I am using the guest image built by dev_mode=false for some time, it's stable. Change-Id: Ic74d10647f82044038ea9a4d99cb9a0320459675
* | Support --image-tags for trove-manager datastore_version_update commandLingxian Kong2020-11-261-1/+2
|/ | | | | | | | | image-tags was introduced in commit 1d24b65 but the implementation was backward incompatible for the CLI `trove-manager datastore_version_update`. This patch changes that by supporting an optional parameter `--image-tags`. Change-Id: I583c296f15a453bdfadf10de5c678ac483cbd4dd
* Add 'version' to datastore versionLingxian Kong2020-11-171-5/+2
| | | | | | | | | | | | | This patch is part of story 2008358 implementation. 1. DB schema change 2. trove-manage datastore_version_update subcommand change 3. API change for creating and listing datastore version. Story: 2008358 Task: 41264 Change-Id: I8069e6f4b972497f2b8be540ea35047d5fb2f9a5
* Support mysql 8.0Lingxian Kong2020-10-231-2/+4
| | | | | | | | | | | | | | | | | | | | * 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
* Remove six usage and basestring checkwangzihao2020-10-162-2/+0
| | | | | | | | | | | | | | | | | | 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
* Fix the image CI jobLingxian Kong2020-10-101-1/+1
| | | | Change-Id: I08a3a5873bf883c453e86e662296f7d0c7fbaf49
* Image tags support in datastore versionLingxian Kong2020-10-091-2/+2
| | | | Change-Id: I0e51d08515c121e3a7b0e82b6e4c4161bb4fbc4a
* Install pip3 for image buildLingxian Kong2020-09-221-1/+1
| | | | Change-Id: I3117cc56aa0edf2f4345784291ae8294a8ffc07a
* Merge "Use sudo when deleting image cache dir"Zuul2020-09-041-1/+1
|\
| * Use sudo when deleting image cache dirLingxian Kong2020-09-041-1/+1
| | | | | | | | Change-Id: I8a9fd906d6b70dfad1c38e751cadc004a5aeb13f
* | Merge "Remove six.PY3"Zuul2020-09-042-9/+2
|\ \ | |/ |/|
| * Remove six.PY3likui2020-09-032-9/+2
| | | | | | | | | | | | | | The Python 2.7 Support has been dropped since Ussuri. So remove hacking rules for compatibility between python 2 and 3. Change-Id: Id3fd78b5d3e21579975ea0d0fc65e4f66ea4582e
* | Use pip3 instead of pip in trovestackLingxian Kong2020-09-021-1/+1
|/ | | | Change-Id: Icbbfaa07a699e1280b0d39dfbae87d7468cbb260
* Allow to specify root password when building guest imageLingxian Kong2020-08-123-0/+22
| | | | | | For testing purpose. Change-Id: I8193f4262156ed9b0784666f5981ebd6df4d525b
* Support to rebuild instance by adminLingxian Kong2020-08-061-0/+1
| | | | Change-Id: I48f8c6f997daeb6d82ff62b3325277d86fee2147
* Support image type for guest image buildingLingxian Kong2020-06-121-1/+3
| | | | Change-Id: I8d640c47f00446d7f912ece9892b17585cde3add
* Stop to use the __future__ module.Hervé Beraud2020-06-021-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | The __future__ module [1] was used in this context to ensure compatibility between python 2 and python 3. We previously dropped the support of python 2.7 [2] and now we only support python 3 so we don't need to continue to use this module and the imports listed below. Imports commonly used and their related PEPs: - `division` is related to PEP 238 [3] - `print_function` is related to PEP 3105 [4] - `unicode_literals` is related to PEP 3112 [5] - `with_statement` is related to PEP 343 [6] - `absolute_import` is related to PEP 328 [7] [1] https://docs.python.org/3/library/__future__.html [2] https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html [3] https://www.python.org/dev/peps/pep-0238 [4] https://www.python.org/dev/peps/pep-3105 [5] https://www.python.org/dev/peps/pep-3112 [6] https://www.python.org/dev/peps/pep-0343 [7] https://www.python.org/dev/peps/pep-0328 Change-Id: I0adf51fb6a54c323c3d7a26ea62c23184a99933d
* Trove doc and CILingxian Kong2020-05-281-1/+1
| | | | Change-Id: I49bd6c824b837d22d9f3945a3e8c2343c831b352
* Datastore containerizationLingxian Kong2020-05-2759-1012/+242
| | | | | | | | | | | | | Significant changes: * Using docker image to install datastore. * Datastore image is common to different datastores. * Using backup docker image to do backup and restore. * Support MariaDB replication * Set most of the functional jobs as non-voting as nested virtualization is not supported in CI. Change-Id: Ia9c97a63a961eebc336b70d28dc77638144c1834
* Fix CI jobLingxian Kong2020-05-258-25/+30
| | | | | | | | | | * Fix pep8: ambiguous variable name * Install Python 3.7 for trove guest image. oslo.concurrency requires python 3.6 or newer. See https://bugs.launchpad.net/tripleo/+bug/1861803 * Mark tempest job non-voting temporarily because of some tempest bugs. Change-Id: I6d316779cc7220a855ce187437056b667bbe1f75
* Add python-troveclient in requirements.txtLingxian Kong2020-03-152-24/+12
| | | | Change-Id: I2bd0d81171df85c05423e19ab2e4afa82fcf880e
* Improve the function testsLingxian Kong2020-01-2895-1958/+95
| | | | | | | | | | | | | | | - Execute test groups in serial to make sure no more than 2 database instance are created at the same time. - Remove some unneccesary tests - Remove unneeded datastore, e.g. 'Test_Datastore_1' - Remove unsupported trovestack subcommands - Move unsupported DIB elements to the 'deprecated-elements' folder - Decrease default value of 'agent_call_high_timeout' to 5min - Add initial_deplay for pooling task - Use socket file to connect with database instead of using localhost IP Change-Id: Ie5030a671fbeb453eafa6cbe04e08da7b52e33c9
* Support PostgreSQL 12Lingxian Kong2019-12-183-37/+7
| | | | Change-Id: Ic1d4982a479c2154d7ddcc807d863e2a37fea506
* Fix Trove periodic CI jobsLingxian Kong2019-12-081-2/+2
| | | | Change-Id: I11456aaeb2d417dbae6bdb0e51944aa122c521e0
* Move the iptable change from trovestack to devstackLingxian Kong2019-12-081-13/+0
| | | | Change-Id: I6e10744f86f19f3c29babc07fda77936c95022ff
* Merge "Support pip3 and run on guest-agent service for redis"Zuul2019-12-062-1/+12
|\
| * Support pip3 and run on guest-agent service for redisNguyen Van Trung2019-12-052-1/+12
| | | | | | | | | | | | | | | | | | | | This patch will solve some following items: - Support python3/ pip3 - Permit redis is running with guest-agent service Tested with standalone, replicate and cluster successfully. Change-Id: I81b72fae1c31ce2995232b52460d0ad0d6f894be
* | Mark CI job trove-scenario-mariadb-single votingLingxian Kong2019-12-061-0/+1
| | | | | | | | | | | | Fix the current CI issue as well. Change-Id: I7daafa68a03a3bf88c3651b6cab8c58cf5256b29
* | Support pip3-virtualenv during image creationNguyen Van Trung2019-12-051-0/+1
|/ | | | | | | | | | | | This patch will auto-process with `pip-and-virtualenv` element when use `guest-agent` in python3. We also can add this element in disk-image-create cli which instead of this patch to fix following issue: 2019-09-12 09:19:58.674 | + python3 -m virtualenv /opt/guest-agent-venv 2019-09-12 09:19:58.752 | /usr/bin/python3: No module named virtualenv Change-Id: I21090320ba7396979cee31431de7198150dd763e
* Fix mariadb CI - trove-scenario-mariadb-singleLingxian Kong2019-12-053-4/+5
| | | | | | | | | - Trove supports MariaDB 10.4 - From MariaDB 10.3, Mariabackup is used instead of Percona XtraBackup for backup functionality - Some log improvements Change-Id: Ibaa6fd7273b98451097b32fb6b881008a236be9f
* Build reusable Trove guest image for devLingxian Kong2019-12-0529-443/+12
| | | | | | | | | | | | | | | | When building the guest image for dev_mode=true, the controller IP address is injected to the image in order for the guest-agent to download Trove code during initialization. As a result, we have to build guest image each time in the Trove CI because the image build relies on the devstack host IP address. If we could remove the dependency, we can build the image(in devmode=true) for a specific datastore once and use that image for all related CI jobs, which could save some time for Trove CI. Fix the current CI issue as well. Change-Id: If23f4f179a6ab72cfb35e4c45d55142fedb76498
* Support to specify branch when building the imageLingxian Kong2019-10-104-8/+7
| | | | | | | | | | - Explicity specify branch name for building non-dev image - Use branch name for building dev image in devstack - Update the doc Candidate backport for stable/train Change-Id: I4d2fe38fac34c75b42234fa7a20aba51e6dc1c4e
* Remove all the resources when the Nova VM creation failedLingxian Kong2019-10-091-39/+27
| | | | | | | | | Backport candidate for stable/train Story: 2006664 Task: 36926 Change-Id: If0991e0cef40ca78752fcd509d8438e90c9557bc
* Use correct Swift credential for instance backupLingxian Kong2019-10-021-1/+1
| | | | | | | | | | | DevStack is deploying Trove in service tenant model, for swift backed instance backup, the swift container should be transparent to the end users. Story: 2006647 Task: 36883 Change-Id: I5859f4c9911fc2c129c8f23611c6607044fbc145
* Merge "Some clean up"Zuul2019-09-201-3/+0
|\
| * Some clean upLingxian Kong2019-09-201-3/+0
| | | | | | | | | | | | | | | | - Remove the unused variables in trovestack.rc which leads to module not found error. - Remove non-voting gate job Change-Id: I583945addb6cb0aa442db1c9d9c6ce3cb57793f7
* | Merge "Fix issue with pip2 command and update pip3 for mongodb"Zuul2019-09-193-3/+3
|\ \ | |/ |/|
| * Fix issue with pip2 command and update pip3 for mongodbNguyen Van Trung2019-09-123-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | This patch will fix following issue logs: 2019-09-02 15:11:13.121 | dib-run-parts Running /tmp/in_target.d/install.d/25-trove-mongo-dep 2019-09-02 15:11:13.124 | + pip2 install pymongo 2019-09-02 15:11:13.125 | /tmp/in_target.d/install.d/25-trove-mongo-dep: line 9: pip2: command not found And move on pip3. Change-Id: I7cf16820091a0f977b41e3222abb866a9ae66166
* | Add image build experimental CI jobLingxian Kong2019-09-172-40/+41
|/ | | | | | Story: 2006553 Task: 36637 Change-Id: I3d909082fb887b24ed25c93e11792031d5053b1e