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.

Bug 1830719

Summary: Build Bind with JSON support
Product: Red Hat Enterprise Linux 8 Reporter: David Stockdale <david>
Component: bindAssignee: Petr Menšík <pemensik>
Status: CLOSED DUPLICATE QA Contact: qe-baseos-daemons
Severity: medium Docs Contact:
Priority: unspecified    
Version: 8.1CC: aegorenk
Target Milestone: rcKeywords: FutureFeature, Patch
Target Release: 8.0Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-01-05 13:56:29 UTC Type: Enhancement
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description David Stockdale 2020-05-03 12:17:01 UTC
Description of problem:

The packaged version Bind is currently built with XML support, but not JSON, limiting the functionality of statistics channels. We use the JSON interface to pull statistics into our monitoring platform.

Rebuilding the SRPM with "BuildRequires: json-c-devel" added to the SPEC file enables the desired functionality.


Version-Release number of selected component (if applicable): 9.11.4-26.P2


How reproducible: Readily


Steps to Reproduce:
1. Toggle SELinux boolean to permit Bind to listen on HTTP port:

setsebool named_tcp_bind_http_port on

2. Add statistics-channels configuration to named.conf:

statistics-channels {
        inet 127.0.0.1 port 80 allow { 127.0.0.1; };
};

3. Start/Restart Bind

4. Check version details and try to access JSON interface


Actual results:

# named -V | egrep 'compiled|linked'
compiled by GCC 8.3.1 20190507 (Red Hat 8.3.1-4)
compiled with OpenSSL version: OpenSSL 1.1.1c FIPS  28 May 2019
linked to OpenSSL version: OpenSSL 1.1.1c FIPS  28 May 2019
compiled with libxml2 version: 2.9.7
linked to libxml2 version: 20907
compiled with zlib version: 1.2.11
linked to zlib version: 1.2.11

# wget -nv -O /dev/null http://127.0.0.1/json
http://127.0.0.1/json:
2020-05-03 12:00:00 ERROR 404: No such URL.


Expected results:

# named -V | egrep 'compiled|linked'
compiled by GCC 8.3.1 20190507 (Red Hat 8.3.1-4)
compiled with OpenSSL version: OpenSSL 1.1.1c FIPS  28 May 2019
linked to OpenSSL version: OpenSSL 1.1.1c FIPS  28 May 2019
compiled with libxml2 version: 2.9.7
linked to libxml2 version: 20907
compiled with libjson-c version: 0.13.1
linked to libjson-c version: 0.13.1
compiled with zlib version: 1.2.11
linked to zlib version: 1.2.11

# wget -nv -O /dev/null http://127.0.0.1/json
2020-05-03 12:00:00 URL:http://127.0.0.1/json [713213/713213] -> "/dev/null" [1]


Additional info:

Comment 1 Petr Menšík 2020-09-23 10:22:17 UTC
Requires just json dependency on build time. Added already to Fedora by commit [1], then enabled later.

1. https://src.fedoraproject.org/rpms/bind/c/eba5779fc1ae3c7d8bc86e5099ccafac3c37f3ba

Comment 4 Petr Menšík 2021-01-05 13:56:29 UTC
Closing as duplicate, even it was filled sooner. More recent bug has acks and reference to customer, giving it a higher priority.

*** This bug has been marked as a duplicate of bug 1899257 ***