Bug 46456 - Add a release check script
Add a release check script
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: Update - Release updates
UCS 4.3
Other Linux
: P5 normal (vote)
: UCS 4.3
Assigned To: Felix Botner
Stefan Gohmann
: interim-4
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2018-03-02 07:27 CET by Stefan Gohmann
Modified: 2018-03-14 14:37 CET (History)
0 users

See Also:
What kind of report is it?: Feature Request
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 2018-03-02 07:27:36 CET
Currently, it is hard for our customers to check if the domain could be updated to UCS 4.3.

In the past, some customers and partners defined an update window and then the preup.sh showed a blocking message. Thus, they fixed the issue and created a new update window.

We should add a simple script which is referenced in our release notes and which can be downloaded from our download server. It should print all blocking issues, for example:

------------------------------------------------------------------------------
./check-for-ucs-4.3-upgrade
Checking available disk space:       done
Checking for Cyrus:                  done
Checking for Samba NT domain:        done
Checking for user migration:         done

Summary:

The system can't be updated to UCS 4.3 due to the following reasons:

- Cyrus is not supported anymore by UCS 4.3. Aborting the upgrade. For instructions how to proceed, please refer to https://help.univention.com/t/7957

- PostgreSQL-9.1 is no longer supported by UCS-4.3 and must be migrated to a newer version of PostgreSQL. See https://help.univention.com/t/8073 for more details.

------------------------------------------------------------------------------

In a further release, we could add it as diagnostic module.
Comment 1 Felix Botner univentionstaff 2018-03-07 13:51:13 CET
Added
 * checks/README
 * checks/pre-update-checks-4.3
to the updater source (not the binary package).

The script contains all "read only" checks from the preup. There are no automatism for the release and execution, all manually.

Download

-> curl -OOs http://univention-repository.knut.univention.de/download/univention-update-checks/pre-update-checks-4.3{,.gpg}

Execution

-> gpgv --keyring /usr/share/keyrings/univention-archive-key-ucs-4x.gpg pre-update-checks-4.3.gpg pre-update-checks-4.3 && bash pre-update-checks-4.3
gpgv: Unterschrift vom Mi 07 Mär 2018 11:44:19 CET mittels RSA-Schlüssel ID 6B8BFD3C
gpgv: Korrekte Unterschrift von "Univention Corporate Server 4.x <packages@univention.de>"

Starting pre-update checks (Di 6. Mär 13:07:33 CET 2018):

Checking app_appliance ...                        OK
Checking block_update_of_NT_DC ...                FAIL
Checking cyrus_integration ...                    FAIL
Checking disk_space ...                           OK
Checking hold_packages ...                        OK
Checking ldap_connection ...                      OK
Checking ldap_schema ...                          OK
Checking master_version ...                       OK
Checking md5_signature_is_used ...                OK
Checking min_version ...                          OK
Checking overwritten_umc_templates ...            OK
Checking package_status ...                       OK
Checking postgresql91 ...                         FAIL
Checking slapd_on_member ...                      OK
Checking user_mountpoint ...                      OK
Checking valid_machine_credentials ...            OK

The system can not be updated to UCS 4.3 due to the following reasons:

cyrus_integration:
	The Cyrus integration package was found. Cyrus is not supported
	anymore by UCS 4.3. Aborting the upgrade. For instructions how
	to proceed, please refer to https://help.univention.com/t/7957

block_update_of_NT_DC:
	Samba/NT (samba3) Domain Controller is not supported any more.
	Please migrate this domain to Samba/AD before updating.  See
	https://wiki.univention.de/index.php/Migration_from_Samba_3_to_Samba_4
	and
	https://wiki.univention.de/index.php/Best_Practice_Samba_4_Migration
	This check can be disabled by setting the UCR variable
	update43/ignore_samba_nt_dc to yes.

postgresql91:
	PostgreSQL-9.1 is no longer supported by UCS-4.3 and
	must be migrated to a newer version of PostgreSQL. See
	https://help.univention.com/t/8073 for more details.


added changelog 246af06e0fe1cb1f57d50e368962ddecb8a55f45, 575d6da3384a5cf4e58b405e3de85c4e0f83ed60

added user migration simultation, ab022267d0ef6fd57c9ba83b944539ac5d3215c6
Comment 2 Stefan Gohmann univentionstaff 2018-03-09 07:34:21 CET
I've tested the script on various systems and all server roles. It works fine and it shows several things.

We can add more scripts like nagios checks or the package update simulation but let's see how this version is accepted by our users.

I think we should move the documentation from the release notes document to the SDB (https://help.univention.com/c/knowledge-base/supported/). But I think that can be done while writing the release notes.
Comment 3 Stefan Gohmann univentionstaff 2018-03-14 14:37:51 CET
UCS 4.3 has been released:
 https://docs.software-univention.de/release-notes-4.3-0-en.html
 https://docs.software-univention.de/release-notes-4.3-0-de.html

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