| Summary: | oc observe is not validating the existence of a file | ||
|---|---|---|---|
| Product: | OKD | Reporter: | Chris Ryan <cryan> |
| Component: | oc | Assignee: | Clayton Coleman <ccoleman> |
| Status: | CLOSED NOTABUG | QA Contact: | Xingxing Xia <xxia> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 3.x | CC: | aos-bugs, cryan, mmccomas, pweil |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-10-31 11:28:21 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Chris Ryan
2016-10-24 19:38:42 UTC
Upon further inspection, it seems that the client command is still running in the background, this could be the culprit: $ ps aux |grep 'oc observe' cryan 24088 0.0 0.5 369436 60892 pts/4 Sl 14:28 0:00 oc observe svc --delete=./remove_from_inventory.sh -- echo print Chris, I was not able to reproduce the behavior or leaving a running process and always received the "no such file or directory" message which seems correct. If I started another instance of the command I could see the "unable to listen" message. I notice that your ps command is showing a running command without the --names argument on it which would run correctly and is not what the reproduce steps are showing. Can you confirm that you can still reproduce this? > If I started another instance of the command I could see the "unable to
> listen" message.
Hi, Chris, Paul said correctly.
`oc observe -h` shows a flag "--listen-addr=':11251': The name of an interface to listen on ...".
If there was a precious `oc observe ...` not stopped, new `oc observe ...` will show the error 'Unable to listen on ":11251"', unless it specifies different "--listen-addr'.
So the issues you saw works by design :)
(Similar to other oc cmd that binds port, like `oc proxy -h` shows '--port=8001')
|