Project

General

Profile

Bug #15334

In 5.1 common policies always return a missing reports on the server

Added by Félix DALLIDET 4 months ago. Updated 15 days ago.

Status:
Released
Priority:
N/A
Category:
System techniques
Target version:
Severity:
User visibility:
Effort required:
Priority:
0

Description

The server rudder is always missing a report on the "Update" component when no repaired has been done.
This is most likely due to an error in class guarding translation, in 5.0 we had:

&if(!INITIAL)&
    root_server::
      "${g.rudder_ncf}/common" 
        copy_from         => copy_digest_without_perms("${g.rudder_ncf_origin_common}"),
        depth_search      => recurse_ignore("inf", @{g.excludedreps}),
        perms             => u_mog("644", "root", "0"),
        action            => immediate,
        move_obstructions => "true",
        classes           => success("rudder_ncf_common_updated", "rudder_ncf_common_update_error", "rudder_ncf_common_updated_ok"),
        comment           => "Update the common Rudder ncf instance";
     . . .
&endif&

And if 5.1:

    initial_promises.root_server::
      "${g.rudder_ncf}/common" 
        copy_from         => copy_digest_without_perms("${g.rudder_ncf_origin_common}"),
        perms             => u_mog("644", "root", "0"),
        action            => immediate,
        move_obstructions => "true",
        classes           => success("rudder_ncf_common_updated", "rudder_ncf_common_update_error", "rudder_ncf_common_updated_ok"),
        comment           => "Update the common Rudder ncf instance";

        ...

There is a missing "!" before the guard class

Associated revisions

Revision e160eb7f (diff)
Added by Félix DALLIDET 4 months ago

Fixes #15334: In 5.1 common policies always return a missing reports on the server

History

#1

Updated by Félix DALLIDET 4 months ago

  • Status changed from New to In progress
  • Assignee set to Félix DALLIDET
#2

Updated by Félix DALLIDET 4 months ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from Félix DALLIDET to Alexis MOUSSET
  • Pull Request set to https://github.com/Normation/rudder-techniques/pull/1481
#3

Updated by Félix DALLIDET 4 months ago

  • Status changed from Pending technical review to Pending release
#4

Updated by Vincent MEMBRÉ 15 days ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 6.0.0~beta1 which was released today.

Also available in: Atom PDF