make test fails on Fedora 10

2013-03-27 Thread Luther, Dan
Several months ago, I reported that several of the make tests were failing due 
to couldn't start server ns2 and the like.

Working with the BIND 9.9.2-P2 compile, I just spent several minutes tracking 
the source of this down with some judicious use of print in the 
'bin/tests/system/start.pl' script and viewing the *.run output. It really 
comes down to file permissions -- a particular line from 
bin/tests/system/inline/ns1/named.run pointed me in that direction:

27-Mar-2013 14:24:53.970 could not open file 'named.pid': Permission denied

Apparently, the file ownerships for this entire test suite are for a user and 
group I do not have:

-rw-rw-r--  1 10292 9901  2806 Mar  6 11:56 run.sh

For the tests, BIND starts up with an empty group descriptor:

I:issuing command '/home/luther/bind-9.9.2-P2/bin/named/named -m 
record,size,mctx -T clienttest -c named.conf -d 99 -g named.run 21 echo $!'
I:Checking that reconfiguring empty zones is silent (1)

... which may be part of the problem, at least in my case. So I cheated by 
issuing a find . -type d -exec chmod 777 {} \; command.

Now, all the tests are successful.

FYI in case anyone runs into this issue.

Dan Luther
Operations Engineer
Systems Operation Engineering
Level 3 Communications
One Technology Center, Tulsa OK 74103
p: 918-547-4370
e: dan.lut...@level3.commailto:name.n...@level3.com

___
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe 
from this list

bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users

Re: make test fails on Fedora 10

2013-03-27 Thread Jeremy C. Reed
On Wed, 27 Mar 2013, Luther, Dan wrote:

 For the tests, BIND starts up with an empty group descriptor:
 
  
 
 I:issuing command '/home/luther/bind-9.9.2-P2/bin/named/named -m
 record,size,mctx -T clienttest -c named.conf -d 99 -g named.run 21 echo
 $!'

I guess you are talking about -g.  It is not a switch for group.___
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe 
from this list

bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users

Re: make test fails on Fedora 10

2013-03-27 Thread Jeremy C. Reed
On Wed, 27 Mar 2013, Luther, Dan wrote:

 Working with the BIND 9.9.2-P2 compile, I just spent several minutes
 tracking the source of this down with some judicious use of ?print? in the
 ?bin/tests/system/start.pl? script and viewing the ?*.run? output. It really
 comes down to file permissions -- a particular line from
 ?bin/tests/system/inline/ns1/named.run? pointed me in that direction:
 
  
 
 27-Mar-2013 14:24:53.970 could not open file 'named.pid': Permission denied
 
  
 
 Apparently, the file ownerships for this entire test suite are for a user
 and group I do not have:
 
  
 
 -rw-rw-r--  1 10292 9901  2806 Mar  6 11:56 run.sh

I assume you extracted the tarball as root.  If you are using GNU tar, 
have a look at the --same-owner documentation in the manual page about 
this.

Maybe your problem will go away if you extract as yourself.___
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe 
from this list

bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users

RE: make test fails on Fedora 10

2013-03-27 Thread Luther, Dan
So it's not. 

Dan Luther
Operations Engineer
Systems Operation Engineering 
Level 3 Communications
One Technology Center, Tulsa OK 74103
p: 918-547-4370
e: dan.lut...@level3.com


-Original Message-
From: Jeremy C. Reed [mailto:jr...@isc.org] 
Sent: Wednesday, March 27, 2013 3:17 PM
To: Luther, Dan
Cc: 'bind-us...@isc.org'
Subject: Re: make test fails on Fedora 10

On Wed, 27 Mar 2013, Luther, Dan wrote:

 For the tests, BIND starts up with an empty group descriptor:
 
  
 
 I:issuing command '/home/luther/bind-9.9.2-P2/bin/named/named -m 
 record,size,mctx -T clienttest -c named.conf -d 99 -g named.run 21 
 echo $!'

I guess you are talking about -g.  It is not a switch for group.
___
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe 
from this list

bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users


Re: make test fails on Fedora 10

2013-03-27 Thread Mark Andrews

BIND 9 is setup to be build and tested as a ordinary user.
You only need to be root to configure the test interfaces
and to do the final install.

On Linux named drops root's abilities to override file
permissions so when you extract the tarball as root you get
files/directories with non root ownerships which named
cannot write to.

-- 
Mark Andrews, ISC
1 Seymour St., Dundas Valley, NSW 2117, Australia
PHONE: +61 2 9871 4742 INTERNET: ma...@isc.org
___
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe 
from this list

bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users