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

[BUG] Error when connecting to provider.. for intent brokering when running chariott in a container #218

Open
ladatz opened this issue Oct 27, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@ladatz
Copy link
Contributor

ladatz commented Oct 27, 2023

Expected Behavior

Intent brokering when running Chariott in a container should work

Current Behavior

Trying to call an intent on (i.e. discover) returns an error:
ERROR:
Code: Unknown
Message: Failed to connect to provider: Error when connecting to provider..

Steps to Reproduce

  1. Run Chariott with intent brokering in a container:
    podman build -t chariott:latest -f Dockerfile
    podman run -p 4243:4243 chariott:latest
  2. Start the simple-provider in another terminal window (cargo run -p simple-provider)
  3. Try to discover the provider in a grpcurl command in another terminal window (
    grpcurl -import-path {path}/chariott/proto -proto chariott/runtime/v1/runtime.proto -plaintext -d @ 0.0.0.0:4243 chariott.runtime.v1.ChariottService/Fulfill <<EOF
    {
    "namespace": "sdv.simple.provider",
    "intent": {
    "discover": {}
    }
    }
    EOF

The result is:

ERROR:
Code: Unknown
Message: Failed to connect to provider: Error when connecting to provider..

Context (Environment)

amd64 Ubuntu 20.04 WSL2

Additional Information

I suspect this is related to changes in container runtimes in the past year or so that require using domain names instead of 0.0.0.0 in some circumstances but needs more investigation. Discovered while testing #217 , but confirmed the issue was there before that PR.

@ladatz ladatz added the bug Something isn't working label Oct 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant