cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nitin Mehta <Nitin.Me...@citrix.com>
Subject Re: Build failed in Jenkins: simulator-singlerun #458
Date Mon, 29 Sep 2014 16:56:59 GMT
Thanks Talluri. But why was Marvin init failing so many times ?
Will this not mask the issue ?

-Nitin

On 29/09/14 12:30 AM, "Srikanteswararao Talluri"
<srikanteswararao.talluri@citrix.com> wrote:

>Jenkins couldn¹t find .xml unit test report at the specified location
>while it tried to parse the result.  Reason for this is that job deletes
>the .xml file at the beginning of every run and since marvin init failed,
>it didn¹t regenerate the file. It could happen with failure any other
>stage of this job run.
>
>I have just fixed the job to  empty the xunit.xml file instead of deleting
>it at the start of every run.
>
>[xUnit] [INFO] - Starting to record.
>[xUnit] [INFO] - Processing JUnit
>[xUnit] [INFO] - [JUnit] - No test report file(s) were found with the
>pattern 'xunit.xml' relative to
>
>Thanks,
>~Talluri
>
>
>
>On 26/09/14 8:04 pm, "Nitin Mehta" <Nitin.Mehta@citrix.com> wrote:
>
>>Hugo/others - Any idea we keep getting this intermittent exception from
>>Jenkins and how can we fix it ?
>>Googling for NoFoundTestException didn't help much.
>>
>>Thanks,
>>-Nitin
>>
>>On 26/09/14 5:27 AM, "jenkins@cloudstack.org" <jenkins@cloudstack.org>
>>wrote:
>>
>>>See <http://jenkins.buildacloud.org/job/simulator-singlerun/458/changes>
>>>
>>>Changes:
>>>
>>>[sailaja.mada] Additional Guest OS support for vGPU Test Automation
>>>
>>>------------------------------------------
>>>[...truncated 8854 lines...]
>>>[INFO] Apache CloudStack Developer Mode .................. SUCCESS
>>>[4.938s]
>>>[INFO] Apache CloudStack Developer Tools ................. SUCCESS
>>>[2.403s]
>>>[INFO] Apache CloudStack apidocs ......................... SUCCESS
>>>[2:48.743s]
>>>[INFO] Apache CloudStack marvin .......................... SUCCESS
>>>[22.690s]
>>>[INFO] Apache CloudStack DevCloud ........................ SUCCESS
>>>[5.489s]
>>>[INFO] Apache CloudStack DevCloud-KVM .................... SUCCESS
>>>[2.166s]
>>>[INFO] 
>>>------------------------------------------------------------------------
>>>[INFO] BUILD SUCCESS
>>>[INFO] 
>>>------------------------------------------------------------------------
>>>[INFO] Total time: 12:57.949s (Wall Clock)
>>>[INFO] Finished at: Fri Sep 26 08:23:07 EDT 2014
>>>[INFO] Final Memory: 81M/427M
>>>[INFO] 
>>>------------------------------------------------------------------------
>>>[simulator-singlerun] $ mvn -P developer,simulator -Ddeploydb -pl
>>>developer
>>>[INFO] Scanning for projects...
>>>[INFO]          
>>>     
>>>[INFO] 
>>>------------------------------------------------------------------------
>>>[INFO] Building Apache CloudStack Developer Mode 4.5.0-SNAPSHOT
>>>[INFO] 
>>>------------------------------------------------------------------------
>>>[INFO] 
>>>[INFO] --- maven-checkstyle-plugin:2.11:check (cloudstack-checkstyle) @
>>>cloud-developer ---
>>>[INFO] Starting audit...
>>>Audit done.
>>>
>>>[INFO] 
>>>[INFO] --- properties-maven-plugin:1.0-alpha-2:read-project-properties
>>>(default) @ cloud-developer ---
>>>[WARNING] Ignoring missing properties file:
>>><http://jenkins.buildacloud.org/job/simulator-singlerun/ws/developer/../
>>>u
>>>t
>>>ils/conf/db.properties.override>
>>>[INFO] 
>>>[INFO] --- maven-remote-resources-plugin:1.3:process (default) @
>>>cloud-developer ---
>>>[INFO] 
>>>[INFO] --- maven-antrun-plugin:1.7:run (default) @ cloud-developer ---
>>>[INFO] Executing tasks
>>>
>>>main:
>>>[INFO] Executed tasks
>>>[INFO] 
>>>[INFO] >>> exec-maven-plugin:1.2.1:java (create-schema) @
>>>cloud-developer
>>>>>>
>>>[INFO] 
>>>[INFO] --- maven-checkstyle-plugin:2.11:check (cloudstack-checkstyle) @
>>>cloud-developer ---
>>>[INFO] Starting audit...
>>>Audit done.
>>>
>>>[INFO] 
>>>[INFO] <<< exec-maven-plugin:1.2.1:java (create-schema) @
>>>cloud-developer
>>><<<
>>>[INFO] 
>>>[INFO] --- exec-maven-plugin:1.2.1:java (create-schema) @
>>>cloud-developer
>>>---
>>>log4j:WARN No appenders could be found for logger
>>>(org.springframework.core.env.StandardEnvironment).
>>>log4j:WARN Please initialize the log4j system properly.
>>>log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for
>>>more info.
>>>========> WARNING: Provided file does not exist:
>>><http://jenkins.buildacloud.org/job/simulator-singlerun/ws/developer/../
>>>u
>>>t
>>>ils/conf/db.properties.override>
>>>========> WARNING: Provided file does not exist:
>>><http://jenkins.buildacloud.org/job/simulator-singlerun/ws/developer/dev
>>>e
>>>l
>>>oper-prefill.sql.override>
>>>========> Initializing database=cloud with host=localhost port=3306
>>>username=cloud password=cloud
>>>============> Running query: drop database if exists `cloud`
>>>============> Running query: create database `cloud`
>>>============> Running query: GRANT ALL ON cloud.* to 'cloud'@`localhost`
>>>identified by 'cloud'
>>>============> Running query: GRANT ALL ON cloud.* to 'cloud'@`%`
>>>identified by 'cloud'
>>>========> Initializing database=cloud_usage with host=localhost
>>>port=3306
>>>username=cloud password=cloud
>>>============> Running query: drop database if exists `cloud_usage`
>>>============> Running query: create database `cloud_usage`
>>>============> Running query: GRANT ALL ON cloud_usage.* to
>>>'cloud'@`localhost` identified by 'cloud'
>>>============> Running query: GRANT ALL ON cloud_usage.* to 'cloud'@`%`
>>>identified by 'cloud'
>>>========> Initializing database=cloudbridge with host=localhost
>>>port=3306
>>>username=cloud password=cloud
>>>============> Running query: drop database if exists `cloudbridge`
>>>============> Running query: create database `cloudbridge`
>>>============> Running query: GRANT ALL ON cloudbridge.* to
>>>'cloud'@`localhost` identified by 'cloud'
>>>============> Running query: GRANT ALL ON cloudbridge.* to 'cloud'@`%`
>>>identified by 'cloud'
>>>========> Processing SQL file at
>>><http://jenkins.buildacloud.org/job/simulator-singlerun/ws/developer/tar
>>>g
>>>e
>>>t/db/create-schema.sql>
>>>========> Processing SQL file at
>>><http://jenkins.buildacloud.org/job/simulator-singlerun/ws/developer/tar
>>>g
>>>e
>>>t/db/create-schema-premium.sql>
>>>========> Processing SQL file at
>>><http://jenkins.buildacloud.org/job/simulator-singlerun/ws/developer/tar
>>>g
>>>e
>>>t/db/templates.sql>
>>>========> Processing SQL file at
>>><http://jenkins.buildacloud.org/job/simulator-singlerun/ws/developer/tar
>>>g
>>>e
>>>t/db/cloudbridge_schema.sql>
>>>========> Processing SQL file at
>>><http://jenkins.buildacloud.org/job/simulator-singlerun/ws/developer/tar
>>>g
>>>e
>>>t/db/cloudbridge_multipart.sql>
>>>========> Processing SQL file at
>>><http://jenkins.buildacloud.org/job/simulator-singlerun/ws/developer/tar
>>>g
>>>e
>>>t/db/cloudbridge_index.sql>
>>>========> Processing SQL file at
>>><http://jenkins.buildacloud.org/job/simulator-singlerun/ws/developer/tar
>>>g
>>>e
>>>t/db/cloudbridge_multipart_alter.sql>
>>>========> Processing SQL file at
>>><http://jenkins.buildacloud.org/job/simulator-singlerun/ws/developer/tar
>>>g
>>>e
>>>t/db/cloudbridge_bucketpolicy.sql>
>>>========> Processing SQL file at
>>><http://jenkins.buildacloud.org/job/simulator-singlerun/ws/developer/tar
>>>g
>>>e
>>>t/db/cloudbridge_policy_alter.sql>
>>>========> Processing SQL file at
>>><http://jenkins.buildacloud.org/job/simulator-singlerun/ws/developer/tar
>>>g
>>>e
>>>t/db/cloudbridge_offering.sql>
>>>========> Processing SQL file at
>>><http://jenkins.buildacloud.org/job/simulator-singlerun/ws/developer/tar
>>>g
>>>e
>>>t/db/cloudbridge_offering_alter.sql>
>>>========> Processing SQL file at
>>><http://jenkins.buildacloud.org/job/simulator-singlerun/ws/developer/dev
>>>e
>>>l
>>>oper-prefill.sql>
>>>========> Processing upgrade: com.cloud.upgrade.DatabaseUpgradeChecker
>>>[INFO] 
>>>[INFO] --- maven-site-plugin:3.3:attach-descriptor (attach-descriptor) @
>>>cloud-developer ---
>>>[INFO] 
>>>[INFO] --- maven-install-plugin:2.3.1:install (default-install) @
>>>cloud-developer ---
>>>[INFO] Installing
>>><http://jenkins.buildacloud.org/job/simulator-singlerun/ws/developer/pom
>>>.
>>>x
>>>ml> to 
>>>/var/lib/jenkins/.m2/repository/org/apache/cloudstack/cloud-developer/4.
>>>5
>>>.
>>>0-SNAPSHOT/cloud-developer-4.5.0-SNAPSHOT.pom
>>>[INFO] 
>>>------------------------------------------------------------------------
>>>[INFO] BUILD SUCCESS
>>>[INFO] 
>>>------------------------------------------------------------------------
>>>[INFO] Total time: 2:05.387s
>>>[INFO] Finished at: Fri Sep 26 08:25:18 EDT 2014
>>>[INFO] Final Memory: 42M/187M
>>>[INFO] 
>>>------------------------------------------------------------------------
>>>[WARNING] The requested profile "simulator" could not be activated
>>>because it does not exist.
>>>[simulator-singlerun] $ mvn -P developer -pl developer
>>>-Ddeploydb-simulator
>>>[INFO] Scanning for projects...
>>>[INFO]          
>>>     
>>>[INFO] 
>>>------------------------------------------------------------------------
>>>[INFO] Building Apache CloudStack Developer Mode 4.5.0-SNAPSHOT
>>>[INFO] 
>>>------------------------------------------------------------------------
>>>[INFO] 
>>>[INFO] --- maven-checkstyle-plugin:2.11:check (cloudstack-checkstyle) @
>>>cloud-developer ---
>>>[INFO] Starting audit...
>>>Audit done.
>>>
>>>[INFO] 
>>>[INFO] --- properties-maven-plugin:1.0-alpha-2:read-project-properties
>>>(default) @ cloud-developer ---
>>>[WARNING] Ignoring missing properties file:
>>><http://jenkins.buildacloud.org/job/simulator-singlerun/ws/developer/../
>>>u
>>>t
>>>ils/conf/db.properties.override>
>>>[INFO] 
>>>[INFO] --- maven-remote-resources-plugin:1.3:process (default) @
>>>cloud-developer ---
>>>[INFO] 
>>>[INFO] --- maven-antrun-plugin:1.7:run (default) @ cloud-developer ---
>>>[INFO] Executing tasks
>>>
>>>main:
>>>[INFO] Executed tasks
>>>[INFO] 
>>>[INFO] >>> exec-maven-plugin:1.2.1:java (create-schema-simulator) @
>>>cloud-developer >>>
>>>[INFO] 
>>>[INFO] --- maven-checkstyle-plugin:2.11:check (cloudstack-checkstyle) @
>>>cloud-developer ---
>>>[INFO] Starting audit...
>>>Audit done.
>>>
>>>[INFO] 
>>>[INFO] <<< exec-maven-plugin:1.2.1:java (create-schema-simulator) @
>>>cloud-developer <<<
>>>[INFO] 
>>>[INFO] --- exec-maven-plugin:1.2.1:java (create-schema-simulator) @
>>>cloud-developer ---
>>>log4j:WARN No appenders could be found for logger
>>>(org.springframework.core.env.StandardEnvironment).
>>>log4j:WARN Please initialize the log4j system properly.
>>>log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for
>>>more info.
>>>========> WARNING: Provided file does not exist:
>>><http://jenkins.buildacloud.org/job/simulator-singlerun/ws/developer/../
>>>u
>>>t
>>>ils/conf/db.properties.override>
>>>========> Initializing database=simulator with host=localhost port=3306
>>>username=cloud password=cloud
>>>============> Running query: drop database if exists `simulator`
>>>============> Running query: create database `simulator`
>>>============> Running query: GRANT ALL ON simulator.* to
>>>'cloud'@`localhost` identified by 'cloud'
>>>============> Running query: GRANT ALL ON simulator.* to 'cloud'@`%`
>>>identified by 'cloud'
>>>========> Processing SQL file at
>>><http://jenkins.buildacloud.org/job/simulator-singlerun/ws/developer/tar
>>>g
>>>e
>>>t/db/create-schema-simulator.sql>
>>>========> Processing SQL file at
>>><http://jenkins.buildacloud.org/job/simulator-singlerun/ws/developer/tar
>>>g
>>>e
>>>t/db/templates.simulator.sql>
>>>========> Processing SQL file at
>>><http://jenkins.buildacloud.org/job/simulator-singlerun/ws/developer/tar
>>>g
>>>e
>>>t/db/hypervisor_capabilities.simulator.sql>
>>>========> Processing upgrade: com.cloud.upgrade.DatabaseUpgradeChecker
>>>[INFO] 
>>>[INFO] --- maven-site-plugin:3.3:attach-descriptor (attach-descriptor) @
>>>cloud-developer ---
>>>[INFO] 
>>>[INFO] --- maven-install-plugin:2.3.1:install (default-install) @
>>>cloud-developer ---
>>>[INFO] Installing
>>><http://jenkins.buildacloud.org/job/simulator-singlerun/ws/developer/pom
>>>.
>>>x
>>>ml> to 
>>>/var/lib/jenkins/.m2/repository/org/apache/cloudstack/cloud-developer/4.
>>>5
>>>.
>>>0-SNAPSHOT/cloud-developer-4.5.0-SNAPSHOT.pom
>>>[INFO] 
>>>------------------------------------------------------------------------
>>>[INFO] BUILD SUCCESS
>>>[INFO] 
>>>------------------------------------------------------------------------
>>>[INFO] Total time: 20.432s
>>>[INFO] Finished at: Fri Sep 26 08:25:42 EDT 2014
>>>[INFO] Final Memory: 44M/177M
>>>[INFO] 
>>>------------------------------------------------------------------------
>>>[simulator-singlerun] $ /bin/bash -x /tmp/hudson948838174392267758.sh
>>>+ grep -q Launcher
>>>+ jps -l
>>>+ rm -f xunit.xml
>>>+ rm -rf /tmp/MarvinLogs
>>>+ echo Check for initialization of the management server
>>>Check for initialization of the management server
>>>+ COUNTER=0
>>>+ SERVER_PID=18482
>>>+ '[' 0 -lt 44 ']'
>>>+ mvn -P systemvm,simulator -pl :cloud-client-ui jetty:run
>>>+ grep -q 'Management server node 127.0.0.1 is up' jetty-output.out
>>>+ break
>>>+ grep -q 'Management server node 127.0.0.1 is up' jetty-output.out
>>>+ echo Started OK pid 18482
>>>Started OK pid 18482
>>>+ sleep 20
>>>+ export 
>>>PYTHONPATH=<http://jenkins.buildacloud.org/job/simulator-singlerun/ws/to
>>>o
>>>l
>>>s/marvin>
>>>+ 
>>>PYTHONPATH=<http://jenkins.buildacloud.org/job/simulator-singlerun/ws/to
>>>o
>>>l
>>>s/marvin>
>>>+ python2.6 tools/marvin/marvin/deployDataCenter.py -i
>>>setup/dev/advanced.cfg
>>>/usr/lib/python2.6/site-packages/pycrypto-2.6-py2.6-linux-x86_64.egg/Cry
>>>p
>>>t
>>>o/Util/number.py:57: PowmInsecureWarning: Not using mpz_powm_sec.  You
>>>should rebuild using libgmp >= 5 to avoid timing attack vulnerability.
>>>  _warn("Not using mpz_powm_sec.  You should rebuild using libgmp >= 5
>>>to
>>>avoid timing attack vulnerability.", PowmInsecureWarning)
>>>
>>>==== Log Folder Path:
>>>/tmp//MarvinLogs//DeployDataCenter__Sep_26_2014_08_26_07_F2Z0HW. All
>>>logs
>>>will be available here ====
>>>
>>>=== TestClient Creation Failed===
>>>+ sleep 60
>>>+ /usr/local/bin/nosetests-2.7 -v --with-marvin
>>>--marvin-config=setup/dev/advanced.cfg --with-xunit
>>>--xunit-file=xunit.xml -a tags=advanced,required_hardware=false
>>>--zone=Sandbox-simulator --hypervisor=simulator -w
>>>test/integration/smoke
>>>
>>>==== Marvin Init Started ====
>>>
>>>=== Marvin Parse Config Successful ===
>>>
>>>=== Marvin Setting TestData Successful===
>>>
>>>==== Log Folder Path: /tmp//MarvinLogs//Sep_26_2014_08_27_10_TON7XB. All
>>>logs will be available here ====
>>>
>>>=== Marvin Init Logging Successful===
>>>
>>>==== Marvin Init Failed ====
>>>
>>>Starting Marvin Failed, exiting. Please Check
>>>+ mvn -P systemvm,simulator -pl :cloud-client-ui jetty:stop
>>>[INFO] Scanning for projects...
>>>[INFO]          
>>>     
>>>[INFO] 
>>>------------------------------------------------------------------------
>>>[INFO] Building Apache CloudStack Client UI 4.5.0-SNAPSHOT
>>>[INFO] 
>>>------------------------------------------------------------------------
>>>[INFO] 
>>>[INFO] --- maven-jetty-plugin:6.1.26:stop (default-cli) @
>>>cloud-client-ui
>>>---
>>>[INFO] Jetty not running!
>>>[INFO] 
>>>------------------------------------------------------------------------
>>>[INFO] BUILD SUCCESS
>>>[INFO] 
>>>------------------------------------------------------------------------
>>>[INFO] Total time: 6.173s
>>>[INFO] Finished at: Fri Sep 26 08:27:19 EDT 2014
>>>[INFO] Final Memory: 25M/153M
>>>[INFO] 
>>>------------------------------------------------------------------------
>>>+ sleep 10
>>>+ kill -KILL 18482
>>>+ echo CloudStack required hard kill
>>>CloudStack required hard kill
>>>[locks-and-latches] Releasing all the locks
>>>[locks-and-latches] All the locks released
>>>[xUnit] [INFO] - Starting to record.
>>>[xUnit] [INFO] - Processing JUnit
>>>[xUnit] [INFO] - [JUnit] - No test report file(s) were found with the
>>>pattern 'xunit.xml' relative to
>>>'<http://jenkins.buildacloud.org/job/simulator-singlerun/ws/'> for the
>>>testing framework 'JUnit'.  Did you enter a pattern relative to the
>>>correct directory?  Did you generate the result report(s) for 'JUnit'?
>>>[xUnit] [ERROR] - No test reports found for the metric 'JUnit' with the
>>>resolved pattern 'xunit.xml'. Configuration error?.
>>>ERROR: Publisher org.jenkinsci.plugins.xunit.XUnitPublisher aborted due
>>>to exception
>>>java.lang.InterruptedException:
>>>org.jenkinsci.plugins.xunit.NoFoundTestException
>>>	at hudson.FilePath.act(FilePath.java:905)
>>>	at hudson.FilePath.act(FilePath.java:887)
>>>	at 
>>>org.jenkinsci.plugins.xunit.XUnitProcessor.performTests(XUnitProcessor.j
>>>a
>>>v
>>>a:111)
>>>	at 
>>>org.jenkinsci.plugins.xunit.XUnitProcessor.performXUnit(XUnitProcessor.j
>>>a
>>>v
>>>a:54)
>>>	at 
>>>org.jenkinsci.plugins.xunit.XUnitPublisher.perform(XUnitPublisher.java:8
>>>8
>>>)
>>>	at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
>>>	at 
>>>hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.
>>>j
>>>a
>>>va:742)
>>>	at 
>>>hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(A
>>>b
>>>s
>>>tractBuild.java:714)
>>>	at hudson.model.Build$BuildExecution.post2(Build.java:183)
>>>	at 
>>>hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.jav
>>>a
>>>:
>>>663)
>>>	at hudson.model.Run.execute(Run.java:1713)
>>>	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
>>>	at hudson.model.ResourceController.execute(ResourceController.java:88)
>>>	at hudson.model.Executor.run(Executor.java:231)
>>>Caused by: hudson.FilePath$TunneledInterruptedException:
>>>org.jenkinsci.plugins.xunit.NoFoundTestException
>>>	at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2464)
>>>	at hudson.remoting.UserRequest.perform(UserRequest.java:118)
>>>	at hudson.remoting.UserRequest.perform(UserRequest.java:48)
>>>	at hudson.remoting.Request$2.run(Request.java:328)
>>>	at 
>>>hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorS
>>>e
>>>r
>>>vice.java:72)
>>>	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>>>	at 
>>>java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.jav
>>>a
>>>:
>>>1145)
>>>	at 
>>>java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.ja
>>>v
>>>a
>>>:615)
>>>	at java.lang.Thread.run(Thread.java:744)
>>>Caused by: org.jenkinsci.plugins.xunit.NoFoundTestException
>>>	at 
>>>org.jenkinsci.plugins.xunit.service.XUnitTransformer.invoke(XUnitTransfo
>>>r
>>>m
>>>er.java:144)
>>>	at 
>>>org.jenkinsci.plugins.xunit.service.XUnitTransformer.invoke(XUnitTransfo
>>>r
>>>m
>>>er.java:17)
>>>	at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2462)
>>>	... 8 more
>>
>

Mime
View raw message