Project

General

Profile

Actions

Bug #18248

closed

[deployment][provision][tests] ubuntu 18.04 fails to generate openssl certificates

Added by Javier Bértoli over 2 years ago. Updated over 2 years ago.

Status:
Resolved
Priority:
Normal
Assigned To:
Javier Bértoli
Category:
Tests
Target version:
Story points:
-
Release relationship:
Auto

Description

Openssl fails to generate certificates throwing an error opening .RND

test-provision-ubuntu1804: #91 /console


Subtasks 1 (0 open1 closed)

Task #18252: Review #18248 commit f032efc84, branch 18248-fix-ubuntu-18.04-testingResolvedJavier Bértoli10/05/2021Actions
Actions #1

Updated by Javier Bértoli over 2 years ago

  • % Done changed from 0 to 100

The issue is caused by a deprecated parameter (RANDFILE) in the /etc/ssl/openssl.cnf

I could fix it using the solution provided here (7363a1019).

After fixing this, arvados-controller failed to run, due to an issue caused by the postgresql installation.

The formula, by default, installs the PostgresQL repo, which causes issues in this distro, so I additionally made sure the non-RedHat distros use the package they provide (f032efc84)

As Peter Amstutz suggested, I also enabled the debugging level in the tests (8c82ddb22)

Tests now pass again

Actions #2

Updated by Ward Vandewege over 2 years ago

Reviewing f032efc849b51697c0cc75825f071802452c02ce on 18248-fix-ubuntu-18.04-testing:

+# Edit the openssl.conf file to fix the RND error
+#     20:03:39                   Can't load /home/jenkins/.rnd into RNG
+# as seen 
+#    test-provision-ubuntu1804: #91 /console
+# using the solution provided here
+#     https://github.com/openssl/openssl/issues/7754#issuecomment-541310006

The changes look good but I think the comment above could be better. Rather than referring to a CI log (which will get deleted at some point) and a github link, could you just explain the problem and the solution? I.e. something more like

# In openssl.cnf, remove a reference to a file (~/.rnd) that is not guaranteed to exist, cf.
#   https://github.com/openssl/openssl/issues/7754

There was also a trailing space in the comment, could you make sure you check for that (updating your git config) to avoid this in the future?

Otherwise LGTM.

Actions #3

Updated by Javier Bértoli over 2 years ago

  • Status changed from In Progress to Resolved
Actions #4

Updated by Peter Amstutz over 2 years ago

  • Release set to 42
Actions

Also available in: Atom PDF