The following promise registers a 50% success rate. Why not 100%? Is there something I don't understand or is this a bug?
Thanks, -at #!/var/cfengine/bin/cf-agent -Kf body common control { bundlesequence => { "test" }; } bundle agent test { reports: linux:: "My default interface and ip4 address is $(sys.interface) and $(sys.ipv4)"; } [r...@ve beginning_examples]# ./varnet.cf R: My default interface and ip4 address is venet0 and 127.0.0.1 [r...@ve beginning_examples]# [r...@ve beginning_examples]# cf-agent -K -v -f ./varnet.cf 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/state/cf_observations.db cf3 Couldn't find a private key (/var/cfengine/ppkeys/localhost.priv) - use cf-key to get one cf3 !!! System error for fopen: "No such file or directory" cf3 Setting cfengine default port to 5308 = 5308 cf3 Reference time set to Wed Oct 27 21:40:49 2010 cf3 Cfengine - 3.1.0b3 Copyright (C) Cfengine AS 2008,2010- cf3 ------------------------------------------------------------------------ cf3 Host name is: ve.cfengine.com cf3 Operating System Type is linux cf3 Operating System Release is 2.6.18-028stab070.4 cf3 Architecture = x86_64 cf3 Using internal soft-class linux for host ve.cfengine.com cf3 The time is now Wed Oct 27 21:40:49 2010 cf3 ------------------------------------------------------------------------ cf3 # Extended system discovery is only available in version Nova and above cf3 Additional hard class defined as: 64_bit cf3 Additional hard class defined as: linux_2_6_18_028stab070_4 cf3 Additional hard class defined as: linux_x86_64 cf3 Additional hard class defined as: linux_x86_64_2_6_18_028stab070_4 cf3 GNU autoconf class from compile time: compiled_on_linux_gnu cf3 Address given by nameserver: 205.186.156.208 cf3 Interface 1: lo cf3 Interface 2: venet0 cf3 Adding alias localhost.. cf3 Skipping apparent virtual interface 3: venet0:0 cf3 Trying to locate my IPv6 address cf3 Looking for environment from cf-monitor... cf3 Loading environment... cf3 Environment data loaded cf3 This appears to be a redhat system. cf3 Looking for redhat linux info in "CentOS release 5.5 (Final) " 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 > Verifying the syntax of the inputs... cf3 > Parsing file ./varnet.cf cf3 Initiate variable convergence... cf3 Initiate variable convergence... cf3 # Knowledge map reporting feature is only available in version Nova and above cf3 -> Defined classes = { 127_0_0_1 64_bit Day27 Evening GMT_Hr4 Hr21 Hr21_Q3 Lcycle_0 Min40 Min40_45 October Q3 Wednesday Yr2010 agent any centos centos_5 centos_5_5 cfengine_3 cfengine_3_1 cfengine_3_1_0b3 cfengine_com com community_edition compiled_on_linux_gnu entropy_cfengine_in_low entropy_cfengine_out_low entropy_dns_in_low entropy_dns_out_low entropy_ftp_in_low entropy_ftp_out_low entropy_icmp_in_low entropy_icmp_out_low entropy_irc_in_low entropy_irc_out_low entropy_misc_in_low entropy_misc_out_low entropy_netbiosdgm_in_low entropy_netbiosdgm_out_low entropy_netbiosns_in_low entropy_netbiosns_out_low entropy_netbiosssn_in_low entropy_netbiosssn_out_low entropy_nfsd_in_low entropy_nfsd_out_low entropy_smtp_in_low entropy_smtp_out_low entropy_ssh_in_low entropy_ssh_out_low entropy_tcpack_in_low entropy_tcpack_out_low entropy_tcpfin_in_low entropy_tcpfin_out_low entropy_tcpsyn_in_low entropy_tcpsyn_out_low entropy_udp_in_low entropy_udp_out_low entropy_www_in_low entropy_www_out_low entropy_wwws_in_low entropy_wwws_out_low ipv4_127 ipv4_127_0 ipv4_127_0_0 ipv4_127_0_0_1 linux linux_2_6_18_028stab070_4 linux_x86_64 linux_x86_64_2_6_18_028stab070_4 linux_x86_64_2_6_18_028stab070_4__1_SMP_Tue_Aug_17_18_32_47_MSD_2010 localhost localhost_localdomain messages_high_normal net_iface_venet0 redhat rootprocs_high_normal ve ve_cfengine_com verbose_mode x86_64 } cf3 -> Negated Classes = { } cf3 Initiate variable convergence... cf3 -> Immunizing against parental death cf3 -> Bundlesequence => {'test'} cf3 cf3 ***************************************************************** cf3 BUNDLE test cf3 ***************************************************************** cf3 cf3 cf3 + Private classes augmented: cf3 cf3 - Private classes diminished: cf3 cf3 cf3 cf3 ========================================================= cf3 reports in bundle test (1) cf3 ========================================================= cf3 cf3 Extended process options are only available with Cfengine Nova or above cf3 cf3 ......................................................... cf3 Promise handle: cf3 Promise made by: My default interface and ip4 address is venet0 and 127.0.0.1 cf3 ......................................................... cf3 cf3 Reporting about this... cf3 R: My default interface and ip4 address is venet0 and 127.0.0.1 cf3 cf3 + Private classes augmented: cf3 cf3 - Private classes diminished: cf3 cf3 cf3 cf3 ========================================================= cf3 reports in bundle test (2) cf3 ========================================================= cf3 cf3 Extended process options are only available with Cfengine Nova or above cf3 cf3 + Private classes augmented: cf3 cf3 - Private classes diminished: cf3 cf3 cf3 cf3 ========================================================= cf3 reports in bundle test (3) cf3 ========================================================= cf3 cf3 Extended process options are only available with Cfengine Nova or above cf3 Outcome of version (not specified) (agent-0): Promises observed to be kept 50%, Promises repaired 50%, Promises not repaired 0% cf3 Estimated system complexity as touched objects = 0, for 1 promises cf3 -> Writing last-seen observations cf3 -> Keyring is empty [r...@ve beginning_examples]# _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine