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

Puppet agent fails with 'volume start: gv0: failed: Volume gv0 already started' #9

Open
daveseff opened this issue Feb 24, 2015 · 2 comments

Comments

@daveseff
Copy link

Once the glusterfs volume is created and started, each run of puppet agent after that fails with:

Notice: /Stage[main]/mymodule/Glusterfs::Volume[gv0]/Exec[/usr/sbin/gluster volume start gv0]/returns: volume start: gv0: failed: Volume gv0 already started

Error: /usr/sbin/gluster volume start gv0 returned 1 instead of one of [0]
Error: /Stage[main]/mymodule/Glusterfs::Volume[gv0]/Exec[/usr/sbin/gluster volume start gv0]/returns: change from notrun to 0 failed: /usr/sbin/gluster volume start gv0 returned 1 instead of one of [0]

@daveseff
Copy link
Author

I changed the 'unless' line in the exec to:

unless => "gluster volume info ${title} | grep '^Status: Started'",

And the issue goes away.

@greencorecrsoporte
Copy link

Happended to me as well, and the suggested patch from daveseff also fixed it.

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