Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
DescriptionPavel Filipensky
2023-02-09 10:44:14 UTC
+++ This bug was initially created as a clone of Bug #2167691 +++
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.
--- Additional comment from Andreas Schneider on 2023-02-07 16:00:55 UTC ---
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:2519