Project

General

Profile

Bug #25184

Content Host -> Bulk Action -> Manage Package doesn't add a task and doesn't write a audit entry

Added by Bernhard Suttner about 2 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
High
Assignee:
-
Category:
Hosts
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

Installing a package via Content Host -> Bulk actions -> Manage package (via Katello Agent) isn't implemented as a Foreman Task and therefore there is no Task added to Monitor -> Tasks.
Additionally, and this is even worse, there is no new entry in Monitor -> Audit.

Associated revisions

Revision a97c5526 (diff)
Added by Bernhard Suttner almost 2 years ago

Fixes #25184 - Tasks and Audit for manage package

Use ForemanTask and write audit logs for all
Manage Package Bulk Actions

Revision c9f9064c (diff)
Added by Bernhard Suttner almost 2 years ago

Fixes #25184 - tests

History

#1 Updated by Michael Johnson about 2 years ago

Thank you for submitting this bug Bernhard! The action is acting as expected as far as I understand you. When using Katello Agent it will not create a Foreman task, but the same action with remote execution will create a Foreman task.Did you perhaps mean to say that a Foreman task is not created via remote execution?

If so, please submit the Monitor -> Audit issue as a separate bug report. Else, you can update this bug report to address the Monitor -> Audit issue only.

#2 Updated by Bernhard Suttner about 2 years ago

Unfortunately, this is what I have tested:

Install package using the bulk action Manage Packages > via Katello Agent:
- no Audit entry (NOK)
- no Foreman Task entry (NOK)
=> I expect to have a Audit Entry AND a Foreman Task entry

Install package using the bulk action Manage Packages > via Remote Execution:
- Audit entry exists (OK)
- Job entry exists (OK)
=> this is what I expect

---
In case I install a package within one specific Content Host in the tab Packages > Actions using Katello Agent:
- Audit entry exists (NOK)
- Foreman Task entry exists (OK)
=> this is what I expect

---
Therefore, why is there a difference between installing a package for ONE specific content host AND installing a package by using a bulk action to list of content hosts

#3 Updated by John Mitsch almost 2 years ago

  • Triaged changed from No to Yes
  • Target version set to Katello 3.10.0
  • Category set to Hosts

Thanks for explaining Bernard,

That does sound like a valid bug, we will look into it more, thanks for reporting!

#4 Updated by The Foreman Bot almost 2 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/7780 added

#5 Updated by Anonymous almost 2 years ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF