Fix upgrade failure due to missing repo containers

Commit 368b7e2b0e has introduced a bug
causing the upgrade script to fail when running the playbook
mariadb-apt-cleanup.yml. The failure happens because the repo containers
no longer exist and so the playbook fails to connect to those
containers.

This commit modifies the hosts targeted by mariadb-apt-cleanup.yml to
remove the repo containers.

Closes-Bug: 1603071
Change-Id: I9c314528e7868376b5fe249efa904b7ee6d53144
This commit is contained in:
git-harry 2016-07-14 14:39:53 +01:00 committed by Jesse Pretorius (odyssey4me)
parent e3d68c32a1
commit 6992c9d8f8
2 changed files with 6 additions and 1 deletions

View File

@ -0,0 +1,5 @@
---
fixes:
- The upgrade step to remove legacy MariaDB apt sources was failing due to
the destruction of the repo containers. This issue has now been fixed by
skipping the repo containers in this step.

View File

@ -14,7 +14,7 @@
# limitations under the License.
- name: MariaDB apt sources cleanup
hosts: "hosts:all_containers"
hosts: "hosts:all_containers:!repo_all"
max_fail_percentage: 100
gather_facts: false
user: root