Do not pull image while tagging pcmk images in upgrade_tasks.
During the upgrad of pacemaker managed services there is a temporary tagging of the existing container image to the newly image we are going to upgrade to. The input during this taggins is the container image id, in contrast to what is passed during deploy tasks, which is the image name with its tag. For that reason, we can't pull the image in these cases otherwise the role will fail as it can't find an image to pull from a container image id. Change-Id: I4fdd3a05465fa0318b4ec5c079d59f4dd80fa9f2 Closes-Bug: #1814104
This commit is contained in:
parent
bd7c47b0c0
commit
58b99bf5ee
@ -298,6 +298,7 @@ outputs:
|
||||
vars:
|
||||
container_image: "{{cinder_backup_current_pcmklatest_id.stdout}}"
|
||||
container_image_latest: "{{cinder_backup_docker_image_latest}}"
|
||||
pull_image: false
|
||||
- name: Check openstack-cinder-backup cluster resource status
|
||||
pacemaker_resource:
|
||||
resource: openstack-cinder-backup
|
||||
|
@ -281,6 +281,7 @@ outputs:
|
||||
vars:
|
||||
container_image: "{{cinder_volume_current_pcmklatest_id.stdout}}"
|
||||
container_image_latest: "{{cinder_volume_docker_image_latest}}"
|
||||
pull_image: false
|
||||
when: cinder_volume_current_pcmklatest_id.stdout != ''
|
||||
- name: Check openstack-cinder-volume cluster resource status
|
||||
pacemaker_resource:
|
||||
|
@ -459,6 +459,7 @@ outputs:
|
||||
vars:
|
||||
container_image: "{{haproxy_current_pcmklatest_id.stdout}}"
|
||||
container_image_latest: "{{haproxy_docker_image_latest}}"
|
||||
pull_image: false
|
||||
when: haproxy_current_pcmklatest_id.stdout != ''
|
||||
- name: Check haproxy-bundle cluster resource status
|
||||
pacemaker_resource:
|
||||
|
@ -282,6 +282,7 @@ outputs:
|
||||
vars:
|
||||
container_image: "{{manila_share_current_pcmklatest_id.stdout}}"
|
||||
container_image_latest: "{{manila_share_docker_image_latest}}"
|
||||
pull_image: false
|
||||
when: manila_share_current_pcmklatest_id.stdout != ''
|
||||
- name: Check openstack-manila-share cluster resource status
|
||||
pacemaker_resource:
|
||||
|
@ -298,6 +298,7 @@ outputs:
|
||||
vars:
|
||||
container_image: "{{docker_image}}"
|
||||
container_image_latest: "{{docker_image_latest}}"
|
||||
pull_image: false
|
||||
# Got to check that pacemaker_is_active is working fine with bundle.
|
||||
# TODO: pacemaker_is_active resource doesn't support bundle.
|
||||
upgrade_tasks:
|
||||
|
@ -359,6 +359,7 @@ outputs:
|
||||
vars:
|
||||
container_image: "{{rabbitmq_current_pcmklatest_id.stdout}}"
|
||||
container_image_latest: "{{rabbitmq_docker_image_latest}}"
|
||||
pull_image: false
|
||||
when: rabbitmq_current_pcmklatest_id.stdout != ''
|
||||
- name: Check rabbitmq-bundle cluster resource status
|
||||
pacemaker_resource:
|
||||
|
@ -359,6 +359,7 @@ outputs:
|
||||
vars:
|
||||
container_image: "{{rabbitmq_current_pcmklatest_id.stdout}}"
|
||||
container_image_latest: "{{rabbitmq_docker_image_latest}}"
|
||||
pull_image: false
|
||||
when: rabbitmq_current_pcmklatest_id.stdout != ''
|
||||
- name: Check rabbitmq-bundle cluster resource status
|
||||
pacemaker_resource:
|
||||
|
@ -375,6 +375,7 @@ outputs:
|
||||
vars:
|
||||
container_image: "{{galera_current_pcmklatest_id.stdout}}"
|
||||
container_image_latest: "{{mysql_docker_image_latest}}"
|
||||
pull_image: false
|
||||
when: galera_current_pcmklatest_id.stdout != ''
|
||||
- name: Check galera cluster resource status
|
||||
pacemaker_resource:
|
||||
|
@ -354,6 +354,7 @@ outputs:
|
||||
vars:
|
||||
container_image: "{{redis_current_pcmklatest_id.stdout}}"
|
||||
container_image_latest: "{{redis_docker_image_latest}}"
|
||||
pull_image: false
|
||||
when: redis_current_pcmklatest_id.stdout != ''
|
||||
- name: Check redis-bundle cluster resource status
|
||||
pacemaker_resource:
|
||||
|
@ -298,6 +298,7 @@ outputs:
|
||||
vars:
|
||||
container_image: "{{ovn_dbs_current_pcmklatest_id.stdout}}"
|
||||
container_image_latest: "{{ovn_dbs_docker_image_latest}}"
|
||||
pull_image: false
|
||||
when: ovn_dbs_current_pcmklatest_id.stdout != ''
|
||||
# If ovn-dbs image is not tagged with pcmklatest, then create a new
|
||||
# tag. This could happen if the stack is upgraded without updating the stack before.
|
||||
|
Loading…
x
Reference in New Issue
Block a user