Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/redis/connection.py", line 184, in _read_from_socket
raise socket.error(SERVER_CLOSED_CONNECTION_ERROR)
OSError: Connection closed by server.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/redis/client.py", line 2952, in _execute
return command(*args)
File "/usr/local/lib/python3.6/site-packages/redis/connection.py", line 636, in read_response
raise e
File "/usr/local/lib/python3.6/site-packages/redis/connection.py", line 633, in read_response
response = self._parser.read_response()
File "/usr/local/lib/python3.6/site-packages/redis/connection.py", line 291, in read_response
response = self._buffer.readline()
File "/usr/local/lib/python3.6/site-packages/redis/connection.py", line 223, in readline
self._read_from_socket()
File "/usr/local/lib/python3.6/site-packages/redis/connection.py", line 198, in _read_from_socket
(e.args,))
redis.exceptions.ConnectionError: Error while reading from socket: ('Connection closed by server.',)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/redis/connection.py", line 493, in connect
sock = self._connect()
File "/usr/local/lib/python3.6/site-packages/redis/connection.py", line 550, in _connect
raise err
File "/usr/local/lib/python3.6/site-packages/redis/connection.py", line 538, in _connect
sock.connect(socket_address)
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.6/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/usr/local/lib/python3.6/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/home/sip/app/__main__.py", line 331, in <module>
main()
File "/home/sip/app/__main__.py", line 322, in main
_process_state_change_events()
File "/home/sip/app/__main__.py", line 293, in _process_state_change_events
_state_event = state_events.get()
File "/usr/local/lib/python3.6/site-packages/sip_config_db/_events/event_queue.py", line 58, in get
message = self._queue.get_message()
File "/usr/local/lib/python3.6/site-packages/redis/client.py", line 3057, in get_message
response = self.parse_response(block=False, timeout=timeout)
File "/usr/local/lib/python3.6/site-packages/redis/client.py", line 2974, in parse_response
return self._execute(connection, connection.read_response)
File "/usr/local/lib/python3.6/site-packages/redis/client.py", line 2959, in _execute
connection.connect()
File "/usr/local/lib/python3.6/site-packages/redis/connection.py", line 498, in connect
raise ConnectionError(self._error_message(e))
redis.exceptions.ConnectionError: Error 111 connecting to ec_config_database:6379. Connection refused.
Describe the bug
When the sip stack is removed, the master controller throws an exception. This happens even if the current state is 'off'
To Reproduce
Expected behavior
A graceful exit. Since there is no way out of the off state the master controller should stop monitoring the database.
Screenshots &/or terminal output