Re: Re: Package promise had no package_method attribute

Markus Rexhepi-Lindberg <[email protected]> Tue, 16 Jul 2024 00:38:12 +0200
Newsgroups gmane.comp.sysutils.cfengine.general
Message-ID <CANdtTv1dP+GJeZ_y3TyP+QnO0wb5un9i4t787u-Q4ZeOvbm+zw@mail.gmail.com>
I noticed this while upgrading from 3.21.4 to 3.21.5 as well.

--
Markus

On Tue, Jul 16, 2024, 00:34 Beto <[email protected]> wrote:

> I tried
>
>         "control_executor_mailfilter_exclude": {
>           "value": [ ".*no package_method attribute.*" ]
>
> but it's not working for some reason. :(
>
> On Monday, July 15, 2024 at 5:18:20 PM UTC-5 Beto wrote:
>
>> Since upgrading from cfengine-community 3.18 to CFEngine Enterprise
>> 3.21.5 I'm seeing this on every host every time the agent runs:
>>
>> info: Package promise had no package_method attribute so it's being
>> assigned a value of 'generic' as default.
>> .
>> This is repeated from 6 to ~150 times during each execution probably
>> depending on classes.
>>
>> This seems like a misclassed message that should only be written in
>> verbose or debug mode.
>>
>> Any ideas?
>>
>> Here's a sample bundle to show the issue:
>>
>> body common control
>> {
>>         bundlesequence => {
>>                 "main",
>>         };
>> }
>>
>> body file control
>> {
>>   inputs => { "/var/cfengine/inputs/lib/packages.cf" };
>> }
>>
>> bundle agent main
>> {
>>         methods:
>>
>>                 "any" usebundle => packages;
>> }
>>
>> bundle agent packages {
>>   vars:
>>     redhat_7::
>>       "redhat_7_baseline_packages"
>>         comment => "install rhel7 baseline packages",
>>         slist   => {
>>           "at",
>>           "audispd-plugins",
>>           };
>>
>>       "redhat_7_baseline_packages"
>>         comment => "install rhel7 baseline packages",
>>         if      => "g_ovpa",
>>         slist   => {
>>           @(redhat_7_baseline_packages),
>>           "xinetd"
>>           };
>>
>>       "redhat_7_real_packages"
>>         comment => "install rhel7 real machine packages",
>>         slist   => {
>>           "device-mapper-multipath",
>>           "device-mapper-multipath-libs",
>>           "sg3_utils"
>>           };
>>
>>       "redhat_7_developer_packages"
>>         comment => "install rhel7 developer packages",
>>         slist   => {
>>           "gcc"
>>           };
>>
>>       "redhat_7_delete_packages"
>>         comment => "rhel7 wireless packages",
>>         slist   => {
>>           "iwl6050-firmware",
>>           };
>>
>>       "redhat_7_delete_packages"
>>         comment => "rhel7 firmware packages",
>>         slist   => {
>>           @(redhat_7_delete_packages),
>>           "ivtv-firmware" };
>>
>>       "redhat_7_delete_packages"
>>         comment => "rhel7 miscelleneous packages",
>>         slist   => {
>>           @(redhat_7_delete_packages),
>>           "NetworkManager-tui",
>>           "NetworkManager-team",
>>           "NetworkManager-config-server",
>>           };
>>
>>       "redhat_7_delete_packages"
>>         comment => "rhel7 ovpa packages",
>>         slist   => {
>>           @(redhat_7_delete_packages),
>>           "xinetd"
>>           };
>>
>>   packages:
>>     redhat_7::
>>       "$(redhat_7_baseline_packages)"
>>         comment         => "Install rhel7 baseline packages",
>>         policy          => "present",
>>         version         => "latest",
>>         package_module  => yum;
>>
>>       "$(redhat_7_real_packages)"
>>         comment         => "Install rhel7 real machine packages",
>>         policy          => "present",
>>         version         => "latest",
>>         package_module  => yum;
>>
>>       "$(redhat_7_developer_packages)"
>>         comment         => "Install rhel7 developer packages",
>>         policy          => "present",
>>         version         => "latest",
>>         package_module  => yum;
>>
>>       "$(redhat_7_delete_packages)"
>>         comment         => "Delete rhel7 packages",
>>         policy          => "absent",
>>         package_module  => yum;
>>
>> }
>>
>>
>>
>> --
> You received this message because you are subscribed to the Google Groups
> "help-cfengine" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/help-cfengine/87e1a57d-4e2c-4b27-a160-ca1815a3a739n%40googlegroups.com
> <https://groups.google.com/d/msgid/help-cfengine/87e1a57d-4e2c-4b27-a160-ca1815a3a739n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups "help-cfengine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/help-cfengine/CANdtTv1dP%2BGJeZ_y3TyP%2BQnO0wb5un9i4t787u-Q4ZeOvbm%2Bzw%40mail.gmail.com.