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 watch try to remove non-existent file #3736

Closed
prietyc123 opened this issue Aug 11, 2020 · 9 comments
Closed

odo watch try to remove non-existent file #3736

prietyc123 opened this issue Aug 11, 2020 · 9 comments
Labels
area/devfile-spec Issues or PRs related to the Devfile specification and how odo handles and interprets it. flake Categorizes issue or PR as related to a flaky test. lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. priority/Medium Nice to have issue. Getting it done before priority changes would be great.

Comments

@prietyc123
Copy link
Contributor

/kind flake

What versions of software are you using?

Operating System:
All supported

Output of odo version:
master

How did you run odo exactly?

Running test on CI

Actual behavior

Created dir: /tmp/039552673
Setting KUBECONFIG=/tmp/039552673/config
Creating a new project: biqxjgybqm
Running odo with args [odo project create biqxjgybqm -w -v4]
[odo]  •  Waiting for project to come up  ...
[odo] I0811 06:13:29.441413    9069 occlient.go:542] Status of creation of project biqxjgybqm is Active
[odo] I0811 06:13:29.441522    9069 occlient.go:547] Project biqxjgybqm now exists
[odo] I0811 06:13:29.457949    9069 namespace.go:181] Status of creation of service account &ServiceAccount{ObjectMeta:{default  biqxjgybqm /api/v1/namespaces/biqxjgybqm/serviceaccounts/default 09824063-5d18-4dea-b035-b2cebf11380c 161048 0 2020-08-11 06:13:29 +0000 UTC <nil> <nil> map[] map[] [] []  []},Secrets:[]ObjectReference{ObjectReference{Kind:,Namespace:,Name:default-token-6jrxl,UID:,APIVersion:,ResourceVersion:,FieldPath:,},ObjectReference{Kind:,Namespace:,Name:default-dockercfg-qhmg2,UID:,APIVersion:,ResourceVersion:,FieldPath:,},},ImagePullSecrets:[]LocalObjectReference{LocalObjectReference{Name:default-dockercfg-qhmg2,},},AutomountServiceAccountToken:nil,} is ready
[odo] 
 ✓  Waiting for project to come up [690ms]
