Project

General

Profile

Actions

Bug #21033

open

Missing report (though working fine)

Added by Nicolas Ecarnot almost 2 years ago. Updated 1 day ago.

Status:
New
Priority:
N/A
Assignee:
-
Category:
Web - Compliance & node report
Target version:
Severity:
Minor - inconvenience | misleading | easy workaround
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
To do
Fix check:
To do
Regression:

Description

Hello,

3 years ago, I have created a custom technique that :
  • Removes old /var/rudder/cfengine-community/state/packages_updates_*
  • Updates /etc/yum.repos.d/rudder.repo, setting its content accordingly
  • Ensures that the rudder-agent package is installed and as the latest version
    You'll find below its json description [1]. Don't mind the /etc/yum.repos.d/rudder.repo labels, they're not relevant nor troublesome.

I'm using this technique in a directive and in a rule that I usually keep disabled. From times to times, I'm enabling it to update the rudder-agent packages of around 20 nodes, and it has worked nicely for 3 years.

Yesterday, I upgraded the hub from 7.0.2 to 7.1, and with this rule enabled, the part which ensures the rudder-agent package is showing "Missing report".

Here's what I tried :
  • Disable then re-enable the rule
  • On the node, run rudder agent run -ui , then rudder agent inventory. I haven't noticed anything weird.
  • reboot the node
  • regenerate the policies
  • reboot the hub
  • wait patiently

So far, no change. On the node, the rudder-agent package is at the same version as the content of Normation's repo, so it's OK.
The only thing is that the report is not done

[1]

{
  "type": "ncf_technique",
  "version": "3.0",
  "data": {
    "id": "sit___upgrade_rudder_agent__redhat_like_",
    "version": "1.0",
    "name": "sit - upgrade rudder agent (redhat like)",
    "description": "",
    "category": "ncf_techniques",
    "parameter": [],
    "calls": [
      {
        "component": "Command execution",
        "id": "1fccb96f-b0ee-456f-8876-05640b450a43",
        "method": "command_execution",
        "condition": "",
        "parameters": [
          {
            "name": "command",
            "value": "rm -f /var/rudder/cfengine-community/state/packages_updates_*" 
          }
        ],
        "disableReporting": false
      },
      {
        "component": "File content",
        "id": "994312f3-2760-44e8-84e8-22d570ed1a89",
        "method": "file_content",
        "condition": "",
        "parameters": [
          {
            "name": "path",
            "value": "/etc/yum.repos.d/rudder.repo" 
          },
          {
            "name": "lines",
            "value": "[Rudder_6.2]\nname=Rudder 6.2\nbaseurl=http://repository.rudder.io/rpm/latest/RHEL_$releasever/\ngpgcheck=1\ngpgkey=https://repository.rudder.io/rpm/rudder_rpm_key.pub" 
          },
          {
            "name": "enforce",
            "value": "true" 
          }
        ],
        "disableReporting": false
      },
      {
        "component": "Package state",
        "id": "26e6ea8e-5d3c-475d-884e-7793fbf8fd61",
        "method": "package_state",
        "condition": "",
        "parameters": [
          {
            "name": "name",
            "value": "rudder-agent" 
          },
          {
            "name": "version",
            "value": "latest" 
          },
          {
            "name": "architecture",
            "value": "" 
          },
          {
            "name": "provider",
            "value": "" 
          },
          {
            "name": "state",
            "value": "" 
          }
        ],
        "disableReporting": false
      }
    ],
    "resources": []
  }
}

Actions #1

Updated by François ARMAND almost 2 years ago

Thanks for reporting, we have changed something in reporting for command exec, which should now be better (and not missing). We will try to reproduce.

Actions #2

Updated by Vincent MEMBRÉ almost 2 years ago

  • Target version changed from 7.1.1 to 7.1.2
Actions #3

Updated by Vincent MEMBRÉ almost 2 years ago

  • Target version changed from 7.1.2 to 7.1.3
Actions #4

Updated by Vincent MEMBRÉ almost 2 years ago

  • Target version changed from 7.1.3 to 7.1.4
Actions #5

Updated by Vincent MEMBRÉ over 1 year ago

  • Target version changed from 7.1.4 to 7.1.5
Actions #6

Updated by Vincent MEMBRÉ over 1 year ago

  • Target version changed from 7.1.5 to 7.1.6
Actions #7

Updated by Vincent MEMBRÉ over 1 year ago

  • Target version changed from 7.1.6 to 7.1.7
Actions #8

Updated by Vincent MEMBRÉ over 1 year ago

  • Target version changed from 7.1.7 to 7.1.8
Actions #9

Updated by Vincent MEMBRÉ over 1 year ago

  • Target version changed from 7.1.8 to 7.1.9
Actions #10

Updated by Vincent MEMBRÉ over 1 year ago

  • Target version changed from 7.1.9 to 7.1.10
Actions #11

Updated by Vincent MEMBRÉ about 1 year ago

  • Target version changed from 7.1.10 to 1016
Actions #12

Updated by Alexis Mousset about 1 year ago

  • Target version changed from 1016 to 7.2.5
Actions #13

Updated by Vincent MEMBRÉ about 1 year ago

  • Target version changed from 7.2.5 to 7.2.6
Actions #14

Updated by Vincent MEMBRÉ 12 months ago

  • Target version changed from 7.2.6 to 7.2.7
Actions #15

Updated by Vincent MEMBRÉ 12 months ago

  • Target version changed from 7.2.7 to 7.2.8
Actions #16

Updated by Vincent MEMBRÉ 10 months ago

  • Target version changed from 7.2.8 to 7.2.9
Actions #17

Updated by Vincent MEMBRÉ 9 months ago

  • Target version changed from 7.2.9 to 7.2.10
Actions #18

Updated by Alexis Mousset 9 months ago

  • Target version changed from 7.2.10 to 7.2.11
Actions #19

Updated by Vincent MEMBRÉ 8 months ago

  • Target version changed from 7.2.11 to 1046
Actions #20

Updated by Alexis Mousset 7 months ago

  • Target version changed from 1046 to 7.3.8
Actions #21

Updated by Vincent MEMBRÉ 6 months ago

  • Target version changed from 7.3.8 to 7.3.9
Actions #22

Updated by Vincent MEMBRÉ 6 months ago

  • Target version changed from 7.3.9 to 7.3.10
Actions #23

Updated by Vincent MEMBRÉ 5 months ago

  • Target version changed from 7.3.10 to 7.3.11
Actions #24

Updated by Vincent MEMBRÉ 3 months ago

  • Target version changed from 7.3.11 to 7.3.12
Actions #25

Updated by Vincent MEMBRÉ about 2 months ago

  • Target version changed from 7.3.12 to 7.3.13
Actions #26

Updated by Vincent MEMBRÉ about 2 months ago

  • Target version changed from 7.3.13 to 7.3.14
Actions #27

Updated by Vincent MEMBRÉ 1 day ago

  • Target version changed from 7.3.14 to 7.3.15
Actions

Also available in: Atom PDF