Comment 2 for bug 1962419

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to ansible-playbooks (master)

Reviewed: https://review.opendev.org/c/starlingx/ansible-playbooks/+/831112
Committed: https://opendev.org/starlingx/ansible-playbooks/commit/d6318db7e66c2b33eeac61fc82c2db27a32d92e0
Submitter: "Zuul (22348)"
Branch: master

commit d6318db7e66c2b33eeac61fc82c2db27a32d92e0
Author: Tee Ngo <email address hidden>
Date: Sun Feb 27 18:57:42 2022 -0500

    Fix the silent failure in prestage images playbook

    In this commit:
      - Set the pipefail option in gen-image-bundles.sh script to
        prevent silent failure.
      - Add check for docker space upfront and adjust max image
        bundle size accordingly.
      - Update the way the playbook retrieves registry image list so
        that images in the registries that do not end with ".io" are
        also accounted for.

    Test Plan:
      - Test subcloud prestage with virtual subclouds where
        docker available space is less than 16G. Verify that the
        max image bundle size is 4G.
      - Test subcloud prestage with hardware subclouds where
        docker available space is more than 16G. Verify that the
        max image bundle size is 8G.
      - Create a large file under /var/lib/docker to induce out of
        space error. Verify that the prestage images playbook
        fails as expected.
      - Deploy stx-monitor app on the subcloud. Run subcloud prestage
        and verify that docker.elastic.co/beats/filebeat image is
        included in one of the image bundles.

    Closes-Bug: 1962419
    Change-Id: I50c8a6ff2855d58dd62d6959a57fb12f3c36033e
    Signed-off-by: Tee Ngo <email address hidden>