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

Flake: odo dev command tests multiple dev sessions with different project are running on same platform (podman=true), same port when odo dev session is run for nodejs component when odo dev session is run for go project on the same port but different address [It] should be able to run both the sessions [podman] #6832

Closed
rm3l opened this issue May 22, 2023 · 0 comments · Fixed by #6833
Assignees
Labels
area/odo-on-podman Issues or PRs related to running odo against Podman area/testing Issues or PRs related to testing, Quality Assurance or Quality Engineering flake Categorizes issue or PR as related to a flaky test. kind/bug Categorizes issue or PR as related to a bug.
Milestone

Comments

@rm3l
Copy link
Member

rm3l commented May 22, 2023

/kind bug
/area testing
/area odo-on-podman

It looks like we are not using random names in this test..

[odo] Complete Podman output:
  [odo] Error: error adding pod to state: name "my-go-app-app" is in use: pod already exists
  [odo] 
  [FAILED] in [It] - /home/runner/work/odo/odo/tests/integration/cmd_dev_test.go:1055 @ 05/22/23 12:44:32.38
  [odo] read: read /dev/stdin: input/output error
  [odo]  ✗  Dev mode interrupted by user
  [odo] Cleaning up resources
  Setting current dir to: /tmp/800164808
  [odo] read: read /dev/stdin: input/output error
  [odo]  ✗  Finished executing the application (command: devrun) [21s]
  [odo] I0522 12:44:32.414501   62798 exec.go:49] ExecuteCommand returned an an err: signal: killed. for command '[/bin/sh -c echo $$ > /opt/odo/.odo_cmd_devrun.pid && cd ${PROJECTS_ROOT} &&  (npm start) 1>>/proc/1/fd/1 2>>/proc/1/fd/2; echo $? >> /opt/odo/.odo_cmd_devrun.pid]'
  [odo] stdout: []
  [odo] stderr: []
  [odo] I0522 12:44:32.414533   62798 kubeexec.go:118] error while running background command: unable to exec command [/bin/sh -c echo $$ > /opt/odo/.odo_cmd_devrun.pid && cd ${PROJECTS_ROOT} &&  (npm start) 1>>/proc/1/fd/1 2>>/proc/1/fd/2; echo $? >> /opt/odo/.odo_cmd_devrun.pid]: signal: killed
  [odo] I0522 12:44:32.414541   62798 kubeexec.go:40] GetProcessInfoForCommand for "devrun"
  [odo] I0522 12:44:32.414556   62798 exec.go:33] Executing command [/bin/sh -c cat /opt/odo/.odo_cmd_devrun.pid || true] for pod: nodejs-app in container: runtime
  [odo] I0522 12:44:32.414630   62798 exec.go:26] executing [podman exec --interactive nodejs-app-runtime /bin/sh -c cat /opt/odo/.odo_cmd_devrun.pid || true]
  [odo] I0522 12:44:32.414702   62798 exec.go:49] ExecuteCommand returned an an err: context canceled. for command '[/bin/sh -c cat /opt/odo/.odo_cmd_devrun.pid || true]'
  [odo] stdout: []
  [odo] stderr: []
  [odo] I0522 12:44:32.414726   62798 execute_run.go:36] error while running background command: unable to exec command [/bin/sh -c echo $$ > /opt/odo/.odo_cmd_devrun.pid && cd ${PROJECTS_ROOT} &&  (npm start) 1>>/proc/1/fd/1 2>>/proc/1/fd/2; echo $? >> /opt/odo/.odo_cmd_devrun.pid]: signal: killed
  [odo] I0522 12:44:32.419647   62798 podman.go:146] executing [podman pod stop nodejs-app]
  [odo] Cleaning up resources
  [odo] I0522 12:44:43.975847   62798 podman.go:154] Stopped pod 41ef7b84087642a4b6b31aebd19b732fc3bb5726f20c518878a3cdb21e93c0fb
  [odo] I0522 12:44:43.975[911](https://github.com/redhat-developer/odo/actions/runs/5045832057/jobs/9050596301#step:5:912)   62798 podman.go:160] executing [podman pod rm nodejs-app]
  [odo] I0522 12:44:58.584160   62798 podman.go:168] Deleted pod 41ef7b84087642a4b6b31aebd19b732fc3bb5726f20c518878a3cdb21e93c0fb
  [odo] I0522 12:44:58.584204   62798 podman.go:231] deleting podman volume "odo-projects-nodejs-app"
  [odo] I0522 12:44:58.584302   62798 podman.go:187] executing [podman volume rm odo-projects-nodejs-app]
  [odo] I0522 12:44:58.860758   62798 podman.go:195] Deleted volume odo-projects-nodejs-app
  [odo] I0522 12:44:58.860782   62798 podman.go:231] deleting podman volume "odo-shared-data-nodejs-app"
  [odo] I0522 12:44:58.860857   62798 podman.go:187] executing [podman volume rm odo-shared-data-nodejs-app]
  [odo] I0522 12:44:59.418896   62798 podman.go:195] Deleted volume odo-shared-data-nodejs-app
  [odo]  ✗  Dev mode interrupted by user
  Setting current dir to: /tmp/800164808
  Deleting dir: /tmp/1531584781
  Deleting dir: /tmp/1448572446
  Setting current dir to: /home/runner/work/odo/odo/tests/integration
  Deleting dir: /tmp/800164808
  Deleting dir: /tmp/111611250
  << Timeline

  [FAILED] Expected
      <string>: 
  to be equivalent to
      <string>: 127.0.10.1:30101
  In [It] at: /home/runner/work/odo/odo/tests/integration/cmd_dev_test.go:1055 @ 05/22/23 12:44:32.38
@openshift-ci openshift-ci bot added kind/bug Categorizes issue or PR as related to a bug. area/testing Issues or PRs related to testing, Quality Assurance or Quality Engineering area/odo-on-podman Issues or PRs related to running odo against Podman labels May 22, 2023
@github-actions github-actions bot added the needs-triage Indicates an issue or PR lacks a `triage/*` and requires one. label May 22, 2023
@rm3l rm3l added the flake Categorizes issue or PR as related to a flaky test. label May 22, 2023
@rm3l rm3l self-assigned this May 22, 2023
@rm3l rm3l added this to the v3.11.0 🚀 milestone May 22, 2023
@rm3l rm3l removed the needs-triage Indicates an issue or PR lacks a `triage/*` and requires one. label May 22, 2023
@rm3l rm3l moved this to In Review 👀 in odo Project May 22, 2023
@github-project-automation github-project-automation bot moved this from In Review 👀 to Done ✅ in odo Project May 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/odo-on-podman Issues or PRs related to running odo against Podman area/testing Issues or PRs related to testing, Quality Assurance or Quality Engineering flake Categorizes issue or PR as related to a flaky test. kind/bug Categorizes issue or PR as related to a bug.
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant