Skip to content

Make containers fails due to internet access issues #3

@nitishkrishna

Description

@nitishkrishna

Issue Seen:

make containers command fails with below error:

TASK [contrail-build-dockers : Build container base] ***************************************************************************************************************************************************************************************
fatal: [localhost]: FAILED! => {
"changed": true,
"cmd": "./build.sh base",
"delta": "0:09:39.322816",
"end": "2018-02-07 11:22:08.449583",
"rc": 1,
"start": "2018-02-07 11:12:29.126767"
}
STDOUT:
INFO: Target platform: centos:7.4.1708
INFO: Contrail version: 10000-1
INFO: OpenStack version: ocata
INFO: OpenStack subversion (minor package version): 3
INFO: Contrail registry: 172.17.0.1:6666
INFO: Contrail repository: http://172.17.0.1:6667/
INFO: Contrail container tag: 10000-1-centos7-ocata
INFO: Docker version: 17.03.1-ce
INFO: starting build from /root/contrail-container-builder/containers with relative path base
INFO: prepare Contrail repo file in base image
INFO: base/contrail.repo and it's checksum base/contrail.repo.md5 are exist, check them
INFO: content of base/contrail.repo is not changed
INFO: test/test/contrail.repo and it's checksum test/test/contrail.repo.md5 are exist, check them
INFO: content of test/test/contrail.repo is not changed
INFO: Building contrail-base
Sending build context to Docker daemon 47.1 kB
Step 1/5 : FROM centos:7.4.1708
7.4.1708: Pulling from library/centos
18b8eb7e7f01: Pulling fs layer
18b8eb7e7f01: Verifying Checksum
18b8eb7e7f01: Download complete
18b8eb7e7f01: Pull complete
Digest: sha256:2a61f8abd6250751c4b1dd3384a2bdd8f87e0e60d11c064b8a90e2e552fee2d7
Status: Downloaded newer image for centos:7.4.1708
---> 3afd47092a0e
Step 2/5 : COPY *.repo /etc/yum.repos.d/
---> f58742a896da
Removing intermediate container d960c644757d
Step 3/5 : RUN yum update -y && yum install -y yum-plugin-priorities https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm https://repos.fedorapeople.org/repos/openstack/openstack-ocata/rdo-releasg
---> Running in 52ced507d6dd
Loaded plugins: fastestmirror, ovl
https://packages.cloud.google.com/yum/repos/kubernetes-el7-x86_64/repodata/repomd.xml: [Errno 12] Timeout on https://packages.cloud.google.com/yum/repos/kubernetes-el7-x86_64/repodata/repomd.xml: (28, 'Resolving timed out after 30540 m)
Trying other mirror.
....
failure: repodata/repomd.xml from Kubernetes: [Errno 256] No more mirrors to try.
https://packages.cloud.google.com/yum/repos/kubernetes-el7-x86_64/repodata/repomd.xml: [Errno 12] Timeout on https://packages.cloud.google.com/yum/repos/kubernetes-el7-x86_64/repodata/repomd.xml: (28, 'Resolving timed out after 30540 m)
.....

ERROR: Failed to build some containers, see log files:
STDERR:
ls: cannot access /root/contrail-container-builder/containers/*.log: No such file or directory
MSG:
non-zero return code
PLAY RECAP *********************************************************************************************************************************************************************************************************************************
localhost : ok=43 changed=5 unreachable=0 failed=1
make: *** [containers] Error 2

#############################
Manual workaround used:

sysctl -w net.ipv4.ip_forward=1
systemctl restart docker
docker run centos:7.4.1708 ping -c 4 google.com

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions