Ticket was cloned from Red Hat Bugzilla (product Red Hat Enterprise Linux 7): Bug 1447308
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@rhel7ds.service - 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@rhel7ds.service ??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@rhel7ds.service - 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@rhel7ds.service ??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:
Metadata Update from @mreynolds: - Custom field rhbz adjusted to https://bugzilla.redhat.com/show_bug.cgi?id=1447308
Metadata Update from @mreynolds: - Issue assigned to mreynolds
<img alt="0001-Ticket-49407-status-dirsrv-shows-ellipsed-lines.patch" src="/389-ds-base/issue/raw/files/17a8490dbdde4e87d170dc233e2e64b8ed10402d7e9552b263ef51d25cf97bdf-0001-Ticket-49407-status-dirsrv-shows-ellipsed-lines.patch" />
Metadata Update from @mreynolds: - Custom field component adjusted to None - Custom field origin adjusted to None - Custom field reviewstatus adjusted to review - Custom field type adjusted to None - Custom field version adjusted to None
Metadata Update from @mreynolds: - Issue set to the milestone: 1.3.7.0 (was: 0.0 NEEDS_TRIAGE)
Patch looks good. Just a typo in the bug description in the commit msg "you have to pass \"-l\"" Ack
Metadata Update from @tbordaz: - Custom field reviewstatus adjusted to ack (was: review)
e46749b..45d2fd4 master -> master
7719fde..73977eb 389-ds-base-1.3.7 -> 389-ds-base-1.3.7
Metadata Update from @mreynolds: - Issue close_status updated to: fixed - Issue status updated to: Closed (was: Open)
389-ds-base is moving from Pagure to Github. This means that new issues and pull requests will be accepted only in 389-ds-base's github repository.
This issue has been cloned to Github and is available here: - https://github.com/389ds/389-ds-base/issues/2466
If you want to receive further updates on the issue, please navigate to the github issue and click on subscribe button.
subscribe
Thank you for understanding. We apologize for all inconvenience.
Metadata Update from @spichugi: - Issue close_status updated to: wontfix (was: fixed)
Log in to comment on this ticket.