As per victoria cycle testing runtime and community goal[1]
we need to migrate upstream CI/CD to Ubuntu Focal(20.04).
Fixing:
- bug#1885825
Fix user creation with GRANT in MySQL 8.0(Ubuntu Focal)
Ubuntu Focal (20.04) has mysql 8.0 and with mysql 8.0 there
is no implicit user creation with GRANT. We need to
create the user first before using GRANT command.
Story: #2007865
Task: #40212
Closes-Bug: #1885825
[1] https://governance.openstack.org/tc/goals/selected/victoria/migrate-ci-cd-jobs-to-ubuntu-focal.h>
Change-Id: I7feffa300fea7d86749143aae5fb547beb54406d
Add simple script to setup mysql and postgresql databases,
this script can be run by users during testing and will be
run by CI systems for specific setup before running unit tests.
This allows us to change in project-config the python-db jobs to
python-jobs since python-jobs will call this script initially.
See also http://lists.openstack.org/pipermail/openstack-dev/2016-November/107784.html
Needed-By: Ie77f7d0ecd78e513ad7beb0acd6bf173703eeaed
Change-Id: I6e18d780c14bd93c78c77220b4a1debdc88a19c9