Actions
Bug #21033
openMissing report (though working fine)
Pull Request:
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