Bug 1492668

Summary: Incorrect audit type for partition tables
Product: Red Hat Satellite Reporter: Oleksandr Shtaier <oshtaier>
Component: Audit LogAssignee: Marek Hulan <mhulan>
Status: CLOSED ERRATA QA Contact: Nikhil Kathole <nkathole>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.3.0CC: bbuckingham, cwelton, ehelms, inecas, mhulan, nkathole, oshtaier
Target Milestone: UnspecifiedKeywords: Regression, Triaged
Target Release: Unused   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-02-21 16:45:42 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:
Attachments:
Description Flags
screenshot of UI none

Description Oleksandr Shtaier 2017-09-18 12:28:45 UTC
Description of problem:
When I create new partition table, audit logs treat it as 'Template' which is invalid type for that entity and consequently search for partition table entity type (type = partition_table) return none results

Version-Release number of selected component (if applicable):
6.3

How reproducible:
Always

Steps to Reproduce:
1. Create new partition table
2. Navigate to audit page and perform search for type = partition_table or do the same through API


Actual results:
Partition table treated as template

Expected results:
Partition table treated as partition table

Additional info:

Comment 6 Ivan Necas 2017-09-20 15:01:09 UTC
Connecting redmine issue http://projects.theforeman.org/issues/20708 from this bug

Comment 7 Nikhil Kathole 2017-10-05 07:05:52 UTC
Version Tested:
Satellite-6.3 Snap 18

steps:

1. Created a new partition table
2. Navigate to audit page and perform search for type = partition_table

No entries found while performing search for type = partition_table but type = ptable correctly shows partition table. (see attachment)

Is this correct behaviour?

Comment 8 Nikhil Kathole 2017-10-05 07:06:11 UTC
Created attachment 1334636 [details]
screenshot of UI

Comment 9 Marek Hulan 2017-10-10 09:49:40 UTC
yes, that's how it works, sadly that's the value we store in DB

at least it's listed among auto suggested values

Comment 10 Nikhil Kathole 2017-10-10 10:04:46 UTC
VERIFIED

Version Tested:
Satellite-6.3 Snap 19

As per comment #9, To search partition table in audit, type = ptable should work.
Verified according to steps in comment #7.

Comment 11 Bryan Kearney 2018-02-21 16:41:54 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, 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-2018:0336

Comment 12 Bryan Kearney 2018-02-21 16:45:42 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, 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-2018:0336