Forum: Cfengine Help
Subject: Re: Processes in Solaris 10 and latest trunk r1736
Author: berntjernberg
Link to topic: https://cfengine.com/forum/read.php?3,20298,20308#msg-20308

Hi,

Now my bundle don't match the process at all and starts a second cf-execd in 
the global zone????
I'm I doing something wrong here?

The bundle



bundle agent testproc
{
    processes:
         "cf-execd" signals => { "term" , "kill" },
                       restart_class => "start_cfexecd";


    commands:
        start_cfexecd::
            "/var/cfengine/bin/cf-execd"
            classes => if_repaired("executor");
}



And here is the printout. I have removed a lot of lines.



# /var/cfengine/bin/cf-agent -vK
cf3 Cfengine - autonomous configuration engine - commence self-diagnostic 
prelude
cf3 ------------------------------------------------------------------------
cf3 Work directory is /var/cfengine
cf3 Making sure that locks are private...
cf3 Checking integrity of the state database
cf3 Checking integrity of the module directory
cf3 Checking integrity of the PKI directory
cf3 Looking for a source of entropy in /var/cfengine/randseed
cf3  -> Loaded private key /var/cfengine/ppkeys/localhost.priv
cf3  -> Loaded public key /var/cfengine/ppkeys/localhost.pub
cf3 No registered cfengine service, using default
cf3  !!! System error for getservbyname: "Error 0"
cf3 Setting cfengine default port to 5308 = 5308
cf3 Reference time set to Fri Jan 28 11:31:30 2011
cf3 Cfengine - 3.1.4 Copyright (C) Cfengine AS 2008,2010-
cf3 ------------------------------------------------------------------------
cf3 Host name is: xxxxxxx
cf3 Operating System Type is sunos
cf3 Operating System Release is 5.10
cf3 Architecture = sun4v
cf3 Using internal soft-class solaris for host xxxxxxx
cf3 The time is now Fri Jan 28 11:31:30 2011
cf3 ------------------------------------------------------------------------
cf3 # Extended system discovery is only available in version Nova and above
cf3 Additional hard class defined as: 32_bit
cf3 Additional hard class defined as: sunos_5_10
cf3 Additional hard class defined as: sunos_sun4v
cf3 Additional hard class defined as: sunos_sun4v_5_10
cf3 Additional hard class defined as: sparc
cf3 Additional hard class defined as: SUNW,Sun-Blade-T6340
cf3 GNU autoconf class from compile time: compiled_on_solaris2_10
cf3 Address given by nameserver: XXX.XXX.XXX.XXX
cf3 Interface 1: lo0
cf3 Interface 2: vnet0
cf3  !! Cannot discover hardware IP, using DNS value
cf3 Interface 3: vnet1
cf3  !! Cannot discover hardware IP, using DNS value
cf3 Adding alias xxxxxxx..
cf3 Adding alias loghost..
cf3 Interface 5: vnet2
cf3 Trying to locate my IPv6 address
cf3 Looking for environment from cf-monitord...
cf3 Unable to detect environment from cf-monitord
cf3 ***********************************************************
cf3  Loading persistent classes
cf3 ***********************************************************
cf3 ***********************************************************
cf3  Loaded persistent memory
cf3 ***********************************************************
cf3  -> No policy server (hub) watch yet registered
cf3 Setting policy server requires version Nova or above
cf3  -> No new promises proposals - so policy is already validated
cf3   > Parsing file /var/cfengine/inputs/promises.cf
cf3 Initiate variable convergence...
cf3  ?> defining additional global class isglobalzone
cf3  ?> defining additional global class default_profile
.............
.............
.............
.............
cf3   > Parsing file /var/cfengine/inputs/testproc.cf
cf3 Initiate variable convergence...
cf3  -> Checking common class promises...
cf3  -> Checking common class promises...
cf3   > Parsing file /var/cfengine/inputs/cfengine_stdlib.cf
cf3 Initiate variable convergence...
cf3  -> Checking common class promises...
cf3  -> Checking common class promises...
cf3 Initiate variable convergence...
cf3  -> Checking common class promises...
cf3  -> Checking common class promises...
cf3 # Knowledge map reporting feature is only available in version Nova and 
above
cf3  -> Defined classes = { 0_0_0_0 XXX_XXX_XXX_XXX XXX_XXX_XXX_XXX 32_bit 
Day28 Friday GMT_Hr10 Hr11 Hr11_Q3 January Lcycle_1 Min30_35 Min31 Morning 
PK_MD5_XXXXXXXXXXXXXXXXXXXXXXXXX Q3 SUNW_Sun_Blade_T6340 Yr2011 agent any 
cfengine_3 cfengine_3_1 cfengine_3_1_4 community_edition 
compiled_on_solaris2_10 default_profile ipv4_XXX ipv4_XXX_XXX ipv4_XXX_XXX_XXX 
ipv4_XXX_XXX_XXX_XXX ipv4_XXX ipv4_XXX_XXX ipv4_XXX_XXX_XXX 
ipv4_XXX_XXX_XXX_XXX isglobalzone loghost net net_iface_lo0 net_iface_vnet0 
net_iface_vnet1 net_iface_vnet1_1 net_iface_vnet2 xxxxxxx xxxxxxx_xxx 
xxxxxxx_xxx solaris sparc sun4v sunos_5_10 sunos_sun4v sunos_sun4v_5_10 
sunos_sun4v_5_10_Generic_142900_11 verbose_mode }
cf3  -> Negated Classes = { }
cf3 Initiate variable convergence...
cf3  -> Checking common class promises...
cf3  -> Checking common class promises...
cf3  -> Immunizing against parental death
cf3 SET maxconnections = 1000
cf3 SET ifelapsed = 0
cf3 SET skipidentify = 1
cf3 -> Bundlesequence =>  {'g','testproc'}
cf3
cf3 *****************************************************************
cf3 BUNDLE g
cf3 *****************************************************************
cf3
cf3
cf3    =========================================================
cf3    vars in bundle g (1)
cf3    =========================================================
cf3
..................
.................
.................

cf3
cf3 *****************************************************************
cf3 BUNDLE testproc
cf3 *****************************************************************
cf3
cf3
cf3      +  Private classes augmented:
cf3
cf3      -  Private classes diminished:
cf3
cf3
cf3
cf3    =========================================================
cf3    processes in bundle testproc (1)
cf3    =========================================================
cf3
cf3 Observe process table with /bin/ps -eo 
user,pid,ppid,pgid,pcpu,pmem,vsz,pri,rss,nlwp,stime,time,args -z global
cf3  -> (warning) Promise cf-execd kills then restarts - never strictly 
converges
cf3 Promise (version promises.cf 1.0.3) belongs to bundle 'testproc' in file 
'/var/cfengine/inputs/testproc.cf' near line 5
cf3
cf3     .........................................................
cf3     Promise handle:
cf3     Promise made by: cf-execd
cf3     .........................................................
cf3
cf3  -> Making a one-time restart promise for cf-execd
cf3
cf3    =========================================================
cf3    commands in bundle testproc (1)
cf3    =========================================================
cf3
cf3  -> Promiser string contains a valid executable 
(/var/cfengine/bin/cf-execd) - ok
cf3
cf3     .........................................................
cf3     Promise handle:
cf3     Promise made by: /var/cfengine/bin/cf-execd
cf3     .........................................................
cf3
cf3  -> Executing '/var/cfengine/bin/cf-execd' 
...(timeout=-678,owner=-1,group=-1)
cf3  -> (Setting umask to 77)
cf3  -> Finished command related to promiser "/var/cfengine/bin/cf-execd" -- 
succeeded
cf3  ?> defining promise result class cfexecd_started
cf3  -> Completed execution of /var/cfengine/bin/cf-execd
cf3
cf3      +  Private classes augmented:
cf3
cf3      -  Private classes diminished:
cf3
cf3
cf3
cf3    =========================================================
cf3    processes in bundle testproc (2)
cf3    =========================================================
cf3
cf3 Observe process table with /bin/ps -eo 
user,pid,ppid,pgid,pcpu,pmem,vsz,pri,rss,nlwp,stime,time,args -z global
cf3
cf3    =========================================================
cf3    commands in bundle testproc (2)
cf3    =========================================================
cf3
cf3
cf3      +  Private classes augmented:
cf3
cf3      -  Private classes diminished:
cf3
cf3
cf3
cf3    =========================================================
cf3    processes in bundle testproc (3)
cf3    =========================================================
cf3
cf3 Observe process table with /bin/ps -eo 
user,pid,ppid,pgid,pcpu,pmem,vsz,pri,rss,nlwp,stime,time,args -z global
cf3
cf3    =========================================================
cf3    commands in bundle testproc (3)
cf3    =========================================================
cf3
cf3 Outcome of version promises.cf 1.0.3 (agent-0): Promises observed to be 
kept 0%, Promises repaired 100%, Promises not repaired 0%
cf3 Estimated system complexity as touched objects = 0, for 283 promises
cf3  -> Writing last-seen observations
cf3  -> Keyring is empty
cf3  -> No lock purging scheduled



_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to