Bug #8972
closed
Check/Verify package generic methods are actually installing packages
Added by Alexis Mousset about 8 years ago.
Updated over 2 years ago.
Description
The warn class that is supposed to prevent the agent from modifying the system is private and not available in the package promise, where it is supposed to be used (in the action body).
Furthermore reporting is misleading because repaired are displayed as error, so the first run may appear correct:
package_check_installed
:
"failed"
usebundle => _classes_failure("${old_class_prefix}"),
ifvarclass => "${called_class_prefix}_repaired";
- Subject changed from Check/Verify package generic methods are actually installing packages to Check/Verify package generic methods are actually installing/removing packages
It used to work in CFEngine 3.5 (and 3.6 ?), because classes defined in the bundle are viewable in the body. We must check if that changed recently.
- Subject changed from Check/Verify package generic methods are actually installing/removing packages to Check/Verify package generic methods are actually installing packages
- Assignee set to Alexis Mousset
Reproduced with a simpler test case, but could not find an item in changelogs for this.
body common control {
bundlesequence => { "test" };
}
bundle agent test {
classes:
#"plop" expression => "any", scope => "namespace";
"plop" expression => "any";
files:
"/tmp/passwd"
perms => system;
}
body perms system
{
plop::
mode => "644";
owners => { "root" };
groups => { "root" };
}
- Status changed from New to In progress
- Status changed from In progress to Pending technical review
- Assignee changed from Alexis Mousset to Nicolas CHARLES
- Pull Request set to https://github.com/Normation/ncf/pull/442
I checked the promises, and:
- it works as expected in CFEngine 3.5.3
- it doesn't do anything in CFEngine 3.6.0
so it's been failing since Rudder 2.11 - and it's something that changed in CFEngine 3.6
- Status changed from Pending technical review to Pending release
- % Done changed from 0 to 100
Applied in changeset commit:55876a92615d66170a84e821d589c7a918551ae5.
- Status changed from Pending release to Released
This bug has been fixed in ncf version that comes with Rudder 3.1.15/14 and 3.2.8/7 which were released today.
- Target version changed from 0.x to ncf-0.x
- Priority set to 0
- Project changed from 41 to Rudder
- Category changed from Generic methods to Generic methods
Also available in: Atom
PDF