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

Exception shown in the logs when gluster_bridge can't find job queue in etcd #26

Closed
mbukatov opened this issue Oct 12, 2016 · 5 comments
Assignees

Comments

@mbukatov
Copy link
Contributor

mbukatov commented Oct 12, 2016

When one configure gluster_bridge following the Install docs and run tendrl-gluster-bridge, the following exception appears in the logs:

[manager.py:48 -                 _run() ] [Errno 2] No such file or directory
[manager.py:48 -                 _run() ] [Errno 2] No such file or directory
[rpc.py:96 -                 _run() ] EtcdThread run...
[client.py:521 -                 read() ] Issuing read for key /api_job_queue with args {}
[connectionpool.py:383 -        _make_request() ] "GET /v2/keys/api_job_queue HTTP/1.1" 404 79
[rpc.py:99 -                 _run() ] Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/tendrl_gluster_bridge-0.1-py2.7.egg/tendrl/gluster_bridge/manager/rpc.py", line 97, in _run
    self._server.run()
  File "/usr/lib/python2.7/site-packages/tendrl_gluster_bridge-0.1-py2.7.egg/tendrl/gluster_bridge/manager/rpc.py", line 50, in run
    self._acceptor()
  File "/usr/lib/python2.7/site-packages/tendrl_gluster_bridge-0.1-py2.7.egg/tendrl/gluster_bridge/manager/rpc.py", line 28, in _acceptor
    jobs = self.client.read("/api_job_queue")
  File "/usr/lib/python2.7/site-packages/etcd/client.py", line 536, in read
    timeout=timeout)
  File "/usr/lib/python2.7/site-packages/etcd/client.py", line 848, in wrapper
    return self._handle_server_response(response)
  File "/usr/lib/python2.7/site-packages/etcd/client.py", line 928, in _handle_server_response
    etcd.EtcdError.handle(r)
  File "/usr/lib/python2.7/site-packages/etcd/__init__.py", line 304, in handle
    raise exc(msg, payload)
EtcdKeyNotFound: Key not found : /api_job_queue

[manager.py:48 -                 _run() ] [Errno 2] No such file or directory
[rpc.py:96 -                 _run() ] EtcdThread run...
[client.py:521 -                 read() ] Issuing read for key /api_job_queue with args {}
[connectionpool.py:383 -        _make_request() ] "GET /v2/keys/api_job_queue HTTP/1.1" 404 79
[rpc.py:99 -                 _run() ] Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/tendrl_gluster_bridge-0.1-py2.7.egg/tendrl/gluster_bridge/manager/rpc.py", line 97, in _run
    self._server.run()
  File "/usr/lib/python2.7/site-packages/tendrl_gluster_bridge-0.1-py2.7.egg/tendrl/gluster_bridge/manager/rpc.py", line 50, in run
    self._acceptor()
  File "/usr/lib/python2.7/site-packages/tendrl_gluster_bridge-0.1-py2.7.egg/tendrl/gluster_bridge/manager/rpc.py", line 28, in _acceptor
    jobs = self.client.read("/api_job_queue")
  File "/usr/lib/python2.7/site-packages/etcd/client.py", line 536, in read
    timeout=timeout)
  File "/usr/lib/python2.7/site-packages/etcd/client.py", line 848, in wrapper
    return self._handle_server_response(response)
  File "/usr/lib/python2.7/site-packages/etcd/client.py", line 928, in _handle_server_response
    etcd.EtcdError.handle(r)
  File "/usr/lib/python2.7/site-packages/etcd/__init__.py", line 304, in handle
    raise exc(msg, payload)
EtcdKeyNotFound: Key not found : /api_job_queue

[manager.py:48 -                 _run() ] [Errno 2] No such file or directory
[manager.py:195 -             shutdown() ] Signal handler: stopping

Expected behavior

Instead of the exception, gluster_bridge should validate the data it's getting from etcd and log the issue properly without raising the exception.

@r0h4n
Copy link
Contributor

r0h4n commented Dec 9, 2016

@GowthamShanmugam is this fixed?

@GowthamShanmugam
Copy link
Contributor

@r0h4n PR is in under review

@sankarshanmukhopadhyay
Copy link
Contributor

If it is possible, please link to the PR and follow up on the completion of review

@GowthamShanmugam
Copy link
Contributor

I have already linked this bug with pull request, i have sent review request also

shtripat pushed a commit to shtripat/gluster_bridge that referenced this issue Dec 15, 2016
Instead of the exception, EtcdKeyNotFound is logged successfully
tendrl-bug-id:Tendrl#26

Signed-off-by: root <gshanmug@redhat.com>
shtripat pushed a commit to shtripat/gluster_bridge that referenced this issue Dec 19, 2016
Instead of the exception, EtcdKeyNotFound is logged successfully
tendrl-bug-id:Tendrl#26

Signed-off-by: root <gshanmug@redhat.com>
@sankarshanmukhopadhyay
Copy link
Contributor

@mbukatov please confirm if the issue is fixed/persists in latest builds and we can then decide on the state of this issue.

@r0h4n r0h4n closed this as completed Mar 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants