-
Notifications
You must be signed in to change notification settings - Fork 20
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
Errors during downloading metadata for repository 'ubi-8-baseos' #19
Comments
I cannot reproduce it. I tried to perform these commands: podman run -it --rm registry.access.redhat.com/ubi8:8.2 bash
dnf install -y git make go and it works for me. Can you reach out |
Hi,
So strange in fact.
podman run -it --rm registry.access.redhat.com/ubi8:8.2 bash
dnf install -y git make go
don't work for me !
locally I can reach out the xml file
locally dnf install -y git make go works fine !
I tried this :
[root@maqrhel81 ~]# podman run -it --rm registry.access.redhat.com/ubi8:8.2 bash
[root@b1093d2434ac /]# dnf install -y git make go
Updating Subscription Management repositories.
Unable to read consumer identity
Subscription Manager is operating in container mode.
Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs) 5.0 MB/s | 19 MB 00:03
Red Hat Enterprise Linux 8 for x86_64 - BaseOS (RPMs) 6.5 MB/s | 20 MB 00:03
Red Hat Universal Base Image 8 (RPMs) - BaseOS 0.0 B/s | 0 B 01:30
Errors during downloading metadata for repository 'ubi-8-baseos':
- Curl error (7): Couldn't connect to server for https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi8/8/x86_64/baseos/os/repodata/repomd.xml [Failed to connect to cdn-ubi.redhat.com port 443: Connection timed out]
Error: Failed to download metadata for repo 'ubi-8-baseos': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
So I add the proxy :
[root@maqrhel81 ~]# podman run -it --rm --env https_proxy='https://10.1.1.120:8080' --env http_proxy='http:https://10.1.1.120:8080' registry.access.redhat.com/ubi8:8.2 bash
[root@fff67a1a3a54 /]#
[root@fff67a1a3a54 /]# dnf install -y git make go
Updating Subscription Management repositories.
Unable to read consumer identity
Subscription Manager is operating in container mode.
Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs) 3.8 MB/s | 19 MB 00:04
Red Hat Enterprise Linux 8 for x86_64 - BaseOS (RPMs) 7.1 MB/s | 20 MB 00:02
Red Hat Universal Base Image 8 (RPMs) - BaseOS 0.0 B/s | 0 B 00:00
Errors during downloading metadata for repository 'ubi-8-baseos':
- Curl error (35): SSL connect error for https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi8/8/x86_64/baseos/os/repodata/repomd.xml [error:1408F10B:SSL routines:ssl3_get_record:wrong version number]
Error: Failed to download metadata for repo 'ubi-8-baseos': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
Thanks a lot for your help
[spbsignaturemail]
Ludovic LACHEVRE
Administrateur Systèmes / System Administrator
71, Quai Colbert - 76600 Le Havre
Tél. : +33 (0)2 32 74 99 47 - Teams<sip:[email protected]>
ORIAS n° 07 002 642 (www.orias.fr<http:https://www.orias.fr/>)
De : Dmitrii Misharov <[email protected]>
Envoyé : lundi 24 août 2020 20:22
À : RedHatQE/ocp-gitlab-runner <[email protected]>
Cc : Ludovic LACHEVRE <[email protected]>; Author <[email protected]>
Objet : Re: [RedHatQE/ocp-gitlab-runner] Errors during downloading metadata for repository 'ubi-8-baseos' (#19)
I cannot reproduce it. I tried to perform these commands:
podman run -it --rm registry.access.redhat.com/ubi8:8.2 bash
dnf install -y git make go
and it works for me. Can you reach out https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi8/8/x86_64/baseos/os/repodata/repomd.xml locally outside of the container?
-
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#19 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AKFDGVFO6X65N5VIBVY5D3DSCKVWHANCNFSM4QJT4QIA>.
C1 - Internal
|
I can only assume that you have some unusual network configuration. Probably you have some proxy. I also wonder why you have http and https proxy on the same port: |
Yes we saw that with my network team now
After several tests this morning, I asked him to configure my server directly and it works fine !
Great !
Thanks a lot for your help because I can understand that is a potentially network issue from my side
Have a good day
[spbsignaturemail]
Ludovic LACHEVRE
Administrateur Systèmes / System Administrator
71, Quai Colbert - 76600 Le Havre
Tél. : +33 (0)2 32 74 99 47 - Teams<sip:[email protected]>
ORIAS n° 07 002 642 (www.orias.fr<http:https://www.orias.fr/>)
De : Dmitrii Misharov <[email protected]>
Envoyé : mardi 25 août 2020 11:56
À : RedHatQE/ocp-gitlab-runner <[email protected]>
Cc : Ludovic LACHEVRE <[email protected]>; Author <[email protected]>
Objet : Re: [RedHatQE/ocp-gitlab-runner] Errors during downloading metadata for repository 'ubi-8-baseos' (#19)
I can only assume that you have some unusual network configuration. Probably you have some proxy. I also wonder why you have http and https proxy on the same port: https_proxy='https://10.1.1.120:8080' --env http_proxy='http:https://10.1.1.120:8080' .
-
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#19 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AKFDGVDJRYA643GPWOS3DL3SCODDDANCNFSM4QJT4QIA>.
C1 - Internal
|
Hi,
Can you ask you a small question about maven settings.xml ?
Gitlab runner works fine in openshift and thanks a lot for your help and for sharing your process.
I have just a question about my maven settings.xml, i have to change it (to point go to our nexus server) in the runner pod created after running the pipeline in gitlab.
I created so a configmap and a volume associate to mount in the new pod but I don't know where I can add this volume in the new pod.
I tried in the dc in the gitlab-runner-init but it doesn't work for me.
Usually this file is located in /root/.m2 directory, in openshift how can access to this file because the container doesn't run in root (normal) ?
Do you understand what I want to do ?
Can you help me about that ?
Very Thanks a lot
[spbsignaturemail]
Ludovic LACHEVRE
Administrateur Systèmes / System Administrator
71, Quai Colbert - 76600 Le Havre
Tél. : +33 (0)2 32 74 99 47 - Teams<sip:[email protected]>
ORIAS n° 07 002 642 (www.orias.fr<http:https://www.orias.fr/>)
De : Dmitrii Misharov <[email protected]>
Envoyé : lundi 24 août 2020 20:22
À : RedHatQE/ocp-gitlab-runner <[email protected]>
Cc : Ludovic LACHEVRE <[email protected]>; Author <[email protected]>
Objet : Re: [RedHatQE/ocp-gitlab-runner] Errors during downloading metadata for repository 'ubi-8-baseos' (#19)
I cannot reproduce it. I tried to perform these commands:
podman run -it --rm registry.access.redhat.com/ubi8:8.2 bash
dnf install -y git make go
and it works for me. Can you reach out https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi8/8/x86_64/baseos/os/repodata/repomd.xml locally outside of the container?
-
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#19 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AKFDGVFO6X65N5VIBVY5D3DSCKVWHANCNFSM4QJT4QIA>.
C1 - Internal
|
I believe this is https://docs.gitlab.com/runner/executors/kubernetes.html#configmap-volumes what you want. |
Thanks a lot for the doc.
In fact I know how to use configmap and volumes but in gitlab-runner case, the runner pod doesn't exist at a time and it is created only when I run the pipeline runner.
When it is created, a volume named repo is created for example and what I want to know is : where the volume repo is configured ?
[cid:[email protected]]
Thanks a lot
[spbsignaturemail]
Ludovic LACHEVRE
Administrateur Systèmes / System Administrator
71, Quai Colbert - 76600 Le Havre
Tél. : +33 (0)2 32 74 99 47 - Teams<sip:[email protected]>
ORIAS n° 07 002 642 (www.orias.fr<http:https://www.orias.fr/>)
De : Dmitrii Misharov <[email protected]>
Envoyé : mardi 1 septembre 2020 20:27
À : RedHatQE/ocp-gitlab-runner <[email protected]>
Cc : Ludovic LACHEVRE <[email protected]>; Author <[email protected]>
Objet : Re: [RedHatQE/ocp-gitlab-runner] Errors during downloading metadata for repository 'ubi-8-baseos' (#19)
I believe this is https://docs.gitlab.com/runner/executors/kubernetes.html#configmap-volumes what you want.
-
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#19 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AKFDGVAC3CABKQPACZCMSXLSDU4IFANCNFSM4QJT4QIA>.
C1 - Internal
|
I believe you're mixing up the runner pod and the builder container. The runner pod doesn't run the commands from pipelines. It waits for new tasks from GitLab server and spawns builder containers where commands from your pipeline are executed. If I understood you correctly you want to inject maven's settings.xml into a builder container that is stored in a config map. In order to do that you should configure the runner as it's described in the doc link I provided. |
Hi
Thanks a lot for your quick answer
I managed to mount pod with the configmap config.toml
[[runners]]
executor = "kubernetes"
[runners.kubernetes]
[[runners.kubernetes.volumes.config_map]]
name = "settings-maven"
mount_path = "/usr/share/maven/conf"
thanks a lot
[spbsignaturemail]
Ludovic LACHEVRE
Administrateur Systèmes / System Administrator
71, Quai Colbert - 76600 Le Havre
Tél. : +33 (0)2 32 74 99 47 - Teams<sip:[email protected]>
ORIAS n° 07 002 642 (www.orias.fr<http:https://www.orias.fr/>)
De : Dmitrii Misharov <[email protected]>
Envoyé : mercredi 2 septembre 2020 09:51
À : RedHatQE/ocp-gitlab-runner <[email protected]>
Cc : Ludovic LACHEVRE <[email protected]>; Author <[email protected]>
Objet : Re: [RedHatQE/ocp-gitlab-runner] Errors during downloading metadata for repository 'ubi-8-baseos' (#19)
I believe you're mixing up the runner pod and the builder container. The runner pod doesn't run the commands from pipelines. It waits for new tasks from GitLab server and spawns builder containers where commands from your pipeline are executed. If I understood you correctly you want to inject maven's settings.xml into a builder container that is stored in a config map. In order to do that you should configure the runner as it's described in the doc link I provided.
Another option would be just put settings.xml into the Dockerfile of the builder container image.
-
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#19 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AKFDGVAEY7U5ZL2BVECQ25DSDX2P3ANCNFSM4QJT4QIA>.
C1 - Internal
|
hi,
i am not able to proceed with the 2 dockerfiles for the runner and the helper because i received this error :
Errors during downloading metadata for repository 'ubi-8-baseos':
Error: Failed to download metadata for repo 'ubi-8-baseos': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
i tried to run the command : dnf install -y git make go inside the ubi8:8.2 image but it is the same.
i cleaned the cache, dnf but the issue is still present
i cannot unregister and register the subscription because it is disabled inside a container
can you help me about this issue ?
thanks a lot
ludo
The text was updated successfully, but these errors were encountered: