Bug 1830719
| Summary: | Build Bind with JSON support | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 8 | Reporter: | David Stockdale <david> |
| Component: | bind | Assignee: | Petr Menšík <pemensik> |
| Status: | CLOSED DUPLICATE | QA Contact: | qe-baseos-daemons |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 8.1 | CC: | aegorenk |
| Target Milestone: | rc | Keywords: | FutureFeature, Patch |
| Target Release: | 8.0 | ||
| 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: | |||
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 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: