On Red Hat Satellite 6 Could the filter options be "Greater than or equal to" or "Less than or equal to" in the content views?

Solution Verified - Updated -

Environment

  • Red Hat Satellite 6.2.x or above

Issue

  • On an exclude filter. The option ">" or "Greater than" acts like ">=" or "Greater than or equal to".

  • On an exclude filter. The option "<" or "Less than" acts as "<=" or "Less than or equal to".

  • Type: Exclude
    RPM: kernel
    Version "greater than": 3.10.0-327.36.3
    After the publish we expect to have the packages older than that version INCLUDING that version but it is not. The package is not included in the CV just like the recenter versions. The option "greater than or equal to" doesn't exist.

Resolution

  • If providing a release as part of the filter, the full release needs to be provided to get the functionality you desire.

  • Change 3.10.0-327.36.3 to 3.10.0-327.36.3.el7 and it works as expected. The desired version still remains. In the example in the first comment, the rpm filter comparator deemed string "3.10.0-327.36.3" is less than "3.10.0-327.36.3.el7".

  • Hence when the exclude filter suggested "Exclude all rpms > 3.10.0-327.36.3" it excluded "3.10.0-327.36.3.el7". This is how RPM string comparison is designed.

  • The '> 'and '<' for package filters do not mean '>=' or '<='. They are in reality the doing < and > comparisons.

  • Moreover, wildcards are only supported in name and not in version or release.

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.