* xfstests: nslookup not found
@ 2009-07-19 17:57 Christian Kujau
2009-07-19 18:20 ` Christoph Hellwig
0 siblings, 1 reply; 9+ messages in thread
From: Christian Kujau @ 2009-07-19 17:57 UTC (permalink / raw)
To: linux-xfs
Hi,
while trying to run ./check in a current xfstests tree, execution stopped
because "nslookup" was not available. I could've just installed this tool
but I wondered why xfstests, a filesystem testing tool, would need
nslookup at all. Turns out that it's being used in a routine called
"_get_fqdn", which in turn is only called once in ./new, to set a variable
called "owner" and I ask myself: do I really want my FQDN listed in the
testresults, that maybe even get published for analysis? I changed this
whole _get_fqdn thingy to just "uname -n", but I'm eager to know why the
FQDN is crucial here :-)
Thoughts?
Christian.
--- common.config.orig 2009-07-19 13:39:54.000000000 +0200
+++ common.config 2009-07-19 13:46:31.000000000 +0200
@@ -120,9 +120,6 @@ export UMOUNT_PROG="`set_prog_path umoun
export FSSTRESS_PROG="`set_prog_path fsstress $PWD/ltp/fsstress`"
[ "$FSSTRESS_PROG" = "" ] && _fatal "fsstress not found"
-export NSLOOKUP_PROG="`set_prog_path nslookup`"
-[ "$NSLOOKUP_PROG" = "" ] && _fatal "nslookup not found"
-
export PERL_PROG="`set_prog_path perl`"
[ "$PERL_PROG" = "" ] && _fatal "perl not found"
--- common.rc.orig 2009-07-19 13:41:43.000000000 +0200
+++ common.rc 2009-07-19 19:44:26.000000000 +0200
@@ -330,14 +330,6 @@ _get_pids_by_name()
-e "/[0-9]:[0-9][0-9] *$1 /s/ .*//p"
}
-# fqdn for localhost
-#
-_get_fqdn()
-{
- host=`hostname`
- $NSLOOKUP_PROG $host | $AWK_PROG '{ if ($1 == "Name:") print $2 }'
-}
-
# fix malloc libs output
#
_fix_malloc()
--- new.orig 2009-07-19 19:44:52.000000000 +0200
+++ new 2009-07-19 19:46:38.000000000 +0200
@@ -105,7 +105,7 @@ cat <<End-of-File >$id
#-----------------------------------------------------------------------
#
# creator
-owner=$USER@`_get_fqdn`
+owner=$USER@`uname -n`
seq=\`basename \$0\`
echo "QA output created by \$seq"
--
BOFH excuse #4:
static from nylon underwear
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: xfstests: nslookup not found
2009-07-19 17:57 xfstests: nslookup not found Christian Kujau
@ 2009-07-19 18:20 ` Christoph Hellwig
2009-07-19 22:26 ` Eric Sandeen
2009-07-19 23:57 ` Christian Kujau
0 siblings, 2 replies; 9+ messages in thread
From: Christoph Hellwig @ 2009-07-19 18:20 UTC (permalink / raw)
To: Christian Kujau; +Cc: linux-xfs
On Sun, Jul 19, 2009 at 10:57:35AM -0700, Christian Kujau wrote:
> Hi,
>
> while trying to run ./check in a current xfstests tree, execution stopped
> because "nslookup" was not available. I could've just installed this tool
> but I wondered why xfstests, a filesystem testing tool, would need
> nslookup at all. Turns out that it's being used in a routine called
> "_get_fqdn", which in turn is only called once in ./new, to set a variable
> called "owner" and I ask myself: do I really want my FQDN listed in the
> testresults, that maybe even get published for analysis? I changed this
> whole _get_fqdn thingy to just "uname -n", but I'm eager to know why the
> FQDN is crucial here :-)
It uses it as email address for the test owner. In these days this
probably requires hand-editing anyway, but the fqdn is certainly
a better approximation than uname -n.
Can you resend a patch that just moves _get_fqdn and the check for
nslookup from common* into the "new" script?
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: xfstests: nslookup not found
2009-07-19 18:20 ` Christoph Hellwig
@ 2009-07-19 22:26 ` Eric Sandeen
2009-07-19 23:57 ` Christian Kujau
1 sibling, 0 replies; 9+ messages in thread
From: Eric Sandeen @ 2009-07-19 22:26 UTC (permalink / raw)
To: Christoph Hellwig; +Cc: linux-xfs
Christoph Hellwig wrote:
> On Sun, Jul 19, 2009 at 10:57:35AM -0700, Christian Kujau wrote:
>> Hi,
>>
>> while trying to run ./check in a current xfstests tree, execution stopped
>> because "nslookup" was not available. I could've just installed this tool
>> but I wondered why xfstests, a filesystem testing tool, would need
>> nslookup at all. Turns out that it's being used in a routine called
>> "_get_fqdn", which in turn is only called once in ./new, to set a variable
>> called "owner" and I ask myself: do I really want my FQDN listed in the
>> testresults, that maybe even get published for analysis? I changed this
>> whole _get_fqdn thingy to just "uname -n", but I'm eager to know why the
>> FQDN is crucial here :-)
>
> It uses it as email address for the test owner. In these days this
> probably requires hand-editing anyway, but the fqdn is certainly
> a better approximation than uname -n.
>
> Can you resend a patch that just moves _get_fqdn and the check for
> nslookup from common* into the "new" script?
That'd be great - sounds like the right solution to me; I've run into
this too but never bothered to fix it. :)
Thanks,
-Eric
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: xfstests: nslookup not found
2009-07-19 18:20 ` Christoph Hellwig
2009-07-19 22:26 ` Eric Sandeen
@ 2009-07-19 23:57 ` Christian Kujau
2009-07-20 0:16 ` Christoph Hellwig
1 sibling, 1 reply; 9+ messages in thread
From: Christian Kujau @ 2009-07-19 23:57 UTC (permalink / raw)
To: Christoph Hellwig; +Cc: linux-xfs
On Sun, 19 Jul 2009 at 14:20, Christoph Hellwig wrote:
> Can you resend a patch that just moves _get_fqdn and the check for
> nslookup from common* into the "new" script?
If I understand correctly, maybe something like this would be acceptable?
I was tempted to use "hostname -f" to give out the fqdn, but appaerently
not every hostname knows "-f" and I did not want to let the whole script
fail just because nslookup is not in place.
Christian.
--- common.config.orig 2009-07-19 21:43:15.000000000 +0200
+++ common.config 2009-07-19 21:43:31.000000000 +0200
@@ -120,9 +120,6 @@ export UMOUNT_PROG="`set_prog_path umoun
export FSSTRESS_PROG="`set_prog_path fsstress $PWD/ltp/fsstress`"
[ "$FSSTRESS_PROG" = "" ] && _fatal "fsstress not found"
-export NSLOOKUP_PROG="`set_prog_path nslookup`"
-[ "$NSLOOKUP_PROG" = "" ] && _fatal "nslookup not found"
-
export PERL_PROG="`set_prog_path perl`"
[ "$PERL_PROG" = "" ] && _fatal "perl not found"
--- common.rc.orig 2009-07-19 21:44:42.000000000 +0200
+++ common.rc 2009-07-19 21:45:06.000000000 +0200
@@ -330,14 +330,6 @@ _get_pids_by_name()
-e "/[0-9]:[0-9][0-9] *$1 /s/ .*//p"
}
-# fqdn for localhost
-#
-_get_fqdn()
-{
- host=`hostname`
- $NSLOOKUP_PROG $host | $AWK_PROG '{ if ($1 == "Name:") print $2 }'
-}
-
# fix malloc libs output
#
_fix_malloc()
--- new.orig 2009-07-19 21:43:20.000000000 +0200
+++ new 2009-07-20 01:45:51.000000000 +0200
@@ -32,6 +32,17 @@ _cleanup()
:
}
+# fqdn for localhost
+_get_fqdn()
+{
+ NSLOOKUP_PROG="`set_prog_path nslookup`"
+ if [ "$NSLOOKUP_PROG" = "" ]; then
+ getent hosts `uname -n` | awk '{print $2}'
+ else
+ $NSLOOKUP_PROG `hostname` | $AWK_PROG '{ if ($1 == "Name:") print $2 }'
+ fi
+}
+
if [ ! -f group ]
then
echo "Creating the group index ..."
--
BOFH excuse #274:
It was OK before you touched it.
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: xfstests: nslookup not found
2009-07-19 23:57 ` Christian Kujau
@ 2009-07-20 0:16 ` Christoph Hellwig
2009-07-20 1:46 ` [PATCH] don't fail if nslookup is not found (was: xfstests: nslookup not found) Christian Kujau
0 siblings, 1 reply; 9+ messages in thread
From: Christoph Hellwig @ 2009-07-20 0:16 UTC (permalink / raw)
To: Christian Kujau; +Cc: Christoph Hellwig, linux-xfs
On Sun, Jul 19, 2009 at 04:57:19PM -0700, Christian Kujau wrote:
> On Sun, 19 Jul 2009 at 14:20, Christoph Hellwig wrote:
> > Can you resend a patch that just moves _get_fqdn and the check for
> > nslookup from common* into the "new" script?
>
> If I understand correctly, maybe something like this would be acceptable?
>
> I was tempted to use "hostname -f" to give out the fqdn, but appaerently
> not every hostname knows "-f" and I did not want to let the whole script
> fail just because nslookup is not in place.
Yes, that's exactly it. Can you resend it with a proper subject,
description and add your Signed-off-by tag?
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 9+ messages in thread
* [PATCH] don't fail if nslookup is not found (was: xfstests: nslookup not found)
2009-07-20 0:16 ` Christoph Hellwig
@ 2009-07-20 1:46 ` Christian Kujau
2009-07-20 9:32 ` Christoph Hellwig
0 siblings, 1 reply; 9+ messages in thread
From: Christian Kujau @ 2009-07-20 1:46 UTC (permalink / raw)
To: Christoph Hellwig; +Cc: linux-xfs
On Sun, 19 Jul 2009 at 20:16, Christoph Hellwig wrote:
> Yes, that's exactly it. Can you resend it with a proper subject,
> description and add your Signed-off-by tag?
When nslookup is not available, execution would stop. This patch moves the
check for nslookup and the _get_fqdn function into the ./new script (since
this is the only place where it's used) and we don't fail any more but try
to find out our FQDN without nslookup.
Signed-off-by: Christian Kujau <lists@nerdbynature.de>
--- common.config.orig 2009-07-19 21:43:15.000000000 +0200
+++ common.config 2009-07-19 21:43:31.000000000 +0200
@@ -120,9 +120,6 @@ export UMOUNT_PROG="`set_prog_path umoun
export FSSTRESS_PROG="`set_prog_path fsstress $PWD/ltp/fsstress`"
[ "$FSSTRESS_PROG" = "" ] && _fatal "fsstress not found"
-export NSLOOKUP_PROG="`set_prog_path nslookup`"
-[ "$NSLOOKUP_PROG" = "" ] && _fatal "nslookup not found"
-
export PERL_PROG="`set_prog_path perl`"
[ "$PERL_PROG" = "" ] && _fatal "perl not found"
--- common.rc.orig 2009-07-19 21:44:42.000000000 +0200
+++ common.rc 2009-07-19 21:45:06.000000000 +0200
@@ -330,14 +330,6 @@ _get_pids_by_name()
-e "/[0-9]:[0-9][0-9] *$1 /s/ .*//p"
}
-# fqdn for localhost
-#
-_get_fqdn()
-{
- host=`hostname`
- $NSLOOKUP_PROG $host | $AWK_PROG '{ if ($1 == "Name:") print $2 }'
-}
-
# fix malloc libs output
#
_fix_malloc()
--- new.orig 2009-07-19 21:43:20.000000000 +0200
+++ new 2009-07-20 01:45:51.000000000 +0200
@@ -32,6 +32,17 @@ _cleanup()
:
}
+# fqdn for localhost
+_get_fqdn()
+{
+ NSLOOKUP_PROG="`set_prog_path nslookup`"
+ if [ "$NSLOOKUP_PROG" = "" ]; then
+ getent hosts `uname -n` | awk '{print $2}'
+ else
+ $NSLOOKUP_PROG `hostname` | $AWK_PROG '{ if ($1 == "Name:") print $2 }'
+ fi
+}
+
if [ ! -f group ]
then
echo "Creating the group index ..."
--
BOFH excuse #334:
50% of the manual is in .pdf readme files
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: [PATCH] don't fail if nslookup is not found (was: xfstests: nslookup not found)
2009-07-20 1:46 ` [PATCH] don't fail if nslookup is not found (was: xfstests: nslookup not found) Christian Kujau
@ 2009-07-20 9:32 ` Christoph Hellwig
2009-07-20 17:03 ` Christian Kujau
0 siblings, 1 reply; 9+ messages in thread
From: Christoph Hellwig @ 2009-07-20 9:32 UTC (permalink / raw)
To: Christian Kujau; +Cc: linux-xfs
On Sun, Jul 19, 2009 at 06:46:25PM -0700, Christian Kujau wrote:
> On Sun, 19 Jul 2009 at 20:16, Christoph Hellwig wrote:
> > Yes, that's exactly it. Can you resend it with a proper subject,
> > description and add your Signed-off-by tag?
>
>
> When nslookup is not available, execution would stop. This patch moves the
> check for nslookup and the _get_fqdn function into the ./new script (since
> this is the only place where it's used) and we don't fail any more but try
> to find out our FQDN without nslookup.
Thanks, I've put the patch in and pushed it to the kernel.org
repository.
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH] don't fail if nslookup is not found (was: xfstests: nslookup not found)
2009-07-20 9:32 ` Christoph Hellwig
@ 2009-07-20 17:03 ` Christian Kujau
2009-07-20 17:56 ` [PATCH] don't fail if nslookup is not found Eric Sandeen
0 siblings, 1 reply; 9+ messages in thread
From: Christian Kujau @ 2009-07-20 17:03 UTC (permalink / raw)
To: Christoph Hellwig; +Cc: linux-xfs
On Mon, 20 Jul 2009 at 05:32, Christoph Hellwig wrote:
> Thanks, I've put the patch in and pushed it to the kernel.org
> repository.
Thanks, Christoph. This reminds me to ask: why is there also a kernel.org
repo, when there's one on oss.sgi.com too? (The latter being referenced in
the XFS wiki)
Christian.
--
BOFH excuse #9:
doppler effect
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH] don't fail if nslookup is not found
2009-07-20 17:03 ` Christian Kujau
@ 2009-07-20 17:56 ` Eric Sandeen
0 siblings, 0 replies; 9+ messages in thread
From: Eric Sandeen @ 2009-07-20 17:56 UTC (permalink / raw)
To: Christian Kujau; +Cc: Christoph Hellwig, linux-xfs
Christian Kujau wrote:
> On Mon, 20 Jul 2009 at 05:32, Christoph Hellwig wrote:
>> Thanks, I've put the patch in and pushed it to the kernel.org
>> repository.
>
> Thanks, Christoph. This reminds me to ask: why is there also a kernel.org
> repo, when there's one on oss.sgi.com too? (The latter being referenced in
> the XFS wiki)
outsiders can't commit to sgi's git repo, so those doing active
development can commit to the one on kernel.org, and then sgi
periodically pulls those in to oss.sgi.com.
-Eric
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2009-07-20 17:56 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-19 17:57 xfstests: nslookup not found Christian Kujau
2009-07-19 18:20 ` Christoph Hellwig
2009-07-19 22:26 ` Eric Sandeen
2009-07-19 23:57 ` Christian Kujau
2009-07-20 0:16 ` Christoph Hellwig
2009-07-20 1:46 ` [PATCH] don't fail if nslookup is not found (was: xfstests: nslookup not found) Christian Kujau
2009-07-20 9:32 ` Christoph Hellwig
2009-07-20 17:03 ` Christian Kujau
2009-07-20 17:56 ` [PATCH] don't fail if nslookup is not found Eric Sandeen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox