fab-user
[Top][All Lists]
Advanced

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

Re: [Fab-user] issue with fab command on remote system


From: Brandon Whaley
Subject: Re: [Fab-user] issue with fab command on remote system
Date: Wed, 06 Jan 2016 19:33:28 +0000

Try using -w on the command like (or with settings(warn_only=True):).  Sounds like the command you're running isn't returning 0.

On Wed, Jan 6, 2016 at 2:04 PM Bader, Robert (Bob Bader) <address@hidden> wrote:
Hi,


First off I am new to fab, another admin showed me it’s power and I am just trying to run some commands to get output from a remote system.

My fabfile is

**************
from fabric.api import *
import time

env.shell=''


def  storage_system_commands():

run('rows -0')
run('storage failover show')
run('storage disk show -disk * -fields path-link-errors')
run('storage disk show -spare')

*************


this works as expected and I get my required output. But then I add the command:
run('node run -node  storage_system-01 -command aggr status -r')
************** newfab file ***********
from fabric.api import *
import time

env.shell=''

def  storage_system_commands():

run('rows -0')
run('storage failover show')
run('storage disk show -disk * -fields path-link-errors')
run('storage disk show -spare')
run('node run -node  storage_system-01 -command aggr status -r')
********
 
 
I get


  ********
Fatal error: run() received nonzero return code 255 while executing!

Requested: node run -node  storage_system-01 -command aggr status -r
Executed: "node run -node  storage_system-01 -command aggr status -r"

None


Aborting.
run() received nonzero return code 255 while executing!

Requested: node run -node  storage_system-01 -command aggr status -r
Executed: "node run -node  storage_system-01 -command aggr status -r"

None

** ********
 
 
 but if I run the command directly on the storage system itself, it works perfectly, and all the other commands work
 
 Could fab have an issue with the contents of the command I am trying to run? maybe the run part?
 
 I also get this output in my output file
**********
 
 
 
[ storage_system.domain.org] run: "node run -node  storage_system-01 -command aggr status -r"
[ storage_system.domain.org] out: ?
[ storage_system.domain.org] out: Error: "run" is not a recognized command
[ storage_system.domain.org] out:
[ storage_system.domain.org] out:

Disconnecting from  storage_system.domain.org... done.

************
 
Thanks for any assistance
_______________________________________________
Fab-user mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/fab-user

reply via email to

[Prev in Thread] Current Thread [Next in Thread]