Since Trove already supports to specify a Nova keypair when creating
instance for management convenience, devstack needs to be changed to
create the management keypair and add to Trove config file.
One extra change in this patch is to use a single config file for Trove
API, task-manager and conductor.
Change-Id: I1e6c4f4305104815bdf89b31776a4955de61bc89
Story: 2005429
Task: 30463
Without this patch, creating db instance will fail if no volume type is
provided:
Validation error: instance['volume']['type'] None is not of type 'string' (HTTP 400)
even if `cinder_volume_type` is configured in trove config file.
Change-Id: I3487e45840f72875ffd6cfb6ca75b4bbf60ab51e
During debugging, the following changes are also included:
- Support to specify an image ID to run the integration test.
- Fix the reboot function bug.
- Remove the unsuccessful restart test.
How to run integration test with dev_mode=false:
ADMIN_PASSWORD=password \
SERVICE_PASSWORD=password \
DEV_MODE=false \
/opt/stack/trove/integration/scripts/trovestack gate-tests mysql mysql
Change-Id: I31d4ee579a554f4c98f9facb9fd4b7779665a3dd
This patch add an additional possibility when checking instance status
after backup - backup may be done fast so we may get response 'ACTIVE'.
Change-Id: I93efba6aa11842ee2499550ab9293b65d75448e0
Story: #2005422
Task: #30444
Signed-off-by: Kasper Hasior <k.hasior@samsung.com>
Support to filter backups by instance_id and all_projects(admin only by
default).
Story: #2006433
Task: #36343
Change-Id: Ia483bbafb8d106a9d46ab908cf5659f06fb3b7ed
When the guest agent is running in Python 3, when doing restore, an
exception is raised:
http://paste.openstack.org/show/762068/
Change-Id: I44830465a3e436aa790eb43f0cef0c3d92dbd974
As part of Train community goal 'Support IPv6-Only Deployments and Testing'[1],
Tempest has defined the base job 'devstack-tempest-ipv6' which will
deploy services on IPv6.
Depends on commit has added the new job 'trove-tempest-ipv6-only'
which is derived from 'devstack-tempest-ipv6'.
Verification structure will be:
- 'devstack-IPv6' deploy the service on IPv6
- 'devstack-tempest-ipv6' run will verify the IPv6-only setting and listen address
- 'trove-tempest-ipv6-only' will run the tests.
Run the ipv6 job on trove gate also.
Depends-On: https://review.opendev.org/#/c/677014/
Story: #2005477
Task: #35937
[1] https://governance.openstack.org/tc/goals/train/ipv6-support-and-testing.html
Change-Id: I2ecfcef4a03ccc574d4fd3b026183342cb1fa242
Remove several variables local to plugin.sh so it is possible to
set a non default datastore by changing only the 3 most obvious ones:
TROVE_DATASTORE_TYPE
TROVE_DATASTORE_VERSION
TROVE_DATASTORE_PACKAGE
Change-Id: I782757647985bdfb859043fe68e2b4cd27569ab3
The api documentation is now published on docs.openstack.org instead
of developer.openstack.org. Update all links that are changed to the
new location.
Note that redirects will be set up as well but let's point now to the
new location.
For details, see:
http://lists.openstack.org/pipermail/openstack-discuss/2019-July/007828.html
Change-Id: I8adf15cf87ed517c8b71d86c23732b804f44aaff
Changes to get jobs working
1) After [1] devstack no longer changes the ownership of the whole
/opt/stack tree to the stack user unconditionally. Switch to the
stack user when running integration test.
2) Add bindep.txt file[2]. The default fallback file is not installed
anymore and therefore a bindep.txt file is needed to add install
additional packages.
3) Use trovestack script rather than devstack to build image so many
global variables could be used for consistency. By default, devstack
won't build image.
4) Remove the tools/test-setup.sh as it is not used any more.
5) Instance upgrade test keeps failing in CI for some reason, although
it's always passed on my local environment. In order not to block
other patches, skip the instance upgrade tests temporarily.
[1] https://review.opendev.org/203698
[2] http://lists.openstack.org/pipermail/openstack-discuss/2019-June/006888.html
Change-Id: I35e17afb9e827b1fead9d28dbf32f11ce4034a9b
The sytax used for creating users and setting passwords
was deprecated in mysql 5.7 and is not valid in mysql 8.0. [1]
Change to use CREATE USER to create users as opposed
to creating users with GRANT syntax.
Setting passwords also does not use the PASSWORD keyword
anymore. [2]
[1] https://dev.mysql.com/doc/refman/5.7/en/grant.html
[2] https://dev.mysql.com/doc/refman/5.7/en/set-password.html
Change-Id: I0387238ec434073f95dd76f13f1f40c7cec8d1eb
The service tenant deployment model means Trove creates most of the
resources(vm, volume, security group, etc.) relating to a database
instance in the Trove service tenant rather than the end user.
With this deployment model, most of the related resources behind the
scenes are invisible to the user, which is a more secure deployment
model for either private or public cloud provider.
DevStack should follow this model as it will be recommended for Trove
deployment in production.
Changes included in this patch that are necessary in order to make that
happen:
- Add 'admin' role to Trove service user(username: trove, project:
service) in DevStack.
- Create Trove management network resources for Trove service user in
DevStack.
- Enable Trove remote client configuration by default in DevStack.
- Mainly use alt_demo user in alt_demo project for integration tests,
config trove user as the admin role user in integration tests.
- Disable the module related tests(module_groups) for now because of no
use cases but need effort to fix all the failed tests in the service
tenant model.
Story: #2005445
Task: #30489
Change-Id: I2efb69d3d50344914a875b773f62a227dba2ccaf
- The job relies on python-troveclient, sometimes python-troveclient
only changes the URL sending to Trove but neither request nor
response.
- The job is hard to maintain, especially when there are changes
relating the API. The recommended way is to manually update the API
doc and add tests in trove-tox-fakemodetests job.
- Remove that trovestack subcommand as well.
Change-Id: I108203915ef79ef93bbfbb15acdb7480854878e0