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

dsctl doesn't work with 'slapd-' in the instance name #3877

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

dsctl doesn't work with 'slapd-' in the instance name #3877

389-ds-bot opened this issue Sep 13, 2020 · 9 comments
Labels
CLI CLI tools lib389 Involves lib389 librabry
Milestone

Comments

@389-ds-bot
Copy link

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


Description of problem:

If the instance name contains 'slapd-' anywhere in the name, dsctl doesn't work with the instance.

Version-Release number of selected component (if applicable):

389-ds-base-1.4.2.4-4.module+el8.2.0+4930+d4051b3a.x86_64

How reproducible:

always

Steps to Reproduce:

  1. Create an instance with 'slapd-' in the name (doesn't matter if it's in the beginning or in the middle)
  2. Try to use dsctl with this instance

Actual results:

[root@server-rhel8 ds]# dsctl --list
slapd-server-nsslapd-test

[root@server-rhel8 ds]# dsctl -v slapd-server-nsslapd-test status
DEBUG: The 389 Directory Server Administration Tool
DEBUG: Inspired by works of: ITS, The University of Adelaide
DEBUG: Called with: Namespace(func=<function instance_status at 0x7f6ef1096950>, instance='slapd-server-nsslapd-test', json=False, list=False, remove_all=False, verbose=True)
DEBUG: list instance not found in /etc/dirsrv/slapd-server-nstest/dse.ldif: server-nstest

ERROR: No such instance 'slapd-server-nsslapd-test'
ERROR: Unable to access instance information. Are you running as the correct user? (usually dirsrv or root)

Expected results:

dsctl should be able to control such instance.

Additional info:

@389-ds-bot 389-ds-bot added CLI CLI tools lib389 Involves lib389 librabry labels Sep 13, 2020
@389-ds-bot 389-ds-bot added this to the 1.4.1 milestone Sep 13, 2020
@389-ds-bot
Copy link
Author

Comment from mreynolds (@mreynolds389) at 2020-01-16 17:42:22

Metadata Update from @mreynolds389:

  • Custom field origin adjusted to None
  • Custom field reviewstatus adjusted to None
  • Issue set to the milestone: 1.4.1

@389-ds-bot
Copy link
Author

Comment from vashirov (@vashirov) at 2020-01-16 17:43:40

Metadata Update from @vashirov:

@389-ds-bot
Copy link
Author

Comment from vashirov (@vashirov) at 2020-01-16 17:49:36

Metadata Update from @vashirov:

  • Issue set to the milestone: 1.4.1

@389-ds-bot
Copy link
Author

Comment from firstyear (@Firstyear) at 2020-01-23 01:33:02

So doesn't this mean the instance in /etc is called "slapd-slapd-instance"?

@389-ds-bot
Copy link
Author

Comment from vashirov (@vashirov) at 2020-01-23 09:50:26

In the reproducer in the description it was called slapd-server-nsslapd-test.

@389-ds-bot
Copy link
Author

Comment from firstyear (@Firstyear) at 2020-01-24 00:23:43

Ahhh I missed that. Thanks for clarifying.

@389-ds-bot
Copy link
Author

Comment from mhonek (@kenoh) at 2020-01-30 13:53:03

Commit 52930da0 fixes this issue

@389-ds-bot
Copy link
Author

Comment from mhonek (@kenoh) at 2020-01-30 14:02:29

675a605..8d6f8f5 389-ds-base-1.4.2 -> 389-ds-base-1.4.2
6a683f7..9168d3c 389-ds-base-1.4.1 -> 389-ds-base-1.4.1

@389-ds-bot
Copy link
Author

Comment from mhonek (@kenoh) at 2020-01-30 14:02:30

Metadata Update from @kenoh:

  • Issue close_status updated to: None (was: Fixed)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLI CLI tools lib389 Involves lib389 librabry
Projects
None yet
Development

No branches or pull requests

1 participant