CloudBrewery / docrane

Docker container manager that relies on etcd to provide relevant configuration details. It watches for changes in configuration and automatically stops, removes, recreates, and starts your Docker containers.
MIT License
8 stars 2 forks source link

Entire key directory removal #11

Closed swat30 closed 9 years ago

swat30 commented 9 years ago

Currently fails badly:

Traceback (most recent call last):
  File "/root/.virtualenvs/docrane/local/lib/python2.7/site-packages/gevent/greenlet.py", line 327, in run
    result = self._run(*self.args, **self.kwargs)
  File "/root/.virtualenvs/docrane/local/lib/python2.7/site-packages/docrane/watcher.py", line 21, in watch
    cur_params = util.get_params(self.container_key)
  File "/root/.virtualenvs/docrane/local/lib/python2.7/site-packages/docrane/util.py", line 64, in get_params
    children = client.read(container_path)._children
  File "/root/.virtualenvs/docrane/local/lib/python2.7/site-packages/etcd/client.py", line 344, in read
    self.key_endpoint + key, self._MGET, params=params, timeout=timeout)
  File "/root/.virtualenvs/docrane/local/lib/python2.7/site-packages/etcd/client.py", line 582, in api_execute
    return self._handle_server_response(response)
  File "/root/.virtualenvs/docrane/local/lib/python2.7/site-packages/etcd/client.py", line 598, in _handle_server_response
    etcd.EtcdError.handle(**r)
  File "/root/.virtualenvs/docrane/local/lib/python2.7/site-packages/etcd/__init__.py", line 142, in handle
    raise exc(msg)
KeyError: 'Key not found : /docrane/rabbit'
<Greenlet at 0x7fa94a156cd0: <bound method ContainerWatcher.watch of <docrane.watcher.ContainerWatcher object at 0x7fa94a14dc90>>> failed with KeyError