[JIRA] (OVIRT-1724) after build failure "unable to find valid certification path to requested target"

Barak Korren (oVirt JIRA) jira at ovirt-jira.atlassian.net
Sun Oct 29 08:11:43 UTC 2017


    [ https://ovirt-jira.atlassian.net/browse/OVIRT-1724?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=35233#comment-35233 ] 

Barak Korren commented on OVIRT-1724:
-------------------------------------

[~danken at redhat.com] when you debug build results, either look directly at the '{{build-artifacts.sh}}' log which is included in the build artifacts under '{{mock_logs}}' or, if looking at the job output console, always look for the failure *above* the lines that look like this:

{code}
07:04:00 #######################################################################
07:04:00 #                                                                     #
07:04:00 #                         ARTIFACT COLLECTION                         #
07:04:00 #                                                                     #
07:04:00 #######################################################################
{code}

Anything that shows up beneath those lines typically has little to do with the job reported results.

The real reason for failure can be see in this log file:
http://jenkins.ovirt.org/job/vdsm_master_build-artifacts-on-demand-el7-x86_64/574/artifact/exported-artifacts/mock_logs/mocker-epel-7-x86_64.el7.build-artifacts.sh/build-artifacts.sh.log

Here are the last few log lines that seem to indicate what the real failure is:
{code}
Now type 'make' to compile vdsm.
+ make
Makefile:987: warning: overriding recipe for target `check-recursive'
Makefile:509: warning: ignoring old recipe for target `check-recursive'
Making all in contrib
make[1]: Entering directory `/home/jenkins/workspace/vdsm_master_build-artifacts-on-demand-el7-x86_64/vdsm/contrib'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/jenkins/workspace/vdsm_master_build-artifacts-on-demand-el7-x86_64/vdsm/contrib'
Making all in helpers
make[1]: Entering directory `/home/jenkins/workspace/vdsm_master_build-artifacts-on-demand-el7-x86_64/vdsm/helpers'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/jenkins/workspace/vdsm_master_build-artifacts-on-demand-el7-x86_64/vdsm/helpers'
Making all in init
make[1]: Entering directory `/home/jenkins/workspace/vdsm_master_build-artifacts-on-demand-el7-x86_64/vdsm/init'
Making all in systemd
make[2]: Entering directory `/home/jenkins/workspace/vdsm_master_build-artifacts-on-demand-el7-x86_64/vdsm/init/systemd'
  SED vdsm-tmpfiles.d.conf
make[2]: Leaving directory `/home/jenkins/workspace/vdsm_master_build-artifacts-on-demand-el7-x86_64/vdsm/init/systemd'
make[2]: Entering directory `/home/jenkins/workspace/vdsm_master_build-artifacts-on-demand-el7-x86_64/vdsm/init'
  SED vdsmd_init_common.sh
make[2]: Leaving directory `/home/jenkins/workspace/vdsm_master_build-artifacts-on-demand-el7-x86_64/vdsm/init'
make[1]: Leaving directory `/home/jenkins/workspace/vdsm_master_build-artifacts-on-demand-el7-x86_64/vdsm/init'
Making all in lib
make[1]: Entering directory `/home/jenkins/workspace/vdsm_master_build-artifacts-on-demand-el7-x86_64/vdsm/lib'
Making all in sos
make[2]: Entering directory `/home/jenkins/workspace/vdsm_master_build-artifacts-on-demand-el7-x86_64/vdsm/lib/sos'
  SED vdsm.py
make[2]: Leaving directory `/home/jenkins/workspace/vdsm_master_build-artifacts-on-demand-el7-x86_64/vdsm/lib/sos'
Making all in vdsm
make[2]: Entering directory `/home/jenkins/workspace/vdsm_master_build-artifacts-on-demand-el7-x86_64/vdsm/lib/vdsm'
Making all in api
make[3]: Entering directory `/home/jenkins/workspace/vdsm_master_build-artifacts-on-demand-el7-x86_64/vdsm/lib/vdsm/api'
  Generate vdsm-api.html
chmod u+w .
PYTHONPATH=./../../:./../../vdsm \
	./schema_to_html.py vdsm-api.yml vdsm-api.html
Traceback (most recent call last):
  File "./schema_to_html.py", line 29, in <module>
    from vdsm.api import vdsmapi
  File "/home/jenkins/workspace/vdsm_master_build-artifacts-on-demand-el7-x86_64/vdsm/lib/vdsm/api/vdsmapi.py", line 28, in <module>
    from vdsm import utils
  File "/home/jenkins/workspace/vdsm_master_build-artifacts-on-demand-el7-x86_64/vdsm/lib/vdsm/utils.py", line 47, in <module>
    from vdsm.common.compat import pickle
  File "/home/jenkins/workspace/vdsm_master_build-artifacts-on-demand-el7-x86_64/vdsm/lib/vdsm/common/compat.py", line 86, in <module>
    import subprocess32 as subprocess
ImportError: No module named subprocess32
make[3]: *** [vdsm-api.html] Error 1
make[3]: Leaving directory `/home/jenkins/workspace/vdsm_master_build-artifacts-on-demand-el7-x86_64/vdsm/lib/vdsm/api'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/jenkins/workspace/vdsm_master_build-artifacts-on-demand-el7-x86_64/vdsm/lib/vdsm'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/jenkins/workspace/vdsm_master_build-artifacts-on-demand-el7-x86_64/vdsm/lib'
make: *** [all-recursive] Error 1
Took 18 seconds
{code}

[~danken at redhat.com] please indicate that you have enough information to debug the issue further and that we can close this ticket.

> after build failure "unable to find valid certification path to requested target"
> ---------------------------------------------------------------------------------
>
>                 Key: OVIRT-1724
>                 URL: https://ovirt-jira.atlassian.net/browse/OVIRT-1724
>             Project: oVirt - virtualization made easy
>          Issue Type: By-EMAIL
>            Reporter: danken
>            Assignee: infra
>
> I did not look much into it, but my attempt to build vdsm has failed
> on http://jenkins.ovirt.org/job/vdsm_master_build-artifacts-on-demand-el7-x86_64/574/console
> The failure was followed by a failure to report the failure,
> 07:04:02 Recording test results
> 07:04:02 [vdsm_master_build-artifacts-on-demand-el7-x86_64] $
> /bin/bash -xe /tmp/CommandInterpreterCondition6048274157714218756.sh
> 07:04:02 + find exported-artifacts/find-bugs/ -name '*.xml'
> 07:04:02 + grep -e '.*'
> 07:04:02 find: 'exported-artifacts/find-bugs/': No such file or directory
> 07:04:02 Run condition [Execute Shell] preventing perform for step
> [[Publish FindBugs analysis results]]
> 07:04:02 Notifying endpoint with url
> 'https://ovirt-ovirt-engine.getbadges.io/api/app/webhook/66f43bb2-6b98-4aab-8d1a-7acca6704dab'
> 07:04:03 ERROR: Failed to notify endpoint with url
> 'https://ovirt-ovirt-engine.getbadges.io/api/app/webhook/66f43bb2-6b98-4aab-8d1a-7acca6704dab'
> 07:04:03 javax.net.ssl.SSLHandshakeException:
> sun.security.validator.ValidatorException: PKIX path building failed:
> sun.security.provider.certpath.SunCertPathBuilderException: unable to
> find valid certification path to requested target
> 07:04:03 at sun.security.ssl.Alerts.getSSLException(Alerts.java:192)
> 07:04:03 at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1959)
> 07:04:03 at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:302)
> 07:04:03 at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:296)
> 07:04:03 at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1514)
> 07:04:03 at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:216)
> 07:04:03 at sun.security.ssl.Handshaker.processLoop(Handshaker.java:1026)
> 07:04:03 at sun.security.ssl.Handshaker.process_record(Handshaker.java:961)
> 07:04:03 at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1072)
> 07:04:03 at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1385)
> 07:04:03 at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1413)
> 07:04:03 at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1397)
> 07:04:03 at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:559)
> 07:04:03 at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185)
> 07:04:03 at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:153)
> 07:04:03 at com.tikal.hudson.plugins.notification.Protocol$3.send(Protocol.java:90)
> 07:04:03 at com.tikal.hudson.plugins.notification.Phase.handle(Phase.java:66)
> 07:04:03 at com.tikal.hudson.plugins.notification.JobListener.onCompleted(JobListener.java:39)
> 07:04:03 at hudson.model.listeners.RunListener.fireCompleted(RunListener.java:211)
> 07:04:03 at hudson.model.Run.execute(Run.java:1782)
> 07:04:03 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
> 07:04:03 at hudson.model.ResourceController.execute(ResourceController.java:97)
> 07:04:03 at hudson.model.Executor.run(Executor.java:421)
> 07:04:03 Caused by: sun.security.validator.ValidatorException: PKIX
> path building failed:
> sun.security.provider.certpath.SunCertPathBuilderException: unable to
> find valid certification path to requested target
> 07:04:03 at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:397)
> 07:04:03 at sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:302)
> 07:04:03 at sun.security.validator.Validator.validate(Validator.java:260)
> 07:04:03 at sun.security.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:324)
> 07:04:03 at sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:229)
> 07:04:03 at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:124)
> 07:04:03 at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1496)
> 07:04:03 ... 18 more
> 07:04:03 Caused by:
> sun.security.provider.certpath.SunCertPathBuilderException: unable to
> find valid certification path to requested target
> 07:04:03 at sun.security.provider.certpath.SunCertPathBuilder.build(SunCertPathBuilder.java:141)
> 07:04:03 at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:126)
> 07:04:03 at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:280)
> 07:04:03 at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:392)
> 07:04:03 ... 24 more
> 07:04:03 Failed to notify endpoint with url
> 'https://ovirt-ovirt-engine.getbadges.io/api/app/webhook/66f43bb2-6b98-4aab-8d1a-7acca6704dab'
> - javax.net.ssl.SSLHandshakeException:
> sun.security.validator.ValidatorException: PKIX path building failed:
> sun.security.provider.certpath.SunCertPathBuilderException: unable to
> find valid certification path to requested target
> 07:04:03 Finished: FAILURE



--
This message was sent by Atlassian Jira
(v1001.0.0-SNAPSHOT#100070)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ovirt.org/pipermail/infra/attachments/20171029/c9f1551f/attachment-0001.html>


More information about the Infra mailing list