support running Fabric8IstioIT with colima

Aperta
#1,602 10 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

  • #2302 di @arjavdongaonkar — chiusa senza merge

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Tranquilla
Stack tecnologico
docker, java, kubernetes

Direzione di ricerca

Inizia dal punto di ingresso Fabric8IstioIT e dal workflow che lo esegue, quindi esamina la configurazione di Testcontainers e Colima riportata nei log. Traccia la gestione da parte di Commons del percorso temporaneo spring-cloud-kubernetes-fabric8-client-istio.tar e confrontala con l’esecuzione locale; il lavoro è completato quando il test di integrazione viene eseguito localmente sulla configurazione aarch64 di Colima indicata.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

waiting-for-triage

Describe the bug
I can see that Fabric8IstioIT runs in the workflow, but I'm having trouble executing it locally. First, I have to disable ryuk, then it still doesn't work on account of some resources. Are there some instructions I may be missing? I run install first. Note: I am running an M2 macbook (aarch64) and using colima.

Sample

ryuk enabled (default)

[INFO] Running org.springframework.cloud.kubernetes.fabric8.client.istio.Fabric8IstioIT
13:12:18.044 [main] INFO  org.testcontainers.images.PullPolicy - Image pull policy will be performed by: DefaultPullPolicy()
13:12:18.048 [main] INFO  org.testcontainers.utility.ImageNameSubstitutor - Image name substitution will be performed by: DefaultImageNameSubstitutor (composite of 'ConfigurationFileImageNameSubstitutor' and 'PrefixingImageNameSubstitutor')
13:12:18.264 [main] INFO  org.testcontainers.dockerclient.DockerClientProviderStrategy - Found Docker environment with Environment variables, system properties and defaults. Resolved dockerHost=unix:///Users/adrian/.colima/default/docker.sock
13:12:18.267 [main] INFO  org.testcontainers.DockerClientFactory - Docker host IP address is 192.168.106.2
13:12:18.278 [main] INFO  org.testcontainers.DockerClientFactory - Connected to docker: 
  Server Version: 24.0.9
  API Version: 1.43
  Operating System: Ubuntu 23.10
  Total Memory: 7922 MB
13:12:18.282 [main] INFO  org.testcontainers.DockerClientFactory - Checking the system...
13:12:18.282 [main] INFO  org.testcontainers.DockerClientFactory - ✔︎ Docker server version should be at least 1.6.0
13:12:18.302 [main] INFO  tc.rancher/k3s:v1.25.4-k3s1 - Creating container for image: rancher/k3s:v1.25.4-k3s1
13:12:18.349 [main] INFO  org.testcontainers.utility.RegistryAuthLocator - Credential helper/store (docker-credential-osxkeychain) does not have credentials for https://index.docker.io/v1/
13:12:18.352 [main] INFO  tc.testcontainers/ryuk:0.6.0 - Creating container for image: testcontainers/ryuk:0.6.0
13:12:18.407 [main] INFO  tc.testcontainers/ryuk:0.6.0 - Container testcontainers/ryuk:0.6.0 is starting: f55a49f5bd6f328e0709ce8155b559c9a763563487be704527956ed724036f19
13:12:18.629 [main] INFO  tc.testcontainers/ryuk:0.6.0 - Container testcontainers/ryuk:0.6.0 started in PT0.276852S
13:12:18.642 [testcontainers-ryuk] WARN  org.testcontainers.utility.RyukResourceReaper - Can not connect to Ryuk at 192.168.106.2:32773
java.net.ConnectException: Connection refused
	at java.base/sun.nio.ch.Net.pollConnect(Native Method)
	at java.base/sun.nio.ch.Net.pollConnectNow(Net.java:682)
	at java.base/sun.nio.ch.NioSocketImpl.timedFinishConnect(NioSocketImpl.java:549)
	at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:592)
	at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327)
	at java.base/java.net.Socket.connect(Socket.java:757)
	at org.testcontainers.utility.RyukResourceReaper.lambda$null$1(RyukResourceReaper.java:105)
	at org.rnorth.ducttape.ratelimits.RateLimiter.doWhenReady(RateLimiter.java:27)
	at org.testcontainers.utility.RyukResourceReaper.lambda$maybeStart$2(RyukResourceReaper.java:101)
	at java.base/java.lang.Thread.run(Thread.java:1583)
13:12:18.910 [testcontainers-ryuk] WARN  org.testcontainers.utility.RyukResourceReaper - Can not connect to Ryuk at 192.168.106.2:32773

ryuk disabled

[INFO] Running org.springframework.cloud.kubernetes.fabric8.client.istio.Fabric8IstioIT
13:16:28.644 [main] INFO  org.testcontainers.images.PullPolicy - Image pull policy will be performed by: DefaultPullPolicy()
13:16:28.646 [main] INFO  org.testcontainers.utility.ImageNameSubstitutor - Image name substitution will be performed by: DefaultImageNameSubstitutor (composite of 'ConfigurationFileImageNameSubstitutor' and 'PrefixingImageNameSubstitutor')
13:16:28.853 [main] INFO  org.testcontainers.dockerclient.DockerClientProviderStrategy - Found Docker environment with Environment variables, system properties and defaults. Resolved dockerHost=unix:///Users/adrian/.colima/default/docker.sock
13:16:28.854 [main] INFO  org.testcontainers.DockerClientFactory - Docker host IP address is null
13:16:28.863 [main] INFO  org.testcontainers.DockerClientFactory - Connected to docker: 
  Server Version: 24.0.9
  API Version: 1.43
  Operating System: Ubuntu 23.10
  Total Memory: 7922 MB
13:16:28.863 [main] WARN  org.testcontainers.utility.ResourceReaper - 
********************************************************************************
Ryuk has been disabled. This can cause unexpected behavior in your environment.
********************************************************************************
13:16:28.865 [main] INFO  org.testcontainers.DockerClientFactory - Checking the system...
13:16:28.865 [main] INFO  org.testcontainers.DockerClientFactory - ✔︎ Docker server version should be at least 1.6.0
13:16:28.884 [main] INFO  tc.rancher/k3s:v1.25.4-k3s1 - Creating container for image: rancher/k3s:v1.25.4-k3s1
13:16:28.930 [main] INFO  org.testcontainers.utility.RegistryAuthLocator - Credential helper/store (docker-credential-osxkeychain) does not have credentials for https://index.docker.io/v1/
13:16:28.940 [main] INFO  tc.alpine:3.16 - Pulling docker image: alpine:3.16. Please be patient; this may take some time but only needs to be done once.
13:16:32.664 [docker-java-stream-1037873389] INFO  tc.alpine:3.16 - Starting to pull image
13:16:32.681 [docker-java-stream-1037873389] INFO  tc.alpine:3.16 - Pulling image layers:  0 pending,  0 downloaded,  0 extracted, (0 bytes/0 bytes)
13:16:35.335 [docker-java-stream-1037873389] INFO  tc.alpine:3.16 - Pulling image layers:  0 pending,  1 downloaded,  0 extracted, (2 MB/2 MB)
13:16:35.442 [docker-java-stream-1037873389] INFO  tc.alpine:3.16 - Pulling image layers:  0 pending,  1 downloaded,  1 extracted, (2 MB/2 MB)
13:16:35.450 [docker-java-stream-1037873389] INFO  tc.alpine:3.16 - Pull complete. 1 layers, pulled in 2s (downloaded 2 MB at 1 MB/s)
13:16:35.450 [main] INFO  tc.alpine:3.16 - Image alpine:3.16 pull took PT6.510444S
13:16:36.941 [main] INFO  tc.rancher/k3s:v1.25.4-k3s1 - Container rancher/k3s:v1.25.4-k3s1 is starting: 2c4d57bd83fdb42c2112dcd3d726c8609c840546fa0b98a65ecacb88814e720a
13:16:55.749 [main] INFO  tc.rancher/k3s:v1.25.4-k3s1 - Container rancher/k3s:v1.25.4-k3s1 started in PT26.865397S
13:17:01.057 [awaitility-thread] INFO  org.springframework.cloud.kubernetes.integration.tests.commons.Commons - error is : ctr: open /var/folders/vd/1cf8zdb1721f4z5rjggy8bp40000gn/T/spring-cloud-kubernetes-fabric8-client-istio.tar: no such file or directory

cc @wind57 as seems you have been able to get this working. ps I have already tried upgrading the docker and testcontainers drivers. PS the istio, k3s, alpine, etc versions in this test are very out of date.

Lingua principale
Java
Stelle
3.5k
Fork
1k
Merge medio
2g 10h
PR unite (30g)
16

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di spring-cloud/spring-cloud-kubernetes

Tutte le issue di spring-cloud/spring-cloud-kubernetes

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.