[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how to test depends tag
- To: hobbit (at) hswn.dk
- Subject: Re: how to test depends tag
- From: "Asif Iqbal" <vadud3 (at) gmail.com>
- Date: Tue, 14 Nov 2006 16:14:15 -0500
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=mQB65urlvxjinma5mKIOrwtiSJ0F0yEydLzXBiFjJiJcZMU5HnmfutrsnegGDpcPY7JjjSu5HaZSVEyLpW8pUZuDuTf5hKjEPB5TZxnYv7pwnKHLeDvkB6MkGjCJR0xKtUYD8FtENlEfg3LWf+f+r9BofZgB/d1vjQtYbnv6y/k=
- References: <a60f25fc0611141211l4aa25ed0u4c35891988d88acd@mail.gmail.com> <a60f25fc0611141255g8991ee6qd9019959eb9ed2d3@mail.gmail.com>
On 11/14/06, Asif Iqbal <vadud3 (at) gmail.com> wrote:
On 11/14/06, Asif Iqbal <vadud3 (at) gmail.com> wrote:
> Is there a way to quick test the depends tag besides changing the
> host's ip to a fake one that the service depends on?
>
> In other words if depends=(testA:host1/test1) I can change the host1's
> ip in bb-hosts to test if depends working. Is there any other less
> crude way to test it?
Hmm I changed the ip of host1 but still see hostA conn green
1.2.3.4 hostA.domain.net # conn depends=(conn:host1.domain.net/conn)
2.3.4.5 host1.domain.net # testip
I chaged the ip 2.3.4.5 to a non exist 1.1.1.1 ip and host1 conn went
red. But hostA still showing green
I missed this part in the man bb-hosts
"Since all tests are actually run before the dependencies are evaluated,.."
So I change the ip of hostA to a non exist ip 2.2.2.2 and added testip
and I see hostA conn turned into red instead of clear now.
2.2.2.2 hostA.domain.net # conn depends=(conn:host1.domain.net/conn)
1.1.1.1 host1.domain.net # testip
both 2.2.2.2 and 1.1.1.1 are non exist and based on the depends tag
host1.conn goes red and hostA.conn should go clear but it actuallity
it tunr into red.
Please advise
Thanks
(all ips are masked here)
>
> Thanks
>
> --
> Asif Iqbal
> PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
>
--
Asif Iqbal
PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
--
Asif Iqbal
PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu