Bug 2224503
| Summary: | dsconf ERROR: Error: name 'log' is not defined [rhel-9.2.0.z] | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 9 | Reporter: | RHEL Program Management Team <pgm-rhel-tools> |
| Component: | 389-ds-base | Assignee: | LDAP Maintainers <idm-ds-dev-bugs> |
| Status: | CLOSED MIGRATED | QA Contact: | LDAP QA Team <idm-ds-qe-bugs> |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | 9.2 | CC: | bsmejkal, idm-ds-dev-bugs, minfrin, mreynolds, tbordaz, vashirov |
| Target Milestone: | rc | Keywords: | MigratedToJIRA, Triaged, ZStream |
| Target Release: | --- | Flags: | pm-rhel:
mirror+
|
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | 389-ds-base-2.2.4-5.el9_2 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 2189717 | Environment: | |
| Last Closed: | 2023-09-20 12:51:53 UTC | Type: | --- |
| 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: | 2189717 | ||
| Bug Blocks: | |||
|
Description
RHEL Program Management Team
2023-07-21 07:51:38 UTC
I can still reproduce the issue on 389-ds-base-2.2.4-5.el9_2.x86_64 with IPA install
# dsconf -v slapd-localhost security set --tls-protocol-min=TLS1.0
DEBUG: The 389 Directory Server Configuration Tool
....
vendorVersion: 389-Directory/2.2.4 B2023.226.0000
]
DEBUG: cn=encryption,cn=config set REPLACE: ('sslVersionMin', 'TLS1.0')
DEBUG: name 'log' is not defined
Traceback (most recent call last):
File "/usr/sbin/dsconf", line 138, in <module>
result = args.func(inst, None, log, args)
File "/usr/lib/python3.9/site-packages/lib389/cli_conf/security.py", line 113, in <lambda>
p.set_defaults(func=lambda *args: _security_generic_set(*args, attrs_map))
File "/usr/lib/python3.9/site-packages/lib389/cli_conf/security.py", line 102, in _security_generic_set
log.info(f"Successfully updated security configuration ({props.attr})")
NameError: name 'log' is not defined
ERROR: Error: name 'log' is not defined
Looking at the code, the change is not backported in src/lib389/lib389/cli_conf/security.py:
def _security_generic_get(inst, basedn, logs, args, attrs_map):
Moving to ASSIGNED.
Issue migration from Bugzilla to Jira is in process at this time. This will be the last message in Jira copied from the Bugzilla bug. This BZ has been automatically migrated to the issues.redhat.com Red Hat Issue Tracker. All future work related to this report will be managed there. Due to differences in account names between systems, some fields were not replicated. Be sure to add yourself to Jira issue's "Watchers" field to continue receiving updates and add others to the "Need Info From" field to continue requesting information. To find the migrated issue, look in the "Links" section for a direct link to the new issue location. The issue key will have an icon of 2 footprints next to it, and begin with "RHEL-" followed by an integer. You can also find this issue by visiting https://issues.redhat.com/issues/?jql= and searching the "Bugzilla Bug" field for this BZ's number, e.g. a search like: "Bugzilla Bug" = 1234567 In the event you have trouble locating or viewing this issue, you can file an issue by sending mail to rh-issues. You can also visit https://access.redhat.com/articles/7032570 for general account information. |