Skip to content

CI: tls_bad_alpn AuTest is failing on master builds #8023

Closed

Description

@bneradt

Starting a couple days ago (June 29), the tls_bad_alpn test has started failing on master. Here's a link to one of the failed jobs:
https://ci.trafficserver.apache.org/job/autest-master/793/console

The test is failing because a process, running the openssl command, doesn't have the expected output saying ALPN wasn't negotiated:

   Run: alpn banana: Failed
     Test : Checking that True == _isRunningAfter - Passed
        Reason: Returned Value: True == _isRunningAfter
     Starting TestRun 0-tr : No Issues found - Passed
        Reason: Started!
     Process: Default: Failed
       Test : Checking that ReturnCode == 1 - Passed
          Reason: Returned Value: 1 == 1
       file /var/tmp/ausb-master.793/tls_bad_alpn/_output/0-tr-Default/stream.all.txt : Banana should not match a negotiation - Failed
          Reason: Contents of /var/tmp/ausb-master.793/tls_bad_alpn/_output/0-tr-Default/stream.all.txt did not contains expression: "No ALPN negotiated"

Looking at the sandbox for that AuTest process, here is the command that process is trying to run:

https://ci.trafficserver.apache.org/autest/ausb-master.793/tls_bad_alpn/_output/0-tr-Default/

Command= openssl s_client -ign_eof -alpn=banana -connect 127.0.0.1:61103

That fails with:
https://ci.trafficserver.apache.org/autest/ausb-master.793/tls_bad_alpn/_output/0-tr-Default/stream.all.txt

unknown option -alpn=banana
usage: s_client args
...

Activity

  1. self-assigned this
    on Jul 1, 2021
  2. added this to the 10.0.0 milestone on Jul 1, 2021
  3. bneradt commented on Jul 1, 2021

    @bneradt
    ContributorAuthor

    This is not a problem with the new CI: the CentOS images used for the new CI has a version of openssl that supports the -alpn option. I suggest we address this by adding an openssl feature skip check to the tls_bad_alpn.test.py test (something good to have regardless) and wait for CI test coverage until we move to the new CI, which should be soon.

  4. bneradt commented on Jul 1, 2021

    @bneradt
    ContributorAuthor

    This will only fail the master autest Jenkins runs, not the PR autest runs. For our PR autest runs, we set our PATH such that the openssl-quic version of openssl is run:

    export LD_LIBRARY_PATH=/opt/openssl-quic/lib
    PATH=/opt/openssl-quic/bin:$PATH
    

    Because of this, the PR runs use a version of openssl that supports -alpn and the test runs fine there. The master autest runs, however, run the system's openssl version, which is too old to support -alpn.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions