HugoByte / polkadot-kurtosis-package

Polkadot Kurtosis Package
Apache License 2.0
7 stars 3 forks source link

Deployment of testnet configuration with explorer fails #197

Open MuhammedIrfan opened 5 months ago

MuhammedIrfan commented 5 months ago

Overview

Up on deployment of testnet configuration with explorer the execution fails with error

Steps to Reproduce

Steps to reproduce the behavior:

  1. Setup kurtosis in kubernetes
  2. Run the package using
    kurtosis run github.com/hugobyte/polkadot-kurtosis-package '{ "chain_type": "testnet", "relaychain": {}, "parachains": [ { "name":"frequency", "nodes": [ { "name": "alice", "node_type": "validator", "prometheus": false } ] } ], "explorer": true }'
  3. The execution stops with error
    
    There was an error executing Starlark code 
    An error occurred executing instruction (number 5) at github.com/hugobyte/polkadot-kurtosis-package/package_io/polkadot_js_app.star[25:39]:
    add_service(name="polkadot-js-explorer", config=ServiceConfig(image="jacogr/polkadot-js-apps:latest", ports={"TCP": PortSpec(number=80)}, public_ports={"TCP": PortSpec(number=80)}, env_vars={"WS_URL": "ws://127.0.0.1:9944"}))
    Caused by: Unexpected error occurred starting service 'polkadot-js-explorer'
    Caused by: An error occurred creating pod 'polkadot-js-explorer' using image 'jacogr/polkadot-js-apps:latest'
    Caused by: Expected to be able to create pod with name 'polkadot-js-explorer' and labels 'map[kurtosistech.com/app-id:kurtosis kurtosistech.com/enclave-id:d9934a8cbbf14c1f85f7da8e451be2ba kurtosistech.com/guid:13011a0697aa467b8257da65a718fc11 kurtosistech.com/id:polkadot-js-explorer kurtosistech.com/resource-type:user-service]', instead a non-nil error was returned
    Caused by: Pod "polkadot-js-explorer" is invalid: [spec.containers[0].ports[0].name: Invalid value: "TCP": must contain only alpha-numeric characters (a-z, 0-9), and hyphens (-), spec.containers[0].ports[0].name: Invalid value: "TCP": must contain at least one letter (a-z)]

Error encountered running Starlark code.



## Expected Behavior
The execution should complete without the error.
hemz10 commented 5 months ago

Same error observed with localnet as well

shanithkk commented 5 months ago

Hi @MuhammedIrfan , @hemz10 issue are closed in PR #200

hemz10 commented 5 months ago

Hi @shanithkk verified and the command runs without any error but explorer is not working