Nux!
2013-Aug-05 16:07 UTC
[Gluster-users] Bypass "gluster stop" y/n question (also, python api)
Hi, I'm trying to call "gluster stop volume" from a web page, but it keep asking me if I really want to stop it and expects "y" or "n" which makes things annoying. Is there any "-y"-like parameter we can use to bypass these questions? Also, is there any API for python so I don't have to run system commands? Lucian -- Sent from the Delta quadrant using Borg technology! Nux! www.nux.ro
Jeff Darcy
2013-Aug-05 16:16 UTC
[Gluster-users] Bypass "gluster stop" y/n question (also, python api)
On 08/05/2013 12:07 PM, Nux! wrote:> I'm trying to call "gluster stop volume" from a web page, but it keep asking > me if I really want to stop it and expects "y" or "n" which makes things > annoying. Is there any "-y"-like parameter we can use to bypass these > questions? > > Also, is there any API for python so I don't have to run system commands?gluster --mode=script volume stop vol1
Vijay Bellur
2013-Aug-05 16:16 UTC
[Gluster-users] Bypass "gluster stop" y/n question (also, python api)
On 08/05/2013 09:37 PM, Nux! wrote:> Hi, > > I'm trying to call "gluster stop volume" from a web page, but it keep > asking me if I really want to stop it and expects "y" or "n" which makes > things annoying. > Is there any "-y"-like parameter we can use to bypass these questions?gluster --mode=script should help.> > Also, is there any API for python so I don't have to run system commands?If you setup oVirt for managing GlusterFS, you get both python SDK and ReST API for volume/peer management. -Vijay