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

account: MasterNotFoundError Unhandled exception #1500

Open
jkasarherou opened this issue Jun 25, 2018 · 0 comments
Open

account: MasterNotFoundError Unhandled exception #1500

jkasarherou opened this issue Jun 25, 2018 · 0 comments

Comments

@jkasarherou
Copy link
Contributor

ISSUE TYPE
  • Feature Idea
COMPONENT NAME

account

SDS VERSION
openio 4.1.25
CONFIGURATION
[OPENIO]
conscience=10.0.2.15:6000
zookeeper=10.0.2.15:6005
proxy=10.0.2.15:6006
event-agent=beanstalk://10.0.2.15:6014
meta1_digits=3
udp_allowed=yes
ns.storage_policy=SINGLE
ns.service_update_policy=meta2=KEEP|1|1|;rdir=KEEP|1|1|user_is_a_service=rawx;sqlx=KEEP|3|1|;
OS / ENVIRONMENT
NAME="Ubuntu"
VERSION="16.04.4 LTS (Xenial Xerus)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 16.04.4 LTS"
VERSION_ID="16.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
VERSION_CODENAME=xenial
UBUNTU_CODENAME=xenial
SUMMARY
STEPS TO REPRODUCE

Run account service with missing master in redis-sentinel.

EXPECTED RESULTS

No ugly traceback in account logs.

ACTUAL RESULTS
2018-06-25T03:07:47.281381+00:00 ubuntu-xenial OIO,OPENIO,account,0: err  11386 7F99A7B89B90 log ERROR ERROR Unhandled exception in request#012Traceback (most recent call last):#012  File "/usr/lib/python2.7/dist-packages/oio/common/wsgi.py", line 107, in dispatch_request#012    resp = getattr(self, 'on_' + endpoint)(req)#012  File "/usr/lib/python2.7/dist-packages/oio/account/server.py", line 71, in on_status#012    status = self.backend.status()#012  File "/usr/lib/python2.7/dist-packages/oio/account/backend.py", line 428, in status#012    account_count = conn.hlen('accounts:')#012  File "/usr/lib/python2.7/dist-packages/redis/client.py", line 1879, in hlen#012    return self.execute_command('HLEN', name)#012  File "/usr/lib/python2.7/dist-packages/redis/client.py", line 578, in execute_command#012    connection.send_command(*args)#012  File "/usr/lib/python2.7/dist-packages/redis/connection.py", line 563, in send_command#012    self.send_packed_command(self.pack_command(*args))#012  File "/usr/lib/python2.7/dist-packages/redis/connection.py", line 538, in send_packed_command#012    self.connect()#012  File "/usr/lib/python2.7/dist-packages/redis/sentinel.py", line 44, in connect#012    self.connect_to(self.connection_pool.get_master_address())#012  File "/usr/lib/python2.7/dist-packages/redis/sentinel.py", line 100, in get_master_address#012    self.service_name)#012  File "/usr/lib/python2.7/dist-packages/redis/sentinel.py", line 222, in discover_master#012    raise MasterNotFoundError("No master found for %r" % (service_name,))#012MasterNotFoundError: No master found for 'OPENIO-master-1'
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

1 participant