Remove old MariaDB apt sources

In Juno, MariaDB's apt sources used plaintext HTTP. This causes
problems for Kilo upgrades since the new apt sources use HTTPS urls.
This patch adds an upgrade playbook that removes any sources left
over from Juno that use HTTP.

Closes-Bug: 1473525

Change-Id: Ia10d9dc1eff624bca785805a910ee7835a559463
This commit is contained in:
Major Hayden 2016-03-22 08:03:09 -05:00
parent 4137c8deb2
commit 235c2b29be
3 changed files with 33 additions and 0 deletions

View File

@ -65,6 +65,13 @@ release. Log rotation processes in Kilo has been revised, and the Juno files
would conflict with the new processes.
mariadb-apt-cleanup.yml
-----------------------
In the Juno release, the apt sources for MariaDB used plaintext HTTP. This
playbook cleans up any lingering apt sources for MariaDB that use HTTP so that
the new HTTPS apt sources are used in Kilo.
nova-extra-migrations.yml
-------------------------

View File

@ -145,6 +145,8 @@ pushd ${MAIN_PATH}/playbooks
RUN_TASKS+=("${UPGRADE_PLAYBOOKS}/remove-juno-log-rotate.yml || true")
RUN_TASKS+=("${UPGRADE_PLAYBOOKS}/mariadb-apt-cleanup.yml")
RUN_TASKS+=("openstack-hosts-setup.yml")
RUN_TASKS+=("lxc-hosts-setup.yml")

View File

@ -0,0 +1,24 @@
---
# Copyright 2016, Rackspace US, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
- name: MariaDB apt sources cleanup
hosts: "all_containers"
max_fail_percentage: 100
gather_facts: false
user: root
tasks:
- name: Remove MariaDB repositories left over from Juno
shell: |
sed -i '/http:.*maria.*/d' /etc/apt/repos.d/*