A stopped daemon should have the correct target_name, and we should ensure
that the host has an up-to-date image, so that when it does start it
comes up with the new image. If it has an old image name, we should
redeploy as per usual.
Signed-off-by: Sage Weil <sage@redhat.com>
self._update_upgrade_progress(done / len(daemons))
+ if d.status <= 0:
+ if d.container_image_name == target_name:
+ self.log.debug('daemon %s is stopped but has correct image name' % (d.name()))
+ continue
if not self._wait_for_ok_to_stop(d):
return None
self.log.info('Upgrade: Redeploying %s.%s' %