Bug 2228424

Summary: Satellite inventory console log doesn't get cleared.
Product: Red Hat Satellite Reporter: Jameer Pathan <jpathan>
Component: RH Cloud - InventoryAssignee: Shimon Shtein <sshtein>
Status: NEW --- QA Contact: Jameer Pathan <jpathan>
Severity: low Docs Contact:
Priority: unspecified    
Version: 6.14.0CC: aruzicka, rlavi
Target Milestone: UnspecifiedKeywords: Triaged, UserExperience
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: Environment:
Last Closed: 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 Jameer Pathan 2023-08-02 11:33:07 UTC
Description of problem:
Satellite inventory console log doesn't get cleared.

Version-Release number of selected component (if applicable):
- satellite 6.14.0 snap 9

How reproducible:
- always

Steps to Reproduce:
1. Import manifest
2. Go to Configure > Inventory upload
3. Click on Restart button

Actual results:
- Check the log shown in the console, the new one gets appended to the old one.

Expected results:
- Only the new log is displayed.

Additional info:

Comment 1 Shimon Shtein 2023-08-02 12:25:20 UTC
The label here: https://github.com/theforeman/foreman_rh_cloud/blob/foreman_3_7/lib/foreman_inventory_upload/async/progress_output.rb#L9 is not set, since we're in a class-level method.