May resulting incomplete intermediate or final image when building rabbitmq

Bug #1605501 reported by Zhijiang Hu on 2016-07-22
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla
Medium
Unassigned
Mitaka
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)

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
Zhijiang Hu (hu-zhijiang) wrote :

BTW, this issue also affects stable/mitaka branch.

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) on 2016-10-13
Changed in kolla:
milestone: newton-rc2 → ocata-1
Changed in kolla:
milestone: ocata-1 → ocata-2
Changed in kolla:
milestone: ocata-2 → ocata-3
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  Edit
Everyone can see this information.

Other bug subscribers