help-cfengine
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 2nd pass not occuring, how to force?


From: Mark Burgess
Subject: Re: 2nd pass not occuring, how to force?
Date: Thu, 18 Aug 2005 18:49:39 +0200

Try the latest sources first,

M

On Thu, 2005-08-18 at 09:05 -0700, Martin, Jason H wrote:
> I'm attempting to do a copy/shellcommand/copy/shellcommand operation.
> However, CFEngine 2.1.14 doesn't appear to be detecting that a 2nd pass
> is necessary. How can I force the 2nd pass? like to get this into one
> sequential operation, as the timelines for software deployment are tight
> and waiting for another run is not ideal. FIRST has to happen before
> SECOND otherwise the application will fail.
> 
> I verified that there are no files starting with "init" in
> /var/cfengine/saved_files before running it.
> 
> My config file:
> 
> control:
>         AddInstallable = ( FIRST SECOND THIRD )
>         cfbin = ( /var/cfengine/bin )
>         ChecksumDatabase = ( /var/cfengine/cfdb )
>         ChecksumUpdates = ( on )
>         Exclamation = ( off )
>         ExpireAfter = ( 30 )
>         Repository = ( "/var/cfengine/saved_files" )
>         actionsequence = ( copy shellcommands )
> 
> copy:
> 
>         #Detect changes to the files from the repository
>         #In production this would have a server= line in it
>         any::
>         /etc/inittab
>         dest=/var/cfengine/saved_files/inittab1
>         define=FIRST
>         inform=true
> 
>         #Copy the files from the repository to the production location
>         SECOND::
>         /var/cfengine/saved_files/inittab1
>         dest=/var/cfengine/saved_files/inittab2
>         inform=true
>         define=THIRD
> 
> 
> shellcommands:
> 
>         # If the files changes from the master, shut down the
> application
>         # in prep for a reconfiguration
>         FIRST::
>         "/usr/bin/echo FIRST" define=SECOND inform=true
> 
>         #Restart the application with the new config files
>         THIRD::
>         "/usr/bin/echo THIRD" inform=true
> 
> 
> Here is my cfagent -qv output:
> Finished with /var/cfengine/inputs/update.conf
> Skipping update.conf (-F=0)
> 
> $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
>  * (Changing context state to: main) * 
> $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
> 
> ---------------------------------------------------------------------
> Loading persistent classes
> ---------------------------------------------------------------------
> 
> ---------------------------------------------------------------------
> Loaded persistent memory
> ---------------------------------------------------------------------
> 
> Looking for environment from cfenvd...
> 
> Unable to detect environment from cfenvd
> 
> Looking for an input file /var/cfengine/inputs/cfagent.conf Finished
> with cfagent.conf
> 
> Accepted domain name: undefined.domain
> 
> 
> Defined Classes = ( XX_XX_XX XX_XX_XX_XX 32_bit August Day18 Hr08
> Hr08_Q4 Min55_00 Min57 Q4 SUNW_Sun_Blade_100 Thursday Yr2005 any
> cfengine_2 cfengine_2_1 cfengine_2_1_14 compiled_on_solaris2_8 ipv4_XXX
> ipv4_XXX_XXX ipv4_XXX_XXX_XXX ipv4_XX_XX_XX_XX net_iface_eri0
> net_iface_lo0 solaris sparc sun4u sunos_5_9 sunos_sun4u sunos_sun4u_5_9
> sunos_sun4u_5_9_Generic_112233_05 hostXXXX )
> 
> Negated Classes = ( )
> 
> Installable classes = ( no_default_route FIRST SECOND THIRD )
> 
> Global expiry time for locks: 30 minutes
> 
> Global anti-spam elapse time: 1 minutes
> 
> Extensions which should not be directories = ( )
> Suspicious filenames to be warned about = ( )
> LogDirectory = /var/cfengine
> Loaded /var/cfengine/ppkeys/localhost.priv
> Loaded /var/cfengine/ppkeys/localhost.pub
> Checksum database is /var/cfengine/cfdb
> Reference time set to Thu Aug 18 08:57:01 2005
> 
> 
> *********************************************************************
>  Main Tree Sched: copy pass 1 @ Thu Aug 18 08:57:01 2005
> *********************************************************************
> 
> Checking copy from localhost:/etc/inittab to
> /var/cfengine/saved_files/inittab1
> cfengine:: /var/cfengine/saved_files/inittab1 wasn't at destination
> (copying)
> cfengine:: Copying from localhost:/etc/inittab
> cfengine:: Group of /var/cfengine/saved_files/inittab1 was 1, setting to
> 3
> cfengine:: Object /var/cfengine/saved_files/inittab1 had permission 600,
> changed it to 644 Saving the setuid log in
> /var/cfengine/cfagent.hostXXXX.log
> 
> *********************************************************************
>  Main Tree Sched: shellcommands pass 1 @ Thu Aug 18 08:57:01 2005
> *********************************************************************
> 
> cfengine:: Executing script /usr/bin/echo
> FIRST...(timeout=0,uid=-1,gid=-1) (Setting umask to 77)
> cfengine::r/bin/echo FIRS: FIRST
> cfengine:: Finished script /usr/bin/echo FIRST
> ---------------------------------------------------------------------
> Alerts
> ---------------------------------------------------------------------
> 
> 
> 
> ++++++++++++++++++++++++++++++++++++++++
> Summary of objects involved
> ++++++++++++++++++++++++++++++++++++++++
> 
>     global
>     update
>     main
> 
> 
> 
> 
> Thank you,
> -Jason Martin
> 
> 
> _______________________________________________
> Help-cfengine mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/help-cfengine





reply via email to

[Prev in Thread] Current Thread [Next in Thread]