Bug 2230459

Summary: Recalculate button for Errata is not available on Satellite 6.13/ Satellite 6.14 if no errata is present
Product: Red Hat Satellite Reporter: Amit Agarwal <amiagarw>
Component: Errata ManagementAssignee: Jeremy Lenz <jlenz>
Status: CLOSED ERRATA QA Contact: David Moore <damoore>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.13.0CC: ahumbe, damoore, jlenz, rlavi
Target Milestone: 6.15.0Keywords: Regression, Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 2250352 (view as bug list) Environment:
Last Closed: 2024-04-23 17:12:10 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Amit Agarwal 2023-08-09 13:45:06 UTC
Description of problem:
Recalculate button for Errata is not available on Satellite 6.13/ Satellite 6.14
if no errata is present.


However Recalculate button for Errata is  available on Satellite 6.11 even if no errata is present

Version-Release number of selected component (if applicable):
Satellite 6.13/ Satellite 6.14

How reproducible:

To update the Installable Errata count click on the Recalculate button in the Satellite's web UI under:

 	Hosts -> Content Hosts -> content_host -> Errata -> recalculate

Steps to Reproduce:
1. For Satellite 6.11 , Hosts -> Content Hosts -> content_host -> Errata -> recalculate // Recalculate option is present


2.  For Satellite 6.13/6.14 , Hosts -> Content Hosts -> content_host -> Errata -> recalculate // Recalculate option is present only if errata is available.


Actual results:

Recalculate button for Errata should be available on Satellite 6.13/ Satellite 6.14 even if no errata is present as it is available on Satellite 6.11

Comment 1 Brad Buckingham 2023-08-10 16:23:50 UTC
Hello Amit,

Thanks for raising the bugzilla.

Does the same behavior exist if using the new host details page?  (This should be the default as of Satellite 6.13).

Comment 2 Amit Agarwal 2023-09-05 07:18:33 UTC
Recalculate option is available on the Legacy UI (even if no errata is present for Satellite 6.13 / 6.14 )



Host --> Content Host --> Click on Content Host --> Switch to Legacy UI --> Content --> Errata  / Here Recalculate button for Errata is available on Satellite 6.13/ Satellite 6.14 even if no errata is present.

Comment 4 Jeremy Lenz 2023-09-28 20:13:34 UTC
Created redmine issue https://projects.theforeman.org/issues/36790 from this bug

Comment 5 Bryan Kearney 2023-09-29 00:02:58 UTC
Upstream bug assigned to jlenz

Comment 6 Bryan Kearney 2023-09-29 00:03:00 UTC
Upstream bug assigned to jlenz

Comment 8 Brad Buckingham 2023-10-30 11:29:29 UTC
Bulk setting Target Milestone = 6.15.0 where sat-6.15.0+ is set.

Comment 9 David Moore 2024-01-22 19:05:39 UTC
Verified 6.15.0 snap 6.0

Original Issue: If no errata were available, the recalculate button was not available in UI host>content>errata tab.

Resolution: Recalculate button should be present as long as some repos are enabled, in case we want to manually check for changes.

Steps:
    1. Create product and repo, sync.
    2. Create a content-view, add repository, publish/promote.
    3. Register a new host, select the content-view as the content source.
    4. Enable the repositories in UI host>content>repository sets, or with: 
      > subscription-manager repos --enable {repository_label}
    5. Navigate to host>content>errata tab.

Expected and Actual results:
    3. Unknown errata status, the recalculate button is not present, since no repositories are enabled.
   """
   Unknown errata status
   No installed packages and/or enabled repositories have been reported by subscription-manager.
   {Clear Filters (link)} 
   """

    5. No errata are present from enabled repos, but just below we have the option to recalculate again manually.
   """
   All up to date
   No action is needed because there are no applicable errata for this host.
   {Refresh errata applicability (link)}
   """

Comment 12 errata-xmlrpc 2024-04-23 17:12:10 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Important: Satellite 6.15.0 release), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2024:2010