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

SDL/IP-lease: Default as to port value when as is not set to avoid "SDL invalid: IP endpoint" error #238

Open
andy108369 opened this issue Jul 25, 2024 · 0 comments
Assignees
Labels
P1 repo/provider Akash provider-services repo issues

Comments

@andy108369
Copy link
Contributor

andy108369 commented Jul 25, 2024

Issue

Dimokus reported an issue while deploying his SDL as he is trying to expose two ports (over the same endpoint of ip kind) using the IP leasing feature:

Error: SDL invalid: IP endpoint "dimokus" port: 4444 protocol: specified by service "app" already in use by "app"

Both: CLI & Console UI.

image

Fix

This error can be resolved by specifying the as value to match the port value. For example:
image

SDL contains only this endpoint:

endpoints:
 dimokus:
    kind: ip

Proposal

To prevent the "SDL invalid: IP endpoint" error when using ip kind endpoints, I suggest we default the as field to the port value if as is not explicitly set.

References

@andy108369 andy108369 added repo/provider Akash provider-services repo issues awaiting-triage labels Jul 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P1 repo/provider Akash provider-services repo issues
Projects
None yet
Development

No branches or pull requests

3 participants