Re: cfagent didn't copy with FAI
> On Mon, 21 May 2007 18:39:25 +0200, Andy Van Maele <[EMAIL PROTECTED]> > said: > 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? Any error/log messages? > 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. -- regards Thomas
Re: cfagent didn't copy with FAI
Hello, Le 21.05.2007 18:52, Thomas Lange a écrit : On Mon, 21 May 2007 18:39:25 +0200, Andy Van Maele <[EMAIL PROTECTED]> said: > 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? Any error/log messages? I had got the same problem some days ago. I had a cfengine script which was works well with FAI under Sarge and cfengine 1.6 and don't copy with FAI under Etch and cfengine 2.1. There was no error/log messages. If I logged on on the server at the end of the installation before rebooting, and I launched the cfengine script manually with the classes detected by FAI, it was working well. After some hours, as it was urgent to solve this problem, I have finally moved this copy on a shell script... Regards, Julien
Re: cfagent didn't copy with FAI
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
> On Tue, 22 May 2007 09:43:43 +0200, Andy Van Maele <[EMAIL PROTECTED]> > said: > 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!!! -- regards Thomas
Re: cfagent didn't copy with FAI
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!!! > >