Actions
Bug #20828
closedArchitecture #20747: Use a unique id to identify reports
Unexpected/missing for same component, same value
Status:
Released
Priority:
N/A
Assignee:
Category:
Web - Compliance & node report
Target version:
Pull Request:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
To do
Fix check:
To do
Regression:
Description
In the following case, we get 1 success, 1 missing, 1 unexpected because the expected reports are not correctly generated: we have 3 times 'vim' in place of two time htop and one time vim:
[2022-02-25 15:34:29+0000] TRACE explain_compliance.root - Expected reports for rule '32377fd7-02fd-43d0-aab7-28460a91347b': [expected] DirectiveExpectedReports(DirectiveId(DirectiveUid(2947648e-2521-473d-9274-07bd5c38a701),Revision(default)),None,false,List( ValueExpectedReport(Package present,List(ExpectedValueId(vim,dd3d7bf4-231d-4434-ad80-61367690f0da))), ValueExpectedReport(Package present,List(ExpectedValueId(vim,4a542919-f5a0-43b6-a756-fa8d96e758db))), ValueExpectedReport(Package present,List(ExpectedValueId(vim,26d74f7b-673a-4554-82ee-6e7bfb56433d))))) [2022-02-25 15:34:29+0000] TRACE explain_compliance.root - Reports for rule '32377fd7-02fd-43d0-aab7-28460a91347b': [report] ResultSuccessReport(2022-02-25T15:34:28.000Z,RuleId(RuleUid(32377fd7-02fd-43d0-aab7-28460a91347b),Revision(default)),DirectiveId(DirectiveUid(2947648e-2521-473d-9274-07bd5c38a701),Revision(default)),NodeId(root),dd3d7bf4-231d-4434-ad80-61367690f0da,Package present,htop,2022-02-25T15:34:25.000Z,Presence of package htop in any version was correct) [report] ResultSuccessReport(2022-02-25T15:34:28.000Z,RuleId(RuleUid(32377fd7-02fd-43d0-aab7-28460a91347b),Revision(default)),DirectiveId(DirectiveUid(2947648e-2521-473d-9274-07bd5c38a701),Revision(default)),NodeId(root),4a542919-f5a0-43b6-a756-fa8d96e758db,Package present,htop,2022-02-25T15:34:25.000Z,Presence of package htop in any version was correct) [report] ResultSuccessReport(2022-02-25T15:34:28.000Z,RuleId(RuleUid(32377fd7-02fd-43d0-aab7-28460a91347b),Revision(default)),DirectiveId(DirectiveUid(2947648e-2521-473d-9274-07bd5c38a701),Revision(default)),NodeId(root),26d74f7b-673a-4554-82ee-6e7bfb56433d,Package present,vim,2022-02-25T15:34:25.000Z,Presence of package vim in any version was correct) [2022-02-25 15:34:29+0000] TRACE explain_compliance.root - Compliance for rule '32377fd7-02fd-43d0-aab7-28460a91347b': [[root: 32377fd7-02fd-43d0-aab7-28460a91347b; run: 2022-02-25T15:34:25.000Z;20220225-153403-b10c0977->2022-02-25T15:44:25.000Z] compliance:[p:0 s:1 r:0 e:0 u:2 m:2 nr:0 na:0 rd:0 c:0 ana:0 nc:0 ae:0 bpm:0] [2947648e-2521-473d-9274-07bd5c38a701 => Package present:[htop(<-> htop):[Unexpected:"Presence of package htop in any version was correct"],vim(<-> vim):[Missing:"[Missing report #0]"]] Package present:[htop(<-> htop):[Unexpected:"Presence of package htop in any version was correct"],vim(<-> vim):[Missing:"[Missing report #0]"]] Package present:[vim(<-> vim):[Success:"Presence of package vim in any version was correct"]] ]]
It's OK if we use exactly same component name and values:
[2022-02-25 15:34:05+0000] TRACE explain_compliance.root - Expected reports for rule '32377fd7-02fd-43d0-aab7-28460a91347b': [expected] DirectiveExpectedReports(DirectiveId(DirectiveUid(2947648e-2521-473d-9274-07bd5c38a701),Revision(default)),None,false,List( ValueExpectedReport(htop,List(ExpectedValueId(htop,dd3d7bf4-231d-4434-ad80-61367690f0da))), ValueExpectedReport(htop,List(ExpectedValueId(htop,4a542919-f5a0-43b6-a756-fa8d96e758db))), ValueExpectedReport(vim,List(ExpectedValueId(vim,26d74f7b-673a-4554-82ee-6e7bfb56433d))))) [2022-02-25 15:34:05+0000] TRACE explain_compliance.root - Reports for rule '32377fd7-02fd-43d0-aab7-28460a91347b': [report] ResultSuccessReport(2022-02-25T15:30:58.000Z,RuleId(RuleUid(32377fd7-02fd-43d0-aab7-28460a91347b),Revision(default)),DirectiveId(DirectiveUid(2947648e-2521-473d-9274-07bd5c38a701),Revision(default)),NodeId(root),dd3d7bf4-231d-4434-ad80-61367690f0da,htop,htop,2022-02-25T15:30:55.000Z,Presence of package htop in any version was correct) [report] ResultSuccessReport(2022-02-25T15:30:58.000Z,RuleId(RuleUid(32377fd7-02fd-43d0-aab7-28460a91347b),Revision(default)),DirectiveId(DirectiveUid(2947648e-2521-473d-9274-07bd5c38a701),Revision(default)),NodeId(root),4a542919-f5a0-43b6-a756-fa8d96e758db,htop,htop,2022-02-25T15:30:55.000Z,Presence of package htop in any version was correct) [report] ResultSuccessReport(2022-02-25T15:30:58.000Z,RuleId(RuleUid(32377fd7-02fd-43d0-aab7-28460a91347b),Revision(default)),DirectiveId(DirectiveUid(2947648e-2521-473d-9274-07bd5c38a701),Revision(default)),NodeId(root),26d74f7b-673a-4554-82ee-6e7bfb56433d,vim,vim,2022-02-25T15:30:55.000Z,Presence of package vim in any version was correct) [2022-02-25 15:34:05+0000] TRACE explain_compliance.root - Compliance for rule '32377fd7-02fd-43d0-aab7-28460a91347b': [[root: 32377fd7-02fd-43d0-aab7-28460a91347b; run: 2022-02-25T15:30:55.000Z;20220225-153403-b10c0977->2022-02-25T15:40:55.000Z] compliance:[p:0 s:3 r:0 e:0 u:0 m:0 nr:0 na:0 rd:0 c:0 ana:0 nc:0 ae:0 bpm:0] [2947648e-2521-473d-9274-07bd5c38a701 => htop:[htop(<-> htop):[Success:"Presence of package htop in any version was correct"]] htop:[htop(<-> htop):[Success:"Presence of package htop in any version was correct"]] vim:[vim(<-> vim):[Success:"Presence of package vim in any version was correct"]] ]]
Files
Actions