Bug 51670 - sysvol-cleanup.py: OSError: [Errno 2] No such file or directory: '/var/lib/samba/sysvol/AutoTest091.local/Policies/'
sysvol-cleanup.py: OSError: [Errno 2] No such file or directory: '/var/lib/s...
Status: NEW
Product: UCS
Classification: Unclassified
Component: Samba4
UCS 4.4
Other Linux
: P5 normal (vote)
: ---
Assigned To: Samba maintainers
Samba maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2020-07-15 08:35 CEST by Florian Best
Modified: 2020-07-15 08:35 CEST (History)
0 users

See Also:
What kind of report is it?: Development Internal
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Best univentionstaff 2020-07-15 08:35:04 CEST
Every Jenkins run I see 2 times:

Traceback (most recent call last):
  File "/usr/share/univention-samba4/scripts/sysvol-cleanup.py", line 122, in <module>
    fileSystemGPOs = getFileSystemGPOs(sysvolDirectory)
  File "/usr/share/univention-samba4/scripts/sysvol-cleanup.py", line 98, in getFileSystemGPOs
     return filter(lambda x: x.startswith('{'), os.listdir(sysvolDirectory))
OSError: [Errno 2] No such file or directory: '/var/lib/samba/sysvol/AutoTest091.local/Policies/'

I think we can simply ignore if the directory doesn't exist.