Bug 40640 - Re-creating system/uuid
Re-creating system/uuid
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: System setup
UCS 4.1
Other Linux
: P5 normal (vote)
: UCS 4.1-1
Assigned To: Stefan Gohmann
Erik Damrose
:
Depends on:
Blocks: 40641
  Show dependency treegraph
 
Reported: 2016-02-12 06:37 CET by Stefan Gohmann
Modified: 2016-02-16 16:49 CET (History)
0 users

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 2016-02-12 06:37:43 CET
Currently, we see some systems with the same UUID. This could happen if the setup failed.

Another issue seems to be that the UUID is created two times during a normal installation first in the updater postinst and later in the appliance-hook.

I think we should remove the UUID creation in updater.postinst and we should move the UUID creation in setup-join to an earlier point.

Another possibility:
We create an init script which generates the UUID if some system identification points have been changed (MAC, HDD, RAM, CPU, ...). This means if the hardware has been changed, the UUID would change. That would be OK and we could also save the UUID history.
Comment 1 Stefan Gohmann univentionstaff 2016-02-12 07:08:13 CET
fixed:

r67381: univention-system-setup
* Move the UUID creation from updater to system setup (Bug #40640)

r67382: univention-updater
* Move the UUID creation to system setup (Bug #40640)

Changelog: r67386
Comment 2 Erik Damrose univentionstaff 2016-02-15 12:04:58 CET
OK: Remove uuid generation from univention-updater hook|postinst
OK: UCR uuid/system is now generated only in setup-join.sh
OK: functionality tested with ucs-appliance for 4.1-1
OK: Changelog
Verified
Comment 3 Stefan Gohmann univentionstaff 2016-02-16 16:49:42 CET
UCS 4.1-1 has been released:
 https://docs.software-univention.de/release-notes-4.1-1-en.html
 https://docs.software-univention.de/release-notes-4.1-1-de.html

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