neutron-server failed to build in master

Bug #1531883 reported by Lingfeng Xiong
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla
Fix Released
Undecided
Artur Zarzycki

Bug Description

I am using master branch (90e178b57ec6d83464b997d783db87da3b85e328). I try to build images with ubuntu binary.
However, neutron-server failed to build with

INFO:kolla.cmd.build:neutron-agents:Step 7 : COPY neutron-l3-agent/ /var/lib/kolla/neutron-l3-agent
INFO:kolla.cmd.build:neutron-server:/bin/sh: 1: [[: not found
INFO:kolla.cmd.build:neutron-server:

Revision history for this message
Hui Kang (huikang27) wrote :

I doubt that ubuntu container does not have binary option. So you way want to build the image with the option "-b ubuntu -t source".

Could you post the build comment you used?

- Hui

Revision history for this message
Lingfeng Xiong (xionglingfeng) wrote :

I build it with

kolla-build -t binary -b ubuntu --push --registry xxx:4000

Please follow the latest master branch. Ubuntu binary support has been merged last month.

Revision history for this message
Artur Zarzycki (azarzycki) wrote :

It looks like this bug should be distribution independent and have no impact to build neutron. It's caused by:
if [[ "$(ls /plugins)" ]]; then \
           pip --no-cache-dir install --upgrade -c requirements/upper-constraints.txt /plugins/*; \
 fi

Changed in kolla:
assignee: nobody → Artur Zarzycki (azarzycki)
status: New → In Progress
Revision history for this message
Artur Zarzycki (azarzycki) wrote :

In bash double brackets works but docker run everything with sh, so there is error notification while build. I'll change it to single.

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/265243

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

Reviewed: https://review.openstack.org/265243
Committed: https://git.openstack.org/cgit/openstack/kolla/commit/?id=1bd0d2a1f7fabfe69bbb39ab62b2b83b936a227b
Submitter: Jenkins
Branch: master

commit 1bd0d2a1f7fabfe69bbb39ab62b2b83b936a227b
Author: Artur Zarzycki <email address hidden>
Date: Fri Jan 8 14:05:37 2016 +0100

    Docker run scripts with sh which doesn't support [[

    Change-Id: I368f5b89fbfded0f173b97058061a03783ce1829
    Closes-Bug: #1531883

Changed in kolla:
status: In Progress → 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.