I tried to use contrail-dev-env to build containers, but I failed. And I have finished compiling contrail and making rpm successfully.
OS: Centos7.5
Docker info
➜ contrail-dev-env git:(R5.0) ✗ docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
a30181471daa fbba0ce5fe3d "/bin/sh -c 'yum i..." 26 minutes ago Exited (1) 26 minutes ago modest_roentgen
bc4d45b4fea0 fbba0ce5fe3d "/bin/sh -c 'yum i..." 27 minutes ago Exited (1) 26 minutes ago dreamy_lamarr
1d5ec03f13f5 fbba0ce5fe3d "/bin/sh -c 'yum i..." 35 minutes ago Exited (1) 35 minutes ago boring_leavitt
0110b1b39cfd fbba0ce5fe3d "/bin/sh -c 'yum i..." 35 minutes ago Exited (1) 35 minutes ago thirsty_jennings
8ec04fd5271c fbba0ce5fe3d "/bin/sh -c 'yum i..." About an hour ago Exited (1) About an hour ago elated_sammet
14d5ba1a5427 fbba0ce5fe3d "/bin/sh -c 'yum i..." About an hour ago Exited (1) About an hour ago ecstatic_montalcini
7947d091a1f5 opencontrail/developer-sandbox:r5.0 "/bin/bash" 15 hours ago Up 15 hours contrail-developer-sandbox
cbe1ebdab4f2 registry:2 "/entrypoint.sh /e..." 15 hours ago Up 15 hours 0.0.0.0:6666->5000/tcp contrail-dev-env-registry
b773747fc577 sebp/lighttpd "lighttpd -D -f /e..." 15 hours ago Up 15 hours 0.0.0.0:6667->80/tcp contrail-dev-env-rpm-repo
The repo info is
[root@7947d091a1f5 contrail-dev-env]# git branch -a
* R5.0
list
master
remotes/origin/HEAD -> origin/master
remotes/origin/R5.0
remotes/origin/docker_rework
remotes/origin/master
remotes/origin/sangupta-analytics-3rd-party-pkg
remotes/origin/sangupta-analytics-packages
remotes/origin/slim-dev-env
After I run the make containers cmd, I got the following error.
ERROR: Failed to build some containers, see log files:
-rw-r--r-- 1 root root 3029 Nov 30 01:53 /root/src/review.opencontrail.org/Juniper/contrail-container-builder/containers/build-contrail-node-init.log
-rw-r--r-- 1 root root 936 Nov 30 01:54 /root/src/review.opencontrail.org/Juniper/contrail-container-builder/containers/build-contrail-vcenter-manager.log
make: *** [containers] Error 1
[root@7947d091a1f5 contrail-dev-env]# cat /root/src/review.opencontrail.org/Juniper/contrail-container-builder/containers/build-contrail-node-init.log
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 bc4d45b4fea0
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: centos.ustc.edu.cn
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 1.7 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: centos.ustc.edu.cn
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
[root@7947d091a1f5 contrail-dev-env]# cat /root/src/review.opencontrail.org/Juniper/contrail-container-builder/containers/build-contrail-vcenter-manager.log
Sending build context to Docker daemon 4.608 kB
Step 1/10 : FROM 172.17.0.1:6666/contrail-base:queens-dev
---> 2b7f821cac66
Step 2/10 : ARG CONTAINER_NAME
---> Using cache
---> fbba0ce5fe3d
Step 3/10 : RUN yum install -y contrail-vcenter-manager && yum clean all -y && rm -rf /var/cache/yum
---> Running in a30181471daa
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: centos.ustc.edu.cn
No package contrail-vcenter-manager available.
Error: Nothing to do
The command '/bin/sh -c yum install -y contrail-vcenter-manager && yum clean all -y && rm -rf /var/cache/yum' returned a non-zero code: 1
The push refers to a repository [172.17.0.1:6666/contrail-vcenter-manager]
An image does not exist locally with the tag: 172.17.0.1:6666/contrail-vcenter-manager
I think maybe these two error
No package contrail-tripleo-puppet available.
Error: Nothing to do
and
No package contrail-vcenter-manager available.
Error: Nothing to do
are the reason.
Could anyone help me?
I tried to use
contrail-dev-envto build containers, but I failed. And I have finished compiling contrail and making rpm successfully.OS:
Centos7.5Docker info
The repo info is
After I run the
make containerscmd, I got the following error.I think maybe these two error
and
are the reason.
Could anyone help me?