Docker build hangs in the latest distro repo

Bug #1900126 reported by Sanjay K Mukherjee
14
This bug affects 1 person
Affects Status Importance Assigned to Milestone
StarlingX
Invalid
Medium
Scott Little

Bug Description

Brief Description
-----------------
1)Docker build on the latest master branch is hanging.

Attached the script for stx docker build we are using to invoke build-stx-images.sh. While building horizon logs.

2)Also Presence of only python 3 packages in the wheels tar. It causes issue while building in Python 2.7 environment.

Severity
--------
Major: System/Feature is usable but degraded

Steps to Reproduce
------------------
run the docker build script it hangs

Expected Behavior
------------------
Build should happen properly .

Actual Behavior
----------------
Build hangs

Reproducibility
---------------
100%

Revision history for this message
Sanjay K Mukherjee (sanjay6976) wrote :
tags: added: stx.build
Scott Little (slittle1)
Changed in starlingx:
assignee: nobody → Scott Little (slittle1)
Revision history for this message
Scott Little (slittle1) wrote :

aside from adjusting theusernam in a few paths, your docker_build_script_1.sh worked for me.

It seems clear you are having problems downloading your WHEELS url. DNS issue? firewall? Hard to say. I'm hoping we can solve it with a proxy

First question ... from that same machine... can you use wget or curl to download the same url

e.g.

wget http://mirror.starlingx.cengn.ca/mirror/starlingx/master/centos/latest_docker_image_build/outputs/wheels/stx-centos-stable-wheels.tar

i.e. is the problem inherent to the machine, or does it lie within python itself?

Also, if you can get stx-centos-stable-wheels.tar onto the machine via any means, can you retry with ...

export WHEELS=file://<some_path>/stx-centos-stable-wheels.tar

Revision history for this message
Ghada Khalil (gkhalil) wrote :

Marking as medium priority given it's a build issue reported by only one person. It appears Scott is already engaged to help address the issue.

Changed in starlingx:
importance: Undecided → Medium
status: New → Triaged
tags: added: stx.5.0
Revision history for this message
Scott Little (slittle1) wrote :

As to hanging, I'm also unable to reproduce your issue.

I tried substituting various bad ulrs into the WHEELS environment variable. It always exits cleanly with the errro ....

Traceback (most recent call last):
  File "/opt/loci/scripts/fetch_wheels.py", line 155, in <module>
    main()
  File "/opt/loci/scripts/fetch_wheels.py", line 129, in main
    data = get_wheels(wheels)
  File "/opt/loci/scripts/fetch_wheels.py", line 90, in get_wheels
    resp = urllib2.urlopen(r)
  File "/usr/lib64/python3.6/urllib/request.py", line 223, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/lib64/python3.6/urllib/request.py", line 526, in open
    response = self._open(req, data)
  File "/usr/lib64/python3.6/urllib/request.py", line 544, in _open
    '_open', req)
  File "/usr/lib64/python3.6/urllib/request.py", line 504, in _call_chain
    result = func(*args)
  File "/usr/lib64/python3.6/urllib/request.py", line 1346, in http_open
    return self.do_open(http.client.HTTPConnection, req)
  File "/usr/lib64/python3.6/urllib/request.py", line 1320, in do_open
    raise URLError(err)
urllib.error.URLError: <urlopen error [Errno -2] Name or service not known>
The command '/bin/sh -c /opt/loci/scripts/install.sh' returned a non-zero code: 1
Command (docker) failed, attempt 1 of 1.
Max command attempts reached. Aborting...
Failed to build stx-horizon... Aborting
Cleaning loci build container and image:
....
There were 1 failures:
stx-horizon

$echo $?
1

Revision history for this message
Sanjay K Mukherjee (sanjay6976) wrote :

Hi Scott,
Sure I will try the steps you told me to check .
And update.

Revision history for this message
Sanjay K Mukherjee (sanjay6976) wrote :

This issue was my environment issue fixed now. Issue can be closed

Revision history for this message
Sanjay K Mukherjee (sanjay6976) wrote :

This issue was my environment issue fixed now. Issue can be closed

Changed in starlingx:
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.