edelight/chef-cookbooks — Issue #17: Error while adding a new replicaset member
Author: tobami
Created: 2011-11-09 16:49:18+00:00
State: open

When configuring a node which is not yet member of a replicaset, different errors can occur.

Depending on whether the primary was configured first or not:
primary first: `ERROR: configuring replicaset returned: #1.0}>`
In this case *I think* that the operation is successful.

new member first: `WARN: Could not connect to database: 'localhost:27017'`
and the new member is not added to the primary (possible iptables not yet configured at the primary?)

I think that the code responsible for adding replicaset members should be refactored to take better into account the different situations.