Description of problem: samba-tool is broken. [root@samba ~]# samba-tool ERROR(<class 'ImportError'>): uncaught exception - cannot import name 'dnsserver' from 'samba.dcerpc' (/usr/lib64/python3.10/site-packages/samba/dcerpc/__init__.py) File "/usr/bin/samba-tool", line 44, in <module> retval = cmd._run("samba-tool", subcommand, *args) File "/usr/lib64/python3.10/site-packages/samba/netcmd/__init__.py", line 259, in _run cmd = self.subcommands[cmd_name] File "/usr/lib64/python3.10/site-packages/samba/netcmd/main.py", line 35, in __getitem__ self[attr] = getattr(__import__('samba.netcmd.%s' % package, File "/usr/lib64/python3.10/site-packages/samba/netcmd/computer.py", line 31, in <module> from samba.dcerpc import dnsserver, dnsp, security Version-Release number of selected component (if applicable): [root@samba ~]# rpm -aq | grep samba samba-common-4.15.3-0.fc35.noarch samba-common-libs-4.15.3-0.fc35.x86_64 samba-client-libs-4.15.3-0.fc35.x86_64 samba-libs-4.15.3-0.fc35.x86_64 samba-dc-libs-4.15.3-0.fc35.x86_64 samba-4.15.3-0.fc35.x86_64 python3-samba-4.15.3-0.fc35.x86_64 samba-common-tools-4.15.3-0.fc35.x86_64 How reproducible: Always Steps to Reproduce: 1. Fresh install Fedora 2. Install samba and samba-common-tools packages 3. run "samba-tool" Actual results: [root@samba ~]# samba-tool ERROR(<class 'ImportError'>): uncaught exception - cannot import name 'dnsserver' from 'samba.dcerpc' (/usr/lib64/python3.10/site-packages/samba/dcerpc/__init__.py) File "/usr/bin/samba-tool", line 44, in <module> retval = cmd._run("samba-tool", subcommand, *args) File "/usr/lib64/python3.10/site-packages/samba/netcmd/__init__.py", line 259, in _run cmd = self.subcommands[cmd_name] File "/usr/lib64/python3.10/site-packages/samba/netcmd/main.py", line 35, in __getitem__ self[attr] = getattr(__import__('samba.netcmd.%s' % package, File "/usr/lib64/python3.10/site-packages/samba/netcmd/computer.py", line 31, in <module> from samba.dcerpc import dnsserver, dnsp, security Expected results: samba-tool to work fine. Additional info:
You can try installing the "python3-samba-dc" package as a workaround, samba-tool would then work correctly.
Created attachment 1857424 [details] Possible fix This is a potential fix, but the downside is it disables dns updates when you create a computer object.
The correct fix is to make samba-tool depend on python3-samba-dc, I believe. See my comment here: https://bugzilla.samba.org/show_bug.cgi?id=14965#c1
FEDORA-2022-5b20da1010 has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2022-5b20da1010
FEDORA-2022-5b20da1010 has been pushed to the Fedora 37 stable repository. If problem still persists, please make note of it in this bug report.
FEDORA-2022-cea3ab4d54 has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2022-cea3ab4d54
FEDORA-2022-f6a48f04dd has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2022-f6a48f04dd
FEDORA-2022-f6a48f04dd has been pushed to the Fedora 36 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2022-f6a48f04dd` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-f6a48f04dd See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2022-cea3ab4d54 has been pushed to the Fedora 35 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2022-cea3ab4d54` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-cea3ab4d54 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2022-00e5008e99 has been pushed to the Fedora 36 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2022-00e5008e99` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-00e5008e99 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2022-cea3ab4d54 has been pushed to the Fedora 35 stable repository. If problem still persists, please make note of it in this bug report.
FEDORA-2022-fe21519c12 has been pushed to the Fedora 36 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2022-fe21519c12` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-fe21519c12 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2022-77f3c1cd62 has been pushed to the Fedora 36 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2022-77f3c1cd62` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-77f3c1cd62 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2022-77f3c1cd62 has been pushed to the Fedora 36 stable repository. If problem still persists, please make note of it in this bug report.