GithubHelp home page GithubHelp logo

contrail-dev-env's Introduction

contrail-dev-env: Contrail Developer Environment

Problems? Need Help?

This repository is actively maintained via Gerrit so please let us know about any problems you find. You can ask for help on Slack but if no one replies right away, go ahead and open a bug on JIRA and label the bug with the label "dev-env" and it will get looked at soon. You can also post to the new Google Group if you're having trouble but don't know if the problem is a bug or a mistake on your part.

Documentation for dev-env components

Since dev-env uses generally available contrail components, please refer to following documentation pages:

  1. for packages generation: contrail-packages
  2. for building containers: contrail-container-builder and contrail-deployers-containers
  3. for deployments: contrail-ansible-deployer

Container-based (standard)

There are 2 official sources of containers for dev-env:

  1. Released images on docker hub opencontrail, tagged with released version.
  2. Nightly images on docker hub opencontrailnightly, tagged with corresponding development branch. Note: tag latest points to master branch.

You can also use your own image, built using container/build.sh script.

1. Install docker

For mac:          https://docs.docker.com/docker-for-mac/install/#download-docker-for-mac

For CentOS/RHEL/Fedora linux host:

yum install docker

For Ubuntu linux host:

apt install docker.io

NOTE (only if you hit any issues): Make sure that your docker engine supports images bigger than 10GB. For instructions, see here: https://stackoverflow.com/questions/37100065/resize-disk-usage-of-a-docker-container Make sure that there is TCP connectivity allowed between the containers in the default docker bridge network, (for example disable firewall).

2. Clone dev setup repo

git clone https://github.com/Juniper/contrail-dev-env
cd contrail-dev-env

3. Execute script to start 3 containers

sudo ./startup.sh

Note: This command runs container opencontrailnightly/developer-sandbox:master from opencontrailnightly docker hub by default. You can specify different image and/or tag using flags, e.g.

  1. to develop on nightly R5.0 container use: sudo ./startup.sh -t R5.0
  2. to develop code based on a tagged r5.0 release, use: sudo ./startup.sh -i opencontrail/developer-sandbox -t r5.0
docker ps -a should show these 3 containers
contrail-developer-sandbox [For running scons, unit-tests etc]
contrail-dev-env-rpm-repo  [Repo server for contrail RPMs after they are build]
contrail-dev-env-registry  [Registry for contrail containers after they are built]

4. Attach to developer-sandbox container

docker attach contrail-developer-sandbox

5. Prepare developer-sandbox container

Required first steps in the container:

cd /root/contrail-dev-env
make sync           # get latest code
make fetch_packages # pull third_party dependencies
make setup          # set up docker container
make dep            # install build dependencies

The descriptions of targets:

  • make sync - sync code in ./contrail directory using repo tool
  • make fetch_packages - pull ./third_party dependencies (after code checkout)
  • make setup - initial configuration of image (required to run once)
  • make dep - installs all build dependencies
  • make dep-<pkg_name> - installs build dependencies for <pkg_name>

6. Make artifacts

RPM packages

  • make list - lists all available RPM targets
  • make rpm - builds all RPMs
  • make rpm-<pkg_name> - builds single RPM for <pkg_name>

Container images

  • make list-containers - lists all container targets
  • make containers - builds all containers' images, requires RPM packages in /root/contrail/RPMS
  • make container-<container_name> - builds single container as a target, with all docker dependencies

Deployers

  • make list-deployers - lists all deployers container targets
  • make deployers - builds all deployers
  • make deployer-<container_name> - builds single deployer as a target, with all docker dependencies

Test containers

  • make test-containers - build test containers

Clean

  • make clean{-containers,-deployers,-repo,-rpm} - delete artifacts

7. Testing the deployment

See https://github.com/Juniper/contrail-ansible-deployer/wiki/Contrail-with-Openstack-Kolla . Set CONTAINER_REGISTRY to registry:5000 to use containers built in the previous step.

Alternate build methods

Instead of step 5 above (which runs scons inside make), you can use scons directly. The steps 1-4 are still required.

cd /root/contrail
scons # ( or "scons test" etc)

NOTE: Above example build whole TungstenFabric project with default kernel headers and those are headers for running kernel (uname -r). If you want to customize your manual build and use i.e newer kernel header take a look at below examples.

In case you want to compile TungstenFabric with latest or another custom kernel headers installed in contrail-developer-sanbox container, then you have to run scons with extra arguments:

RTE_KERNELDIR=/path/to/custom_kernel_headers scons --kernel-dir=/path/to/custom_kernel_headers

To alter default behaviour and build TF without support for DPDK just provide the --without-dpdk flag:

scons --kernel-dir=/path/to/custom_kernel_headers --without-dpdk

To build only specific module like i.e vrouter:

scons --kernel-dir=/path/to/custom_kernel_headers vrouter

To build and run unit test against your code:

RTE_KERNELDIR=/path/to/custom_kernel_headers scons --kernel-dir=/path/to/custom_kernel_headers test

Bring-your-own-VM (experimental)

Note: only RedHat 7 and CentOS 7 are supported at this time!

  1. Clone this repository to a directory on a VM.
  2. Run vm-dev-env/init.sh (you might be asked for your password as some steps require the use of sudo). a. You can also run vm-dev-env/init.sh -n if you don't want to clone work directory on a VM. Then you have to mount sandbox to directory named contrail next to contrail-dev-env.
  3. Run make fetch_packages to pull dependencies to contrail/third_party
  4. Run sudo ./startup.sh -b to start required containers.
  5. You can use the Makefile targets described above to build contrail.

contrail-dev-env's People

Contributors

abgzlnv avatar alexandrelevine avatar ananth-at-camphor-networks avatar andrey-mp avatar edwinpjacques avatar jabielecki avatar kravvcucl avatar micczu1 avatar mmithun avatar opencontrail-ci-admin avatar pcarver avatar pjrusak avatar prabhjot-sethi avatar rrugge avatar senthilgk1 avatar vmahuli avatar wurbanski avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

contrail-dev-env's Issues

make rpm) failed

my container build (make rpm) failed. Below is the error.
7:39 PM
TASK [generic_dependencies : Install generic dependencies on development VM] ***
changed: [localhost] => (item=[u'createrepo', u'tree', u'lynx', u'docker-python'])

TASK [build_dependencies : Install kernel dependencies] ************************
failed: [localhost] (item=[u'kernel-4.2.0-27-generic', u'kernel-devel-4.2.0-27-generic', u'kernel-tools-4.2.0-27-generic', u'kernel-tools-libs-4.2.0-27-generic']) => {"changed": false, "item": ["kernel-4.2.0-27-generic", "kernel-devel-4.2.0-27-generic", "kernel-tools-4.2.0-27-generic", "kernel-tools-libs-4.2.0-27-generic"], "msg": "No package matching 'kernel-4.2.0-27-generic' found available, installed or updated", "rc": 126, "results": ["No package matching 'kernel-4.2.0-27-generic' found available, installed or updated"]}
to retry, use: --limit @/root/contrail-dev-env/provisioning/setup_vm.retry

PLAY RECAP *********************************************************************
localhost : ok=2 changed=1 unreachable=0 failed=1

make: *** [setup] Error 2

not all RPMs being built

I am noticing that in today’s fresh checkout the ‘make rpm’ is not building all the rpms.

Can you please look into this issue?

Here are the failures seen in some of the logs:

contrail-vnc_20180214_030338.log:

copying fabfile/utils/install.py -> contrail_fabric_utils-0.1.dev0/fabfile/utils

copying fabfile/utils/interface.py -> contrail_fabric_utils-0.1.dev0/fabfile/utils

copying fabfile/utils/migration.py -> contrail_fabric_utils-0.1.dev0/fabfile/utils

copying fabfile/utils/multitenancy.py -> contrail_fabric_utils-0.1.dev0/fabfile/utils

copying fabfile/utils/provision_rsyslog_connect.py -> contrail_fabric_utils-0.1.dev0/fabfile/utils

copying fabfile/utils/storage.py -> contrail_fabric_utils-0.1.dev0/fabfile/utils

Writing contrail_fabric_utils-0.1.dev0/setup.cfg

Creating tar archive

removing 'contrail_fabric_utils-0.1.dev0' (and everything under it)

  • tar zxf dist/contrail_fabric_utils-0.1dev.tar.gz

tar (child): dist/contrail_fabric_utils-0.1dev.tar.gz: Cannot open: No such file or directory

tar (child): Error is not recoverable: exiting now

tar: Child returned status 2

tar: Error is not recoverable: exiting now

error: Bad exit status from /var/tmp/rpm-tmp.5Filvx (%install)

RPM build errors:

Bad exit status from /var/tmp/rpm-tmp.5Filvx (%install)

contrail-nodemgr_20180214_030606.log:

/root/contrail-5.0 /root/contrail-5.0/controller

  • install -d -m 755 /root/contrail-5.0/BUILDROOT/contrail-nodemgr-5.0-ci10000.1.el7.centos.x86_64/usr/bin

  • install -d -m 755 /root/contrail-5.0/BUILDROOT/contrail-nodemgr-5.0-ci10000.1.el7.centos.x86_64

  • popd

/root/contrail-5.0/controller

  • mkdir -p build/python_dist

  • pushd build/python_dist

/root/contrail-5.0/controller/build/python_dist /root/contrail-5.0/controller

  • tar zxf /root//contrail-5.0/controller/../build/debug/control-node/dist/Control-Node-0.1dev.tar.gz

tar (child): /root//contrail-5.0/controller/../build/debug/control-node/dist/Control-Node-0.1dev.tar.gz: Cannot open: No such file or directory

tar (child): Error is not recoverable: exiting now

tar: Child returned status 2

tar: Error is not recoverable: exiting now

error: Bad exit status from /var/tmp/rpm-tmp.NBHwzR (%install)

RPM build errors:

Bad exit status from /var/tmp/rpm-tmp.NBHwzR (%install)

contrail-setup_20180214_030737.log:

  • install -p -m 644 cfgm_utils.tgz /root/contrail-5.0/BUILDROOT/contrail-setup-5.0-ci10000.1.el7.centos.x86_64/opt/contrail/cfgm_utils.tgz

  • install -p -m 644 dns_scripts.tgz /root/contrail-5.0/BUILDROOT/contrail-setup-5.0-ci10000.1.el7.centos.x86_64/opt/contrail/dns_scripts.tgz

  • pushd /root//contrail-5.0/controller/../tools/provisioning

/root/contrail-5.0/tools/provisioning /root/contrail-5.0/controller

  • tar zxf dist/ContrailProvisioning-0.1dev.tar.gz

tar (child): dist/ContrailProvisioning-0.1dev.tar.gz: Cannot open: No such file or directory

tar (child): Error is not recoverable: exiting now

tar: Child returned status 2

tar: Error is not recoverable: exiting now

error: Bad exit status from /var/tmp/rpm-tmp.CCkykK (%install)

RPM build errors:

Bad exit status from /var/tmp/rpm-tmp.CCkykK (%install)

fabric-utils_20180214_030743.log:

Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.2atxnA

  • umask 022

  • cd /root//contrail-5.0//BUILD

  • '[' /root/contrail-5.0/BUILDROOT/contrail-fabric-utils-5.0-ci10000.1.x86_64 '!=' / ']'

  • rm -rf /root/contrail-5.0/BUILDROOT/contrail-fabric-utils-5.0-ci10000.1.x86_64

++ dirname /root/contrail-5.0/BUILDROOT/contrail-fabric-utils-5.0-ci10000.1.x86_64

  • mkdir -p /root/contrail-5.0/BUILDROOT

  • mkdir /root/contrail-5.0/BUILDROOT/contrail-fabric-utils-5.0-ci10000.1.x86_64

  • rm -rf /root/contrail-5.0/BUILDROOT/contrail-fabric-utils-5.0-ci10000.1.x86_64

  • install -d -m 755 /root/contrail-5.0/BUILDROOT/contrail-fabric-utils-5.0-ci10000.1.x86_64/usr/lib/python2.7/site-packages

  • install -d -m 755 /root/contrail-5.0/BUILDROOT/contrail-fabric-utils-5.0-ci10000.1.x86_64/opt/contrail/utils

  • pushd /root//contrail-5.0//BUILD/../third_party/fabric-utils

/root/contrail-5.0/third_party/fabric-utils /root/contrail-5.0/BUILD

  • tar zxf dist/contrail_fabric_utils-0.1dev.tar.gz

tar (child): dist/contrail_fabric_utils-0.1dev.tar.gz: Cannot open: No such file or directory

tar (child): Error is not recoverable: exiting now

tar: Child returned status 2

tar: Error is not recoverable: exiting now

error: Bad exit status from /var/tmp/rpm-tmp.2atxnA (%install)

RPM build errors:

Bad exit status from /var/tmp/rpm-tmp.2atxnA (%install)

Make containers fails due to internet access issues

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

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

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

Vrouter doesn't build when docker host is running different kernel than latest centos

after running make setup on mac
1:25 PM
vrouter build fails with the following
1:25 PM
d /root/contrail/vrouter/ && make SANDESH_HEADER_PATH=/root/contrail/build/debug/vrouter SANDESH_SRC_ROOT=../build/kbuild/ SANDESH_EXTRA_HEADER_PATH=/root/contrail/src/contrail-common
make -C /lib/modules/4.9.60-linuxkit-aufs/build M=/root/contrail/vrouter modules
make: *** /lib/modules/4.9.60-linuxkit-aufs/build: No such file or directory. Stop.
make: *** [default] Error 2
scons: *** [vrouter/vrouter.ko] Error 2
scons: building terminated because of errors.
1:25 PM
this is with top level scons
1:26 PM
jluk ok, this we discussed earlier I think
1:26 PM
jluk
try setting this env variable
export KERNEL_VER=3.10.0-693.el7.x86_64
export KERNELDIR=/lib/modules/$KERNEL_VER/build
scons --kernel-dir=$KERNELDIR

make containers failed

The log is as fellow

Sending build context to Docker daemon 8.192 kB
Step 1/6 : FROM 172.17.0.1:6666/contrail-base:queens-dev
 ---> 2b7f821cac66
Step 2/6 : ARG CONTAINER_NAME
 ---> Using cache
 ---> fbba0ce5fe3d
Step 3/6 : RUN yum install -y openssl &&     yum install -y --downloadonly --downloaddir=/ contrail-tripleo-puppet &&     yum clean all &&     rm -rf /var/cache/yum
 ---> Running in 3329bd5181a0

Loaded plugins: fastestmirror, ovl, priorities
Loading mirror speeds from cached hostfile
 * base: mirrors.nju.edu.cn
 * epel: mirrors.aliyun.com
 * extras: mirrors.aliyun.com
 * updates: mirrors.aliyun.com
Resolving Dependencies
--> Running transaction check
---> Package openssl.x86_64 1:1.0.2k-12.el7 will be installed
--> Processing Dependency: make for package: 1:openssl-1.0.2k-12.el7.x86_64
--> Running transaction check
---> Package make.x86_64 1:3.82-23.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package          Arch            Version                   Repository     Size
================================================================================
Installing:
 openssl          x86_64          1:1.0.2k-12.el7           base          492 k
Installing for dependencies:
 make             x86_64          1:3.82-23.el7             base          420 k

Transaction Summary
================================================================================
Install  1 Package (+1 Dependent package)

Total download size: 912 k
Installed size: 1.9 M
Downloading packages:
--------------------------------------------------------------------------------
Total                                              2.4 MB/s | 912 kB  00:00     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : 1:make-3.82-23.el7.x86_64                                    1/2 
  Installing : 1:openssl-1.0.2k-12.el7.x86_64                               2/2 
  Verifying  : 1:openssl-1.0.2k-12.el7.x86_64                               1/2 
  Verifying  : 1:make-3.82-23.el7.x86_64                                    2/2 

Installed:
  openssl.x86_64 1:1.0.2k-12.el7                                                

Dependency Installed:
  make.x86_64 1:3.82-23.el7                                                     

Complete!
Loaded plugins: fastestmirror, ovl, priorities
Loading mirror speeds from cached hostfile
 * base: mirrors.nju.edu.cn
 * epel: mirrors.aliyun.com
 * extras: mirrors.aliyun.com
 * updates: mirrors.aliyun.com
No package contrail-tripleo-puppet available.
Error: Nothing to do
The command '/bin/sh -c yum install -y openssl &&     yum install -y --downloadonly --downloaddir=/ contrail-tripleo-puppet &&     yum clean all &&     rm -rf /var/cache/yum' returned a non-zero code: 1
The push refers to a repository [172.17.0.1:6666/contrail-node-init]
An image does not exist locally with the tag: 172.17.0.1:6666/contrail-node-init

