Bug #26744
closed
Server wrongly determines the node's agent version
Added by Michel BOUISSOU about 2 months ago.
Updated 12 days ago.
Category:
Server components
Description
On a node, if both packages :
ii rudder-agent 8.3.0~rc2~git202504102241 arm64 Configuration management and audit tool - agent
ii rudder-agent-build-deps 2.3.0~alpha~git-0 all build-dependencies for rudder-agent
The Rudder server will wrongly display the agent version as being « 2.3.0~alpha~git-0 »
Removing the rudder-agent-build-deps package causes the server to display the correct agent version.
Related issues
1 (1 open — 0 closed)
Without the inventory, we can't do much on this issue. Can you add the generated inventory ?
Probably no need for an inventory, the problem lies in the inventory reader which takes the first item containing "rudder-agent" in its name... I guess the order puts the wrong package first.
val agentSoftName = agentType.inventorySoftwareName.toLowerCase()
software.filter(_.name.exists(_.toLowerCase().contains(agentSoftName))).toList.flatMap(_.version) match {
case Nil =>
InventoryProcessingLogger.logEffect.warn(
s"No software with name '${agentSoftName}' were found when looking for version of the agent"
)
None
case x :: others =>
if (others.nonEmpty) {
InventoryProcessingLogger.logEffect.warn(
s"More than one software with name '${agentSoftName}' were found when looking for version. We only keep '${x}' and discard ${others
.mkString(",")}"
)
}
Some(AgentVersion(agentType.toAgentVersionName(x.value)))
}
If there is an exact match it should be used.
- Status changed from New to Resolved
This is not a problem anymore since we will use the AGENT_VERSION
special tag from #26918
Also available in: Atom
PDF