standalone upgrade job fails when upgrading mysql container
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tripleo |
Fix Released
|
Critical
|
Jose Luis Franco |
Bug Description
After docker-rm role moved to tripleo-ansible repo and was converged with container-rm role, standalone upgrades job started to fail.
2019-07-12 06:12:15 | 2019-07-12 06:12:15.824 108749 WARNING tripleoclient.
2019-07-12 06:12:16 | 2019-07-12 06:12:16.083 108749 WARNING tripleoclient.
2019-07-12 06:12:16 | 2019-07-12 06:12:16.085 108749 WARNING tripleoclient.
2019-07-12 06:12:16 | 2019-07-12 06:12:16.085 108749 WARNING tripleoclient.
2019-07-12 06:12:16 | 2019-07-12 06:12:16.087 108749 WARNING tripleoclient.
2019-07-12 06:12:16 | 2019-07-12 06:12:16.088 108749 WARNING tripleoclient.
2019-07-12 06:12:16 | 2019-07-12 06:12:16.088 108749 WARNING tripleoclient.
2019-07-12 06:12:16 | 2019-07-12 06:12:16.088 108749 WARNING tripleoclient.
2019-07-12 06:12:16 | 2019-07-12 06:12:16.247 108749 ERROR tripleoclient.
2019-07-12 06:12:16 | Traceback (most recent call last):
2019-07-12 06:12:16 | File "/usr/lib/
2019-07-12 06:12:16 | raise exceptions.
2019-07-12 06:12:16 | DeploymentError: Post Upgrade failed
2019-07-12 06:12:16 | 2019-07-12 06:12:16.279 108749 ERROR tripleoclient.
2019-07-12 06:12:18 | 2019-07-12 06:12:18.054 108749 ERROR tripleoclient.
2019-07-12 06:12:18 | 2019-07-12 06:12:18.055 108749 ERROR tripleoclient.
In task:
- when: step|int == 1
import_role:
name: tripleo-docker-rm
vars:
containers_
- mysql
- name: Check and upgrade Mysql database after major version upgrade
command: "{{ container_cli }} exec -u root mysql mysql_upgrade"
when: step|int == 2
https:/
Before that containers removing role had condition "container_cli == 'podman'":
https:/
Tripleo container-rm role that supposed to work for both docker and podman didn't have such condition:
https:/
And seems like mysql container is removed before upgrade and it's not found later.
P.S. Now we have only container-rm role in tripleo-ansible repo, where "docker-rm" it's just a link to it.
Changed in tripleo: | |
importance: | Undecided → Critical |
description: | updated |
tags: | added: ci |
Fix proposed to branch: master /review. opendev. org/670796
Review: https:/