Re: cfagent didn't copy with FAI

2007-05-22 Diskussionsfäden Thomas Lange
> 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

2007-05-22 Diskussionsfäden 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: errors during install

2007-05-22 Diskussionsfäden Michael Tautschnig
>  Hi,
> 
>  I'm having these errors during install.  Nothing really breaks (I think).  
>  Is there a way to resolve these errors?
> 
>  Could it be that it is because tmp/target/tmp gets mounted noexec?
> 
>  Any way to fix this?
>
I'm rather wondering why you are mounting this noexec - removing the option is
probably the way to fix it...

Best,
Michael



pgpcWwYOg7IGF.pgp
Description: PGP signature


errors during install

2007-05-22 Diskussionsfäden Rudy Gevaert

Hi,

I'm having these errors during install.  Nothing really breaks (I 
think).  Is there a way to resolve these errors?


Could it be that it is because tmp/target/tmp gets mounted noexec?

Any way to fix this?

Thanks in advance,

Rudy

fai.log:debconf: apt-extracttemplates failed: Illegal seek^MExtracting 
templates from packages: 100%
fai.log:Can't exec "/tmp/console-data.config.16781": Permission denied 
at /usr/share/perl/5.8/IPC/Open3.pm line 168.
fai.log:open2: exec of /tmp/console-data.config.16781 configure  failed 
at /usr/share/perl5/Debconf/ConfModule.pm line 58

fai.log:console-data failed to preconfigure, with exit status 9
fai.log:Can't exec "/tmp/console-common.config.16783": Permission denied 
at /usr/share/perl/5.8/IPC/Open3.pm line 168.
fai.log:open2: exec of /tmp/console-common.config.16783 configure 
failed at /usr/share/perl5/Debconf/ConfModule.pm line 58

fai.log:console-common failed to preconfigure, with exit status 9
fai.log:Can't exec "/tmp/x11-common.config.16785": Permission denied at 
/usr/share/perl/5.8/IPC/Open3.pm line 168.
fai.log:open2: exec of /tmp/x11-common.config.16785 configure  failed at 
/usr/share/perl5/Debconf/ConfModule.pm line 58

fai.log:x11-common failed to preconfigure, with exit status 9
fai.log:Can't exec "/tmp/ucf.config.16787": Permission denied at 
/usr/share/perl/5.8/IPC/Open3.pm line 168.
fai.log:open2: exec of /tmp/ucf.config.16787 configure  failed at 
/usr/share/perl5/Debconf/ConfModule.pm line 58

fai.log:ucf failed to preconfigure, with exit status 9
fai.log:Can't exec "/tmp/fontconfig-config.config.16789": Permission 
denied at /usr/share/perl/5.8/IPC/Open3.pm line 168.
fai.log:open2: exec of /tmp/fontconfig-config.config.16789 configure 
failed at /usr/share/perl5/Debconf/ConfModule.pm line 58

fai.log:fontconfig-config failed to preconfigure, with exit status 9
fai.log:Can't exec "/tmp/linux-image-2.6.21.1-ugent.config.167811": 
Permission denied at /usr/share/perl/5.8/IPC/Open3.pm line 168.
fai.log:open2: exec of /tmp/linux-image-2.6.21.1-ugent.config.167811 
configure  failed at /usr/share/perl5/Debconf/ConfModule.pm line 58
fai.log:linux-image-2.6.21.1-ugent failed to preconfigure, with exit 
status 9
fai.log:Can't exec "/tmp/screen.config.167813": Permission denied at 
/usr/share/perl/5.8/IPC/Open3.pm line 168.
fai.log:open2: exec of /tmp/screen.config.167813 configure  failed at 
/usr/share/perl5/Debconf/ConfModule.pm line 58

fai.log:screen failed to preconfigure, with exit status 9
fai.log:Can't exec "/tmp/udev.config.17091": Permission denied at 
/usr/share/perl/5.8/IPC/Open3.pm line 168.
fai.log:open2: exec of /tmp/udev.config.17091 configure  failed at 
/usr/share/perl5/Debconf/ConfModule.pm line 58

fai.log:udev failed to preconfigure, with exit status 9
fai.log:Can't exec "/tmp/ssl-cert.config.17093": Permission denied at 
/usr/share/perl/5.8/IPC/Open3.pm line 168.
fai.log:open2: exec of /tmp/ssl-cert.config.17093 configure  failed at 
/usr/share/perl5/Debconf/ConfModule.pm line 58

fai.log:ssl-cert failed to preconfigure, with exit status 9
fai.log:Can't exec "/tmp/postfix.config.17095": Permission denied at 
/usr/share/perl/5.8/IPC/Open3.pm line 168.
fai.log:open2: exec of /tmp/postfix.config.17095 configure  failed at 
/usr/share/perl5/Debconf/ConfModule.pm line 58

fai.log:postfix failed to preconfigure, with exit status 9
fai.log:Can't exec "/tmp/dictionaries-common.config.17097": Permission 
denied at /usr/share/perl/5.8/IPC/Open3.pm line 168.
fai.log:open2: exec of /tmp/dictionaries-common.config.17097 configure 
failed at /usr/share/perl5/Debconf/ConfModule.pm line 58

fai.log:dictionaries-common failed to preconfigure, with exit status 9
fai.log:Can't exec "/tmp/idutch.config.17099": Permission denied at 
/usr/share/perl/5.8/IPC/Open3.pm line 168.
fai.log:open2: exec of /tmp/idutch.config.17099 configure  failed at 
/usr/share/perl5/Debconf/ConfModule.pm line 58

fai.log:idutch failed to preconfigure, with exit status 9
fai.log:Can't exec "/tmp/locales.config.170911": Permission denied at 
/usr/share/perl/5.8/IPC/Open3.pm line 168.
fai.log:open2: exec of /tmp/locales.config.170911 configure  failed at 
/usr/share/perl5/Debconf/ConfModule.pm line 58

fai.log:locales failed to preconfigure, with exit status 9
fai.log:Can't exec "/tmp/portmap.config.17401": Permission denied at 
/usr/share/perl/5.8/IPC/Open3.pm line 168.
fai.log:open2: exec of /tmp/portmap.config.17401 configure  failed at 
/usr/share/perl5/Debconf/ConfModule.pm line 58

fai.log:portmap failed to preconfigure, with exit status 9
fai.log:Can't exec "/tmp/ca-certificates.config.17403": Permission 
denied at /usr/share/perl/5.8/IPC/Open3.pm line 168.
fai.log:open2: exec of /tmp/ca-certificates.config.17403 configure 
failed at /usr/share/perl5/Debconf/ConfModule.pm line 58

fai.log:ca-certificates failed to preconfigure, with exit status 9
fai.log:Can't exec "/tmp/cfengine2.config.17405": Permission denied at 
/usr/share/perl/5.8/IPC/Open3.pm line 168.
fai.log

Re: cfagent didn't copy with FAI

2007-05-22 Diskussionsfäden COMBES Julien - CETE Lyon/DI/ET/PAMELA

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