fab-user
[Top][All Lists]
Advanced

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

Re: [Fab-user] skip "No route to host"


From: Jeff Forcier
Subject: Re: [Fab-user] skip "No route to host"
Date: Sun, 6 Apr 2014 11:04:50 -0700

Try http://docs.fabfile.org/en/1.8/usage/env.html#skip-bad-hosts ?

On Sun, Apr 6, 2014 at 2:25 AM, address@hidden <address@hidden> wrote:
> Hi all,
>
> how can I avoid or skip "Fatal error: Low level socket error connecting to 
> host xyz: No route to host" when one host is down / not reachable ?
>
>
> e.g.
>
> from fabric.api import env,sudo,roles,run,task,cd
>
> env.roledefs = {
>     'lamp':['www','www-b','www-f'],
>     }
>
> def updatenupgrade():
>     if run("lsb_release -i| egrep -i '(Debian|Ubuntu)'"):
>         sudo('aptitude update && aptitude upgrade')
>     else:
>         sudo('yum update')
>
>
>
>
>
> If host 'www-b' is down 'www-f' unfortunately never gets treated.
>
> (--warn-only does not help)
>
>
> thanks,
>
>
> Jan
>
> _______________________________________________
> Fab-user mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/fab-user



-- 
Jeff Forcier
Unix sysadmin; Python/Ruby engineer
http://bitprophet.org



reply via email to

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