Open trombik opened 7 years ago
this happens when sensu-client
json files are empty. specifically, when rabbitmq
user is not defined. although the issue is caused by invalid configuration, sensu-transport
should have been more careful.
the patch is just a workaround. the issue should be fixed in validation logic and ensure options[:user]
is never be nil
or an empty hash. pending.
workarounded in #7
ISSUE TYPE
ROLE VERSION
CONFIGURATION
see
tests/integration/example
.OS / ENVIRONMENT
FreeBSD, but it is likely to happen on other platforms.
SUMMARY
when
sensu-client
onsensu1
initially boots in the integration test, it fails to start.STEPS TO REPRODUCE
files/FreeBSD/patch_undefined_method_for_nilclass
andpatch
task intasks/install-FreeBSD.yml
EXPECTED RESULTS
sensu-client
starts and reconnects to the transport.ACTUAL RESULTS
it fails to reconnect and dies.