Re: Package promise had no package_method attribute
Beto <[email protected]> Tue, 16 Jul 2024 08:00:43 -0700 (PDT)
| Newsgroups | gmane.comp.sysutils.cfengine.general |
|---|---|
| Message-ID | <[email protected]> |
Thanks, Bas and Markus!
On Tuesday, July 16, 2024 at 7:28:59 AM UTC-5 Bas van der Vlies wrote:
> Looks strange bu I suppress it by:
> ```
> packages:
>
>
> !version_specified::
>
>
> "$(package)"
>
>
> policy => "$(action)",
>
>
> package_method => generic,
>
>
> options => { "$(options)" };
> ```
>
> I only use version 2 and do not version 1 package management any more. I
> will remove it when a new version has been released.
>
>
> On 16/07/2024 14:14, 'Bas van der Vlies' via help-cfengine wrote:
> > This is a bug. The message should be “DEBUG” but is “INFO”. They have
> fixed it but not yet released a new cfengine 3.21 version, see:
> > * https://northerntech.atlassian.net/browse/CFE-4398
> >
> >
> >
> >> On 16 Jul 2024, at 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
> .
> >
>
> --
> --
> Bas van der Vlies
> | High Performance Computing & Visualization | SURF| Science Park 140 |
> 1098 XG Amsterdam
> | T +31 (0) 20 800 1300 <+31%2020%20800%201300> | [email protected] |
> www.surf.nl |
>
--
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/047bea15-3486-47c9-a39c-730adb21ee9en%40googlegroups.com.