Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to show full un-ellipsized output in status-dirsrv #2466

Closed
389-ds-bot opened this issue Sep 13, 2020 · 9 comments
Closed

Add option to show full un-ellipsized output in status-dirsrv #2466

389-ds-bot opened this issue Sep 13, 2020 · 9 comments
Labels
closed: fixed Migration flag - Issue
Milestone

Comments

@389-ds-bot
Copy link

Cloned from Pagure issue: https://pagure.io/389-ds-base/issue/49407


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:
@389-ds-bot 389-ds-bot added the closed: fixed Migration flag - Issue label Sep 13, 2020
@389-ds-bot 389-ds-bot added this to the 1.3.7.0 milestone Sep 13, 2020
@389-ds-bot
Copy link
Author

Comment from mreynolds (@mreynolds389) at 2017-10-19 23:01:51

Metadata Update from @mreynolds389:

@389-ds-bot
Copy link
Author

Comment from mreynolds (@mreynolds389) at 2017-10-19 23:04:22

Metadata Update from @mreynolds389:

  • Issue assigned to mreynolds389

@389-ds-bot
Copy link
Author

Comment from mreynolds (@mreynolds389) at 2017-10-19 23:05:10

0001-Ticket-49407-status-dirsrv-shows-ellipsed-lines.patch

@389-ds-bot
Copy link
Author

Comment from mreynolds (@mreynolds389) at 2017-10-19 23:05:15

Metadata Update from @mreynolds389:

  • 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

@389-ds-bot
Copy link
Author

Comment from mreynolds (@mreynolds389) at 2017-10-19 23:06:07

Metadata Update from @mreynolds389:

  • Issue set to the milestone: 1.3.7.0 (was: 0.0 NEEDS_TRIAGE)

@389-ds-bot
Copy link
Author

Comment from tbordaz (@tbordaz) at 2017-10-20 14:23:27

Patch looks good. Just a typo in the bug description in the commit msg "you have to pass "-l""
Ack

@389-ds-bot
Copy link
Author

Comment from tbordaz (@tbordaz) at 2017-10-20 14:23:43

Metadata Update from @tbordaz:

  • Custom field reviewstatus adjusted to ack (was: review)

@389-ds-bot
Copy link
Author

Comment from mreynolds (@mreynolds389) at 2017-10-20 17:13:32

e46749b..45d2fd4 master -> master

7719fde..73977eb 389-ds-base-1.3.7 -> 389-ds-base-1.3.7

@389-ds-bot
Copy link
Author

Comment from mreynolds (@mreynolds389) at 2017-10-20 17:13:34

Metadata Update from @mreynolds389:

  • Issue close_status updated to: fixed
  • Issue status updated to: Closed (was: Open)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed: fixed Migration flag - Issue
Projects
None yet
Development

No branches or pull requests

1 participant