Skip to content

account: MasterNotFoundError Unhandled exception #1500

@jkasarherou

Description

@jkasarherou
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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions