Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mvn test access to my azure bucket not works #125

Closed
xpoveda opened this issue Oct 31, 2022 · 7 comments
Closed

mvn test access to my azure bucket not works #125

xpoveda opened this issue Oct 31, 2022 · 7 comments

Comments

@xpoveda
Copy link

xpoveda commented Oct 31, 2022

Hi everybody,

I have created a storage account in azure with "enabled all networks" in network section.
After I have created a container named "keycloakping" of type "Container" in storage account.

I have tested the acces from my PC to this container with "Azure storage explorer" and I have connected with SAS (shared access signature) and I can access to the container blob and put and get a file.

But when I test the azure ping not works the test from my cmd.

mvn install
ALL OK

but..

C:\misproyectos\jgroups-azure>mvn test -Dazure.account_name="MYACCOUNTSTORAGE" -Dazure.access_key="MYACCESKEY" -Dazure.container="keycloakping" -Djava.net.preferIPv4Stack=true

[INFO] Running org.jgroups.protocols.azure.AZURE_PINGConfigurationTest
SLF4J: No SLF4J providers were found.
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See https://www.slf4j.org/codes.html#noProviders for further details.
[INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.272 s - in org.jgroups.protocols.azure.AZURE_PINGConfigurationTest
[INFO] Running org.jgroups.protocols.azure.AZURE_PINGDiscoveryTest
[ERROR] Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 1.234 s <<< FAILURE! - in org.jgroups.protocols.azure.AZURE_PINGDiscoveryTest
[ERROR] testDiscoveryObscureClusterName(org.jgroups.protocols.azure.AZURE_PINGDiscoveryTest)  Time elapsed: 1.228 s  <<< ERROR!
java.lang.Exception: JGRP000002: unable to load protocol FD (either with relative - FD - or absolute - org.jgroups.protocols.FD - class name)
        at org.jgroups.util.Util.loadProtocolClass(Util.java:3093)
        at org.jgroups.stack.Configurator.createLayer(Configurator.java:183)
        at org.jgroups.stack.Configurator.createProtocols(Configurator.java:170)
        at org.jgroups.stack.Configurator.createProtocolsAndInitializeAttrs(Configurator.java:104)
        at org.jgroups.stack.Configurator.setupProtocolStack(Configurator.java:65)
        at org.jgroups.stack.Configurator.setupProtocolStack(Configurator.java:55)
        at org.jgroups.stack.ProtocolStack.setup(ProtocolStack.java:434)
        at org.jgroups.JChannel.init(JChannel.java:899)
        at org.jgroups.JChannel.<init>(JChannel.java:123)
        at org.jgroups.JChannel.<init>(JChannel.java:105)
        at org.jgroups.protocols.azure.AZURE_PINGDiscoveryTest.create(AZURE_PINGDiscoveryTest.java:84)
        at org.jgroups.protocols.azure.AZURE_PINGDiscoveryTest.discover(AZURE_PINGDiscoveryTest.java:63)
        at org.jgroups.protocols.azure.AZURE_PINGDiscoveryTest.testDiscoveryObscureClusterName(AZURE_PINGDiscoveryTest.java:55)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
        at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
        at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
        at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
        at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
        at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100)
        at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366)
        at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103)
        at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63)
        at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
        at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
        at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
        at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
        at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
        at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
        at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
        at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365)
        at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:273)
        at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238)
        at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159)
        at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384)
        at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345)
        at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126)
        at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418)

