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

Unable to use docker image sha256 #2460

Closed
prestonvanloon opened this issue May 23, 2024 · 2 comments
Closed

Unable to use docker image sha256 #2460

prestonvanloon opened this issue May 23, 2024 · 2 comments
Labels
bug Something isn't working cli For bugs relating to the CLI critical Critical bug or feature

Comments

@prestonvanloon
Copy link

What's your CLI version?

0.89.10

Description & steps to reproduce

Problem

Kurtosis seems to blow up when using a sha256 string for a docker image. This is a valid string and works fine in kubernetes.

There was an error interpreting Starlark code 
Evaluation error: Cannot construct 'ServiceConfig' from the provided arguments.
        Caused by: The following argument(s) could not be parsed or did not pass validation: {"labels":"An error occurred validating service config labels 'map[ethereum-package.client:geth ethereum-package.client-image:ethereum-client-go@sha256-2246c2df2eef7e1f88213cc6b98c3f180ddfd6c16a96e634143e47a3de2d313c ethereum-package.client-type:execution ethereum-package.connected-client:prysm]'\n\tCaused by: Invalid service config label value 'ethereum-client-go@sha256-2246c2df2eef7e1f88213cc6b98c3f180ddfd6c16a96e634143e47a3de2d313c'\n --- at /home/circleci/project/container-engine-lib/lib/backend_interface/objects/service/service_config_validators.go:27 (ValidateServiceConfigLabels) ---\nCaused by: Expected label string 'ethereum-client-go@sha256-2246c2df2eef7e1f88213cc6b98c3f180ddfd6c16a96e634143e47a3de2d313c' to be a Kubernetes label value, instead it failed validation:\nmust be no more than 63 characters\n\na valid label must be an empty string or consist of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyValue',  or 'my_value',  or '12345', regex used for validation is '(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?')\n --- at /home/circleci/project/container-engine-lib/lib/backend_impls/kubernetes/object_attributes_provider/kubernetes_label_value/kubernetes_label_value.go:42 (ValidateKubernetesLabelValue) ---"}
        at [github.com/kurtosis-tech/ethereum-package/main.star:126:55]: run
        at [github.com/kurtosis-tech/ethereum-package/src/participant_network.star:144:48]: launch_participant_network
        at [github.com/kurtosis-tech/ethereum-package/src/el/el_launcher.star:141:35]: launch
        at [github.com/kurtosis-tech/ethereum-package/src/el/geth/geth_launcher.star:128:24]: launch
        at [github.com/kurtosis-tech/ethereum-package/src/el/geth/geth_launcher.star:374:25]: get_config
        at [0:0]: ServiceConfig

Error encountered running Starlark code.

To reproduce:

kurtosis run github.com/kurtosis-tech/ethereum-package --args-file ./testing/kurtosis/presubmit.yaml

presubmit.yaml can be found in the gist below.

https://gist.github.com/prestonvanloon/f72a26df7b647af6c5b36f4377d5c06a

Desired behavior

We must have consistency and reproducibility in our CI and will not accept using docker labels. We must use sha256 strings for our docker image definitions and this should work fine.

What is the severity of this bug?

Critical; I am blocked and Kurtosis is unusable for me because of this bug.

What area of the product does this pertain to?

CLI: the Command Line Interface

@prestonvanloon prestonvanloon added the bug Something isn't working label May 23, 2024
@github-actions github-actions bot added cli For bugs relating to the CLI critical Critical bug or feature labels May 23, 2024
@prestonvanloon
Copy link
Author

Confirming that reverting ethpandaops/ethereum-package#634 fixes my issue.

OK to move this issue to that repo or close this.

@prestonvanloon
Copy link
Author

Fixed by ethpandaops/ethereum-package#636

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cli For bugs relating to the CLI critical Critical bug or feature
Projects
None yet
Development

No branches or pull requests

1 participant