I'm using the r5.0 branch.

make setup, error ci-repo

make setup
You are using pip version 8.1.2, however version 20.1.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Uninstalling urllib3-1.24.1:
Successfully uninstalled urllib3-1.24.1
You are using pip version 8.1.2, however version 20.1.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Plugin "product-id" can't be imported
Plugin "search-disabled-repos" can't be imported
Plugin "subscription-manager" can't be imported
http://ci-repo.englab.juniper.net/pulp/repos/master/tpc-binary/repodata/repomd.xml: [Errno 14] HTTP Error 503 - Service Unavailable
Trying other mirror.
http://ci-repo.englab.juniper.net/pulp/repos/master/tpc-binary/repodata/repomd.xml: [Errno 14] HTTP Error 503 - Service Unavailable
Trying other mirror.
http://ci-repo.englab.juniper.net/pulp/repos/master/tpc-binary/repodata/repomd.xml: [Errno 14] HTTP Error 503 - Service Unavailable
Trying other mirror.
http://ci-repo.englab.juniper.net/pulp/repos/master/tpc-binary/repodata/repomd.xml: [Errno 14] HTTP Error 503 - Service Unavailable
Trying other mirror.
http://ci-repo.englab.juniper.net/pulp/repos/master/tpc-binary/repodata/repomd.xml: [Errno 14] HTTP Error 503 - Service Unavailable
Trying other mirror.
http://ci-repo.englab.juniper.net/pulp/repos/master/tpc-binary/repodata/repomd.xml: [Errno 14] HTTP Error 503 - Service Unavailable
Trying other mirror.
http://ci-repo.englab.juniper.net/pulp/repos/master/tpc-binary/repodata/repomd.xml: [Errno 14] HTTP Error 503 - Service Unavailable
Trying other mirror.
http://ci-repo.englab.juniper.net/pulp/repos/master/tpc-binary/repodata/repomd.xml: [Errno 14] HTTP Error 503 - Service Unavailable
Trying other mirror.
http://ci-repo.englab.juniper.net/pulp/repos/master/tpc-binary/repodata/repomd.xml: [Errno 14] HTTP Error 503 - Service Unavailable
Trying other mirror.
http://ci-repo.englab.juniper.net/pulp/repos/master/tpc-binary/repodata/repomd.xml: [Errno 14] HTTP Error 503 - Service Unavailable
Trying other mirror.

One of the configured repositories failed (Contrail third-party dependencies),
and yum doesn't have enough cached data to continue. At this point the only
safe thing yum can do is fail. There are a few ways to work "fix" this:

 1. Contact the upstream for the repository and get them to fix the problem.

 2. Reconfigure the baseurl/etc. for the repository, to point to a working
    upstream. This is most often useful if you are using a newer
    distribution release than is supported by the repository (and the
    packages for the previous distribution release still work).

 3. Run the command with the repository temporarily disabled
        yum --disablerepo=tpc-binary ...

 4. Disable the repository permanently, so yum won't use it by default. Yum
    will then just ignore the repository until you permanently enable it
    again or use --enablerepo for temporary usage:

        yum-config-manager --disable tpc-binary
    or
        subscription-manager repos --disable=tpc-binary

 5. Configure the failing repository to be skipped, if it is unavailable.
    Note that yum will try to contact the repo. when it runs most commands,
    so will have to try and fail each time (and thus. yum will be be much
    slower). If it is a very temporary problem though, this is often a nice
    compromise:

        yum-config-manager --save --setopt=tpc-binary.skip_if_unavailable=true

Dpdk doesn't build when host kernel is different from the Centos installed one

/root/contrail/vrouter/ && make SANDESH_HEADER_PATH=/root/contrail/build/debug/vrouter SANDESH_SRC_ROOT=../build/kbuild/ SANDESH_EXTRA_HEADER_PATH=/root/contrail/src/contrail-common
make -C /lib/modules/4.9.60-linuxkit-aufs/build M=/root/contrail/vrouter modules
make: *** /lib/modules/4.9.60-linuxkit-aufs/build: No such file or directory. Stop.
make: *** [default] Error 2
scons: *** [vrouter/vrouter.ko] Error 2
scons: building terminated because of errors.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.