cfagent didn't copy with FAI

2007-05-21 Thread Andy Van Maele
Hello,

recently, I've moved from FAI under Sarge to FAI working on Debian Etch.
I have a cfagent script, which basically copies some deb-files to the
target computer, and then install these packages. All worked well with
FAI Sarge.
But now, when performing an installation, for a strange reason cfagent
just ignores the copy section. When I stopped the FAI install just
before reboot, and manually executed the cfagent script after logging
in, the files copied without any problem.

Would anyone have a hint why the manually executed cfagent file does
work, and it doesn't when processing it through the FAI install?

kind regards,
Andy Van Maele


Re: cfagent didn't copy with FAI

2007-05-22 Thread Andy Van Maele
Hello Thomas & everyone,
> > But now, when performing an installation, for a strange reason cfagent
> > just ignores the copy section. When I stopped the FAI install just
> Mmm. The best would be to come into IRC #fai on oftc and we will try to
> solve the problem online. Did you use cfengine 1 or 2 with sarge?
>   
Before, the script was working on cfengine1.7 on FAI 2.7(?) on Sarge.
Now, I'm migrating our scripts to a new server based on cfengine2 and
FAI 3.1.8, which come with Debian Etch.
> Any error/log messages? 
>   
I've turned on cfagent to be verbose, and during copy nothing actually
happens:

*

 Main Tree Sched: copy pass 1 @ Tue May 22 07:14:08 2007

*


*

 Main Tree Sched: editfiles pass 1 @ Tue May 22 07:14:08 2007

*


Begin editing /tmp/target/etc/fstab

On the other had, after almost all of the action is done, I have some
"Checking" messages:

Checking for potential rule:: Copy

/ any


*

 Main Tree Sched: copy pass 2 @ Tue May 22 07:14:16 2007

*


Checking for potential rule:: Copy

/ any


*

 Main Tree Sched: editfiles pass 2 @ Tue May 22 07:14:16 2007

*


Checking for potential rule:: Copy

/ any

which I don't understand.
> > Would anyone have a hint why the manually executed cfagent file does
> > work, and it doesn't when processing it through the FAI install?
> Maybe a class is not defined. Try to put this code into the any::
> section of cfagent.
>   
It's already in the any section of cfagent:

copy:

   any::

### The files to get click up and running

${files}/click/linux-2.6.19.2-click070516.tar.bz2   
dest=${target}/usr/src/linux-2.6.19.2-click070516.tar.bz2

m=644 o=root g=root

${files}/click/click070516.tar.bz2 
dest=${target}/usr/src/click070516.tar.bz2

m=644 o=root g=root

${files}/click/click_cvs-070516-1.deb 
dest=${target}/usr/src/click_cvs-070516-1.deb

m=644 o=root g=root

is the part that doesn't seem to do what it should.

Regards,
Andy Van Maele


Re: cfagent didn't copy with FAI

2007-05-23 Thread Andy Van Maele
Hello,

just for completion of this mailing thread - and as information for
Julien Combes:
the reason was not an error in the cfengine script, but a setting in
/bin/fai-do-scripts (line 116) which executed cfagent with parameter
"-k", preventing the files being copied.
After removing this parameter k, the cfagent script worked as expected.

This is reported in http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=425699

regards,
Andy Van Maele

> > It's already in the any section of cfagent:
>
> > copy:
> >any::
> Do you also have the any:: class in the control section? This is new
> in cfengine2. Have a look at the examples of FAI 3.1.8.
>
>
> > 
> PLEASE. NO HTML MAILS!!!
>
>