diff options
author | Lingxian Kong <anlin.kong@gmail.com> | 2020-10-13 23:51:46 +1300 |
---|---|---|
committer | Lingxian Kong <anlin.kong@gmail.com> | 2020-10-23 23:50:39 +1300 |
commit | d1af33f17b0994ac1d0ca5acca91f2f29bc82ce9 (patch) | |
tree | 03d0da87c98820a21b1d4c87523df90410bf3e89 /devstack | |
parent | 4df3dceeeee8d92f1c876effa4375f88e3249bca (diff) | |
download | trove-d1af33f17b0994ac1d0ca5acca91f2f29bc82ce9.tar.gz |
Support mysql 8.0
* 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
Diffstat (limited to 'devstack')
-rw-r--r-- | devstack/plugin.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/devstack/plugin.sh b/devstack/plugin.sh index 2a753f4b..3d45bf84 100644 --- a/devstack/plugin.sh +++ b/devstack/plugin.sh @@ -476,7 +476,10 @@ function create_guest_image { glance_image_id=$(openstack --os-region-name RegionOne --os-password ${SERVICE_PASSWORD} \ --os-project-name service --os-username trove \ image create ${image_name} \ - --disk-format qcow2 --container-format bare --property hw_rng_model='virtio' --file ${image_file} \ + --disk-format qcow2 --container-format bare \ + --tag trove \ + --property hw_rng_model='virtio' \ + --file ${image_file} \ -c id -f value) echo "Register the image in datastore" |