Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 2036443 - samba-tool is broken
Summary: samba-tool is broken
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: samba
Version: 35
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Guenther Deschner
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-01-01 18:52 UTC by Ricardo Alonso
Modified: 2022-05-07 04:11 UTC (History)
12 users (show)

Fixed In Version: samba-4.16.0-0.3.rc3.fc37 samba-4.15.5-1.fc35 samba-4.16.0-6.fc36
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-02-23 11:44:49 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Possible fix (deleted)
2022-01-28 16:17 UTC, dmulder
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Samba Project 14965 0 None None None 2022-01-28 18:21:22 UTC

Description Ricardo Alonso 2022-01-01 18:52:25 UTC
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:

Comment 1 Guenther Deschner 2022-01-03 07:12:27 UTC
You can try installing the "python3-samba-dc" package as a workaround, samba-tool would then work correctly.

Comment 2 dmulder 2022-01-28 16:17:49 UTC
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.

Comment 3 dmulder 2022-01-28 18:02:32 UTC
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

Comment 4 Fedora Update System 2022-02-23 11:40:46 UTC
FEDORA-2022-5b20da1010 has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2022-5b20da1010

Comment 5 Fedora Update System 2022-02-23 11:44:49 UTC
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.

Comment 6 Fedora Update System 2022-02-23 16:30:00 UTC
FEDORA-2022-cea3ab4d54 has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2022-cea3ab4d54

Comment 7 Fedora Update System 2022-02-23 16:46:01 UTC
FEDORA-2022-f6a48f04dd has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2022-f6a48f04dd

Comment 8 Fedora Update System 2022-02-24 01:45:46 UTC
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.

Comment 9 Fedora Update System 2022-02-24 23:40:43 UTC
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.

Comment 10 Fedora Update System 2022-03-01 16:32:51 UTC
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.

Comment 11 Fedora Update System 2022-03-05 18:30:25 UTC
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.

Comment 12 Fedora Update System 2022-03-11 19:23:32 UTC
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.

Comment 13 Fedora Update System 2022-03-22 17:55:18 UTC
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.

Comment 14 Fedora Update System 2022-04-21 17:49:43 UTC
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.

Comment 15 Fedora Update System 2022-05-07 04:11:28 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.