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 2232362 - httpd 2.4 module shows wrong PLATFORM string when built for CentOS Stream 8
Summary: httpd 2.4 module shows wrong PLATFORM string when built for CentOS Stream 8
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: httpd-2.4-module
Version: 8.9
Hardware: All
OS: Linux
unspecified
high
Target Milestone: rc
: ---
Assignee: Luboš Uhliarik
QA Contact: icesalov
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-08-16 13:42 UTC by Adam Saleh
Modified: 2023-11-14 17:04 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-11-14 15:35:16 UTC
Type: Bug
Target Upstream Version:
Embargoed:
pm-rhel: mirror+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-165908 0 None None None 2023-08-16 14:09:30 UTC
Red Hat Product Errata RHBA-2023:7018 0 None None None 2023-11-14 15:35:58 UTC

Description Adam Saleh 2023-08-16 13:42:16 UTC
Description of problem:

When installing httpd package and stating the httpd service on CentOS 8 we expect the welcome screen to correctly reflect that it was built for the CentOS platform.

We found down this problem in one of the recent builds[0]

where you can find the incorrect PLATFORM in the build log:
+ sed -i '/^#define PLATFORM/s/Unix/Red Hat Enterprise Linux 8/' os/unix/os.h

This only seems to affect the stream-httpd-2.4-rhel-8.9.0 branch as it uses the env var ${REDHAT_SUPPORT_PRODUCT} that resolves to "Red Hat Enterprise Linux 8" where c9s branch uses ${NAME} that resolves to "CentOS Stream"

[0] https://kojihub.stream.rdu2.redhat.com/koji/buildinfo?buildID=35572
[1] https://kojihub.stream.rdu2.redhat.com/kojifiles/packages/httpd/2.4.37/62.module_el8+597+3986b266/data/logs/x86_64/build.log

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

httpd-2.4.37-62.module_el8+597+3986b266

How reproducible:

You can see the problem when running a scratch-build

Steps to Reproduce:
1. centpkg clone rpms/httpd --branch stream-httpd-2.4-rhel-8.9.0
2. cd httpd
3. centpkg scratch-build

Actual results:

httpd will be built with "sed -i '/^#define PLATFORM/s/Unix/Red Hat Enterprise Linux 8/' os/unix/os.h" applied


Expected results:

httpd will be built with "sed -i '/^#define PLATFORM/s/Unix/CentOS Stream/' os/unix/os.h" applied

Additional info:

Comment 1 Adam Samalik 2023-08-16 14:05:46 UTC
To clarify, I know nothing has changed in this package. This was introduced a few months ago when we switch the c8s workflow.

If I compare this with the c9s package, it uses a different variable from /etc/os-release:

* c8s uses the REDHAT_SUPPORT_PRODUCT variable: https://gitlab.com/redhat/centos-stream/rpms/httpd/-/blob/stream-httpd-2.4-rhel-8.9.0/httpd.spec#L6
* c9s uses the NAME variable: https://gitlab.com/redhat/centos-stream/rpms/httpd/-/blob/c9s/httpd.spec?ref_type=heads#L6

For quick reference, here's what we have in /etc/os-release in c8s (c9s is the same except for the number):

NAME="CentOS Stream"
VERSION="8"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="8"
PLATFORM_ID="platform:el8"
PRETTY_NAME="CentOS Stream 8"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:8"
HOME_URL="https://centos.org/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux 8"
REDHAT_SUPPORT_PRODUCT_VERSION="CentOS Stream"

Would switching c8s to use the NAME variable be an option that works for you? That way we'd have c8s and c9s consistent.

Comment 2 Johnny Hughes 2023-08-16 14:13:04 UTC
I think that would absolutely work.

Comment 3 Luboš Uhliarik 2023-08-17 11:01:32 UTC
We can fix this in RHEL-8.10. I will merge the change[0] into c8s.

[0] https://src.fedoraproject.org/rpms/httpd/c/4916eeea5bf7043cec58d0b56ac1c8de2ff1bdcf?branch=rawhide

Comment 4 Adam Samalik 2023-08-17 11:31:03 UTC
Nice, thanks!

Any chance we can get a c8s build soon? We can't release c8s now with the current build. Alternatively we could tag in the previous build temporarily so we could release other updates at least.

Comment 5 Johnny Hughes 2023-08-17 13:48:36 UTC
I am absolutely happy to roll in that change (just change to ${NAME} in the c8s branch) and build and push this all the way through the build system today if everyone is OK with that.

Comment 11 errata-xmlrpc 2023-11-14 15:35:16 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 (httpd:2.4 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-2023:7018


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