Able to trigger `Unknown instruction: &&`

Bug #1665207 reported by Joshua Harlow
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla
Fix Released
Medium
Martin André

Bug Description

At godaddy we in our template overrides set the following.

{% set base_yum_centos_repo_keys_override = [] %}

In the kolla code this seems to trigger an issue where the following does not take that customization into account.

https://github.com/openstack/kolla/blob/master/docker/base/Dockerfile.j2#L111-L117

Basically `{%- if base_centos_yum_repo_keys|length ==0 %}RUN {% else %} && {% endif -%}` is never going through the else path, because the override is not taken into consideration here (even though its taken into consideration in the {% for key in base_centos_yum_repo_keys | customizable('yum_centos_repo_keys') %} prior to that. This causes the formed docker file to be invalid and docker to later puke.

Revision history for this message
Joshua Harlow (harlowja) wrote :
Revision history for this message
Jeffrey Zhang (jeffrey4l) wrote :

could u push a fix?

tags: added: low-hanging-fruit
Mike Chen (chenn2)
Changed in kolla:
assignee: nobody → Chen (chenn2)
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/457121

Changed in kolla:
status: New → In Progress
Revision history for this message
Martin André (mandre) wrote :
Revision history for this message
Mike Chen (chenn2) wrote :

I believe this issue has already been addressed by another developer here (https://review.openstack.org/#/c/454608/). So please consider closing this bug report. Regards.

Changed in kolla:
assignee: Chen (chenn2) → nobody
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on kolla (master)

Change abandoned by Chen (<email address hidden>) on branch: master
Review: https://review.openstack.org/457121
Reason: already fixed

Martin André (mandre)
Changed in kolla:
status: In Progress → Fix Committed
assignee: nobody → Martin André (mandre)
importance: Undecided → Medium
Changed in kolla:
status: Fix Committed → Fix Released
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.