Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect autofailover options #20

Open
rmacian opened this issue Apr 14, 2015 · 2 comments
Open

Incorrect autofailover options #20

rmacian opened this issue Apr 14, 2015 · 2 comments

Comments

@rmacian
Copy link
Contributor

rmacian commented Apr 14, 2015

Hi Justice,

I have found my own that the file https://github.com/justicel/puppet-couchbase/blob/master/templates/couchbase-cluster-init.sh.erb

has two options that are not working for me (couchbase 2.1.1).:

--enable-auto-failover=1
--auto-failover-timeout=30

Indeed looking at the cli help they are part from the setting-autofailover command and not the cluster-init

Trace:

Tue Apr 14 11:00:42 +0000 2015 /Stage[main]/Couchbase::Config/Exec[couchbase-init]/returns (notice): ERROR: option --enable-auto-failover not recognized
Tue Apr 14 11:00:42 +0000 2015 /Stage[main]/Couchbase::Config/Execcouchbase-init: Failed to call refresh: /usr/local/bin/couchbase-cluster-init.sh returned 2 instead of one of [0]
Tue Apr 14 11:00:42 +0000 2015 /Stage[main]/Couchbase::Config/Execcouchbase-init: /usr/local/bin/couchbase-cluster-init.sh returned 2 instead of one of [0]

Running from command line I get the same error

EDIT:

seems related with this:

https://issues.couchbase.com/browse/MB-9933?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

I modified the erb commenting the last two lines and adding the changes with curl, is dirty but works until I update:

Commented as bug in

https://issues.couchbase.com/browse/MB-9933?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

--enable-auto-failover=<%= @_autofailover %> \

--auto-failover-timeout=30

if [ $? -ne 0 ]; then
echo "error with $1" >&2
fi
curl -i -u <%= @user %>:<%= @password %> http://localhost:8091/settings/autoFailover -d 'enabled=true&timeout=30'

@justicel
Copy link
Owner

Thanks, I'll take a look at this.

@justicel
Copy link
Owner

@rmacian I have pushed a likely fix to github. Please check it out and let me know if this resolves your issue. If so I'll post a new release on the Puppet Forge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants