Can't build images in parallel

Bug #1884824 reported by Scott Little
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
StarlingX
Triaged
Low
Scott Little

Bug Description

Brief Description
-----------------
A single use can't build stx docker images in parallel. When two jenkins jobs tried to invoke
build-stx-images.sh in parallel, building in different environments and on different branches, on failed with ...

docker: Error response from daemon: Conflict. The container name "/jenkins_update_img" is already in use by container "1932b698d2009848fd9f8912467d9c637c72b9bd45d212ac10f7b0aec2f1cebd". You have to remove (or rename) that container to be able to reuse that name.

The issue is the use of "${USER}_update_img" as a name for a temporary image. It is not unique when a single user is building in parallel. Perhaps add the pid to the image name like this ..."${USER}_$$_update_img" ... to make it unique.

Severity
--------
Major. Random image build failures for jenkins, or other power users

Steps to Reproduce
------------------
A single user sets up two independent build environments on the same system.
Both run build-stx-images.sh in parallel.

Expected Behavior
------------------
images build

Actual Behavior
----------------
One og the builds fails sporadically.

Reproducibility
---------------
25%

System Configuration
--------------------
N/A

Branch/Pull Time/Commit
-----------------------
2020-06-20

Last Pass
---------
2020-06-19

Timestamp/Logs
--------------
TBD

Test Activity
-------------
Build

Workaround
----------
Do not build in parallel.

Tags: stx.build
Revision history for this message
Ghada Khalil (gkhalil) wrote :

Low priority - serial image builds work

tags: added: stx.build
Changed in starlingx:
importance: Undecided → Low
status: New → Triaged
description: updated
Changed in starlingx:
assignee: nobody → Scott Little (slittle1)
description: updated
Revision history for this message
Scott Little (slittle1) wrote :

Logs

Successfully tagged jenkins/stx-barbican:ussuri-centos-stable-build
docker: Error response from daemon: Conflict. The container name "/jenkins_update_img" is already in use by container "2932b698d2009848fd9f8912467d9c637c72b9bd45d212ac10f7b0aec2f1cebd". You have to remove (or rename) that container to be able to reuse that name.
See 'docker run --help'.
Failed to add apache workaround for stx-barbican... Aborting

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.