RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1238806 - Minor fixes - part 3
Summary: Minor fixes - part 3
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: preupgrade-assistant-contents
Version: 6.6
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Frantisek Kluknavsky
QA Contact: Tereza Cerna
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-07-02 16:20 UTC by Frantisek Kluknavsky
Modified: 2015-11-19 23:32 UTC (History)
8 users (show)

Fixed In Version: preupgrade-assistant-contents-0.6.35-1
Doc Type: Bug Fix
Doc Text:
Improvements to user listing and kickstart files.
Clone Of: 1208612
: 1238809 (view as bug list)
Environment:
Last Closed: 2015-11-19 23:32:08 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2015:2498 0 normal SHIPPED_LIVE preupgrade-assistant-contents bug fix and enhancement update 2015-11-20 03:39:23 UTC

Comment 2 Alois Mahdal 2015-07-24 07:42:43 UTC
Could you please clarify what is the intended purpose of each of these changes?

Comment 3 Frantisek Kluknavsky 2015-07-27 11:27:04 UTC
No. I can guess what the code does by looking at it. I can not guess the intended purpose. In case when author does a mistake and writes something else than he wants to, I have only a commit message as a clue. In all three cases here, I guess the patch does what commit message describes.

Comment 4 Alois Mahdal 2015-08-03 17:20:16 UTC
(In reply to Frantisek Kluknavsky from comment #3)
> No. I can guess what the code does by looking at it. I can not guess the
> intended purpose. In case when author does a mistake and writes something
> else than he wants to, I have only a commit message as a clue. In all three
> cases here, I guess the patch does what commit message describes.

Well, indeed the commit messages in the sandbos repo are not useful: they describe the implementation (not sure if correctly, but that's not really my interest) but not the intent.  (Frankly I was expecting that owner of the bug would know best what is the intent, but you know, a man can dream...)

At this point, there is almost nothing QA can do.  From my POV this looks like the changes have no documented justification or purpose (ok maybe for one of them we could guess...).

(Peeking at the code, I don't even have any reason to believe the changes are really "minor"---not that I think such way of quantification would be safe.)

So if this is ever going to be "order for QA service", I can already see that the "order" is incomplete.  I hope you understand that I can't ack an incomplete order.

TL;DR: So please (somebody) clarify intent of the changes.  (If the answer is really "I/we don't know", then maybe the commits shouldn't have existed in the first place?)

Comment 5 Petr Stodulka 2015-08-04 11:17:37 UTC
Hi Alois, about my third patch - sed hasn't parameter "-E" for extended regexps as grep, but it has "-r" for this purpose.

Comment 6 Petr Hracek 2015-08-04 11:26:24 UTC
First commit contains a default set of users provided by setup component. We need them for clarification what users are created by default on system. Users mentioned in that file are not included in kickstart, though.

Second is a bug which insert the comment to available-repos file (which is not needeed) and kickstart has a problem with parsing it.
Therefore I have remove it.

Comment 7 Alois Mahdal 2015-08-17 23:00:27 UTC
(In reply to pstodulk from comment #5)
> Hi Alois, about my third patch - sed hasn't parameter "-E" for extended
> regexps as grep, but it has "-r" for this purpose.

Yep, that's a justification why that is a bug, but does not answer my question:

How this change is supposed to affect user?

sed -E is not indeed an expected way how to use sed.  According to quick test it generates help text on stderr.  So two effects:

 *  help text that has been generated somewhere will disappear,

 *  and more importantly, list that has been empty until now, will contain
    items now.

What I'm asking is what kind of list is that, because I need to reproduce the case.  How can I see the effect of the test not being empty now?  (And possibly the effect of the error message not being seen?)

Comment 8 Alois Mahdal 2015-08-18 00:00:28 UTC
(In reply to Petr Hracek from comment #6)
> First commit contains a default set of users provided by setup component. We
> need them for clarification what users are created by default on system.
> Users mentioned in that file are not included in kickstart, though.

What do you mean by the clarification?  Is this list supposed to be displayed to user or used somehow else?

How can I reproduce and see the effect?

Comment 9 Petr Stodulka 2015-08-18 08:00:57 UTC
(In reply to Alois Mahdal from comment #7)
> (In reply to pstodulk from comment #5)
> > Hi Alois, about my third patch - sed hasn't parameter "-E" for extended
> > regexps as grep, but it has "-r" for this purpose.
> 
> Yep, that's a justification why that is a bug, but does not answer my
> question:
> 
> How this change is supposed to affect user?
> 
> sed -E is not indeed an expected way how to use sed.  According to quick
> test it generates help text on stderr.  So two effects:
> 
>  *  help text that has been generated somewhere will disappear,
> 
>  *  and more importantly, list that has been empty until now, will contain
>     items now.
> 
> What I'm asking is what kind of list is that, because I need to reproduce
> the case.  How can I see the effect of the test not being empty now?  (And
> possibly the effect of the error message not being seen?)

OK. I hope that I understand well. So exactly part of this change generates list of all installed packages, which is used to get all packages, which contains some utilities, which are mentioned inside "/root/preupgrade/RHEL6_7/common/$(arch)/Common_utilities". These utilities are printed in results, peculiarly with additional informations.

Comment 11 Alois Mahdal 2015-09-02 14:03:08 UTC
Petr, the first commit remains unclear--the first part of above comment (before tilde).

Comment 13 Alois Mahdal 2015-09-03 12:36:19 UTC
Clarified the first change with phracek:

The intended change is to deliver

 *  result from ReservedIDs,

 *  "old" intact /etc/passwd (as provided by 'setup' package)

into kickstart data.

Now if you call preupg with --kickstart parameter, the tarball (or something like that) must contain this data.

Comment 17 Tereza Cerna 2015-11-06 09:58:20 UTC
Verified with:
   preupgrade-assistant-2.1.1-5.el6.x86_64
   preupgrade-assistant-contents-0.6.39-1.el6.noarch
   redhat-upgrade-tool-0.7.41-1.el6.noarch

All fixes was verified manually. For the first one was created test case.

Comment 19 errata-xmlrpc 2015-11-19 23:32:08 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://rhn.redhat.com/errata/RHBA-2015-2498.html


Note You need to log in before you can comment on or make changes to this bug.