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

odo inside DevSpaces: forwarded ports not detected by Port Extension #6457

Closed
kadel opened this issue Jan 4, 2023 · 4 comments
Closed

odo inside DevSpaces: forwarded ports not detected by Port Extension #6457

kadel opened this issue Jan 4, 2023 · 4 comments
Labels
kind/bug Categorizes issue or PR as related to a bug. needs-triage Indicates an issue or PR lacks a `triage/*` and requires one.

Comments

@kadel
Copy link
Member

kadel commented Jan 4, 2023

/kind bug

I have encountered an issue arising when using odo inside of DevSpaces. Normally when a process inside of a DevSpaces workspace opens a port, the Port extension realizes this, shows a prompt to publish the URL externally. This works great for example when starting Quarkus in dev mode
mvn quarkus:dev
But when running odo 3
odo dev
which now works by tunneling a local ports 40001 and 40002 to the OpenShift service, Port extension does not pick this up, so there are no Routes published in DevSpaces and hence you cannot access the running app.

What versions of software are you using?

Operating System:

Output of odo version:

How did you run odo exactly?

Actual behavior

Expected behavior

Any logs, error output, etc?

@openshift-ci openshift-ci bot added the kind/bug Categorizes issue or PR as related to a bug. label Jan 4, 2023
@github-actions github-actions bot added the needs-triage Indicates an issue or PR lacks a `triage/*` and requires one. label Jan 4, 2023
@rm3l rm3l added this to odo Project Jan 4, 2023
@kadel
Copy link
Member Author

kadel commented Jan 5, 2023

From quick research, it looks like it is related to the port numbers.

If I change quarkus to listen on 40001, the port is not detected.

a quick way to test it is using python

python -m http.server 8080

8080 - detected
7000 - detected
30000 - detected
40000 - not detected
31000 - detected
32000 - not detected
31900 - detected
31999 - detected
32000 - not detected

from testing, it looks like it checks only for ports < 32000

@kadel
Copy link
Member Author

kadel commented Jan 10, 2023

@rm3l
Copy link
Member

rm3l commented Mar 22, 2023

/close

Issue fixed via #6483

@openshift-ci
Copy link

openshift-ci bot commented Mar 22, 2023

@rm3l: Closing this issue.

In response to this:

/close

Issue fixed via #6483

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@openshift-ci openshift-ci bot closed this as completed Mar 22, 2023
@github-project-automation github-project-automation bot moved this to Done ✅ in odo Project Mar 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug. needs-triage Indicates an issue or PR lacks a `triage/*` and requires one.
Projects
Archived in project
Development

No branches or pull requests

2 participants