Bug 37127 - Failing mirror test: 81mirror-errors
Failing mirror test: 81mirror-errors
Status: CLOSED FIXED
Product: UCS Test
Classification: Unclassified
Component: Updater
unspecified
Other Linux
: P5 normal (vote)
: UCS 4.1
Assigned To: Philipp Hahn
Stefan Gohmann
: interim-2
Depends on: 31060
Blocks:
  Show dependency treegraph
 
Reported: 2014-12-01 13:53 CET by Philipp Hahn
Modified: 2015-11-17 12:12 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 Philipp Hahn univentionstaff 2014-12-01 13:53:43 CET
*** BEGIN *** ['/bin/bash', '81mirror-errors'] ***
*** 09_updater/81mirror-errors *** Mirror localhost repository testing errors
1. setup local repository with 1 update
2. check if upgrade of package work
3. check if --updateto is honored ***
*** START TIME: 2014-11-29 00:00:41 ***
Adding password for user user10832
6759 blocks
gpg: keyring `/root/.gnupg/secring.gpg' created
gpg: keyring `/root/.gnupg/pubring.gpg' created
OK
Stopping periodic command scheduler: cron.
Stopping Univention iptables configuration::.
#   ConfigurationError: Configuration error: host is unresolvable
Error: Configuration error: host is unresolvable
#   ConfigurationError: Configuration error: port is closed
Error: Configuration error: port is closed
#   ConfigurationError: Configuration error: non-existing prefix "DUMMY": http://localhost/DUMMY/
Error: Configuration error: non-existing prefix "DUMMY": http://localhost/DUMMY/
# Configuration error: credentials not accepted: test16551
Error: Configuration error: credentials not accepted
# Configuration error: component not found: 4.0-0-errata
# Configuration error: component not found: test16551DUMMY
**************** Test failed above this line ****************
ERROR 81mirror-errors:94 0
ERROR grep -F " is marked as required."
Starting Univention iptables configuration::.
=== RESULT: 110 ===
*** END TIME: 2014-11-29 00:00:48 ***
*** TEST DURATION (H:MM:SS.ms): 0:00:07.178107 ***
*** END *** 110 ***
Comment 1 Philipp Hahn univentionstaff 2014-12-01 14:48:17 CET
/usr/sbin/univention-repository-update
 172                 nextupdate = mirror.release_update_available()
/usr/share/pyshared/univention/updater/mirror.py
 77                 return self.get_next_version(UCS_Version(ucs_version), [], errorsto)
/usr/share/pyshared/univention/updater/tools.py
 631         def get_next_version(self, version, components=[], errorsto='stderr'):

as components=[] is used, univention-repository-update does not abort on missing required components.
If there was a code change, the test needs adaption.
Comment 2 Philipp Hahn univentionstaff 2015-10-20 12:19:48 CEST
(In reply to Philipp Hahn from comment #1)
...
> /usr/share/pyshared/univention/updater/mirror.py
>  77                 return self.get_next_version(UCS_Version(ucs_version),
...
> as components=[] is used, univention-repository-update does not abort on
> missing required components.
> If there was a code change, the test needs adaption.

r42276 changed the code in UCS-3.2-0 to ignore any component in mirror.py.

r64620 | Bug #39306 test: local repository tests

Package: ucs-test
Version: 6.0.10-1.1269.201510201217
Branch: ucs_4.1-0
Comment 3 Stefan Gohmann univentionstaff 2015-11-04 08:38:58 CET
OK, looks good now.
Comment 4 Stefan Gohmann univentionstaff 2015-11-17 12:12:11 CET
UCS 4.1 has been released:
 https://docs.software-univention.de/release-notes-4.1-0-en.html
 https://docs.software-univention.de/release-notes-4.1-0-de.html

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