Open david-terrett opened 5 years ago
mmm yeah that's a good one :) Looks like it comes from the MC not protecting against the Config DB going down. If so, we should also be able to trigger the same error by simply removing the Redis service in any SDP state.
The problem as I see it is that the database was reporting a different set of allowed target states to those that it would accept for a specific SDP state. Eventually you end up with the exception.
I did not handle the exception because, in my opinion, these exceptions should be handled by the database layer, and where required, raise a package-specific exception to be handled by layers further up the chain, the master controller among them. So I would have been handling the wrong exception and be required to rewrite the handler later on.
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