May resulting incomplete intermediate or final image when building rabbitmq

Bug #1605501 reported by Zhijiang Hu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla
Invalid
Medium
Unassigned
Mitaka
Invalid
Medium
Unassigned

Bug Description

In docker/rabbitmq/Dockerfile.j2, we have step 3 as:

RUN yum -y install \
        hostname \
        https://github.com/rabbitmq/rabbitmq-server/releases/download/rabbitmq_v3_5_7/rabbitmq-server-3.5.7-1.noarch.rpm \
    && yum clean all

If we failed to get https://github.com/rabbitmq/rabbitmq-server/releases/download/rabbitmq_v3_5_7/rabbitmq-server-3.5.7-1.noarch.rpm, the whole command in step 3 still returns 0 as successfull which lead us to the step 4. That will resulting incomplete intermediate cache or even incomplete final image of rabbitmq.

The correct method to resolve this problem is doing like the following:

RUN yum -y install hostname \
    && yum -y install https://github.com/rabbitmq/rabbitmq-server/releases/download/rabbitmq_v3_5_7/rabbitmq-server-3.5.7-1.noarch.rpm \
    && yum clean all

Changed in kolla:
assignee: nobody → Zhijiang Hu (hu-zhijiang)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla (master)

Fix proposed to branch: master
Review: https://review.openstack.org/345872

Changed in kolla:
status: New → In Progress
Changed in kolla:
importance: Undecided → High
milestone: none → newton-3
Revision history for this message
Zhijiang Hu (hu-zhijiang) wrote :

BTW, this issue also affects stable/mitaka branch.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on kolla (master)

Change abandoned by Zhijiang Hu (<email address hidden>) on branch: master
Review: https://review.openstack.org/345872

Changed in kolla:
milestone: newton-3 → newton-rc1
Changed in kolla:
milestone: newton-rc1 → newton-rc2
Steven Dake (sdake)
Changed in kolla:
milestone: newton-rc2 → ocata-1
Changed in kolla:
milestone: ocata-1 → ocata-2
Changed in kolla:
milestone: ocata-2 → ocata-3
Revision history for this message
Christian Berendt (berendt) wrote :

Closing as invalid. Today we use the macros.install_packages approach to install packages.

Changed in kolla:
assignee: Zhijiang Hu (hu-zhijiang) → nobody
status: In Progress → Triaged
importance: High → Medium
status: Triaged → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.