Bug 30016 - Compression of UCC images / Modify image size handling
Compression of UCC images / Modify image size handling
Status: CLOSED FIXED
Product: Z_Univention Corporate Client (UCC)
Classification: Unclassified
Component: Image management
unspecified
Other Linux
: P5 normal
: UCC 1.0
Assigned To: Moritz Muehlenhoff
Lukas Walter
: interim-3
: 30130 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-01-14 09:24 CET by Moritz Muehlenhoff
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 Moritz Muehlenhoff univentionstaff 2013-01-14 09:24:27 CET
Currently the images are created at a fixed size. E.g., the desktop image only consumes only approx. 5 out of 8 GBs of disk space. Two alternative solutions are imaginable:

1. Compression of images (decompression might be problematic on thin clients with narrow diskspace / memory constraints)

2. Modify the image download and image creation so that the image is downloaded with only the disk space actually used and allocate the remaining disk after image download.
Comment 1 Moritz Muehlenhoff univentionstaff 2013-01-18 11:47:31 CET
We will compress the images with xz. The UCC clients will always use the decompressed form, the compression only applies to the path from the Univention image download server to the UCC server.

ucc-image will gain a new option --compress. If the option is set, the  "file-img" entry in the spec file will contain a ".xz" suffix and the hash value applies to the compressed form.

ucc-image-download tests for the suffix and decompresses the UCC image file after hash value validation.
Comment 2 Moritz Muehlenhoff univentionstaff 2013-01-18 13:01:51 CET
(In reply to comment #1)
> We will compress the images with xz. The UCC clients will always use the
> decompressed form, the compression only applies to the path from the Univention
> image download server to the UCC server.
> 
> ucc-image will gain a new option --compress. If the option is set, the 
> "file-img" entry in the spec file will contain a ".xz" suffix and the hash
> value applies to the compressed form.
> 
> ucc-image-download tests for the suffix and decompresses the UCC image file
> after hash value validation.

This has been implemented.

Compressed images of the thin client image are on the internal mirror. No changes should be needed for the postinst installing the packages (except the new version of ucc-image-download being present)
Comment 3 Moritz Muehlenhoff univentionstaff 2013-01-23 15:25:33 CET
*** Bug 30130 has been marked as a duplicate of this bug. ***
Comment 4 Lukas Walter univentionstaff 2013-01-25 09:55:08 CET
Eventhough called with "--compress", ucc-image does not create a compressed image.
Comment 5 Moritz Muehlenhoff univentionstaff 2013-01-25 11:46:05 CET
There was a bug in parameter parsing, which has now been fixed.
Comment 6 Lukas Walter univentionstaff 2013-01-28 12:11:03 CET
(In reply to comment #5)
> There was a bug in parameter parsing, which has now been fixed.

Ok, working fine now.


Verified.
Comment 7 Moritz Muehlenhoff univentionstaff 2013-03-26 09:14:35 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".