Traceback (most recent call last):
File "hooks/replica-set-relation-broken", line 1618, in <module>
hooks.execute(sys.argv)
File "/var/lib/juju/agents/unit-mongodb-0/charm/hooks/charmhelpers/core/hookenv.py", line 528, in execute
self._hooks[hook_name]()
File "hooks/replica-set-relation-broken", line 1231, in replica_set_relation_broken
if am_i_primary():
File "hooks/replica-set-relation-broken", line 1141, in am_i_primary
r = run_admin_command(c, 'replSetGetStatus')
File "hooks/replica-set-relation-broken", line 488, in run_admin_command
return client.admin.command(cmdstr)
File "/usr/lib/python2.7/dist-packages/pymongo/database.py", line 396, in command
msg, allowable_errors)
File "/usr/lib/python2.7/dist-packages/pymongo/helpers.py", line 147, in _check_command_response
raise OperationFailure(msg % errmsg, code)
pymongo.errors.OperationFailure: command SON([('replSetGetStatus', 1)]) failed: not running with --replSet
root@nuc4:/var/lib/juju/agents/unit-mongodb-0/charm# echo hooks/$JUJU_HOOK_NAME
hooks/replica-set-relation-broken
I had run juju remove-service mongodb
Hello, Jay.
Can you please provide complete procedure on how you deployed mongodb? I'm assuming you just deployed a single-unit mongodb, and then tried to remove it?
I am assuming 'yes', because I was able to reproduce it that way, but I'd still like a confirmation.