Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build of openstack-neutron-init container fails [Docker DNS issue] #4

Open
nitishkrishna opened this issue Feb 8, 2018 · 0 comments
Assignees

Comments

@nitishkrishna
Copy link

Error seen:

ASK [contrail-build-dockers : Build container openstack-neutron-init] *********************************************************************************************************************************************************************
fatal: [localhost]: FAILED! => {
"changed": true,
"cmd": "./build.sh openstack/neutron-init",
"delta": "0:00:22.789021",
"end": "2018-02-08 10:28:24.543538",
"rc": 1,
"start": "2018-02-08 10:28:01.754517"
}
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 openstack/neutron-init
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-openstack-neutron-init
Sending build context to Docker daemon 5.632 kB
Step 1/4 : FROM 172.17.0.1:6666/contrail-base:10000-1-centos7-ocata
---> d86117dc2b1d
Step 2/4 : RUN yum install -y neutron-plugin-contrail python-neutron-lbaas yum clean all -y && rm -rf /var/cache/yum
---> Running in c22a75c369d7
Loaded plugins: fastestmirror, ovl, priorities
https://mirror.chpc.utah.edu/pub/epel/7/x86_64/repodata/repomd.xml: [Errno -1] repomd.xml does not match metalink for epel
Trying other mirror.
http://mirror.us.leaseweb.net/epel/7/x86_64/repodata/repomd.xml: [Errno -1] repomd.xml does not match metalink for epel
Trying other mirror.
....

http://mirrors.upr.edu/epel/7/x86_64/repodata/repomd.xml: [Errno -1] repomd.xml does not match metalink for epel
http://fedora.westmancom.com/epel/7/x86_64/repodata/repomd.xml: [Errno -1] repomd.xml does not match metalink for epel
https://mirrors.ucr.ac.cr/epel/7/x86_64/repodata/repomd.xml: [Errno -1] repomd.xml does not match metalink for epel
The command '/bin/sh -c yum install -y neutron-plugin-contrail python-neutron-lbaas yum clean all -y && rm -rf /var/cache/yum' returned a non-zero code: 1
ERROR: Failed to build some containers, see log files:

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

Edited /etc/docker/daemon.json:

{"insecure-registries": ["172.17.0.1:6666"],
"dns": ["10.84.5.100"]
}

systemctl docker restart

@nitishkrishna nitishkrishna changed the title Build of openstack-neutron-init container fails Build of openstack-neutron-init container fails [Docker DNS issue] Feb 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants