Bug 14184 - samba-tools visualize : uncaught exception - list index out of range
Summary: samba-tools visualize : uncaught exception - list index out of range
Status: RESOLVED FIXED
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: AD: LDB/DSDB/SAMDB (show other bugs)
Version: 4.10.10
Hardware: All All
: P5 normal (vote)
Target Milestone: ---
Assignee: Andrew Bartlett
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-11-06 07:59 UTC by Louis
Modified: 2019-11-06 09:40 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Louis 2019-11-06 07:59:47 UTC
Hai, 

Seen on the samba list. 
https://www.spinics.net/lists/samba/msg160933.html

I've verified it on a 4.10.10 server.
Same result.

running : samba-tool visualize uptodateness -r
results in : 

ERROR(<class 'IndexError'>): uncaught exception - list index out of range
  File "/usr/lib/python3/dist-packages/samba/netcmd/__init__.py", line 185, in _run
    return self.run(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/samba/netcmd/visualize.py", line 682, in run
    utdv_edges = get_utdv_edges(local_kcc, dsas, part_dn, lp, creds)
  File "/usr/lib/python3/dist-packages/samba/uptodateness.py", line 120, in get_utdv_edges
    cursors = get_utdv(samdb, part_dn)
  File "/usr/lib/python3/dist-packages/samba/uptodateness.py", line 86, in get_utdv
    settings_dn = str(res[0]["distinguishedName"][0])
Comment 1 Louis 2019-11-06 09:40:48 UTC
Verified by Rowland, closing bug.
Fixed in master and 4.11.2