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 dev prints ✗ Executing the application after cleaning up the resources #5881

Closed
dharmit opened this issue Jun 27, 2022 · 4 comments · Fixed by #5972
Closed

odo dev prints ✗ Executing the application after cleaning up the resources #5881

dharmit opened this issue Jun 27, 2022 · 4 comments · Fixed by #5972
Assignees
Labels
area/dev Issues or PRs related to `odo dev` kind/bug Categorizes issue or PR as related to a bug. priority/High Important issue; should be worked on before any other issues (except priority/Critical issue(s)).

Comments

@dharmit
Copy link
Member

dharmit commented Jun 27, 2022

/kind bug
/area dev

What versions of software are you using?

Operating System: all

Output of odo version: main

How did you run odo exactly?

  • Built odo from the main branch and ran odo dev
  • Hit Ctrl+C to stop the odo dev session

Actual behavior

odo prints ✗ Executing the application (command: run) [1m] after cleaning up the resources. But it doesn't error out - echo $? output is 0.

...
Cancelling deployment.
This is non-preemptive operation, it will wait for other tasks to finish first

Cleaning resources, please wait
 ✗  Executing the application (command: run) [1m]

Expected behavior

odo shouldn't print such a message

@openshift-ci openshift-ci bot added kind/bug Categorizes issue or PR as related to a bug. area/dev Issues or PRs related to `odo dev` labels Jun 27, 2022
@kadel kadel added the priority/High Important issue; should be worked on before any other issues (except priority/Critical issue(s)). label Jul 18, 2022
@valaparthvi
Copy link
Contributor

Do not print the error message, since the cleaning up is already done, and the message doesn't make sense.

@dharmit dharmit moved this to In Progress in odo v3-beta2 Jul 21, 2022
@feloy
Copy link
Contributor

feloy commented Jul 22, 2022

Please take #5933 into account, as it works around this

@dharmit
Copy link
Member Author

dharmit commented Jul 22, 2022

Please take #5933 into account, as it works around this

Do you mean that PR addresses this issue? 🤔
Not sure if I understand what you are suggesting here.

@dharmit
Copy link
Member Author

dharmit commented Jul 25, 2022

Do you mean that PR addresses this issue? thinking Not sure if I understand what you are suggesting here.

I just checked this out myself and it seems like your PR doesn't address this issue:

$ odo dev                     
  __
 /  \__     Developing using the devfile-nodejs-deploy Devfile
 \__/  \    Namespace: myproject
 /  \__/    odo version: v3.0.0-beta1
 \__/

↪ Deploying to the cluster in developer mode
 •  Waiting for Kubernetes resources  ...
 ✓  Creating kind Pod 
 ⚠  Pod is Pending
 ⚠  0/1 nodes are available: 1 pod has unbound immediate PersistentVolumeClaims. preemption: 0/1 nodes are available: 1 Preemption is not helpful for scheduling.
 ✓  Pod is Running
 ✓  Syncing files into the container [232ms]
 ✓  Building your application in container on cluster (command: install) [2s]
 •  Executing the application (command: run)  ...
 - Forwarding from 127.0.0.1:40001 -> 3000

Watching for changes in the current directory /home/dshah/src/devfile-nodejs-deploy
Press Ctrl+c to exit `odo dev` and delete resources from the cluster

Pushing files...


File /home/dshah/src/devfile-nodejs-deploy/sedunRjCg changed

File /home/dshah/src/devfile-nodejs-deploy/server.js changed
 •  Waiting for Kubernetes resources  ...
 ✓  Syncing files into the container [96ms]
 ✓  Building your application in container on cluster (command: install) [1s]
 ✗  Executing the application (command: run) [21s]
 •  Executing the application (command: run)  ...

Watching for changes in the current directory /home/dshah/src/devfile-nodejs-deploy
Press Ctrl+c to exit `odo dev` and delete resources from the cluster

^C

Cancelling deployment.
This is non-preemptive operation, it will wait for other tasks to finish first

Cleaning resources, please wait
 ✗  Executing the application (command: run) [2m]

It prints the message in question just like the code from main branch does.

@dharmit dharmit moved this from In Progress to For review in odo v3-beta2 Jul 25, 2022
Repository owner moved this from For review to Done in odo v3-beta2 Aug 16, 2022
@rm3l rm3l added the v3 label Oct 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/dev Issues or PRs related to `odo dev` kind/bug Categorizes issue or PR as related to a bug. priority/High Important issue; should be worked on before any other issues (except priority/Critical issue(s)).
Projects
No open projects
Status: Done
Development

Successfully merging a pull request may close this issue.

5 participants