Re: Package promise had no package_method attribute

"[email protected]" <[email protected]> Fri, 20 Dec 2024 04:30:45 -0800 (PST)
Newsgroups gmane.comp.sysutils.cfengine.general
Message-ID <[email protected]>
------=_Part_100882_1120425415.1734697845775
Content-Type: multipart/alternative; 
	boundary="----=_Part_100883_562982256.1734697845775"

------=_Part_100883_562982256.1734697845775
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Argh!  It's just started hitting us also.

As part of our move towards 3.21 and 3.24, we are trying to pull up to the=
=20
latest 3.18 to give ourselves a stable jumping-off point.  (Yes, I know=20
3.18 is now EOL, but we've still got a 3.12 lurking locally, and I even saw=
=20
a 3.10.  So I'm working hard to try to do the right thing.)

This new reporting glitch is a new bug WITHIN the 3.18 series.  Things were=
=20
good all the way up to and including 3.18.7.  But this suddenly appeared at=
=20
3.18.8, and is causing us some annoyance.

Why introduce such a visible change just before EOL-ing a release-series?

I know 3.18 is now EOL.  But given that this NEW BUG was introduced at the=
=20
last minute, please could the fix (presumably CFE-4398) be applied=20
(cherry-picked) to the 3.18 series?  Please?

CFE-4398 makes the inaccurate claim "fixed".  "Inaccurate"?  Yes, because=
=20
it was not fixed in all the places it had been introduced.

I would re-open CFE-4398 and add a comment there but I don't have that=20
access.

Thanks.

And happy Christmas!

-- David Lee

On Tuesday, 16 July 2024 at 13:14:20 UTC+1 Bas van der Vlies wrote:

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

--=20
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 e=
mail to [email protected].
To view this discussion visit https://groups.google.com/d/msgid/help-cfengi=
ne/ba85da62-6046-47b2-a5ed-cf217ee6fff5n%40googlegroups.com.

------=_Part_100883_562982256.1734697845775
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Argh!=C2=A0 It's just started hitting us also.<br /><br />As part of our mo=
ve towards 3.21 and 3.24, we are trying to pull up to the latest 3.18 to gi=
ve ourselves a stable jumping-off point.=C2=A0 (Yes, I know 3.18 is now EOL=
, but we've still got a 3.12 lurking locally, and I even saw a 3.10.=C2=A0 =
So I'm working hard to try to do the right thing.)<br /><br />This new repo=
rting glitch is a new bug WITHIN the 3.18 series.=C2=A0 Things were good al=
l the way up to and including 3.18.7.=C2=A0 But this suddenly appeared at 3=
.18.8, and is causing us some annoyance.<br /><br /><div>Why introduce such=
 a visible change just before EOL-ing a release-series?</div><div><br /></d=
iv><div>I know 3.18 is now EOL.=C2=A0 But given that this NEW BUG was intro=
duced at the last minute, please could the fix (presumably CFE-4398) be app=
lied (cherry-picked) to the 3.18 series?=C2=A0 Please?</div><div><br /></di=
v><div>CFE-4398 makes the inaccurate claim "fixed".=C2=A0 "Inaccurate"?=C2=
=A0 Yes, because it was not fixed in all the places it had been introduced.=
</div><div><br /></div><div>I would re-open CFE-4398 and add a comment ther=
e but I don't have that access.</div><div><br /></div><div>Thanks.</div><di=
v><br /></div><div>And happy Christmas!<br /></div><div><br /></div><div>--=
 David Lee<br /></div><br /><div class=3D"gmail_quote"><div dir=3D"auto" cl=
ass=3D"gmail_attr">On Tuesday, 16 July 2024 at 13:14:20 UTC+1 Bas van der V=
lies wrote:<br/></div><blockquote class=3D"gmail_quote" style=3D"margin: 0 =
0 0 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">T=
his is a bug. The message should be =E2=80=9CDEBUG=E2=80=9D but is =E2=80=
=9CINFO=E2=80=9D. They have fixed it but not yet released a new cfengine 3.=
21 version, see:
<br> * <a href=3D"https://northerntech.atlassian.net/browse/CFE-4398" targe=
t=3D"_blank" rel=3D"nofollow" data-saferedirecturl=3D"https://www.google.co=
m/url?hl=3Den-GB&amp;q=3Dhttps://northerntech.atlassian.net/browse/CFE-4398=
&amp;source=3Dgmail&amp;ust=3D1734783282084000&amp;usg=3DAOvVaw3ON9TKHD--SM=
t2hxblWhmw">https://northerntech.atlassian.net/browse/CFE-4398</a>
<br>
<br>
<br>
<br>&gt; On 16 Jul 2024, at 00:34, Beto &lt;<a href data-email-masked rel=
=3D"nofollow">[email protected]</a>&gt; wrote:
<br>&gt;=20
<br>&gt; I tried=20
<br>&gt;=20
<br>&gt;         &quot;control_executor_mailfilter_exclude&quot;: {
<br>&gt;           &quot;value&quot;: [ &quot;.*no package_method attribute=
.*&quot; ]
<br>&gt;=20
<br>&gt; but it&#39;s not working for some reason. :(
<br>&gt;=20
<br>&gt; On Monday, July 15, 2024 at 5:18:20=E2=80=AFPM UTC-5 Beto wrote:
<br>&gt; Since upgrading from cfengine-community 3.18 to CFEngine Enterpris=
e 3.21.5 I&#39;m seeing this on every host every time the agent runs:
<br>&gt;=20
<br>&gt; info: Package promise had no package_method attribute so it&#39;s =
being assigned a value of &#39;generic&#39; as default.
<br>&gt; .
<br>&gt; This is repeated from 6 to ~150 times during each execution probab=
ly depending on classes.
<br>&gt;=20
<br>&gt; This seems like a misclassed message that should only be written i=
n verbose or debug mode.
<br>&gt;=20
<br>&gt; Any ideas?
<br>&gt;=20
<br>&gt; Here&#39;s a sample bundle to show the issue:
<br>&gt;=20
<br>&gt; body common control
<br>&gt; {
<br>&gt;         bundlesequence =3D&gt; {
<br>&gt;                 &quot;main&quot;,
<br>&gt;         };
<br>&gt; }
<br>&gt;=20
<br>&gt; body file control
<br>&gt; {
<br>&gt;   inputs =3D&gt; { &quot;/var/cfengine/inputs/lib/<a href=3D"http:=
//packages.cf" target=3D"_blank" rel=3D"nofollow" data-saferedirecturl=3D"h=
ttps://www.google.com/url?hl=3Den-GB&amp;q=3Dhttp://packages.cf&amp;source=
=3Dgmail&amp;ust=3D1734783282084000&amp;usg=3DAOvVaw1epToWgo1rgf4lEoR4rk8d"=
>packages.cf</a>&quot; };
<br>&gt; }
<br>&gt;=20
<br>&gt; bundle agent main
<br>&gt; {
<br>&gt;         methods:
<br>&gt;=20
<br>&gt;                 &quot;any&quot; usebundle =3D&gt; packages;
<br>&gt; }
<br>&gt;=20
<br>&gt; bundle agent packages {
<br>&gt;   vars:=20
<br>&gt;     redhat_7::
<br>&gt;       &quot;redhat_7_baseline_packages&quot;
<br>&gt;         comment =3D&gt; &quot;install rhel7 baseline packages&quot=
;,
<br>&gt;         slist   =3D&gt; {
<br>&gt;           &quot;at&quot;,
<br>&gt;           &quot;audispd-plugins&quot;,
<br>&gt;           };
<br>&gt;=20
<br>&gt;       &quot;redhat_7_baseline_packages&quot;
<br>&gt;         comment =3D&gt; &quot;install rhel7 baseline packages&quot=
;,
<br>&gt;         if      =3D&gt; &quot;g_ovpa&quot;,
<br>&gt;         slist   =3D&gt; {
<br>&gt;           @(redhat_7_baseline_packages),
<br>&gt;           &quot;xinetd&quot;
<br>&gt;           };
<br>&gt;=20
<br>&gt;       &quot;redhat_7_real_packages&quot;
<br>&gt;         comment =3D&gt; &quot;install rhel7 real machine packages&=
quot;,
<br>&gt;         slist   =3D&gt; {
<br>&gt;           &quot;device-mapper-multipath&quot;,
<br>&gt;           &quot;device-mapper-multipath-libs&quot;,
<br>&gt;           &quot;sg3_utils&quot;
<br>&gt;           };
<br>&gt;=20
<br>&gt;       &quot;redhat_7_developer_packages&quot;
<br>&gt;         comment =3D&gt; &quot;install rhel7 developer packages&quo=
t;,
<br>&gt;         slist   =3D&gt; {
<br>&gt;           &quot;gcc&quot;
<br>&gt;           };
<br>&gt;=20
<br>&gt;       &quot;redhat_7_delete_packages&quot;
<br>&gt;         comment =3D&gt; &quot;rhel7 wireless packages&quot;,
<br>&gt;         slist   =3D&gt; {
<br>&gt;           &quot;iwl6050-firmware&quot;,
<br>&gt;           };
<br>&gt;=20
<br>&gt;       &quot;redhat_7_delete_packages&quot;
<br>&gt;         comment =3D&gt; &quot;rhel7 firmware packages&quot;,
<br>&gt;         slist   =3D&gt; {
<br>&gt;           @(redhat_7_delete_packages),
<br>&gt;           &quot;ivtv-firmware&quot; };
<br>&gt;=20
<br>&gt;       &quot;redhat_7_delete_packages&quot;
<br>&gt;         comment =3D&gt; &quot;rhel7 miscelleneous packages&quot;,
<br>&gt;         slist   =3D&gt; {
<br>&gt;           @(redhat_7_delete_packages),
<br>&gt;           &quot;NetworkManager-tui&quot;,
<br>&gt;           &quot;NetworkManager-team&quot;,
<br>&gt;           &quot;NetworkManager-config-server&quot;,
<br>&gt;           };
<br>&gt;=20
<br>&gt;       &quot;redhat_7_delete_packages&quot;
<br>&gt;         comment =3D&gt; &quot;rhel7 ovpa packages&quot;,
<br>&gt;         slist   =3D&gt; {
<br>&gt;           @(redhat_7_delete_packages),
<br>&gt;           &quot;xinetd&quot;
<br>&gt;           };
<br>&gt;=20
<br>&gt;   packages:
<br>&gt;     redhat_7::
<br>&gt;       &quot;$(redhat_7_baseline_packages)&quot;
<br>&gt;         comment         =3D&gt; &quot;Install rhel7 baseline packa=
ges&quot;,
<br>&gt;         policy          =3D&gt; &quot;present&quot;,
<br>&gt;         version         =3D&gt; &quot;latest&quot;,
<br>&gt;         package_module  =3D&gt; yum;
<br>&gt;=20
<br>&gt;       &quot;$(redhat_7_real_packages)&quot;
<br>&gt;         comment         =3D&gt; &quot;Install rhel7 real machine p=
ackages&quot;,
<br>&gt;         policy          =3D&gt; &quot;present&quot;,
<br>&gt;         version         =3D&gt; &quot;latest&quot;,
<br>&gt;         package_module  =3D&gt; yum;
<br>&gt;=20
<br>&gt;       &quot;$(redhat_7_developer_packages)&quot;
<br>&gt;         comment         =3D&gt; &quot;Install rhel7 developer pack=
ages&quot;,
<br>&gt;         policy          =3D&gt; &quot;present&quot;,
<br>&gt;         version         =3D&gt; &quot;latest&quot;,
<br>&gt;         package_module  =3D&gt; yum;
<br>&gt;=20
<br>&gt;       &quot;$(redhat_7_delete_packages)&quot;
<br>&gt;         comment         =3D&gt; &quot;Delete rhel7 packages&quot;,
<br>&gt;         policy          =3D&gt; &quot;absent&quot;,
<br>&gt;         package_module  =3D&gt; yum;
<br>&gt;=20
<br>&gt; }
<br>&gt;=20
<br>&gt;=20
<br>&gt;=20
<br>&gt;=20
<br>&gt; --=20
<br>&gt; You received this message because you are subscribed to the Google=
 Groups &quot;help-cfengine&quot; group.
<br>&gt; To unsubscribe from this group and stop receiving emails from it, =
send an email to <a href data-email-masked rel=3D"nofollow">help-cfengin...=
@googlegroups.com</a>.
<br>&gt; To view this discussion on the web visit <a href=3D"https://groups=
.google.com/d/msgid/help-cfengine/87e1a57d-4e2c-4b27-a160-ca1815a3a739n%40g=
ooglegroups.com" target=3D"_blank" rel=3D"nofollow" data-saferedirecturl=3D=
"https://www.google.com/url?hl=3Den-GB&amp;q=3Dhttps://groups.google.com/d/=
msgid/help-cfengine/87e1a57d-4e2c-4b27-a160-ca1815a3a739n%2540googlegroups.=
com&amp;source=3Dgmail&amp;ust=3D1734783282084000&amp;usg=3DAOvVaw3mFhM-3SL=
rWSAo_YCqETJK">https://groups.google.com/d/msgid/help-cfengine/87e1a57d-4e2=
c-4b27-a160-ca1815a3a739n%40googlegroups.com</a>.
<br>
<br></blockquote></div>

<p></p>

-- <br />
You received this message because you are subscribed to the Google Groups &=
quot;help-cfengine&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:[email protected]">help-=
[email protected]</a>.<br />
To view this discussion visit <a href=3D"https://groups.google.com/d/msgid/=
help-cfengine/ba85da62-6046-47b2-a5ed-cf217ee6fff5n%40googlegroups.com?utm_=
medium=3Demail&utm_source=3Dfooter">https://groups.google.com/d/msgid/help-=
cfengine/ba85da62-6046-47b2-a5ed-cf217ee6fff5n%40googlegroups.com</a>.<br /=
>

------=_Part_100883_562982256.1734697845775--

------=_Part_100882_1120425415.1734697845775--