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.
DescriptionDavid 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/jsonhttp://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:
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 ***
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: