Bug 9682 - WERR_NOMEM when running samba-tool dns query
WERR_NOMEM when running samba-tool dns query
Status: ASSIGNED
Product: Samba 4.0
Classification: Unclassified
Component: Tools
4.0.3
All All
: P5 normal
: ---
Assigned To: Amitay Isaacs
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-02-26 04:15 UTC by Michael Mol
Modified: 2015-07-31 08:23 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Mol 2013-02-26 04:15:29 UTC
While looking for a way to get a dump of a zone, I ran:

samba-tool dns query kaylee firefly.michael.mol.name '*' ALL


Here's the result:

$ samba-tool dns query kaylee firefly.michael.mol.name '*' ALL
Password for [administrator@FIREFLY.MICHAEL.MOL.NAME]:
ERROR(runtime): uncaught exception - (8, 'WERR_NOMEM')
  File "/usr/lib64/python2.7/site-packages/samba/netcmd/__init__.py", line 175, in _run
    return self.run(*args, **kwargs)
  File "/usr/lib64/python2.7/site-packages/samba/netcmd/dns.py", line 974, in run
    None, record_type, select_flags, None, None)


I have 10GB of RAM on that box, 7GB that's free or disk cache.
Comment 1 Amitay Isaacs 2013-06-28 08:02:15 UTC
This is a problem with wild-card search.

If you want to search the entire zone, please use @ instead of '*'.
Comment 2 Stefan Metzmacher 2014-07-29 11:06:06 UTC
(In reply to comment #1)
> This is a problem with wild-card search.
> 
> If you want to search the entire zone, please use @ instead of '*'.

We should return WERR_DNS_ERROR_NAME_DOES_NOT_EXIST (as windows)
instead of WERR_NOMEM...
Comment 3 Amitay Isaacs 2014-07-30 01:15:55 UTC
Upstream already has a patch to netcmd/dns.py to dump correct message in case user specifies * in the name. 

  8e7f8a2 netcmd/dns: Catch wildcard patterns when querying for name
Comment 4 Stefan Metzmacher 2014-07-30 02:33:18 UTC
(In reply to comment #3)
> Upstream already has a patch to netcmd/dns.py to dump correct message in case
> user specifies * in the name. 
> 
>   8e7f8a2 netcmd/dns: Catch wildcard patterns when querying for name

I think we should also fix the server.
Comment 5 Andreas Schneider 2014-10-28 10:51:23 UTC
Ping!