Bug 1772466

Summary: Createrepo_c UpdateRecord ignores reboot_suggested at advisory level
Product: Red Hat Enterprise Linux 8 Reporter: Pavel Picka <ppicka>
Component: createrepo_cAssignee: amatej
Status: CLOSED ERRATA QA Contact: Radek Bíba <rbiba>
Severity: unspecified Docs Contact:
Priority: high    
Version: 8.2CC: amatej
Target Milestone: rcKeywords: Triaged
Target Release: 8.0Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: createrepo_c-0.15.1-2.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-04-28 15:39:34 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 Pavel Picka 2019-11-14 12:33:43 UTC
Description of problem:
Createrepo_c ignores "reboot_suggested" on advisory level, (not to confuse with support on package level).
E.g. You can find this type of advisory in rhel7 os repositories.
It is critical to get it to the upstream createrepo_c as soon as possible.

  <update status="final" from="release-engineering" version="4" type="bugfix">
    <id>RHBA-xxxx:xxxx</id>
 => <reboot_suggested>True</reboot_suggested> 
    <references>...</references>
    <pkglist>...</pkglist>
    

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

How reproducible:
always

Steps to Reproduce:
1. rec = cr.UpdateRecord()
2. rec.reboot_suggested = True

Actual results:
no support

Expected results:
Can parse and generate 'reboot_suggested' on advisory level with createrepo_c for UpdateRecord.

Comment 1 amatej 2019-12-03 08:40:06 UTC
I have created a PR: https://github.com/rpm-software-management/createrepo_c/pull/187

Comment 2 amatej 2019-12-04 08:47:59 UTC
I have updated the current unit tests of createrepo_c to also test this new feature in my PR.

But generally AC:
- createrepo_c can parse updateinfo with <reboot_suggested> inside the <update> element and expose the value in python
- its possible to set reboot_suggested on UpdateRecord from python and then dump this updateinfo with the value present
- the default value of reboot_suggested in UpdateRecord when no value is provided is 0.

Comment 11 errata-xmlrpc 2020-04-28 15:39:34 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/RHBA-2020:1620