Hi,

I'm trying to write a promise to check if a package is installed, and i
consistently get a segmentation fault using the "verify" package policy. I'm
using a Ubuntu 64 bits virtual machine:

Code :
body common control {

    inputs => {
    "apt.cf"
    };
    linux::
        bundlesequence => {"checkVirtualBox"};
}

bundle agent checkVirtualBox {
packages:
    "virtualbox-ose"
         package_policy  => "verify",
                package_method  => "apt";
}

Result :

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 input data for RPC
cf3 Checking integrity of the output data for RPC
cf3 Checking integrity of the PKI directory
cf3 Looking for a source of entropy in /var/cfengine/randseed
cf3 Loaded /var/cfengine/ppkeys/localhost.priv
cf3 Loaded /var/cfengine/ppkeys/localhost.pub
cf3 Setting cfengine default port to 5308 = 5308
cf3 Reference time set to Mon Sep  7 14:27:38 2009
cf3 Cfengine - 3.0.2 (C) Cfengine AS 2008-
cf3 ------------------------------------------------------------------------
cf3 Host name is: cfserveur
cf3 Operating System Type is linux
cf3 Operating System Release is 2.6.28-11-generic
cf3 Architecture = x86_64
cf3 Using internal soft-class linux for host cfserveur
cf3 The time is now Mon Sep  7 14:27:38 2009
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_28_11_generic
cf3 Additional hard class defined as: linux_x86_64
cf3 Additional hard class defined as: linux_x86_64_2_6_28_11_generic
cf3 GNU autoconf class from compile time: compiled_on_linux_gnu
cf3 Address given by nameserver: 127.0.1.1
cf3 Interface 1: lo
cf3 Interface 2: eth0
cf3 Adding alias slave..
cf3 Trying to locate my IPv6 address
cf3 Found IPv6 address inet6:
cf3 Found IPv6 address fe80::a00:27ff:fee0:8bc1
cf3 Found IPv6 address inet6:
cf3 Looking for environment from cf-monitor...
cf3 Unable to detect environment from cfMonitord
cf3 This appears to be a debian system.
cf3 Looking for Debian version...
cf3 This appears to be a Debian 5.0 system.
cf3 This appears to be a Debian 5 system.
cf3 This appears to be a LSB compliant system.
cf3 ***********************************************************
cf3  Loading persistent classes
cf3 ***********************************************************
cf3 ***********************************************************
cf3  Loaded persistent memory
cf3 ***********************************************************
cf3   > Parsing file ./vm.cf
cf3 Initiate variable convergence...
cf3   > Parsing file ./apt.cf
cf3 Initiate variable convergence...
cf3 # Knowledge map reporting feature is only available in version Nova and
above
cf3  -> Defined hard classes = { any verbose_mode Monday Hr14 Afternoon
Min27 Min25_30 Q2 Hr14_Q2 Day7 September Yr2009 Lcycle_2 GMT_Hr12 linux
cfserveur undefined_domain 64_bit linux_2_6_28_11_generic x86_64
linux_x86_64 linux_x86_64_2_6_28_11_generic
linux_x86_64_2_6_28_11_generic__42_Ubuntu_SMP_Fri_Apr_17_01_58_03_UTC_2009
compiled_on_linux_gnu net_iface_lo net_iface_eth0 192_168_0_11 windows slave
ipv4_192_168_0_11 ipv4_192_168_0 ipv4_192_168 ipv4_192 inet6_
fe80__a00_27ff_fee0_8bc1 cfengine_3_0_2 cfengine_3_0 cfengine_3 debian
debian_5_0 debian_5 lsb_compliant ubuntu ubuntu_jaunty ubuntu_9_4 ubuntu_9
agent }
cf3  -> Negated Classes = { }
cf3 Initiate variable convergence...
cf3 Initiate control variable convergence...
cf3 -> Bundlesequence =>  {'checkVirtualBox'}
cf3
cf3 *****************************************************************
cf3 BUNDLE checkVirtualBox
cf3 *****************************************************************
cf3
cf3
cf3      +  Private classes augmented:
cf3
cf3      -  Private classes diminished:
cf3
cf3
cf3
cf3    =========================================================
cf3    packages in bundle checkVirtualBox (1)
cf3    =========================================================
cf3
cf3 Verifying SQL table promises is only available with Cfengine Nova or
above
cf3
cf3     .........................................................
cf3     Promise handle:
cf3     Promise made by: virtualbox-ose
cf3     .........................................................
cf3
cf3  ???????????????????????????????????????????????????????????????
cf3    Reading package list from /usr/bin/dpkg-query
cf3  ???????????????????????????????????????????????????????????????
cf3 # Software reporting feature is only available in version Nova and above
cf3 # Patch reporting feature is only available in version Nova and above
cf3  ???????????????????????????????????????????????????????????????
cf3   Done checking packages and patches
cf3  ???????????????????????????????????????????????????????????????
cf3  -> Looking for (virtualbox-ose,*,*)
cf3  -> Matched name virtualbox-ose
cf3  -> Matched version *
cf3  -> Looking for (virtualbox-ose,*,*)
cf3  -> Matched name virtualbox-ose
cf3  -> Matched version *
cf3  -> 1 package(s) matching the name "virtualbox-ose" already installed
cf3  -> 1 package(s) match the promise body's criteria fully
cf3  -> Package promises to refer to itself as "virtualbox-ose" to the
manager
cf3  -> Schedule package for verification
Erreur de segmentation
_______________________________________________
Bug-cfengine mailing list
Bug-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/bug-cfengine

Reply via email to