Bug 43757 - Docker tests fail
Docker tests fail
Status: CLOSED FIXED
Product: UCS Test
Classification: Unclassified
Component: Docker
unspecified
Other Linux
: P5 normal (vote)
: UCS 4.2
Assigned To: Stefan Gohmann
Arvid Requate
: interim-3
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2017-03-08 17:29 CET by Stefan Gohmann
Modified: 2017-04-04 18:29 CEST (History)
2 users (show)

See Also:
What kind of report is it?: Development Internal
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 2017-03-08 17:29:31 CET
The docker test cases fail. It looks like the latest App Center changes need to be added, for example:

http://jenkins.knut.univention.de:8080/job/UCS-4.2/job/UCS-4.2-0/job/AutotestJoin/SambaVersion=s3,Systemrolle=master/67/testReport/80_docker/51_app_install/test/

*** BEGIN *** ['/usr/bin/python', '51_app_install'] ***
*** 80_docker/51_app_install *** Create and install a simple docker app ***
*** START TIME: 2017-03-08 02:05:19 ***
Setting update/secure_apt
Create appcenter/index/verify
Setting repository/app_center/server
File: /etc/apt/apt.conf.d/20secureapt
<dockertest.Appcenter object at 0x7fc48c0da210>
dpkg-buildpackage: Warnung: Verwendung eines root-werde-Befehls, obwohl bereits root
dpkg-buildpackage: Quellpaket jugsaiy8pn
dpkg-buildpackage: Quellversion 4.2.5.6.1.8
dpkg-buildpackage: Quelldistribution unstable
dpkg-buildpackage: Quellen geändert durch Univention GmbH <packages@univention.de>
dpkg-buildpackage: Host-Architektur amd64
dpkg-buildpackage: Warnung: debian/rules ist nicht ausführbar: wird korrigiert
 dpkg-source --before-build jugsaiy8pn
 fakeroot debian/rules clean
dh clean
   dh_testdir
   dh_auto_clean
   dh_clean
 debian/rules build
dh build
   dh_testdir
   dh_auto_configure
   dh_auto_build
   dh_auto_test
 fakeroot debian/rules binary
dh binary
   dh_testroot
   dh_prep
   dh_auto_install
   dh_install
   dh_installdocs
   dh_installchangelogs
   dh_pysupport
dh_pysupport: This program is deprecated, you should use dh_python2 instead. Migration guide: http://deb.li/dhs2p
   dh_perl
   dh_link
   dh_compress
   dh_fixperms
   dh_installdeb
   dh_gencontrol
   dh_md5sums
   dh_builddeb
dpkg-deb: Paket »jugsaiy8pn« wird in »../jugsaiy8pn_4.2.5.6.1.8_all.deb« gebaut.
 dpkg-genchanges -b >../jugsaiy8pn_4.2.5.6.1.8_amd64.changes
dpkg-genchanges: Binärpaket(e) hochzuladen (kein Quellencode enthalten)
 dpkg-source --after-build jugsaiy8pn
dpkg-buildpackage: Binärpaket(e) hochzuladen (keine Quellen enthalten)
<dockertest.App object at 0x7fc48b5b3c90>(app_name='thbz0ogcxi', app_version='4.2.5')
set_ini_parameter(DockerImage=docker.software-univention.de/ucs-appbox-amd64:4.1-0)
Write ini file: /var/www/meta-inf/4.2/thbz0ogcxi_0.4.0.ini
[Application]
Code: th
Name: thbz0ogcxi
NotifyVendor: False
DockerImage: docker.software-univention.de/ucs-appbox-amd64:4.1-0
Version: 4.2.5
Logo: thbz0ogcxi.svg
ServerRole: domaincontroller_master,domaincontroller_backup,domaincontroller_slave,memberserver
ID: thbz0ogcxi
Categories: System services
DefaultPackages: jugsaiy8pn

create_appcenter_json.py for 4.2
App.install()
Downloading "http://master090.autotest090.local/meta-inf/categories.ini"...
Downloading "http://master090.autotest090.local/meta-inf/rating.ini"...
Downloading "http://master090.autotest090.local/meta-inf/license_types.ini"...
Downloading "http://master090.autotest090.local/meta-inf/ucs.ini"...
Konnte http://master090.autotest090.local/meta-inf/ucs.ini nicht herunterladen. Das deutet auf ein Problem auf dem App Center-Server hin. Bitte versuchen Sie es später noch einmal.
App.uninstall()
App.remove()
Cleanup after exception: <class 'dockertest.UCSTest_DockerApp_UpdateFailed'> 
Unsetting appcenter/index/verify
Setting update/secure_apt
Setting repository/app_center/server
File: /etc/apt/apt.conf.d/20secureapt
Traceback (most recent call last):
  File "51_app_install", line 25, in <module>
    app.install()
  File "/usr/share/ucs-test/80_docker/dockertest.py", line 231, in install
    self._update()
  File "/usr/share/ucs-test/80_docker/dockertest.py", line 299, in _update
    raise UCSTest_DockerApp_UpdateFailed()
dockertest.UCSTest_DockerApp_UpdateFailed
*** END TIME: 2017-03-08 02:05:27 ***
*** TEST DURATION (H:MM:SS.ms): 0:00:07.589070 ***
*** END *** 1 ***
Comment 1 Stefan Gohmann univentionstaff 2017-03-08 17:31:50 CET
r77483:
* 80_docker/dockertest.py: Create UCS 4.1 App Center as well
  (Bug #43757)
Comment 2 Stefan Gohmann univentionstaff 2017-03-10 21:00:18 CET
r77606:
* 80_docker: In UCS 4.2 we are able to install UCS 4.1 docker apps.
  This requires some basic test case changes (Bug #43757)

r77607:
* Rename 40_app_install_4_0-3 to 40_app_install_4_1 (Bug #43757)
Comment 3 Stefan Gohmann univentionstaff 2017-03-11 18:49:34 CET
With the changes from Bug #43813, it looks much better. But I see still the following error:

 Cleanup after exception: <class 'univention.lib.umc.ConnectionError'> ('Could not send request.', SSLError(1, u'[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:581)'))

It works if I add the cafile parameter to urllib2.urlopen.

r77609:
* 80_docker/dockertest.py: Add cafile to urllib2.urlopen (Bug #43757)
Comment 4 Stefan Gohmann univentionstaff 2017-03-11 20:20:03 CET
r77611:
* 80_docker/59_app_center_signature: The UCS 4.2 App Center client
  needs to load the 4.1 App Center as well (Bug #43757)
Comment 5 Stefan Gohmann univentionstaff 2017-03-11 20:33:35 CET
r77612:
* 80_docker/62_app_update_available: Copy the packages to the
  container version and not to the host version (Bug #43757)
Comment 6 Stefan Gohmann univentionstaff 2017-03-11 21:09:13 CET
r77613:
* 80_docker/30_installed: Use 4.2 as target for the Non-Docker App
  (Bug #43757)
Comment 7 Stefan Gohmann univentionstaff 2017-03-12 18:50:49 CET
The latest tests look much better. Only two issues which need fixing of this tow bugs:

* Bug #43811
The UMC client lib can't create a SSL connection at least if the certificate is tried to verified.

* Bug #43496
It looks like the registration variable is no longer set correctly.
Comment 8 Arvid Requate univentionstaff 2017-03-20 19:17:23 CET
Ok, the test is successful and logs look similar to the onces in UCS 4.1
Comment 9 Stefan Gohmann univentionstaff 2017-04-04 18:29:38 CEST
UCS 4.2 has been released:
 https://docs.software-univention.de/release-notes-4.2-0-en.html
 https://docs.software-univention.de/release-notes-4.2-0-de.html

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