Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
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.
DescriptionMasahiro Matsuya
2018-09-28 02:51:00 UTC
Created attachment 1487944[details]
proposed patch
Description of problem:
RHEL6_7/others/configchanges/check failed with the following error, and it could not complete to check all files in $VALUE_CONFIGCHANGED.
/root/preupgrade/RHEL6_7/others/configchanges/check: line 57: 17
17 & 16 : syntax error in expression (error token is "17 & 16 ")
This problem happens when a file is included in multiple packages. For simple example, x86_64 and i686 packages.
This can be reproducible when pam.x86_64 and pam.i686 are installed.
The following is the verbose output (with set -x) with a test script.
+ read line
++ awk '{print $3}'
++ echo ....L.... c /etc/pam.d/fingerprint-auth
+ flname=/etc/pam.d/fingerprint-auth
++ rpm -q --qf '[%{filenames}: %{fileflags}\n]' -f /etc/pam.d/fingerprint-auth <<========
++ cut -d : -f 2
++ grep '^/etc/pam.d/fingerprint-auth:'
+ fflags=' 17
17'
./test.sh: line 13: 17
17 & 16 : syntax error in expression (error token is "17 & 16 ")
# rpm -q --qf '[%{filenames}: %{fileflags}\n]' -f /etc/pam.d/fingerprint-auth |grep "/etc/pam.d/fingerprint-auth:"
/etc/pam.d/fingerprint-auth: 17
/etc/pam.d/fingerprint-auth: 17
# rpm -q --qf '[%{filenames}: %{fileflags}\n]' -f /etc/pam.d/fingerprint-auth |grep "/etc/pam.d/fingerprint-auth:" | cut -d: -f 2
17
17
I will attach a patch to fix it.
Version-Release number of selected component (if applicable):
RHEL6.10
preupgrade-assistant-el6toel7-0.7.5-1.el6
How reproducible:
Always
Steps to Reproduce:
1. install x86_64 and i686 pam packages on RHEL6
2. confirm that /etc/pam.d/fingerprint-auth's link path is changed.
# rpm -V -f /etc/pam.d/fingerprint-auth
....L.... c /etc/pam.d/fingerprint-auth
3. start preupg
4. check result.txt (search with configchanges)
Actual results:
/root/preupgrade/RHEL6_7/others/configchanges/check could not check all files, and failed with syntax error.
Expected results:
it didn't fail.
Thanks Masahiro for investigation and patch. Related upstream issue:
https://github.com/upgrades-migrations/preupgrade-assistant-modules/issues/57
I expect that fixed version of RPM could be released during winter. I will try to get it into the next release, but because of lack of time it will be postponed and released async with other important bug fixes.
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 (preupgrade-assistant and redhat-upgrade-tool bug fix and enhancement update), 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:4057
Created attachment 1487944 [details] proposed patch Description of problem: RHEL6_7/others/configchanges/check failed with the following error, and it could not complete to check all files in $VALUE_CONFIGCHANGED. /root/preupgrade/RHEL6_7/others/configchanges/check: line 57: 17 17 & 16 : syntax error in expression (error token is "17 & 16 ") This problem happens when a file is included in multiple packages. For simple example, x86_64 and i686 packages. This can be reproducible when pam.x86_64 and pam.i686 are installed. The following is the verbose output (with set -x) with a test script. + read line ++ awk '{print $3}' ++ echo ....L.... c /etc/pam.d/fingerprint-auth + flname=/etc/pam.d/fingerprint-auth ++ rpm -q --qf '[%{filenames}: %{fileflags}\n]' -f /etc/pam.d/fingerprint-auth <<======== ++ cut -d : -f 2 ++ grep '^/etc/pam.d/fingerprint-auth:' + fflags=' 17 17' ./test.sh: line 13: 17 17 & 16 : syntax error in expression (error token is "17 & 16 ") # rpm -q --qf '[%{filenames}: %{fileflags}\n]' -f /etc/pam.d/fingerprint-auth |grep "/etc/pam.d/fingerprint-auth:" /etc/pam.d/fingerprint-auth: 17 /etc/pam.d/fingerprint-auth: 17 # rpm -q --qf '[%{filenames}: %{fileflags}\n]' -f /etc/pam.d/fingerprint-auth |grep "/etc/pam.d/fingerprint-auth:" | cut -d: -f 2 17 17 I will attach a patch to fix it. Version-Release number of selected component (if applicable): RHEL6.10 preupgrade-assistant-el6toel7-0.7.5-1.el6 How reproducible: Always Steps to Reproduce: 1. install x86_64 and i686 pam packages on RHEL6 2. confirm that /etc/pam.d/fingerprint-auth's link path is changed. # rpm -V -f /etc/pam.d/fingerprint-auth ....L.... c /etc/pam.d/fingerprint-auth 3. start preupg 4. check result.txt (search with configchanges) Actual results: /root/preupgrade/RHEL6_7/others/configchanges/check could not check all files, and failed with syntax error. Expected results: it didn't fail.