Bug 2126614

Summary: dscreate create-template produces empty template
Product: Red Hat Enterprise Linux 9 Reporter: Ondrej Moriš <omoris>
Component: 389-ds-baseAssignee: LDAP Maintainers <idm-ds-dev-bugs>
Status: CLOSED DUPLICATE QA Contact: LDAP QA Team <idm-ds-qe-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 9.1CC: bsmejkal, dapospis, idm-ds-dev-bugs
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-10-13 15:35:23 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:
Bug Depends On:    
Bug Blocks: 2091421    

Description Ondrej Moriš 2022-09-14 06:38:20 UTC
Description of problem:

On RHEL-9.1 'dscreate create-template' produces empty template.

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

389-ds-base-2.1.3-3.el9

How reproducible:

100%

Steps to Reproduce:

1. dscreate --verbose create-template

Actual results:

# dscreate --verbose create-template
DEBUG: The 389 Directory Server Creation Tool
DEBUG: Inspired by works of: ITS, The University of Adelaide
DEBUG: Called with: Namespace(verbose=True, json=False, advanced=False, template_file='None', func=<function instance_example at 0x7fd4a9478b80>)
#

Expected results:

# dscreate --verbose create-template
DEBUG: The 389 Directory Server Creation Tool
DEBUG: Inspired by works of: ITS, The University of Adelaide
DEBUG: Called with: Namespace(verbose=True, json=False, advanced=False, template_file=None, func=<function instance_example at 0x7ffad629df70>)

;
; This is a version 2 ds setup inf file.
; It is used by the python versions of setup-ds-*
; Most options map 1 to 1 to the original .inf file.
; However, there are some differences that I envision
; For example, note the split backend section.
; You should be able to create, one, many or no backends in an install
;
; The special value {instance_name} is substituted at installation time.
;
; By default, all configuration parameters in this file are commented out.
; To use an INF file with dscreate, you must at least set the parameters
; flagged with [REQUIRED].
...
#

Additional info:

Worked fine with 389-ds-base-2.0.14-1.el9. Notice the slight difference in DEBUG lines between actual and expected results.

Comment 1 bsmejkal 2022-10-13 15:35:23 UTC
This is a regression introduced in https://bugzilla.redhat.com/show_bug.cgi?id=1872451
It was fixed and verified in the same bug. Closing this one as duplicate.

*** This bug has been marked as a duplicate of bug 1872451 ***