[odo]  ✓  Project 'biqxjgybqm' is ready for use
[odo]  ✓  New project created and now using project: biqxjgybqm
[odo] I0811 06:13:29.468264    9069 odo.go:72] Could not get the latest release information in time. Never mind, exiting gracefully :)
Current working dir: /go/src/github.com/openshift/odo/tests/integration/devfile
Setting current dir to: /tmp/039552673
Running odo with args [odo preference set Experimental true]
[...]
[odo] I0811 06:13:29.560144    9093 preference.go:209] The path for preference file is /tmp/039552673/config.yaml
[odo] Global preference was successfully updated
[odo] I0811 06:13:29.560494    9093 odo.go:72] Could not get the latest release information in time. Never mind, exiting gracefully :)
Running odo with args [odo create nodejs --project biqxjgybqm jkrlei]
[odo] I0811 06:13:29.722611    9113 preference.go:209] The path for preference file is /tmp/039552673/config.yaml
[odo] Experimental mode is enabled, use at your own risk
[...]
[odo] Please use `odo push` command to create the component with source deployed
[odo] I0811 06:13:29.727475    9113 odo.go:72] Could not get the latest release information in time. Never mind, exiting gracefully :)
Running odo with args [odo push --project biqxjgybqm]
[odo] I0811 06:13:29.814957    9154 preference.go:209] The path for preference file is /tmp/039552673/config.yaml
[...]
[odo]  ✓  Changes successfully pushed to component
[odo] I0811 06:13:38.940586    9154 odo.go:72] Could not get the latest release information in time. Never mind, exiting gracefully :)
Running odo with args [odo push --debug --project biqxjgybqm]
[odo] I0811 06:13:39.031118    9590 preference.go:209] The path for preference file is /tmp/039552673/config.yaml
[...]
✓  Executing debugrun command "npm run debug", if not running [1s]
[odo] 
[odo] Pushing devfile component jkrlei
[odo]  ✓  Changes successfully pushed to component
[odo] I0811 06:13:43.349593    9590 odo.go:72] Could not get the latest release information in time. Never mind, exiting gracefully :)
Running command:  [odo watch --context /tmp/039552673]
Replacing "Hello" with "Hello odo" in /tmp/039552673/server.js
Replacing "application" with "app" in /tmp/039552673/package.json
Checking http://localhost:42669, for WebSockets request was expected
try 0 of 12
Running odo with args [odo debug port-forward --local-port 42669]
error while requesting: Get http://localhost:42669: dial tcp [::1]:42669: connect: connection refused
[odo] I0811 06:14:03.451341    9640 preference.go:209] The path for preference file is /tmp/039552673/config.yaml
[odo] I0811 06:14:03.451587    9640 preference.go:209] The path for preference file is /tmp/039552673/config.yaml
[odo] Started port forwarding at ports - 42669:5858
try 1 of 12
Running odo with args [odo push --project biqxjgybqm]
[odo] I0811 06:14:09.503547    9660 preference.go:209] The path for preference file is /tmp/039552673/config.yaml
[odo] I0811 06:14:09.503695    9660 context.go:69] absolute devfile path: '/tmp/039552673/devfile.yaml'
[odo] I0811 06:14:09.504036    9660 content.go:33] converted devfile YAML to JSON
[odo] I0811 06:14:09.504091    9660 apiVersion.go:50] devfile apiVersion: '2.0.0'
[...]
[odo]  ✓  Changes successfully pushed to component
[odo] I0811 06:14:09.819813    9660 odo.go:72] Could not get the latest release information in time. Never mind, exiting gracefully :)
Running command:  [odo watch --context /tmp/039552673]
Deleting dir: /tmp/039552673/abcd
Replacing "Hello" with "Hello odo" in /tmp/039552673/server.js
[odo] I0811 06:15:03.366286    9640 odo.go:72] Could not get the latest release information in time. Never mind, exiting gracefully :)
Output from stdout:
Waiting for something to change in /tmp/039552673
Output from stderr:
I0811 06:14:09.911931    9683 preference.go:209] The path for preference file is /tmp/039552673/config.yaml
I0811 06:14:09.912145    9683 preference.go:209] The path for preference file is /tmp/039552673/config.yaml
I0811 06:14:09.979360    9683 context.go:69] absolute devfile path: '/tmp/039552673/devfile.yaml'
I0811 06:14:09.979682    9683 content.go:33] converted devfile YAML to JSON
I0811 06:14:09.979737    9683 apiVersion.go:50] devfile apiVersion: '2.0.0'
I0811 06:14:09.979753    9683 helper.go:35] devfile apiVersion '2.0.0' is supported in odo
I0811 06:14:09.985918    9683 schema.go:47] validated devfile schema
I0811 06:14:09.986418    9683 validate.go:37] Successfully validated devfile sections
I0811 06:14:09.986441    9683 preference.go:209] The path for preference file is /tmp/039552673/config.yaml
I0811 06:14:09.986554    9683 preference.go:209] The path for preference file is /tmp/039552673/config.yaml
I0811 06:14:09.990423    9683 preference.go:209] The path for preference file is /tmp/039552673/config.yaml
I0811 06:14:10.017246    9683 preference.go:209] The path for preference file is /tmp/039552673/config.yaml
I0811 06:14:10.017486    9683 watch.go:154] starting WatchAndPush, path: /tmp/039552673, component: jkrlei, ignores [/tmp/039552673/.git /tmp/039552673/.odo/env /tmp/039552673/.odo/odo-file-index.json]
I0811 06:14:10.017828    9683 util.go:611] ignoring path /tmp/039552673/.odo/env because of glob rule /tmp/039552673/.odo/env
I0811 06:14:10.017853    9683 watch.go:105] ignoring watch on path /tmp/039552673/.odo/env
I0811 06:14:10.018009    9683 watch.go:128] adding watch on path /tmp/039552673
I0811 06:14:10.018061    9683 watch.go:128] adding watch on path /tmp/039552673/.odo
I0811 06:14:10.018098    9683 watch.go:128] adding watch on path /tmp/039552673/test
I0811 06:14:19.830189    9683 watch.go:187] filesystem watch event: "/tmp/039552673/.abc": CREATE
I0811 06:14:19.830313    9683 watch.go:229] Matching /tmp/039552673/.abc with [/tmp/039552673/.git /tmp/039552673/.odo/env /tmp/039552673/.odo/odo-file-index.json]. Matched false, err: <nil>
I0811 06:14:19.830479    9683 watch.go:128] adding watch on path /tmp/039552673/.abc
I0811 06:14:19.830518    9683 watch.go:187] filesystem watch event: "/tmp/039552673/abcd": CREATE
I0811 06:14:19.830543    9683 watch.go:229] Matching /tmp/039552673/abcd with [/tmp/039552673/.git /tmp/039552673/.odo/env /tmp/039552673/.odo/odo-file-index.json]. Matched false, err: <nil>
I0811 06:14:19.830637    9683 watch.go:187] filesystem watch event: "/tmp/039552673/a.txt": CREATE
I0811 06:14:19.830665    9683 watch.go:229] Matching /tmp/039552673/a.txt with [/tmp/039552673/.git /tmp/039552673/.odo/env /tmp/039552673/.odo/odo-file-index.json]. Matched false, err: <nil>
I0811 06:14:19.830686    9683 watch.go:77] adding watch on path /tmp/039552673/a.txt
I0811 06:14:19.830710    9683 watch.go:187] filesystem watch event: "/tmp/039552673/abcd": REMOVE
I0811 06:14:19.830729    9683 watch.go:229] Matching /tmp/039552673/abcd with [/tmp/039552673/.git /tmp/039552673/.odo/env /tmp/039552673/.odo/odo-file-index.json]. Matched false, err: <nil>
I0811 06:14:19.830741    9683 watch.go:246] error removing watch for /tmp/039552673/abcd: can't remove non-existent inotify watch for: /tmp/039552673/abcd
I0811 06:14:19.830831    9683 watch.go:187] filesystem watch event: "/tmp/039552673/server.js": WRITE
I0811 06:14:19.830957    9683 watch.go:229] Matching /tmp/039552673/server.js with [/tmp/039552673/.git /tmp/039552673/.odo/env /tmp/039552673/.odo/odo-file-index.json]. Matched false, err: <nil>
I0811 06:14:19.830988    9683 watch.go:77] adding watch on path /tmp/039552673/server.js
 ✗  readdirent: no such file or directory
