You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by Francois Gaudreault <fg...@cloudops.com> on 2013/03/21 21:29:43 UTC

Latest master build fails

Hi,

The master branch won't compile, and fails on the SNMP Trap module 
(SnmpTrapAppender test).  The error is :
  <failure message=" error snmpHelper list size not as expected 
expected:&lt;0&gt; but was:&lt;2&gt;" 
type="junit.framework.AssertionFailedError">junit.framework.AssertionFailedError: 
error snmpHelper list size not as expected expected:&lt;0&gt; but 
was:&lt;2&gt;

Thanks!

-- 
Francois Gaudreault
Architecte de Solution Cloud | Cloud Solutions Architect
fgaudreault@cloudops.com
514-629-6775
- - -
CloudOps
420 rue Guy
Montréal QC  H3J 1S6
www.cloudops.com
@CloudOps_


Re: Latest master build fails

Posted by Francois Gaudreault <fg...@cloudops.com>.
On my side I still cannot get pass the SNMP Alert test failure.  I ran the
test from the console using
/bin/sh -c cd /root/incubator-cloudstack/plugins/alert-handlers/snmp-alerts
&& /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.9.x86_64/jre/bin/java -jar
/root/incubator-cloudstack/plugins/alert-handlers/snmp-alerts/target/surefire/surefirebooter2029343003930782395.jar
/root/incubator-cloudstack/plugins/alert-handlers/snmp-alerts/target/surefire/surefire6891665004706534979tmp
/root/incubator-cloudstack/plugins/alert-handlers/snmp-alerts/target/surefire/surefire_467824344446886401383tmp

and this is what I get:

1,1,org.apache.maven.surefire.junit4.JUnit4Provider,org.apache.cloudstack.alert.snmp.SnmpTrapAppenderTest,null,null,null
5,1,org.apache.cloudstack.alert.snmp.SnmpTrapAppenderTest,appendTest(org.apache.cloudstack.alert.snmp.SnmpTrapAppenderTest),null,null,null
4,0001,log4j:ERROR  Error in crearting snmp object\u002C
eng-testing-cstack_master: eng-testing-cstack_master\n
8,1,org.apache.cloudstack.alert.snmp.SnmpTrapAppenderTest,appendTest(org.apache.cloudstack.alert.snmp.SnmpTrapAppenderTest),null,
error snmpHelper list size not as expected  expected:<0> but was:<2>,null,
error snmpHelper list size not as expected  expected:<0> but
was:<2>,junit.framework.AssertionFailedError:  error snmpHelper list size
not as expected  expected:<0> but was:<2>\n\tat
junit.framework.Assert.fail(Assert.java:50)\n\tat
junit.framework.Assert.failNotEquals(Assert.java:287)\n\tat
junit.framework.Assert.assertEquals(Assert.java:67)\n\tat
junit.framework.Assert.assertEquals(Assert.java:199)\n\tat
org.apache.cloudstack.alert.snmp.SnmpTrapAppenderTest.appendTest(SnmpTrapAppenderTest.java:44)\n\tat
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n\tat
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)\n\tat
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n\tat
java.lang.reflect.Method.invoke(Method.java:616)\n\tat
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45)\n\tat
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)\n\tat
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42)\n\tat
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)\n\tat
org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263)\n\tat
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:68)\n\tat
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47)\n\tat
org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)\n\tat
org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)\n\tat
org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)\n\tat
org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)\n\tat
org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)\n\tat
org.junit.runners.ParentRunner.run(ParentRunner.java:300)\n\tat
org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:236)\n\tat
org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:134)\n\tat
org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:113)\n\tat
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n\tat
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)\n\tat
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n\tat
java.lang.reflect.Method.invoke(Method.java:616)\n\tat
org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)\n\tat
org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)\n\tat
org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)\n\tat
org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:103)\n\tat
org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:74)\n
5,1,org.apache.cloudstack.alert.snmp.SnmpTrapAppenderTest,InvalidInputTest(org.apache.cloudstack.alert.snmp.SnmpTrapAppenderTest),null,null,null
4,0001,log4j:ERROR  size of ip addresses \u002C communities\u002C and ports
list doesn\'t match\u002C setting all to null\n
6,1,org.apache.cloudstack.alert.snmp.SnmpTrapAppenderTest,InvalidInputTest(org.apache.cloudstack.alert.snmp.SnmpTrapAppenderTest),null,null,null
5,1,org.apache.cloudstack.alert.snmp.SnmpTrapAppenderTest,InvalidIpInputTest(org.apache.cloudstack.alert.snmp.SnmpTrapAppenderTest),null,null,null
4,0001,log4j:ERROR  Invalid format for the IP Addresses or Ports parameter
\n
6,1,org.apache.cloudstack.alert.snmp.SnmpTrapAppenderTest,InvalidIpInputTest(org.apache.cloudstack.alert.snmp.SnmpTrapAppenderTest),null,null,null
5,1,org.apache.cloudstack.alert.snmp.SnmpTrapAppenderTest,InvalidPortInputTest(org.apache.cloudstack.alert.snmp.SnmpTrapAppenderTest),null,null,null
4,0001,log4j:ERROR  Invalid format for the IP Addresses or Ports parameter
\n
6,1,org.apache.cloudstack.alert.snmp.SnmpTrapAppenderTest,InvalidPortInputTest(org.apache.cloudstack.alert.snmp.SnmpTrapAppenderTest),null,null,null
5,1,org.apache.cloudstack.alert.snmp.SnmpTrapAppenderTest,mismatchListLengthInputTest(org.apache.cloudstack.alert.snmp.SnmpTrapAppenderTest),null,null,null
4,0001,log4j:ERROR  size of ip addresses \u002C communities\u002C and ports
list doesn\'t match\u002C setting all to null\n
6,1,org.apache.cloudstack.alert.snmp.SnmpTrapAppenderTest,mismatchListLengthInputTest(org.apache.cloudstack.alert.snmp.SnmpTrapAppenderTest),null,null,null
2,1,org.apache.maven.surefire.junit4.JUnit4Provider,org.apache.cloudstack.alert.snmp.SnmpTrapAppenderTest,null,null,null
1,1,org.apache.maven.surefire.junit4.JUnit4Provider,org.apache.cloudstack.alert.snmp.SnmpEnhancedPatternLayoutTest,null,null,null
5,1,org.apache.cloudstack.alert.snmp.SnmpEnhancedPatternLayoutTest,parseAlertTest(org.apache.cloudstack.alert.snmp.SnmpEnhancedPatternLayoutTest),null,null,null
6,1,org.apache.cloudstack.alert.snmp.SnmpEnhancedPatternLayoutTest,parseAlertTest(org.apache.cloudstack.alert.snmp.SnmpEnhancedPatternLayoutTest),null,null,null
5,1,org.apache.cloudstack.alert.snmp.SnmpEnhancedPatternLayoutTest,ParseAlertWithPairDelimeterInMessageTest(org.apache.cloudstack.alert.snmp.SnmpEnhancedPatternLayoutTest),null,null,null
6,1,org.apache.cloudstack.alert.snmp.SnmpEnhancedPatternLayoutTest,ParseAlertWithPairDelimeterInMessageTest(org.apache.cloudstack.alert.snmp.SnmpEnhancedPatternLayoutTest),null,null,null
5,1,org.apache.cloudstack.alert.snmp.SnmpEnhancedPatternLayoutTest,ParseAlertWithKeyValueDelimeterInMessageTest(org.apache.cloudstack.alert.snmp.SnmpEnhancedPatternLayoutTest),null,null,null
6,1,org.apache.cloudstack.alert.snmp.SnmpEnhancedPatternLayoutTest,ParseAlertWithKeyValueDelimeterInMessageTest(org.apache.cloudstack.alert.snmp.SnmpEnhancedPatternLayoutTest),null,null,null
5,1,org.apache.cloudstack.alert.snmp.SnmpEnhancedPatternLayoutTest,parseRandomTest(org.apache.cloudstack.alert.snmp.SnmpEnhancedPatternLayoutTest),null,null,null
6,1,org.apache.cloudstack.alert.snmp.SnmpEnhancedPatternLayoutTest,parseRandomTest(org.apache.cloudstack.alert.snmp.SnmpEnhancedPatternLayoutTest),null,null,null
2,1,org.apache.maven.surefire.junit4.JUnit4Provider,org.apache.cloudstack.alert.snmp.SnmpEnhancedPatternLayoutTest,null,null,null
Z,0,BYE!

Either the test is wrong, or something on my setup breaks it.  We tried on
another CentOS box, and we have the same issue.

Thanks!

Francois


On Mon, Mar 25, 2013 at 7:02 AM, Prasanna Santhanam <ts...@apache.org> wrote:

> On Fri, Mar 22, 2013 at 03:46:36PM -0700, Min Chen wrote:
> > Results :
> >
> > Failed tests:
> >
> testCreateVMFromSpecLegacy(com.cloud.hypervisor.kvm.resource.LibvirtComputi
> > ngResourceTest): expected:<...oport='yes' listen='[1.2.3.4']/>(..)
> >
> >
> testCreateVMFromSpec(com.cloud.hypervisor.kvm.resource.LibvirtComputingReso
> > urceTest): expected:<...oport='yes' listen='[1.2.3.4']/>(..)
> >
> *Fixed* these over the weekend.
>
> --
> Prasanna.,
>

Re: Latest master build fails

Posted by Prasanna Santhanam <ts...@apache.org>.
On Fri, Mar 22, 2013 at 03:46:36PM -0700, Min Chen wrote:
> Results :
> 
> Failed tests:   
> testCreateVMFromSpecLegacy(com.cloud.hypervisor.kvm.resource.LibvirtComputi
> ngResourceTest): expected:<...oport='yes' listen='[1.2.3.4']/>(..)
>   
> testCreateVMFromSpec(com.cloud.hypervisor.kvm.resource.LibvirtComputingReso
> urceTest): expected:<...oport='yes' listen='[1.2.3.4']/>(..)
> 
*Fixed* these over the weekend.

-- 
Prasanna.,

Re: Latest master build fails

Posted by Min Chen <mi...@citrix.com>.
I pulled latest master today, build also failed for me, but it failed at
running this unit test case (different from yours):

 T E S T S
-------------------------------------------------------
Running com.cloud.hypervisor.kvm.resource.LibvirtComputingResourceTest
Tests run: 2, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 0.148 sec
<<< FAILURE!
Running com.cloud.hypervisor.kvm.resource.LibvirtVifDriverTest
log4j:WARN No appenders could be found for logger
(com.cloud.hypervisor.kvm.resource.LibvirtComputingResource).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for
more info.
Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.234 sec
Running com.cloud.hypervisor.kvm.resource.LibvirtVMDefTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.005 sec

Results :

Failed tests:   
testCreateVMFromSpecLegacy(com.cloud.hypervisor.kvm.resource.LibvirtComputi
ngResourceTest): expected:<...oport='yes' listen='[1.2.3.4']/>(..)
  
testCreateVMFromSpec(com.cloud.hypervisor.kvm.resource.LibvirtComputingReso
urceTest): expected:<...oport='yes' listen='[1.2.3.4']/>(..)


Is this related to recent ML discussion "VNC listen address for KVM"?

Thanks
-min

On 3/22/13 7:58 AM, "Francois Gaudreault" <fg...@cloudops.com> wrote:

>I removed all the files, resync the repo, and still get the same error.
>
>Can it be related to my java version? I am using java 1.6.
>
>On 2013-03-21 5:45 PM, Min Chen wrote:
>> The command should be
>> mvn clean install -P awsapi,systemvm -Dnonoss
>>
>> I am not sure if you can use systemvm under -D.
>>
>> Thanks
>> -min
>>
>> On 3/21/13 2:10 PM, "Francois Gaudreault" <fg...@cloudops.com>
>>wrote:
>>
>>> On 2013-03-21 4:44 PM, Chip Childers wrote:
>>>> On Thu, Mar 21, 2013 at 04:29:43PM -0400, Francois Gaudreault wrote:
>>>>> Hi,
>>>>>
>>>>> The master branch won't compile, and fails on the SNMP Trap module
>>>>> (SnmpTrapAppender test).  The error is :
>>>>>    <failure message=" error snmpHelper list size not as expected
>>>>> expected:&lt;0&gt; but was:&lt;2&gt;"
>>>>> 
>>>>>type="junit.framework.AssertionFailedError">junit.framework.AssertionF
>>>>>ai
>>>>> ledError:
>>>>> error snmpHelper list size not as expected expected:&lt;0&gt; but
>>>>> was:&lt;2&gt;
>>>>>
>>>>> Thanks!
>>>> Try a new pull.  I just tested, and the build didn't have any errors.
>>>>
>>>> builds.a.o is showing clean builds too:
>>>> https://builds.apache.org/view/CloudStack/
>>>>
>>>> jenkins.cs.o is as well:
>>>> http://jenkins.cloudstack.org/view/master/
>>>> (excluding an RPM build issue)
>>>>
>>>>
>>> Still no go. I did a :
>>> git reset --hard HEAD
>>> git pull origin
>>>
>>> to make sure I was up to date and then I retried, still have the same
>>> error.  I used :
>>> mvn clean -P awsapi install -Dsystemvm,nonoss
>>>
>>> :S
>>>
>>> -- 
>>> Francois Gaudreault
>>> Architecte de Solution Cloud | Cloud Solutions Architect
>>> fgaudreault@cloudops.com
>>> 514-629-6775
>>> - - -
>>> CloudOps
>>> 420 rue Guy
>>> Montréal QC  H3J 1S6
>>> www.cloudops.com
>>> @CloudOps_
>>>
>
>
>-- 
>Francois Gaudreault
>Architecte de Solution Cloud | Cloud Solutions Architect
>fgaudreault@cloudops.com
>514-629-6775
>- - -
>CloudOps
>420 rue Guy
>Montréal QC  H3J 1S6
>www.cloudops.com
>@CloudOps_
>


Re: Latest master build fails

Posted by Francois Gaudreault <fg...@cloudops.com>.
I removed all the files, resync the repo, and still get the same error.

Can it be related to my java version? I am using java 1.6.

On 2013-03-21 5:45 PM, Min Chen wrote:
> The command should be
> mvn clean install -P awsapi,systemvm -Dnonoss
>
> I am not sure if you can use systemvm under -D.
>
> Thanks
> -min
>
> On 3/21/13 2:10 PM, "Francois Gaudreault" <fg...@cloudops.com> wrote:
>
>> On 2013-03-21 4:44 PM, Chip Childers wrote:
>>> On Thu, Mar 21, 2013 at 04:29:43PM -0400, Francois Gaudreault wrote:
>>>> Hi,
>>>>
>>>> The master branch won't compile, and fails on the SNMP Trap module
>>>> (SnmpTrapAppender test).  The error is :
>>>>    <failure message=" error snmpHelper list size not as expected
>>>> expected:&lt;0&gt; but was:&lt;2&gt;"
>>>> type="junit.framework.AssertionFailedError">junit.framework.AssertionFai
>>>> ledError:
>>>> error snmpHelper list size not as expected expected:&lt;0&gt; but
>>>> was:&lt;2&gt;
>>>>
>>>> Thanks!
>>> Try a new pull.  I just tested, and the build didn't have any errors.
>>>
>>> builds.a.o is showing clean builds too:
>>> https://builds.apache.org/view/CloudStack/
>>>
>>> jenkins.cs.o is as well:
>>> http://jenkins.cloudstack.org/view/master/
>>> (excluding an RPM build issue)
>>>
>>>
>> Still no go. I did a :
>> git reset --hard HEAD
>> git pull origin
>>
>> to make sure I was up to date and then I retried, still have the same
>> error.  I used :
>> mvn clean -P awsapi install -Dsystemvm,nonoss
>>
>> :S
>>
>> -- 
>> Francois Gaudreault
>> Architecte de Solution Cloud | Cloud Solutions Architect
>> fgaudreault@cloudops.com
>> 514-629-6775
>> - - -
>> CloudOps
>> 420 rue Guy
>> Montréal QC  H3J 1S6
>> www.cloudops.com
>> @CloudOps_
>>


-- 
Francois Gaudreault
Architecte de Solution Cloud | Cloud Solutions Architect
fgaudreault@cloudops.com
514-629-6775
- - -
CloudOps
420 rue Guy
Montréal QC  H3J 1S6
www.cloudops.com
@CloudOps_


Re: Latest master build fails

Posted by Min Chen <mi...@citrix.com>.
The command should be
mvn clean install -P awsapi,systemvm -Dnonoss

I am not sure if you can use systemvm under -D.

Thanks
-min

On 3/21/13 2:10 PM, "Francois Gaudreault" <fg...@cloudops.com> wrote:

>On 2013-03-21 4:44 PM, Chip Childers wrote:
>> On Thu, Mar 21, 2013 at 04:29:43PM -0400, Francois Gaudreault wrote:
>>> Hi,
>>>
>>> The master branch won't compile, and fails on the SNMP Trap module
>>> (SnmpTrapAppender test).  The error is :
>>>   <failure message=" error snmpHelper list size not as expected
>>> expected:&lt;0&gt; but was:&lt;2&gt;"
>>>type="junit.framework.AssertionFailedError">junit.framework.AssertionFai
>>>ledError:
>>> error snmpHelper list size not as expected expected:&lt;0&gt; but
>>> was:&lt;2&gt;
>>>
>>> Thanks!
>> Try a new pull.  I just tested, and the build didn't have any errors.
>>
>> builds.a.o is showing clean builds too:
>> https://builds.apache.org/view/CloudStack/
>>
>> jenkins.cs.o is as well:
>> http://jenkins.cloudstack.org/view/master/
>> (excluding an RPM build issue)
>>
>>
>Still no go. I did a :
>git reset --hard HEAD
>git pull origin
>
>to make sure I was up to date and then I retried, still have the same
>error.  I used :
>mvn clean -P awsapi install -Dsystemvm,nonoss
>
>:S
>
>-- 
>Francois Gaudreault
>Architecte de Solution Cloud | Cloud Solutions Architect
>fgaudreault@cloudops.com
>514-629-6775
>- - -
>CloudOps
>420 rue Guy
>Montréal QC  H3J 1S6
>www.cloudops.com
>@CloudOps_
>


Re: Latest master build fails

Posted by Francois Gaudreault <fg...@cloudops.com>.
On 2013-03-21 4:44 PM, Chip Childers wrote:
> On Thu, Mar 21, 2013 at 04:29:43PM -0400, Francois Gaudreault wrote:
>> Hi,
>>
>> The master branch won't compile, and fails on the SNMP Trap module
>> (SnmpTrapAppender test).  The error is :
>>   <failure message=" error snmpHelper list size not as expected
>> expected:&lt;0&gt; but was:&lt;2&gt;" type="junit.framework.AssertionFailedError">junit.framework.AssertionFailedError:
>> error snmpHelper list size not as expected expected:&lt;0&gt; but
>> was:&lt;2&gt;
>>
>> Thanks!
> Try a new pull.  I just tested, and the build didn't have any errors.
>
> builds.a.o is showing clean builds too:
> https://builds.apache.org/view/CloudStack/
>
> jenkins.cs.o is as well:
> http://jenkins.cloudstack.org/view/master/
> (excluding an RPM build issue)
>
>
Still no go. I did a :
git reset --hard HEAD
git pull origin

to make sure I was up to date and then I retried, still have the same 
error.  I used :
mvn clean -P awsapi install -Dsystemvm,nonoss

:S

-- 
Francois Gaudreault
Architecte de Solution Cloud | Cloud Solutions Architect
fgaudreault@cloudops.com
514-629-6775
- - -
CloudOps
420 rue Guy
Montréal QC  H3J 1S6
www.cloudops.com
@CloudOps_


Re: Latest master build fails

Posted by Chip Childers <ch...@sungard.com>.
On Thu, Mar 21, 2013 at 04:29:43PM -0400, Francois Gaudreault wrote:
> Hi,
> 
> The master branch won't compile, and fails on the SNMP Trap module
> (SnmpTrapAppender test).  The error is :
>  <failure message=" error snmpHelper list size not as expected
> expected:&lt;0&gt; but was:&lt;2&gt;" type="junit.framework.AssertionFailedError">junit.framework.AssertionFailedError:
> error snmpHelper list size not as expected expected:&lt;0&gt; but
> was:&lt;2&gt;
> 
> Thanks!

Try a new pull.  I just tested, and the build didn't have any errors.

builds.a.o is showing clean builds too:
https://builds.apache.org/view/CloudStack/

jenkins.cs.o is as well:
http://jenkins.cloudstack.org/view/master/
(excluding an RPM build issue)