[ERROR] testDiscovery(org.jgroups.protocols.azure.AZURE_PINGDiscoveryTest)  Time elapsed: 0.004 s  <<< ERROR!
java.lang.Exception: JGRP000002: unable to load protocol FD (either with relative - FD - or absolute - org.jgroups.protocols.FD - class name)
        at org.jgroups.util.Util.loadProtocolClass(Util.java:3093)
        at org.jgroups.stack.Configurator.createLayer(Configurator.java:183)
        at org.jgroups.stack.Configurator.createProtocols(Configurator.java:170)
        at org.jgroups.stack.Configurator.createProtocolsAndInitializeAttrs(Configurator.java:104)
        at org.jgroups.stack.Configurator.setupProtocolStack(Configurator.java:65)
        at org.jgroups.stack.Configurator.setupProtocolStack(Configurator.java:55)
        at org.jgroups.stack.ProtocolStack.setup(ProtocolStack.java:434)
        at org.jgroups.JChannel.init(JChannel.java:899)
        at org.jgroups.JChannel.<init>(JChannel.java:123)
        at org.jgroups.JChannel.<init>(JChannel.java:105)
        at org.jgroups.protocols.azure.AZURE_PINGDiscoveryTest.create(AZURE_PINGDiscoveryTest.java:84)
        at org.jgroups.protocols.azure.AZURE_PINGDiscoveryTest.discover(AZURE_PINGDiscoveryTest.java:63)
        at org.jgroups.protocols.azure.AZURE_PINGDiscoveryTest.testDiscovery(AZURE_PINGDiscoveryTest.java:47)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
        at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
        at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
        at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
        at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
        at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100)
        at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366)
        at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103)
        at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63)
        at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
        at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
        at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
        at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
        at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
        at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
        at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
        at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365)
        at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:273)
        at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238)
        at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159)
        at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384)
        at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345)
        at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126)
        at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418)

[INFO]
[INFO] Results:
[INFO]
[ERROR] Errors:
[ERROR]   AZURE_PINGDiscoveryTest.testDiscovery:47->discover:63->create:84 »  JGRP000002...
[ERROR]   AZURE_PINGDiscoveryTest.testDiscoveryObscureClusterName:55->discover:63->create:84 »
[INFO]
[ERROR] Tests run: 5, Failures: 0, Errors: 2, Skipped: 0
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for JGroups Azure (parent) 2.0.3.Final-SNAPSHOT:
[INFO]
[INFO] JGroups Azure (parent) ............................. SUCCESS [  3.069 s]
[INFO] JGroups Azure: Protocols ........................... FAILURE [  9.429 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  12.785 s
[INFO] Finished at: 2022-10-31T14:11:52+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test (default-test) on project jgroups-azure: There are test failures.
[ERROR]
[ERROR] Please refer to C:\misproyectos\jgroups-azure\azure\target\surefire-reports for the individual test results.
[ERROR] Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <args> -rf :jgroups-azure

C:\misproyectos\jgroups-azure>

Thanks so much in advance.

Xavier.

@rhusar
Copy link
Member

rhusar commented Oct 31, 2022

@xpoveda I see the problem now, let me fix that.

@rhusar rhusar closed this as completed in 68a7625 Oct 31, 2022
rhusar added a commit that referenced this issue Oct 31, 2022
Fixes #125: Synchronize the test tcp-azure.xml stack with the default JGroups 5.2.x tcp stack.
@rhusar
Copy link
Member

rhusar commented Oct 31, 2022

@xpoveda Just merged the fix, please try again and let me know.

Basically, the test stack was no longer compatible with jgroups 5.2.x stack (since it removed FD protocol java class completely) - no protocol code changes are required. Though, I am having trouble with my azure account (or bucket) atm, so I wasn't able to run the tests just now.

@xpoveda
Copy link
Author

xpoveda commented Oct 31, 2022

Hi @rhusar thanks so much for your fast reply.

I pull new version and I have tested but appears same error.

C:\misproyectos\jgroups-azure>mvn test -Dazure.account_name="MYACCOUNTSTORAGE" -Dazure.access_key="MYACCESSKEY" -Dazure.container="keycloakping" -Djava.net.preferIPv4Stack=true

Perhaps is a problem with the azure.container data?
In the container property at documentation appears: Container to store ping information in. Must be valid DNS name

If my account storage is:

I have created a CNAME register in DNS "ping.HELLO.COM" to MYACCOUNTSTORAGE.blob.core.windows.net
And add in network of storage account a custom dns ping.HELLO.COM

I have tested with this 2 options

-Dazure.container="ping.HELLO.COM/keycloakping" 
-Dazure.container="ping.HELLO.COM" 

And same error....

[INFO] -------------------------------------------------------
[INFO]  T E S T S
[INFO] -------------------------------------------------------
[INFO] Running org.jgroups.protocols.azure.AZURE_PINGDiscoveryTest
SLF4J: No SLF4J providers were found.
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See https://www.slf4j.org/codes.html#noProviders for further details.
[ERROR] Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 4.238 s <<< FAILURE! - in org.jgroups.protocols.azure.AZURE_PINGDiscoveryTest
[ERROR] testDiscoveryObscureClusterName(org.jgroups.protocols.azure.AZURE_PINGDiscoveryTest)  Time elapsed: 4.122 s  <<< ERROR!
java.lang.Exception: JGRP000002: unable to load protocol FD (either with relative - FD - or absolute - org.jgroups.protocols.FD - class name)
        at org.jgroups.util.Util.loadProtocolClass(Util.java:3093)
        at org.jgroups.stack.Configurator.createLayer(Configurator.java:183)
        at org.jgroups.stack.Configurator.createProtocols(Configurator.java:170)
        at org.jgroups.stack.Configurator.createProtocolsAndInitializeAttrs(Configurator.java:104)
        at org.jgroups.stack.Configurator.setupProtocolStack(Configurator.java:65)
        at org.jgroups.stack.Configurator.setupProtocolStack(Configurator.java:55)
        at org.jgroups.stack.ProtocolStack.setup(ProtocolStack.java:434)
        at org.jgroups.JChannel.init(JChannel.java:899)
        at org.jgroups.JChannel.<init>(JChannel.java:123)
        at org.jgroups.JChannel.<init>(JChannel.java:105)
        at org.jgroups.protocols.azure.AZURE_PINGDiscoveryTest.create(AZURE_PINGDiscoveryTest.java:84)
        at org.jgroups.protocols.azure.AZURE_PINGDiscoveryTest.discover(AZURE_PINGDiscoveryTest.java:63)
        at org.jgroups.protocols.azure.AZURE_PINGDiscoveryTest.testDiscoveryObscureClusterName(AZURE_PINGDiscoveryTest.java:55)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
        at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
        at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
        at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
        at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
        at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100)
        at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366)
        at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103)
        at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63)
        at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
        at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
        at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
        at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
        at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
        at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
        at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
        at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365)
        at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:273)
        at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238)
        at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159)
        at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384)
        at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345)
        at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126)
        at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418)

[ERROR] testDiscovery(org.jgroups.protocols.azure.AZURE_PINGDiscoveryTest)  Time elapsed: 0 s  <<< ERROR!
java.lang.Exception: JGRP000002: unable to load protocol FD (either with relative - FD - or absolute - org.jgroups.protocols.FD - class name)
        at org.jgroups.util.Util.loadProtocolClass(Util.java:3093)
        at org.jgroups.stack.Configurator.createLayer(Configurator.java:183)
        at org.jgroups.stack.Configurator.createProtocols(Configurator.java:170)
        at org.jgroups.stack.Configurator.createProtocolsAndInitializeAttrs(Configurator.java:104)
        at org.jgroups.stack.Configurator.setupProtocolStack(Configurator.java:65)
        at org.jgroups.stack.Configurator.setupProtocolStack(Configurator.java:55)
        at org.jgroups.stack.ProtocolStack.setup(ProtocolStack.java:434)
        at org.jgroups.JChannel.init(JChannel.java:899)
        at org.jgroups.JChannel.<init>(JChannel.java:123)
        at org.jgroups.JChannel.<init>(JChannel.java:105)
        at org.jgroups.protocols.azure.AZURE_PINGDiscoveryTest.create(AZURE_PINGDiscoveryTest.java:84)
        at org.jgroups.protocols.azure.AZURE_PINGDiscoveryTest.discover(AZURE_PINGDiscoveryTest.java:63)
        at org.jgroups.protocols.azure.AZURE_PINGDiscoveryTest.testDiscovery(AZURE_PINGDiscoveryTest.java:47)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
        at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
        at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
        at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
        at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
        at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100)
        at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366)
        at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103)
        at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63)
        at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
        at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
        at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
        at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
        at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
        at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
        at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
        at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365)
        at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:273)
        at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238)
        at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159)
        at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384)
        at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345)
        at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126)
        at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418)

[INFO]
[INFO] Results:
[INFO]
[ERROR] Errors:
[ERROR]   AZURE_PINGDiscoveryTest.testDiscovery:47->discover:63->create:84 »  JGRP000002...
[ERROR]   AZURE_PINGDiscoveryTest.testDiscoveryObscureClusterName:55->discover:63->create:84 »
[INFO]
[ERROR] Tests run: 2, Failures: 0, Errors: 2, Skipped: 0
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for JGroups Azure (parent) 2.0.3.Final-SNAPSHOT:
[INFO]
[INFO] JGroups Azure (parent) ............................. SUCCESS [  2.840 s]
[INFO] JGroups Azure: Protocols ........................... FAILURE [  8.848 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  11.958 s
[INFO] Finished at: 2022-10-31T17:19:55+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test (default-test) on project jgroups-azure: There are test failures.
[ERROR]
[ERROR] Please refer to C:\misproyectos\jgroups-azure\azure\target\surefire-reports for the individual test results.
[ERROR] Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <args> -rf :jgroups-azure

Thanks so much for your help.

Xavier.

@rhusar
Copy link
Member

rhusar commented Nov 2, 2022

@xpoveda The issue is the same which indicates you haven't pulled the changes and/or rerun the build. Make sure to do something along the lines of:

git fetch upstream
git pull --rebase upstream master
mvn clean install 

I have updated the readme to add the clean goal to make sure people don't miss that – fixed by fd2be5f

@rhusar
Copy link
Member

rhusar commented Nov 2, 2022

@xpoveda Regarding the container name, perhaps the docs is not clear enough, but it's a name of the container like "ping", it's not a fully qualified domain name. So it's really a "subdomain" name, not a FQDN. So yes -Dazure.container="keycloakping" is correct.

@rhusar
Copy link
Member

rhusar commented Nov 2, 2022

Opened #128 to clarify the documentation for 'container'

@xpoveda
Copy link
Author

xpoveda commented Nov 2, 2022

Hi @rhusar, thanks so much for your help.

I have tested with repo updated and I have used "ping" as a container name.

Now , all tests are ok but discovery test is not.

[redhat@redhattest1 jgroups-azure]$ mvn test -Dazure.account_name="MYACCOUNTSTORAGE" -Dazure.access_key="MYACCESSKEY" -Dazure.container="ping" -Djava.net.preferIPv4Stack=true
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] JGroups Azure (parent)                                             [pom]
[INFO] JGroups Azure: Protocols                                           [jar]
[INFO]
[INFO] ---------------< org.jgroups.azure:jgroups-azure-parent >---------------
[INFO] Building JGroups Azure (parent) 2.0.3.Final-SNAPSHOT               [1/2]
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- maven-enforcer-plugin:3.0.0-M3:enforce (enforce-java-version) @ jgroups-azure-parent ---
[INFO]
[INFO] --- maven-enforcer-plugin:3.0.0-M3:enforce (enforce-maven-version) @ jgroups-azure-parent ---
[INFO]
[INFO] --- maven-enforcer-plugin:3.0.0-M3:enforce (enforce-java) @ jgroups-azure-parent ---
[INFO]
[INFO] --- buildnumber-maven-plugin:1.4:create (get-scm-revision) @ jgroups-azure-parent ---
[INFO] Executing: /bin/sh -c cd '/home/redhat/jgroups-azure' && 'git' 'rev-parse' '--verify' 'HEAD'
[INFO] Working directory: /home/redhat/jgroups-azure
[INFO] Storing buildNumber: fd2be5f9d9be28ad37b654a896710c3631d99c4f at timestamp: 1667388352790
[INFO] Storing buildScmBranch: main
[INFO]
[INFO] ------------------< org.jgroups.azure:jgroups-azure >-------------------
[INFO] Building JGroups Azure: Protocols 2.0.3.Final-SNAPSHOT             [2/2]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-enforcer-plugin:3.0.0-M3:enforce (enforce-java-version) @ jgroups-azure ---
[INFO]
[INFO] --- maven-enforcer-plugin:3.0.0-M3:enforce (enforce-maven-version) @ jgroups-azure ---
[INFO]
[INFO] --- maven-enforcer-plugin:3.0.0-M3:enforce (enforce-java) @ jgroups-azure ---
[INFO]
[INFO] --- buildnumber-maven-plugin:1.4:create (get-scm-revision) @ jgroups-azure ---
[INFO]
[INFO] --- maven-resources-plugin:3.2.0:resources (default-resources) @ jgroups-azure ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Using 'UTF-8' encoding to copy filtered properties files.
[INFO] skip non existing resourceDirectory /home/redhat/jgroups-azure/azure/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ jgroups-azure ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:3.2.0:testResources (default-testResources) @ jgroups-azure ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Using 'UTF-8' encoding to copy filtered properties files.
[INFO] Copying 1 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:testCompile (default-testCompile) @ jgroups-azure ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.22.2:test (default-test) @ jgroups-azure ---
[INFO]
[INFO] -------------------------------------------------------
[INFO]  T E S T S
[INFO] -------------------------------------------------------
[INFO] Running org.jgroups.protocols.azure.AZURE_PINGDiscoveryTest
SLF4J: No SLF4J providers were found.
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See https://www.slf4j.org/codes.html#noProviders for further details.

-------------------------------------------------------------------
GMS: address=redhattest1-61170, cluster=2671dc55-3ce6-4abc-993e-44cdfef515e0, physical address=10.3.0.4:7800
-------------------------------------------------------------------

-------------------------------------------------------------------
GMS: address=redhattest1-62682, cluster=``\//--+ěščřžýáíé==''!@#$%^&*()_{}<>?2671dc55-3ce6-4abc-993e-44cdfef515e0, physical address=10.3.0.4:7800
-------------------------------------------------------------------

-------------------------------------------------------------------
GMS: address=redhattest1-9138, cluster=``\//--+ěščřžýáíé==''!@#$%^&*()_{}<>?2671dc55-3ce6-4abc-993e-44cdfef515e0, physical address=10.3.0.4:7801
-------------------------------------------------------------------

-------------------------------------------------------------------
GMS: address=redhattest1-24240, cluster=``\//--+ěščřžýáíé==''!@#$%^&*()_{}<>?2671dc55-3ce6-4abc-993e-44cdfef515e0, physical address=10.3.0.4:7802
-------------------------------------------------------------------

-------------------------------------------------------------------
GMS: address=redhattest1-60739, cluster=``\//--+ěščřžýáíé==''!@#$%^&*()_{}<>?2671dc55-3ce6-4abc-993e-44cdfef515e0, physical address=10.3.0.4:7803
-------------------------------------------------------------------

-------------------------------------------------------------------
GMS: address=redhattest1-49559, cluster=``\//--+ěščřžýáíé==''!@#$%^&*()_{}<>?2671dc55-3ce6-4abc-993e-44cdfef515e0, physical address=10.3.0.4:7804
-------------------------------------------------------------------
Channel redhattest1-62682 has view [redhattest1-62682|4] (5) [redhattest1-62682, redhattest1-9138, redhattest1-24240, redhattest1-60739, redhattest1-49559]
Channel redhattest1-9138 has view [redhattest1-62682|4] (5) [redhattest1-62682, redhattest1-9138, redhattest1-24240, redhattest1-60739, redhattest1-49559]
Channel redhattest1-24240 has view [redhattest1-62682|4] (5) [redhattest1-62682, redhattest1-9138, redhattest1-24240, redhattest1-60739, redhattest1-49559]
Channel redhattest1-60739 has view [redhattest1-62682|4] (5) [redhattest1-62682, redhattest1-9138, redhattest1-24240, redhattest1-60739, redhattest1-49559]
Channel redhattest1-49559 has view [redhattest1-62682|4] (5) [redhattest1-62682, redhattest1-9138, redhattest1-24240, redhattest1-60739, redhattest1-49559]

-------------------------------------------------------------------
GMS: address=redhattest1-47596, cluster=2671dc55-3ce6-4abc-993e-44cdfef515e0, physical address=10.3.0.4:7800
-------------------------------------------------------------------

-------------------------------------------------------------------
GMS: address=redhattest1-43656, cluster=2671dc55-3ce6-4abc-993e-44cdfef515e0, physical address=10.3.0.4:7801
-------------------------------------------------------------------

-------------------------------------------------------------------
GMS: address=redhattest1-47105, cluster=2671dc55-3ce6-4abc-993e-44cdfef515e0, physical address=10.3.0.4:7802
-------------------------------------------------------------------

-------------------------------------------------------------------
GMS: address=redhattest1-9803, cluster=2671dc55-3ce6-4abc-993e-44cdfef515e0, physical address=10.3.0.4:7803
-------------------------------------------------------------------

-------------------------------------------------------------------
GMS: address=redhattest1-60624, cluster=2671dc55-3ce6-4abc-993e-44cdfef515e0, physical address=10.3.0.4:7804
-------------------------------------------------------------------
Channel redhattest1-47596 has view [redhattest1-47596|4] (5) [redhattest1-47596, redhattest1-43656, redhattest1-47105, redhattest1-9803, redhattest1-60624]
Channel redhattest1-43656 has view [redhattest1-47596|4] (5) [redhattest1-47596, redhattest1-43656, redhattest1-47105, redhattest1-9803, redhattest1-60624]
Channel redhattest1-47105 has view [redhattest1-47596|4] (5) [redhattest1-47596, redhattest1-43656, redhattest1-47105, redhattest1-9803, redhattest1-60624]
Channel redhattest1-9803 has view [redhattest1-47596|4] (5) [redhattest1-47596, redhattest1-43656, redhattest1-47105, redhattest1-9803, redhattest1-60624]
Channel redhattest1-60624 has view [redhattest1-47596|4] (5) [redhattest1-47596, redhattest1-43656, redhattest1-47105, redhattest1-9803, redhattest1-60624]
[ERROR] Tests run: 3, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 9.331 s <<< FAILURE! - in org.jgroups.protocols.azure.AZURE_PINGDiscoveryTest
[ERROR] testProtocolStack(org.jgroups.protocols.azure.AZURE_PINGDiscoveryTest)  Time elapsed: 1.214 s  <<< FAILURE!
java.lang.AssertionError: Expected exception: java.lang.IllegalArgumentException
        at org.junit.internal.runners.statements.ExpectException.evaluate(ExpectException.java:34)
        at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
        at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100)
        at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366)
        at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103)
        at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63)
        at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
        at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
        at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
        at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
        at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
        at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
        at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
        at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365)
        at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:273)
        at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238)
        at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159)
        at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384)
        at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345)
        at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126)
        at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418)

[INFO] Running org.jgroups.protocols.azure.AZURE_PINGConfigurationTest
[INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 s - in org.jgroups.protocols.azure.AZURE_PINGConfigurationTest
[INFO]
[INFO] Results:
[INFO]
[ERROR] Failures:
[ERROR]   AZURE_PINGDiscoveryTest.testProtocolStack Expected exception: java.lang.IllegalArgumentException
[INFO]
[ERROR] Tests run: 6, Failures: 1, Errors: 0, Skipped: 0
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for JGroups Azure (parent) 2.0.3.Final-SNAPSHOT:
[INFO]
[INFO] JGroups Azure (parent) ............................. SUCCESS [  0.719 s]
[INFO] JGroups Azure: Protocols ........................... FAILURE [ 10.723 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  11.570 s
[INFO] Finished at: 2022-11-02T11:26:03Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test (default-test) on project jgroups-azure: There are test failures.
[ERROR]
[ERROR] Please refer to /home/redhat/jgroups-azure/azure/target/surefire-reports for the individual test results.
[ERROR] Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <args> -rf :jgroups-azure

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants