Open Cbdc2022 opened 1 year ago
CC @kylecrawshaw
FYI: OS: ubuntu 22.04 running on virtual machine - VMware® Workstation 16 Pro (16.2.4 build-20089737)
$ docker version Client: Docker Engine - Community Version: 20.10.21 API version: 1.41 Go version: go1.18.7 Git commit: baeda1f Built: Tue Oct 25 18:01:58 2022 OS/Arch: linux/amd64 Context: default Experimental: true
Server: Docker Engine - Community Engine: Version: 20.10.21 API version: 1.41 (minimum version 1.12) Go version: go1.18.7 Git commit: 3056208 Built: Tue Oct 25 17:59:49 2022 OS/Arch: linux/amd64 Experimental: false containerd: Version: 1.6.9 GitCommit: 1c90a442489720eec95342e1789ee8a5e1b9536f runc: Version: 1.1.4 GitCommit: v1.1.4-0-g5fd4c4d docker-init: Version: 0.19.0 GitCommit: de40ad0
~$ minikube version minikube version: v1.27.1 commit: fe869b5d4da11ba318eb84a3ac00f336411de7ba
$ helm version version.BuildInfo{Version:"v3.7.0", GitCommit:"eeac83883cb4014fe60267ec6373570374ce770b", GitTreeState:"clean", GoVersion:"go1.16.8"}
$ kubectl version --short Flag --short has been deprecated, and will be removed in the future. The --short output will become the default. Client Version: v1.25.3 Kustomize Version: v4.5.7 Server Version: v1.25.2
~$ go version go version go1.18.1 linux/amd64
It works after the following change:
The problem is using variable name "repository" will cause issue, maybe "repository" is a keyword or something. I need to change "repository" to "repositoryVal" ( "repository2" also works)
must run ./scripts/build-docker.sh first to create local docker images , then run /scripts/test-e2e-minikube.sh
Interesting. Needing to run ./scripts/build-docker.sh
is known and required before running the E2E test suite, but I'm surprised that repository
is causing an issue for you in the yaml files (since it's worked for us several times now). Can you tell me more about the setup you have so we can figure out what might be causing that?
sorry for the delay response. not sure what is special on my end. I suspect it is helm. I am using helm with Version:"v3.7.0". when using variable name "repository", kube pod created for shard (and other components) is looking for image/tag ="opencbdc-tx:latest". However, the image/tag created by "./scripts/build-docker.sh " is "opencbdc-tx-twophase:latest". Basically, line "repository: opencbdc-tx-twophase" in 'values.yaml" will always create kube pod with image/tag ="opencbdc-tx:latest" regardless what value I assign to variable "repository".
FYI:
trader@trader-virtual-machine:~/Documents/code/opencbdc/opencbdc-tx-trunk$ kubectl describe pod -n opencbdc-tx-lt1ptx shard-0-0-0
Name: shard-0-0-0
Namespace: opencbdc-tx-lt1ptx
Priority: 0
Service Account: opencbdc-tx-updox9-opencbdc-2pc
Node: opencbdc/192.168.49.2
Start Time: Thu, 05 Jan 2023 22:35:38 -0500
Labels: app.kubernetes.io/instance=opencbdc-tx-updox9
app.kubernetes.io/name=shard
controller-revision-hash=shard-0-0-88c8d7f46
opencbdc.hmltn.io/clusterId=0
opencbdc.hmltn.io/id=0
opencbdc.hmltn.io/role=shard
statefulset.kubernetes.io/pod-name=shard-0-0-0
Annotations:
Image: opencbdc-tx:latest
Image ID:
Ports: 6666/TCP, 6667/TCP, 6767/TCP
trader@trader-virtual-machine:~/Documents/code/opencbdc/opencbdc-tx-trunk$ docker image ls -a REPOSITORY TAG IMAGE ID CREATED SIZE
As it's working for me, several other people, and especially because it works in the github CI, I'm very hesitant to change this without knowing the actual cause (or at least knowing for sure that changing the name wouldn't break something else).
Hi, I tried to run "E2E Testing with Kubernetes" , but all test cases failed with the following error: Events: Type Reason Age From Message
Normal Scheduled 7m17s default-scheduler Successfully assigned opencbdc-tx-qg7ep1/shard-0-1-0 to opencbdc Warning Failed 5m17s (x12 over 7m15s) kubelet Error: ErrImageNeverPull Warning ErrImageNeverPull 2m6s (x27 over 7m15s) kubelet Container image "opencbdc-tx:latest" is not present with pull policy of Never
Not sure where to get the correct Image, would you please help when have time. thank you.
File "testrun.log" attached. testrun.log Yes, I have run the ./scripts/build-docker.sh
FYI: OS: ubuntu 22.04
tried to run:
E2E Testing with Kubernetes Requirements Go (go test library used to run tests) Minikube Helm Kubectl Running tests ./scripts/test-e2e-minikube.sh Review results and logs at testruns//
FYI: ./scripts/build-docker.sh Sending build context to Docker daemon 106.7MB Step 1/10 : ARG IMAGE_VERSION="ubuntu:20.04" Step 2/10 : ARG BASE_IMAGE="ghcr.io/mit-dci/opencbdc-tx-base:latest" Step 3/10 : FROM $IMAGE_VERSION AS base 20.04: Pulling from library/ubuntu eaead16dc43b: Pull complete Digest: sha256:450e066588f42ebe1551f3b1a535034b6aa46cd936fe7f2c6b0d72997ec61dbd Status: Downloaded newer image for ubuntu:20.04 ---> 680e5dfb52c7 Step 4/10 : ENV DEBIAN_FRONTEND noninteractive .......
$ docker images -a --digests REPOSITORY TAG DIGEST IMAGE ID CREATED SIZE