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

onos-config : make images failing on CentOS 8 #1666

Open
Bhanupriya03 opened this issue Jan 24, 2024 · 2 comments
Open

onos-config : make images failing on CentOS 8 #1666

Bhanupriya03 opened this issue Jan 24, 2024 · 2 comments

Comments

@Bhanupriya03
Copy link

We tried making images of onos-config on CentOS 8. Please have a look at the error we got :

[root@localhost onos-config]# make images
go mod tidy
go mod vendor
docker build --platform linux/amd64 . -f build/onos-config/Dockerfile
-t onosproject/onos-config:latest
[+] Building 3.5s (8/16) docker:default
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 860B 0.0s
=> [internal] load metadata for docker.io/library/alpine:3.13 1.7s
=> [internal] load metadata for docker.io/onosproject/golang-build:v1.3.0 1.7s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 328B 0.0s
=> CANCELED [build 1/8] FROM docker.io/onosproject/golang-build:v1.3.0@sha256:53e9d0bfea7f4bab30b6c7f70c4f74704b8c1d86468450959e1b3330c19ef6cd 1.6s
=> => resolve docker.io/onosproject/golang-build:v1.3.0@sha256:53e9d0bfea7f4bab30b6c7f70c4f74704b8c1d86468450959e1b3330c19ef6cd 0.0s
=> => sha256:53e9d0bfea7f4bab30b6c7f70c4f74704b8c1d86468450959e1b3330c19ef6cd 2.85kB / 2.85kB 0.0s
=> => sha256:29c8a1adabe59bf198a2349fe6e85c2cbba6784b4fd58d0832912d764e5d8c6b 9.33kB / 9.33kB 0.0s
=> => sha256:1671565cc8df8c365c9b661d3fbc164e73d01f1b0430c6179588428f99a9da2e 12.58MB / 55.01MB 1.6s
=> => sha256:3e94d13e55e7a4ef17ff21376f57fb95c7e1706931f8704aa99260968d81f6e4 0B / 5.16MB 1.6s
=> => sha256:fa9c7528c685216129e8e67bf362a7702e7b1daa585ab85546a41508830657d6 0B / 10.88MB 1.6s
=> [internal] load build context 0.9s
=> => transferring context: 29.19MB 0.9s
=> CACHED [stage-1 1/3] FROM docker.io/library/alpine:3.13@sha256:469b6e04ee185740477efa44ed5bdd64a07bbdd6c7e5f5d169e540889597b911 0.0s
=> ERROR [stage-1 2/3] RUN apk add libc6-compat 1.6s

[stage-1 2/3] RUN apk add libc6-compat:
0.396 fetch https://dl-cdn.alpinelinux.org/alpine/v3.13/main/x86_64/APKINDEX.tar.gz
0.456 139996012755784:error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed:ssl/statem/statem_clnt.c:1919:
0.457 fetch https://dl-cdn.alpinelinux.org/alpine/v3.13/community/x86_64/APKINDEX.tar.gz
0.457 ERROR: https://dl-cdn.alpinelinux.org/alpine/v3.13/main: Permission denied
0.457 WARNING: Ignoring https://dl-cdn.alpinelinux.org/alpine/v3.13/main: No such file or directory
0.498 139996012755784:error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed:ssl/statem/statem_clnt.c:1919:
0.500 ERROR: https://dl-cdn.alpinelinux.org/alpine/v3.13/community: Permission denied
0.500 WARNING: Ignoring https://dl-cdn.alpinelinux.org/alpine/v3.13/community: No such file or directory
0.500 ERROR: unable to select packages:
0.501 libc6-compat (no such package):
0.501 required by: world[libc6-compat]


Dockerfile:22

20 |
21 | FROM alpine:3.13
22 | >>> RUN apk add libc6-compat
23 |
24 | USER nobody

ERROR: failed to solve: process "/bin/sh -c apk add libc6-compat" did not complete successfully: exit code: 1
make: *** [Makefile:49: onos-config-docker] Error 1
[root@localhost onos-config]#

Please suggest how to install 'apk' and libc6-compat in CentOS 8

@gab-arrobo
Copy link
Contributor

The error here is not related to your OS because what you are doing is building the Docker image. Moreover, APK is the Alpine's package manager, which is specific for the image you are pulling (Alpine).
You can try these steps in your system:

$ docker pull alpine:3.13
$ docker container run --name=alpine -it alpine:3.13 apk add libc6-compat

The output of the last command should look like below, which is the same step where you see the error when using make images

fetch https://dl-cdn.alpinelinux.org/alpine/v3.13/main/x86_64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.13/community/x86_64/APKINDEX.tar.gz
(1/2) Upgrading musl (1.2.2-r1 -> 1.2.2-r2)
(2/2) Installing libc6-compat (1.2.2-r2)
OK: 6 MiB in 15 packages

@Bhanupriya03
Copy link
Author

Hi Gab-Arrobo

Thank you so much for your response !!!

We tried the above mentioned commands and please have a look at the output for both :

[root@localhost onos-config]# docker pull alpine:3.13
3.13: Pulling from library/alpine
72cfd02ff4d0: Already exists
Digest: sha256:469b6e04ee185740477efa44ed5bdd64a07bbdd6c7e5f5d169e540889597b911
Status: Downloaded newer image for alpine:3.13
docker.io/library/alpine:3.13

[root@localhost onos-config]# docker container run --name=alpine -it alpine:3.13 apk add libc6-compat
fetch https://dl-cdn.alpinelinux.org/alpine/v3.13/main/x86_64/APKINDEX.tar.gz
140491992197960:error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed:ssl/statem/statem_clnt.c:1919:
ERROR: https://dl-cdn.alpinelinux.org/alpine/v3.13/main: Permission denied
WARNING: Ignoring https://dl-cdn.alpinelinux.org/alpine/v3.13/main: No such file or directory
fetch https://dl-cdn.alpinelinux.org/alpine/v3.13/community/x86_64/APKINDEX.tar.gz
140491992197960:error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed:ssl/statem/statem_clnt.c:1919:
ERROR: https://dl-cdn.alpinelinux.org/alpine/v3.13/community: Permission denied
WARNING: Ignoring https://dl-cdn.alpinelinux.org/alpine/v3.13/community: No such file or directory
ERROR: unable to select packages:
libc6-compat (no such package):
required by: world[libc6-compat]

It says 'Permission Denied' on fetching apline's APK tars. We also tried 'yum update ca-certificates' as we thought this is the certificate issue. But we got no success for the second command. Please suggest what should be done next to make successful image of onos-config.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants