Sorry for the late reply guys, I'll update the certificates and update the tests.

-Syed



On Tue 21 Oct 2014 07:28:03 PM EDT, Mike Tutkowski wrote:
Thanks, Frank!

On Tue, Oct 21, 2014 at 5:20 PM, Frank Zhang <frank.zh...@citrix.com> wrote:

I updated three certificated and disabled 4 cases that I cannot figure out
the test logic.
The patch has been pushed to master; the build is working now.
I will send a mail to original author for those 4 disabled cases.

-----Original Message-----
From: Mike Tutkowski [mailto:mike.tutkow...@solidfire.com]
Sent: Tuesday, October 21, 2014 3:39 PM
To: dev@cloudstack.apache.org
Subject: Re: Certificate expired

I see - thanks.

On Tue, Oct 21, 2014 at 4:36 PM, Frank Zhang <frank.zh...@citrix.com>
wrote:

I made a new certificate, but there are lots of unit cases using
different CAs; some of them use correct file; some of them use
incorrect file.
It takes time to understand what files need to be updated.

-----Original Message-----
From: Mike Tutkowski [mailto:mike.tutkow...@solidfire.com]
Sent: Tuesday, October 21, 2014 3:20 PM
To: dev@cloudstack.apache.org
Subject: Re: Certificate expired

No, sorry...I didn't clarify. I thought you were saying this was all
fixed in code,
so I updated and tried to re-build the codebase:

mvn -P developer,systemvm clean install

But it failed on the same test.

On Tue, Oct 21, 2014 at 4:17 PM, Frank Zhang
<frank.zh...@citrix.com>
wrote:

What did you update? You replace the file with you manually built
certificate?

-----Original Message-----
From: Mike Tutkowski [mailto:mike.tutkow...@solidfire.com]
Sent: Tuesday, October 21, 2014 3:16 PM
To: dev@cloudstack.apache.org
Subject: Re: Certificate expired

Interesting...I just updated master and tried to re-build, but
that test
failed
again.

On Tue, Oct 21, 2014 at 4:12 PM, Frank Zhang
<frank.zh...@citrix.com>
wrote:

I met the error too.
It's caused by file
./server/test/resources/certs/rsa_self_signed.crt
which is expired today.
I thought we need to replace it with a new one

commit 0076307863e9155273d9e4c14282de429388c9e9
Author: Syed <sah...@cloudops.com>
Date:   Wed Nov 6 15:08:42 2013 -0500

     Squashed merge of Ssl Termination feature

     Bug: https://issues.apache.org/jira/browse/CLOUDSTACK-4821
     FS:
https://cwiki.apache.org/confluence/display/CLOUDSTACK/SSL+Ter
mina
tion
+Support

     This patch implements the SSL offload feature for
loadbalancers
     and includes the implementaion for this to work with
Netscaler.

     The following are the new API's that this patch adds

     uploadSslCert
     deleteSslCert
     listSslCert
     assignCertToLoadBalancer
     removeCertFromLoadBalancer

     Unit tests are also included in the patch.

-----Original Message-----
From: Mike Tutkowski [mailto:mike.tutkow...@solidfire.com]
Sent: Tuesday, October 21, 2014 1:09 PM
To: dev@cloudstack.apache.org
Subject: Certificate expired

Hi,

I just started getting this test-run error message on two of
my
CloudStack dev
boxes today (below).

I don't recall sign-signing a certificate, but perhaps I
just
forgot.

Can someone give me the context around this error?

Thanks!

Results :



--------------------------------------------------------------
----
----
---------

Test set: org.apache.cloudstack.network.lb.CertServiceTest


--------------------------------------------------------------
----
----
---------

Tests run: 15, Failures: 2, Errors: 2, Skipped: 4, Time
elapsed:
0.538
sec <<<
FAILURE!


runUploadSslCertBadkeyAlgo(org.apache.cloudstack.network.lb.Ce
rtSe
rvic
eTest)
  Time elapsed: 0.128 sec  <<< FAILURE!

java.lang.AssertionError

at org.junit.Assert.fail(Assert.java:86)

at org.junit.Assert.assertTrue(Assert.java:41)

at org.junit.Assert.assertTrue(Assert.java:52)

at

org.apache.cloudstack.network.lb.CertServiceTest.runUploadSslC
ertB
adke
yAlgo
(CertServiceTest.java:539)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)

at







sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
57)

at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
thod
Acce
ssorI
mpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:606)

at
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(
Fram
ewor
kMe
thod.java:47)

at







org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:
12)

at
org.junit.runners.model.FrameworkMethod.invokeExplosively(Fr
amew
orkM
eth
od.java:44)

at

org.junit.internal.runners.statements.InvokeMethod.evaluate(In
voke
Meth
od.jav
a:17)

at

org.junit.internal.runners.statements.RunBefores.evaluate(RunB
efor
es.j
ava:26)

at

org.junit.internal.runners.statements.RunAfters.evaluate(RunAf
ters
.jav
a:27)

at
org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271
)

at

org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4C
lass
Runn
er.java
:70)

at

org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4C
lass
Runn
er.java
:50)

at
org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)

at
org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:
63)

at
org.junit.runners.ParentRunner.runChildren(ParentRunner.java
:236
)

at
org.junit.runners.ParentRunner.access$000(ParentRunner.java:
53)

at
org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:
229)

at org.junit.runners.ParentRunner.run(ParentRunner.java:309)

at

org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4
Prov
ider
.java:2
36)

at

org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet
(JUn
it4P
rovider
.java:134)

at


org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.
java:11
3)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)

at







sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
57)

at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
thod
Acce
ssorI
mpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:606)

at

org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWit
hArr
ay(R
eflecti
onUtils.java:189)

at

org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy
.inv
oke(
Provi
derFactory.java:165)

at

org.apache.maven.surefire.booter.ProviderFactory.invokeProvide
r(Pr
ovid
erFact
ory.java:85)

at

org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProce
ss(F
orke
dBoot
er.java:103)

at
org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBoote
r.ja
va:7
4)


runUploadSslCertBadkeyPair(org.apache.cloudstack.network.lb.Ce
rtSe
rvic
eTest)
  Time elapsed: 0.01 sec  <<< FAILURE!

java.lang.AssertionError

at org.junit.Assert.fail(Assert.java:86)

at org.junit.Assert.assertTrue(Assert.java:41)

at org.junit.Assert.assertTrue(Assert.java:52)

at

org.apache.cloudstack.network.lb.CertServiceTest.runUploadSslC
ertB
adke
yPair(
CertServiceTest.java:495)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)

at







sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
57)

at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
thod
Acce
ssorI
mpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:606)

at
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(
Fram
ewor
kMe
thod.java:47)

at







org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:
12)

at
org.junit.runners.model.FrameworkMethod.invokeExplosively(Fr
amew
orkM
eth
od.java:44)

at

org.junit.internal.runners.statements.InvokeMethod.evaluate(In
voke
Meth
od.jav
a:17)

at

org.junit.internal.runners.statements.RunBefores.evaluate(RunB
efor
es.j
ava:26)

at

org.junit.internal.runners.statements.RunAfters.evaluate(RunAf
ters
.jav
a:27)

at
org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271
)

at

org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4C
lass
Runn
er.java
:70)

at

org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4C
lass
Runn
er.java
:50)

at
org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)

at
org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:
63)

at
org.junit.runners.ParentRunner.runChildren(ParentRunner.java
:236
)

at
org.junit.runners.ParentRunner.access$000(ParentRunner.java:
53)

at
org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:
229)

at org.junit.runners.ParentRunner.run(ParentRunner.java:309)

at

org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4
Prov
ider
.java:2
36)

at

org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet
(JUn
it4P
rovider
.java:134)

at


org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.
java:11
3)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)

at







sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
57)

at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
thod
Acce
ssorI
mpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:606)

at

org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWit
hArr
ay(R
eflecti
onUtils.java:189)

at

org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy
.inv
oke(
Provi
derFactory.java:165)

at

org.apache.maven.surefire.booter.ProviderFactory.invokeProvide
r(Pr
ovid
erFact
ory.java:85)

at

org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProce
ss(F
orke
dBoot
er.java:103)

at
org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBoote
r.ja
va:7
4)


runUploadSslCertSelfSignedNoPassword(
org.apache.cloudstack.network.lb.
Cert
ServiceTest)
  Time elapsed: 0.008 sec  <<< ERROR!

com.cloud.utils.exception.CloudRuntimeException: Error
parsing
certificate
data Certificate expired or not valid

at

org.apache.cloudstack.network.lb.CertServiceImpl.uploadSslCert
(Cer
tSer
viceIm
pl.java:145)

at

org.apache.cloudstack.network.lb.CertServiceTest.runUploadSslC
ertS
elfS
ignedN
oPassword(CertServiceTest.java:242)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)

at







sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
57)

at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
thod
Acce
ssorI
mpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:606)

at
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(
Fram
ewor
kMe
thod.java:47)

at







org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:
12)

at
org.junit.runners.model.FrameworkMethod.invokeExplosively(Fr
amew
orkM
eth
od.java:44)

at

org.junit.internal.runners.statements.InvokeMethod.evaluate(In
voke
Meth
od.jav
a:17)

at

org.junit.internal.runners.statements.RunBefores.evaluate(RunB
efor
es.j
ava:26)

at

org.junit.internal.runners.statements.RunAfters.evaluate(RunAf
ters
.jav
a:27)

at
org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271
)

at

org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4C
lass
Runn
er.java
:70)

at

org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4C
lass
Runn
er.java
:50)

at
org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)

at
org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:
63)

at
org.junit.runners.ParentRunner.runChildren(ParentRunner.java
:236
)

at
org.junit.runners.ParentRunner.access$000(ParentRunner.java:
53)

at
org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:
229)

at org.junit.runners.ParentRunner.run(ParentRunner.java:309)

at

org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4
Prov
ider
.java:2
36)

at

org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet
(JUn
it4P
rovider
.java:134)

at


org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.
java:11
3)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)

at







sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
57)

at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
thod
Acce
ssorI
mpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:606)

at

org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWit
hArr
ay(R
eflecti
onUtils.java:189)

at

org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy
.inv
oke(
Provi
derFactory.java:165)

at

org.apache.maven.surefire.booter.ProviderFactory.invokeProvide
r(Pr
ovid
erFact
ory.java:85)

at

org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProce
ss(F
orke
dBoot
er.java:103)

at
org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBoote
r.ja
va:7
4)


runUploadSslCertSelfSignedWithPassword(org.apache.cloudstack.n
etwo
rk.l
b.Ce
rtServiceTest)
  Time elapsed: 0.007 sec  <<< ERROR!

com.cloud.utils.exception.CloudRuntimeException: Error
parsing
certificate
data Certificate expired or not valid

at

org.apache.cloudstack.network.lb.CertServiceImpl.uploadSslCert
(Cer
tSer
viceIm
pl.java:145)

at

org.apache.cloudstack.network.lb.CertServiceTest.runUploadSslC
ertS
elfS
igned
WithPassword(CertServiceTest.java:196)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)

at







sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
57)

at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
thod
Acce
ssorI
mpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:606)

at
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(
Fram
ewor
kMe
thod.java:47)

at







org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:
12)

at
org.junit.runners.model.FrameworkMethod.invokeExplosively(Fr
amew
orkM
eth
od.java:44)

at

org.junit.internal.runners.statements.InvokeMethod.evaluate(In
voke
Meth
od.jav
a:17)

at

org.junit.internal.runners.statements.RunBefores.evaluate(RunB
efor
es.j
ava:26)

at

org.junit.internal.runners.statements.RunAfters.evaluate(RunAf
ters
.jav
a:27)

at
org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271
)

at

org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4C
lass
Runn
er.java
:70)

at

org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4C
lass
Runn
er.java
:50)

at
org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)

at
org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:
63)

at
org.junit.runners.ParentRunner.runChildren(ParentRunner.java
:236
)

at
org.junit.runners.ParentRunner.access$000(ParentRunner.java:
53)

at
org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:
229)

at org.junit.runners.ParentRunner.run(ParentRunner.java:309)

at

org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4
Prov
ider
.java:2
36)

at

org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet
(JUn
it4P
rovider
.java:134)

at


org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.
java:11
3)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)

at







sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
57)

at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
thod
Acce
ssorI
mpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:606)

at

org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWit
hArr
ay(R
eflecti
onUtils.java:189)

at

org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy
.inv
oke(
Provi
derFactory.java:165)

at

org.apache.maven.surefire.booter.ProviderFactory.invokeProvide
r(Pr
ovid
erFact
ory.java:85)

at

org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProce
ss(F
orke
dBoot
er.java:103)

at
org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBoote
r.ja
va:7
4)



--
*Mike Tutkowski*
*Senior CloudStack Developer, SolidFire Inc.*
e: mike.tutkow...@solidfire.com
o: 303.746.7302
Advancing the way the world uses the cloud
<http://secure-web.cisco.com/14BYHh5KJ_T-fjNdBL5LvaB6jg7O6Z2
Ifa1
LqnC

mRXpU1ageqYFyiwNbIRaqIs7ssrWeonn1ev3_vOGjTV3iEkrrTBKF0OYzB-
o8YInNuoU
qKMVTxavWPDuPVGvbHMLW7KMUAEUA-
RujZYqDY5MihVg/http%3A%2F%2Fsecure-



web.cisco.com/1ruJio12fSWz5FF4LAIlNbLiqOeMYoOcheBBhmyQ8zxI1HURXzIIls



girAYkHXb_6SQ7OFPML5NU2ubphrzOBY7l0lwMszY19NNcQZQ0jytMDRnfyv-



DZEf5MkqAEWEYk_aeP0xCxiklZhzW5FVVpIEnNQHcJA17XZtq35CO5JhA/http%3

A%2F%2Fsolidfire.com%2Fsolution%2Foverview%2F%3Fvideo%3Dplay>*™*




--
*Mike Tutkowski*
*Senior CloudStack Developer, SolidFire Inc.*
e: mike.tutkow...@solidfire.com
o: 303.746.7302
Advancing the way the world uses the cloud
<http://secure-web.cisco.com/1Ncy4JI4Mrd3jSWThJEiqX5XeJpxkxF9H-
MOgpqcyiUFYDkL8nDBYYCTE431ko0t2iaB--


Aspc1CaR_4YNehHRYgviGokKN58dhv_eJpzdxHFSrOoSOXQCrFcmPxbSI3j0V3YQ
Oz-iK9-9Mv-


CcYNrrdRZv5lKt94aFNO6J1C8ZI/http%3A%2F%2Fsolidfire.com%2Fsolution%2F
o
verview%2F%3Fvideo%3Dplay>*™*




--
*Mike Tutkowski*
*Senior CloudStack Developer, SolidFire Inc.*
e: mike.tutkow...@solidfire.com
o: 303.746.7302
Advancing the way the world uses the cloud
<http://secure-web.cisco.com/1YUJnxZ3ictV623_M6oZpIF-

ojWim8CLkYN5R3XCHcD1r3N6m9tV24gKt0Ocr_5dpN2Mh0AYUUrAuayeCIThrf6
b28Cu6UdL5FmugyLj-7SjVx6sI-

c5msusheBH_p2ZP4oTS8cDvhATc7RSCDm_bjUT69kOy8c6Y9DiUUeJ0CWo/http
%3A%2F%2Fsolidfire.com%2Fsolution%2Foverview%2F%3Fvideo%3Dplay>*
™*




--
*Mike Tutkowski*
*Senior CloudStack Developer, SolidFire Inc.*
e: mike.tutkow...@solidfire.com
o: 303.746.7302
Advancing the way the world uses the cloud
<http://secure-web.cisco.com/1QsItG_4rSFkPj_iBEsh3IOeV3hbPNLBtCVXG_-
BftxrJmev1lh49JL6rMI9dN56mQpueHDeoJROCM5_crR6sWOBF70K5FkH8ReYC
Q8C34r1AiRpA0KCVIxOfkdpLcXUieCgZyWLEPz8zMpwEivyRBmX8LxjjFqqt_YS08i
_qigM/http%3A%2F%2Fsolidfire.com%2Fsolution%2Foverview%2F%3Fvideo%3D
play>*™*






Reply via email to