Project

General

Profile

Actions

Bug #3814

closed

Attempting to install a non-existant package via yum should return an error (RHEL <= 5)

Added by Jonathan CLARKE over 10 years ago. Updated over 5 years ago.

Status:
Rejected
Priority:
2
Assignee:
-
Category:
Techniques
Target version:
Severity:
Major - prevents use of part of Rudder | no simple workaround
UX impact:
User visibility:
Infrequent - complex configurations | third party integrations
Effort required:
Priority:
41
Name check:
Fix check:
Regression:

Description

Currently, when we try and install a package that doesn't exist, apt-get and zypper complain about it (non-zero return code, which leads to an error in Rudder reporting). However, yum doesn't care, and just returns 0, making a "success" or "repaired" report in Rudder.

This is obviously misleading. We should find a way to check if a package exists before running "yum install", and report an error if it doesn't. An idea I have is to do something like "yum search <package name> | grep "^Warning: No matches found for: "" and see what we can do with that. Maybe we can build it into the "package_add_command" of the package_method.

Actions

Also available in: Atom PDF