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 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-baseAssignee: mreynolds
Status: CLOSED ERRATA QA Contact: Viktor Ashirov <vashirov>
Severity: low Docs Contact:
Priority: low    
Version: 7.4CC: 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:

Description Viktor Ashirov 2017-05-02 12:00:24 UTC
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:

Comment 2 mreynolds 2017-10-19 21:01:53 UTC
Upstream ticket:
https://pagure.io/389-ds-base/issue/49407

Comment 4 Viktor Ashirov 2017-11-21 14:59:55 UTC
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.

Comment 7 errata-xmlrpc 2018-04-10 14:16:50 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, 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