Deleting project: biqxjgybqm
Running odo with args [odo project delete biqxjgybqm -f]
[odo]  ⚠  Warning! Projects are deleted from the cluster asynchronously. Odo does its best to delete the project. Due to multi-tenant clusters, the project may still exist on a different node.
[odo] I0811 06:19:10.072351   11920 odo.go:72] Could not get the latest release information in time. Never mind, exiting gracefully :)
[odo]  ✓  Deleted project : biqxjgybqm
Setting current dir to: /go/src/github.com/openshift/odo/tests/integration/devfile
Deleting dir: /tmp/039552673
• Failure [341.456 seconds]
odo devfile watch command tests
/go/src/github.com/openshift/odo/tests/integration/devfile/cmd_devfile_watch_test.go:15
  when executing odo watch after odo push with debug flag
  /go/src/github.com/openshift/odo/tests/integration/devfile/cmd_devfile_watch_test.go:124
    should be able to start a debug session after push with debug flag using odo watch and revert back after normal push [It]
    /go/src/github.com/openshift/odo/tests/integration/devfile/cmd_devfile_watch_test.go:125
    Timeout after 5.00 minutes

Expected behavior

Watch over the files should run successfully.

Any logs, error output, etc?

Detailed log - https://prow.ci.openshift.org/view/gs/origin-ci-test/pr-logs/pull/openshift_release/10346/rehearse-10346-periodic-ci-openshift-odo-master-v4.6-integration-e2e-periodic/1293043940022292480#1:build-log.txt%3A1071

@openshift-ci-robot openshift-ci-robot added the flake Categorizes issue or PR as related to a flaky test. label Aug 11, 2020
@amitkrout amitkrout added the area/devfile-spec Issues or PRs related to the Devfile specification and how odo handles and interprets it. label Aug 11, 2020
@amitkrout
Copy link
Contributor

Another hit - #3733

@amitkrout amitkrout added the priority/Medium Nice to have issue. Getting it done before priority changes would be great. label Aug 11, 2020
@amitkrout
Copy link
Contributor

ping @girishramnani @kadel

@kadel
Copy link
Member

kadel commented Aug 26, 2020

are we able to reproduce this outside of our tests?

@openshift-bot
Copy link

Issues go stale after 90d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle stale

@openshift-ci-robot openshift-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Nov 24, 2020
@openshift-bot
Copy link

Stale issues rot after 30d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.
Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle rotten
/remove-lifecycle stale

@openshift-ci-robot openshift-ci-robot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Dec 24, 2020
@openshift-bot
Copy link

Rotten issues close after 30d of inactivity.

Reopen the issue by commenting /reopen.
Mark the issue as fresh by commenting /remove-lifecycle rotten.
Exclude this issue from closing again by commenting /lifecycle frozen.

/close

@openshift-ci-robot
Copy link
Collaborator

@openshift-bot: Closing this issue.

In response to this:

Rotten issues close after 30d of inactivity.

Reopen the issue by commenting /reopen.
Mark the issue as fresh by commenting /remove-lifecycle rotten.
Exclude this issue from closing again by commenting /lifecycle frozen.

/close

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/devfile-spec Issues or PRs related to the Devfile specification and how odo handles and interprets it. flake Categorizes issue or PR as related to a flaky test. lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. priority/Medium Nice to have issue. Getting it done before priority changes would be great.
Projects
None yet
Development

No branches or pull requests

5 participants