undercloud/mysql: remove useless task for upgrade
This task is only useful in Rocky, when upgrading an non containerized undercloud from Queens to a containerized undercloud on Rocky. Therefore, the parameter UndercloudUpgrade should not have been backported in : I2399a72709d240f84e3463c5c3b56942462d1e5c Closes-Bug: #1787010 Change-Id: I2b5690dfd3662837b28c9801a0f37e785547f813
This commit is contained in:
parent
8d674d2526
commit
fdcdb90f76
|
@ -250,19 +250,6 @@ outputs:
|
|||
tags: validation
|
||||
- when: step|int == 2
|
||||
block:
|
||||
# https://bugs.launchpad.net/tripleo/+bug/1753247
|
||||
- name: Rename old neutron database to ovs_neutron
|
||||
shell: >
|
||||
if [ -d /var/lib/mysql/neutron ] ; then
|
||||
mysql -e "CREATE DATABASE IF NOT EXISTS \`ovs_neutron\`;"
|
||||
for table in `mysql -B -N -e "SHOW TABLES;" neutron`
|
||||
do
|
||||
mysql -e "RENAME TABLE \`neutron\`.\`$table\` to \`ovs_neutron\`.\`$table\`"
|
||||
done
|
||||
mysql -e "DROP DATABASE \`neutron\`;"
|
||||
fi
|
||||
become: true
|
||||
when: {get_param: UndercloudUpgrade}
|
||||
- name: Stop and disable mysql service
|
||||
when: mariadb_enabled|bool
|
||||
service: name=mariadb state=stopped enabled=no
|
||||
|
|
Loading…
Reference in New Issue