- 
                Notifications
    
You must be signed in to change notification settings  - Fork 20
 
Fetching lease fails with TTL #1
Description
I'm using etc3dgw in openstack cinder and I'm running into an issue where the lease refresh is failing, due to a missing field.
stack@walt-stack-1  /opt/stack/logs/screen  pip freeze |grep etcd                                                                            1 ↵  482  12:23:14
etcd3==0.6.2
etcd3gw==0.1.0
---excerpt from the cinder log
2017-08-23 12:25:16.771 24793 ERROR root [-] Unexpected exception occurred 60 time(s)... retrying.: KeyError: 'TTL'
2017-08-23 12:25:16.771 24793 ERROR root Traceback (most recent call last):
2017-08-23 12:25:16.771 24793 ERROR root   File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 250, in wrapper
2017-08-23 12:25:16.771 24793 ERROR root     return infunc(*args, **kwargs)
2017-08-23 12:25:16.771 24793 ERROR root   File "/usr/lib/python2.7/site-packages/tooz/coordination.py", line 187, in _beat_forever_until_stopped
2017-08-23 12:25:16.771 24793 ERROR root     wait_until_next_beat = self._driver.heartbeat()
2017-08-23 12:25:16.771 24793 ERROR root   File "/usr/lib/python2.7/site-packages/tooz/drivers/etcd3gw.py", line 191, in heartbeat
2017-08-23 12:25:16.771 24793 ERROR root     lock.heartbeat()
2017-08-23 12:25:16.771 24793 ERROR root   File "/usr/lib/python2.7/site-packages/tooz/drivers/etcd3gw.py", line 38, in wrapper
2017-08-23 12:25:16.771 24793 ERROR root     return func(*args, **kwargs)
2017-08-23 12:25:16.771 24793 ERROR root   File "/usr/lib/python2.7/site-packages/tooz/drivers/etcd3gw.py", line 154, in heartbeat
2017-08-23 12:25:16.771 24793 ERROR root     self._lease.refresh()
2017-08-23 12:25:16.771 24793 ERROR root   File "/usr/lib/python2.7/site-packages/etcd3gw/lease.py", line 64, in refresh
2017-08-23 12:25:16.771 24793 ERROR root     return int(result['result']['TTL'])
2017-08-23 12:25:16.771 24793 ERROR root KeyError: 'TTL'
2017-08-23 12:25:16.771 24793 ERROR root