Bypass "gluster stop" y/n question (also, python api)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 05.08.2013 17:16, Vijay Bellur wrote:
> 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.

Great, that worked!

> 
>> 
>> 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.

That sounds great, too, but it's a bit overkill... I just need a dummy 
web page where non-technical users can create volumes. Installing a 
full-blown virtual data centre solution would be too much.

Thanks again!

-- 
Sent from the Delta quadrant using Borg technology!

Nux!
www.nux.ro


[Index of Archives]     [Gluster Development]     [Linux Filesytems Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux