Merge "Fix cinder-backup image wrangling on update"

This commit is contained in:
Zuul 2018-05-17 14:39:05 +00:00 committed by Gerrit Code Review
commit 5805daedcf

View File

@ -218,8 +218,6 @@ outputs:
set_fact:
docker_image: {get_param: DockerCinderBackupImage}
docker_image_latest: *cinder_backup_image_pcmklatest
- name: Pull latest Cinder-Backup images
command: "docker pull {{docker_image}}"
- name: Get previous Cinder-Backup image id
shell: "docker images | awk '/cinder-backup.* pcmklatest/{print $3}' | uniq"
register: cinder_backup_image_id
@ -235,6 +233,8 @@ outputs:
shell: "docker rmi -f {{cinder_backup_image_id.stdout}}"
when:
- cinder_backup_image_id.stdout != ''
- name: Pull latest Cinder-Backup images
command: "docker pull {{docker_image}}"
- name: Retag pcmklatest to latest Cinder-Backup image
shell: "docker tag {{docker_image}} {{docker_image_latest}}"
# Got to check that pacemaker_is_active is working fine with bundle.