Bug 29934 - univention-ucc-sync-persistent-files does not create directory structure
univention-ucc-sync-persistent-files does not create directory structure
Status: CLOSED FIXED
Product: Z_Univention Corporate Client (UCC)
Classification: Unclassified
Component: General
unspecified
Other Linux
: P5 normal
: UCC 1.0
Assigned To: Stefan Gohmann
Erik Damrose
: interim-3
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-01-05 01:02 CET by Stefan Gohmann
Modified: 2013-03-26 09:14 CET (History)
1 user (show)

See Also:
What kind of report is it?: ---
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 Stefan Gohmann univentionstaff 2013-01-05 01:02:34 CET
univention-ucc-sync-persistent-file does not to create the directory structure:

root@ucc:~# /usr/sbin/univention-ucc-sync-persistent-files --sync-to-ucc
Copying /ucc_root/persistent-files/var/univention-join/status to UCC system
Copying /ucc_root/persistent-files/etc/machine.secret to UCC system
Copying /ucc_root/persistent-files/etc/univention/ssl/ucc322/private.key to UCC system
Traceback (most recent call last):
  File "/usr/sbin/univention-ucc-sync-persistent-files", line 93, in <module>
    shutil.copy(file, file.replace("/ucc_root/persistent-files", ""))
  File "/usr/lib/python2.7/shutil.py", line 117, in copy
    copyfile(src, dst)
  File "/usr/lib/python2.7/shutil.py", line 83, in copyfile
    with open(dst, 'wb') as fdst:
IOError: [Errno 2] No such file or directory: '/etc/univention/ssl/ucc322/private.key'
root@ucc:~# ls /ucc_root/persistent-files/etc/univention/ssl/ucc322/
cert.pem  openssl.cnf  private.key  req.pem
root@ucc:~# ls /etc/univention/ssl/ucc322/private.key
ls: cannot access /etc/univention/ssl/ucc322/private.key: No such file or directory
root@ucc:~#
Comment 1 Stefan Gohmann univentionstaff 2013-01-05 21:10:38 CET
univention-ucc-sync-persistent-file has been fixed.
Comment 2 Erik Damrose univentionstaff 2013-01-21 11:25:44 CET
ucc-sync-persistent-files creates directory structure with subdirectories -> OK
Directorystructure is correctly copied back (md5sum check) -> OK

-> Verified
Comment 3 Moritz Muehlenhoff univentionstaff 2013-03-26 09:14:07 CET
UCC 1.0 has been released: 
http://forum.univention.de/viewtopic.php?f=26&t=2417
http://forum.univention.de/viewtopic.php?f=54&t=2418

If this error occurs again, please use "Clone This Bug".