Skip to content

docker-sonic-vs.gz build fail on 202006 branch #5404

@gord1306

Description

@gord1306

Description
VS platform build fail on 202006 branch

Steps to reproduce the issue:
Use 202006 branch to build docker-sonic-vs.gz

Describe the results you received:
curl is not installed when build the docker image

Configuration file '/etc/grub.d/README', does not exist on system.
Installing new config file as you requested.
Setting up python3-pip (9.0.1-2+deb9u2) ...
Setting up dmsetup (2:1.02.137-2) ...
Setting up dh-python (2.20170125) ...
Setting up grub2-common (2.02~beta3-5+deb9u2) ...
Processing triggers for libc-bin (2.24-11+deb9u4) ...
Processing triggers for ca-certificates (20200601~deb9u1) ...
Updating certificates in /etc/ssl/certs...
0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...
done.
Removing intermediate container 6edde0c9241a
 ---> 9890b68f882d
Step 11/84 : RUN curl -o redis-tools_6.0.6-1~bpo10+1_amd64.deb "https://sonicstorage.blob.core.windows.net/packages/redis/redis-tools_6.0.6-1~bpo10+1_amd64.deb?sv=2015-04-05&sr=b&sig=73zbmjkf3pi%2Bn0R8Hy7CWT2EUvOAyzM5aLYJWCLySGM%3D&se=2030-09-06T19%3A44%3A59Z&sp=r"
 ---> Running in e0ca643f5eda
/bin/sh: 1: curl: not found
The command '/bin/sh -c curl -o redis-tools_6.0.6-1~bpo10+1_amd64.deb "https://sonicstorage.blob.core.windows.net/packages/redis/redis-tools_6.0.6-1~bpo10+1_amd64.deb?sv=2015-04-05&sr=b&sig=73zbmjkf3pi%2Bn0R8Hy7CWT2EUvOAyzM5aLYJWCLySGM%3D&se=2030-09-06T19%3A44%3A59Z&sp=r"' returned a non-zero code: 127
[  FAIL LOG END  ] [ target/docker-sonic-vs.gz ]
slave.mk:662: recipe for target 'target/docker-sonic-vs.gz' failed
make: *** [target/docker-sonic-vs.gz] Error 1
Makefile.work:224: recipe for target 'stretch' failed
make[1]: *** [stretch] Error 2
make[1]: Leaving directory '/home/ubuntu/vs/github/sonic-buildimage'
Makefile:7: recipe for target 'target/docker-sonic-vs.gz' failed
make: *** [target/docker-sonic-vs.gz] Error 2
ubuntu@ip-10-5-1-117:~/vs/github/sonic-buildimage (202006)$

And then I tried to add curl into the Dockerfile.j2, will encounter the redis-tools dependency issue, the depends package init-system-helpers have to >= 1.54~, but 1.54 is the version for buster, not for stretch. Currently, the docker-sonic-vs.gz of 202006 branch is still built by the stretch slave container

Step 13/84 : RUN dpkg -i redis-tools_6.0.6-1~bpo10+1_amd64.deb redis-server_6.0.6-1~bpo10+1_amd64.deb || apt-get install -f
 ---> Running in 203e507dda72
(Reading database ... 13804 files and directories currently installed.)
Preparing to unpack redis-tools_6.0.6-1~bpo10+1_amd64.deb ...
Unpacking redis-tools (5:6.0.6-1~bpo10+1) over (5:5.0.3-3~bpo9+2) ...
dpkg: regarding redis-server_6.0.6-1~bpo10+1_amd64.deb containing redis-server, pre-dependency problem:
 redis-server pre-depends on init-system-helpers (>= 1.54~)
  init-system-helpers is installed, but is version 1.48.

dpkg: error processing archive redis-server_6.0.6-1~bpo10+1_amd64.deb (--install):
 pre-dependency problem - not installing redis-server
Selecting previously unselected package redis-server.
dpkg: dependency problems prevent configuration of redis-tools:
 redis-tools depends on libc6 (>= 2.28); however:
  Version of libc6:amd64 on system is 2.24-11+deb9u4.
 redis-tools depends on libjemalloc2 (>= 2.1.1); however:
  Package libjemalloc2 is not installed.
 redis-tools depends on libssl1.1 (>= 1.1.1); however:
  Version of libssl1.1:amd64 on system is 1.1.0l-1~deb9u1.

dpkg: error processing package redis-tools (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 redis-server_6.0.6-1~bpo10+1_amd64.deb
 redis-tools
Reading package lists...
Building dependency tree...
Reading state information...
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  libatomic1 libhiredis0.14 libjemalloc1 liblua5.1-0 lua-bitop lua-cjson
Use 'apt autoremove' to remove them.
The following packages will be REMOVED:
  redis-tools
0 upgraded, 0 newly installed, 1 to remove and 1 not upgraded.
1 not fully installed or removed.
After this operation, 3590 kB disk space will be freed.
Do you want to continue? [Y/n] Abort.
The command '/bin/sh -c dpkg -i redis-tools_6.0.6-1~bpo10+1_amd64.deb redis-server_6.0.6-1~bpo10+1_amd64.deb || apt-get install -f' returned a non-zero code: 1
[  FAIL LOG END  ] [ target/docker-sonic-vs.gz ]
slave.mk:662: recipe for target 'target/docker-sonic-vs.gz' failed

Describe the results you expected:
Build ok

Additional information you deem important (e.g. issue happens only occasionally):

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