Bug 2167691
| Summary: | samba-tool reports an uncaught exception | |||
|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 8 | Reporter: | James Petrini <jpetrini> | |
| Component: | samba | Assignee: | Pavel Filipensky <pfilipen> | |
| Status: | CLOSED ERRATA | QA Contact: | Denis Karpelevich <dkarpele> | |
| Severity: | high | Docs Contact: | ||
| Priority: | unspecified | |||
| Version: | 8.7 | CC: | asn, dkarpele, pfilipen, tscherf | |
| Target Milestone: | rc | Keywords: | Triaged, ZStream | |
| Target Release: | --- | Flags: | pm-rhel:
mirror+
|
|
| Hardware: | x86_64 | |||
| OS: | Linux | |||
| Whiteboard: | ||||
| Fixed In Version: | samba-4.17.5-1.el8 | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 2168534 2170469 (view as bug list) | Environment: | ||
| Last Closed: | 2023-05-16 09:08:22 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: | 2168534, 2170469 | |||
We addressed this already in RHEL 8.8. Pavel, can you please add a changelog entry? Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Low: samba security, bug fix, and enhancement update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2023:2987 |
Description of problem: samba-tool throws python errors when started , customer tries to fix each error manually but then another error occurs [root@pbvrtgw01 ~]# samba-tool ERROR(<class 'ImportError'>): uncaught exception - cannot import name 'dnsserver' File "/usr/bin/samba-tool", line 44, in <module> retval = cmd._run("samba-tool", subcommand, *args) File "/usr/lib64/python3.6/site-packages/samba/netcmd/__init__.py", line 259, in _run cmd = self.subcommands[cmd_name] File "/usr/lib64/python3.6/site-packages/samba/netcmd/main.py", line 36, in __getitem__ fromlist=['cmd_%s' % attr]), File "/usr/lib64/python3.6/site-packages/samba/netcmd/computer.py", line 31, in <module> from samba.dcerpc import dnsserver, dnsp, security when this is manually fixed another error pops out: ERROR(<class 'ModuleNotFoundError'>): uncaught exception - No module named 'samba.samdb' File "/usr/bin/samba-tool", line 44, in <module> retval = cmd._run("samba-tool", subcommand, *args) File "/usr/lib64/python3.6/site-packages/samba/netcmd/__init__.py", line 259, in _run cmd = self.subcommands[cmd_name] File "/usr/lib64/python3.6/site-packages/samba/netcmd/main.py", line 36, in __getitem__ fromlist=['cmd_%s' % attr]), File "/usr/lib64/python3.6/site-packages/samba/netcmd/computer.py", line 31, in <module> from samba.dcerpc import dnsserver, dnsp, security File "/usr/lib64/python3.6/site-packages/samba/dcerpc/dnsserver.py", line 24, in <module> from samba.samdb import SamDB Version-Release number of selected component (if applicable): samba-tool samba-common-tools-4.16.4-2.el8.x86_64 : Tools for Samba servers and clients Repo : rhel-8-for-x86_64-baseos-rpms Matched from: Filename : /usr/bin/samba-tool samba-client-libs-4.16.4-2.el8.x86_64 Thu Feb 2 11:09:47 2023 samba-common-4.16.4-2.el8.noarch Thu Feb 2 11:09:46 2023 samba-common-libs-4.16.4-2.el8.x86_64 Thu Feb 2 11:09:46 2023 samba-common-tools-4.16.4-2.el8.x86_64 Thu Feb 2 11:09:47 2023 samba-libs-4.16.4-2.el8.x86_64 Thu Feb 2 11:09:47 2023 samba related python python3-samba-4.16.4-2.el8.x86_64 Thu Feb 2 11:09:47 2023 python3-samba-test-4.16.4-2.el8.x86_64 Thu Feb 2 11:16:01 2023 platform-python-3.6.8-48.el8_7.x86_64 Wed Jan 25 16:26:25 2023 python3-samba-4.16.4-2.el8.x86_64 Thu Feb 2 11:09:47 2023 python3-samba-test-4.16.4-2.el8.x86_64 Thu Feb 2 11:16:01 2023 python3-setuptools-39.2.0-6.el8.noarch Wed Jan 25 16:25:55 2023 How reproducible: Easy Steps to Reproduce: 1. Install RHEL 8.7 2. #dnf update 3. #yum install samba 4 #samba-tool samba-common-tools-4.16.4-2.el8.x86_64 : Tools for Samba servers and clients Repo : rhel-8-for-x86_64-baseos-rpms Matched from: Filename : /usr/bin/samba-tool Actual results: cannot start samba-tool Expected results: samba-tool UI to start without throwing errors Additional info: samba-tool required for capability testing on a host joined to an AD domain customer initially wanted to test AD administration capabilities on linux side of join. samba-tool ad admin capabilities seem to be very limited with regards to AD DCs ( docs ref orig. designed for NT4 DCs) Customer wants to explore & test samba-tool capabilities with in-house AD admin team & thinks Red hat should, as a minimum, fix start up errors to allow research of capabilities.