Bug 1447308
| Summary: | Add option to show full un-ellipsized output in status-dirsrv | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Viktor Ashirov <vashirov> |
| Component: | 389-ds-base | Assignee: | mreynolds |
| Status: | CLOSED ERRATA | QA Contact: | Viktor Ashirov <vashirov> |
| Severity: | low | Docs Contact: | |
| Priority: | low | ||
| Version: | 7.4 | CC: | nkinder, rmeggins |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | 389-ds-base-1.3.7.5-6.el7 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2018-04-10 14:16:50 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
Upstream ticket: https://pagure.io/389-ds-base/issue/49407 Build tested:
389-ds-base-1.3.7.5-10.el7.x86_64
Output is shown un-ellipsized by default.
[root@rhel7 ~]# status-dirsrv
● dirsrv.target - 389 Directory Server
Loaded: loaded (/usr/lib/systemd/system/dirsrv.target; disabled; vendor preset: disabled)
Active: inactive (dead)
Status of instance "rhel7"
● dirsrv - 389 Directory Server rhel7.
Loaded: loaded (/usr/lib/systemd/system/dirsrv@.service; enabled; vendor preset: disabled)
Active: active (running) since Tue 2017-11-21 09:58:23 EST; 2s ago
Process: 11436 ExecStartPre=/usr/sbin/ds_systemd_ask_password_acl /etc/dirsrv/slapd-%i/dse.ldif (code=exited, status=0/SUCCESS)
Main PID: 11442 (ns-slapd)
Status: "slapd started: Ready to process requests"
CGroup: /system.slice/system-dirsrv.slice/dirsrv
└─11442 /usr/sbin/ns-slapd -D /etc/dirsrv/slapd-rhel7 -i /var/run/dirsrv/slapd-rhel7.pid
Nov 21 09:58:23 rhel7.example.com ns-slapd[11442]: [21/Nov/2017:09:58:23.399830862 -0500] - INFO - ldbm_instance_config_cachememsize_set - force a minimal value 512000
Nov 21 09:58:23 rhel7.example.com ns-slapd[11442]: [21/Nov/2017:09:58:23.418068067 -0500] - NOTICE - ldbm_back_start - found 1015904k physical memory
Nov 21 09:58:23 rhel7.example.com ns-slapd[11442]: [21/Nov/2017:09:58:23.421956137 -0500] - NOTICE - ldbm_back_start - found 607996k available
Nov 21 09:58:23 rhel7.example.com ns-slapd[11442]: [21/Nov/2017:09:58:23.425338888 -0500] - NOTICE - ldbm_back_start - cache autosizing: db cache: 25397k
Nov 21 09:58:23 rhel7.example.com ns-slapd[11442]: [21/Nov/2017:09:58:23.429167558 -0500] - NOTICE - ldbm_back_start - cache autosizing: userRoot entry cache (1 total): 131072k
Nov 21 09:58:23 rhel7.example.com ns-slapd[11442]: [21/Nov/2017:09:58:23.432962227 -0500] - NOTICE - ldbm_back_start - cache autosizing: userRoot dn cache (1 total): 65536k
Nov 21 09:58:23 rhel7.example.com ns-slapd[11442]: [21/Nov/2017:09:58:23.437173572 -0500] - NOTICE - ldbm_back_start - total cache size: 171800657 B;
Nov 21 09:58:23 rhel7.example.com ns-slapd[11442]: [21/Nov/2017:09:58:23.441280363 -0500] - INFO - dblayer_start - Resizing db cache size: 249606963 -> 20805713
Nov 21 09:58:23 rhel7.example.com ns-slapd[11442]: [21/Nov/2017:09:58:23.566217344 -0500] - INFO - slapd_daemon - slapd started. Listening on All Interfaces port 389 for LDAP requests
Nov 21 09:58:23 rhel7.example.com systemd[1]: Started 389 Directory Server rhel7..
Marking as VERIFIED, SanityOnly.
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, 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-2018:0811 |
Description of problem: When viewing status of DS using status-dirsrv, it ellipsizes the output (because `systemctl status` does so). At then end of the output systemctl suggests to use -l to view full output, but when it's passed to status-dirsrv, it reports that it's an illegal option. It would be nice to have this option to view full output instead of falling back to systemctl status command (less symbols to type). Version-Release number of selected component (if applicable): 389-ds-base-1.3.6.1-9.el7.x86_64 How reproducible: always Steps to Reproduce: 1. Create DS instance and start it 2. status-dirsrv 3. status-dirsrv -l Actual results: [root@rhel7ds ~]# status-dirsrv -l /usr/sbin/status-dirsrv: illegal option -- l ● dirsrv.target - 389 Directory Server Loaded: loaded (/usr/lib/systemd/system/dirsrv.target; disabled; vendor preset: disabled) Active: inactive (dead) Status of instance "rhel7ds" ● dirsrv - 389 Directory Server rhel7ds. Loaded: loaded (/usr/lib/systemd/system/dirsrv@.service; enabled; vendor preset: disabled) Active: active (running) since Tue 2017-05-02 13:53:57 CEST; 2min 49s ago Process: 6582 ExecStartPre=/usr/sbin/ds_systemd_ask_password_acl /etc/dirsrv/slapd-%i/dse.ldif (code=exited, status=0/SUCCESS) Main PID: 6588 (ns-slapd) Status: "slapd started: Ready to process requests" CGroup: /system.slice/system-dirsrv.slice/dirsrv └─6588 /usr/sbin/ns-slapd -D /etc/dirsrv/slapd-rhel7ds -i /var/run/dirsrv/slapd-rhel7ds.pid May 02 13:53:57 rhel7ds.brq.redhat.com ns-slapd[6588]: [02/May/2017:13:53:57.316724097 +0200] - NOTICE - ldbm_ba...0 B; May 02 13:53:57 rhel7ds.brq.redhat.com ns-slapd[6588]: [02/May/2017:13:53:57.327391656 +0200] - ERR - _spal_get_...o=13 May 02 13:53:57 rhel7ds.brq.redhat.com ns-slapd[6588]: [02/May/2017:13:53:57.335531909 +0200] - WARN - spal_memi...form May 02 13:53:57 rhel7ds.brq.redhat.com ns-slapd[6588]: [02/May/2017:13:53:57.340850817 +0200] - ERR - _spal_get_...o=13 May 02 13:53:57 rhel7ds.brq.redhat.com ns-slapd[6588]: [02/May/2017:13:53:57.352044736 +0200] - WARN - spal_memi...form May 02 13:53:57 rhel7ds.brq.redhat.com ns-slapd[6588]: [02/May/2017:13:53:57.358246095 +0200] - ERR - _spal_get_...o=13 May 02 13:53:57 rhel7ds.brq.redhat.com ns-slapd[6588]: [02/May/2017:13:53:57.369833134 +0200] - WARN - spal_memi...form May 02 13:53:57 rhel7ds.brq.redhat.com ns-slapd[6588]: [02/May/2017:13:53:57.381873272 +0200] - INFO - dblayer_s...3860 May 02 13:53:57 rhel7ds.brq.redhat.com ns-slapd[6588]: [02/May/2017:13:53:57.624467697 +0200] - INFO - slapd_dae...ests May 02 13:53:57 rhel7ds.brq.redhat.com systemd[1]: Started 389 Directory Server rhel7ds.. Hint: Some lines were ellipsized, use -l to show in full. Expected results: ● dirsrv - 389 Directory Server rhel7ds. Loaded: loaded (/usr/lib/systemd/system/dirsrv@.service; enabled; vendor preset: disabled) Active: active (running) since Tue 2017-05-02 13:53:57 CEST; 3min 31s ago Process: 6582 ExecStartPre=/usr/sbin/ds_systemd_ask_password_acl /etc/dirsrv/slapd-%i/dse.ldif (code=exited, status=0/SUCCESS) Main PID: 6588 (ns-slapd) Status: "slapd started: Ready to process requests" CGroup: /system.slice/system-dirsrv.slice/dirsrv └─6588 /usr/sbin/ns-slapd -D /etc/dirsrv/slapd-rhel7ds -i /var/run/dirsrv/slapd-rhel7ds.pid May 02 13:53:57 rhel7ds.brq.redhat.com ns-slapd[6588]: [02/May/2017:13:53:57.316724097 +0200] - NOTICE - ldbm_back_start - total cache size: 117179940 B; May 02 13:53:57 rhel7ds.brq.redhat.com ns-slapd[6588]: [02/May/2017:13:53:57.327391656 +0200] - ERR - _spal_get_uint64_t_file - Unable to open file "/sys/fs/cgroup/memory/memory.soft_limit_in_bytes". errno=13 May 02 13:53:57 rhel7ds.brq.redhat.com ns-slapd[6588]: [02/May/2017:13:53:57.335531909 +0200] - WARN - spal_meminfo_get - Unable to retrieve /sys/fs/cgroup/memory/memory.soft_limit_in_bytes. There may be no cgroup support on this platform May 02 13:53:57 rhel7ds.brq.redhat.com ns-slapd[6588]: [02/May/2017:13:53:57.340850817 +0200] - ERR - _spal_get_uint64_t_file - Unable to open file "/sys/fs/cgroup/memory/memory.limit_in_bytes". errno=13 May 02 13:53:57 rhel7ds.brq.redhat.com ns-slapd[6588]: [02/May/2017:13:53:57.352044736 +0200] - WARN - spal_meminfo_get - Unable to retrieve /sys/fs/cgroup/memory/memory.limit_in_bytes. There may be no cgroup support on this platform May 02 13:53:57 rhel7ds.brq.redhat.com ns-slapd[6588]: [02/May/2017:13:53:57.358246095 +0200] - ERR - _spal_get_uint64_t_file - Unable to open file "/sys/fs/cgroup/memory/memory.usage_in_bytes". errno=13 May 02 13:53:57 rhel7ds.brq.redhat.com ns-slapd[6588]: [02/May/2017:13:53:57.369833134 +0200] - WARN - spal_meminfo_get - Unable to retrieve /sys/fs/cgroup/memory/memory.limit_in_bytes. There may be no cgroup support on this platform May 02 13:53:57 rhel7ds.brq.redhat.com ns-slapd[6588]: [02/May/2017:13:53:57.381873272 +0200] - INFO - dblayer_start - Resizing db cache size: 296920678 -> 33293860 May 02 13:53:57 rhel7ds.brq.redhat.com ns-slapd[6588]: [02/May/2017:13:53:57.624467697 +0200] - INFO - slapd_daemon - slapd started. Listening on All Interfaces port 389 for LDAP requests May 02 13:53:57 rhel7ds.brq.redhat.com systemd[1]: Started 389 Directory Server rhel7ds.. Additional info: