Project

General

Profile

Globus WS-GRAM adaptor issue

Added by Scardaci Diego about 12 years ago

Dear All,
I tried to use the Globus WS-GRAM adaptor but I got a problem.

You can find my testing code attached and the output below:
[liferayadmin@gridsrv-03 JSAGA-TEST]$ java RunTest
2012-06-22 14:33:39,659 [main] WARN SagaFactoryImpl - Failed to load engine properties, using defaults [/opt/glassfish3/glassfish/domains/liferay/lib/etc/jsaga-config.properties (No such file or directory)]
DN=/C=IT/O=INFN/OU=Personal Certificate/L=Roma 3/CN=Antonio Budano
Creating job description...
Job submitting...
2012-06-22 14:33:40,746 [main] INFO GsiftpDataAdaptorAbstract - Connecting to Gsiftp service at: xn03.ctsf.cdacb.in:2811...
2012-06-22 14:33:41,332 [main] INFO GsiftpDataAdaptorAbstract - xn03.ctsf.cdacb.in GridFTP Server 2.7 (gcc32dbg, 1204845443-63) [Globus Toolkit 4.0.7] ready.
Error in creating jobDescription...
NoSuccess: AuthenticationFailed: GSSException: Operation unauthorized (Mechanism level: [JGLOBUS-56] Authorization failed. Expected "/CN=host/14.139.1.71" target but received "/DC=IN/DC=GARUDAINDIA/O=C-DAC/OU=CTSF/CN=xn03.ctsf.cdacb.in")
Cause :AuthenticationFailed: GSSException: Operation unauthorized (Mechanism level: [JGLOBUS-56] Authorization failed. Expected "/CN=host/14.139.1.71" target but received "/DC=IN/DC=GARUDAINDIA/O=C-DAC/OU=CTSF/CN=xn03.ctsf.cdacb.in")

Cheers,
Diego


Replies (7)

RE: Globus WS-GRAM adaptor issue - Added by Reynaud Sylvain about 12 years ago

Hi Diego,

The cause of this error seems to be on server-side according to globus documentation :
[[http://www.globus.org/toolkit/docs/4.0/execution/wsgram/admin-index.html#s-wsgram-admin-troubleshooting]]

Please let us know...

Cheers,
Sylvain

RE: Globus WS-GRAM adaptor issue - Added by Verlato Marco about 12 years ago

Hi Sylvain,
i am not expecting the error be on server side, since when using the globusrun-ws client everything works fine:

[verlato]$  globusrun-ws -submit -J -F xn03.ctsf.cdacb.in -Ft GW -s -c /bin/hostname
Delegating user credentials...Done.
Submitting job...Done.
Job ID: uuid:1ba3c51a-beb0-11e1-872e-0000c1ced29a
Termination time: 06/26/2012 10:25 GMT
Current job state: Pending
Current job state: Active
Current job state: CleanUp-Hold
xn06.ctsf.cdacb.in
Current job state: CleanUp
Current job state: Done
Destroying job...Done.
Cleaning up any delegated credentials...Done.

cheers,
Marco

RE: Globus WS-GRAM adaptor issue - Added by Reynaud Sylvain about 12 years ago

Hi Marco,

By looking at your code, I see that the scheduler is not specified in the URL (see [[http://grid.in2p3.fr/jsaga/adaptors/jsaga-adaptor-wsgram/faq.html#url]]).

But I don't think that this is the cause of the exception raised. Indeed, the globusrun-ws command can also raise this exception when it has to stage files as JSAGA does in your example (see http://bugzilla.globus.org/globus/show_bug.cgi?id=3738). So in order to check if the problem is on client side or not, I think you should test globusrun-ws with data staging and/or JSAGA without data staging. It would be also useful to test if this exception is raised with other WS-GRAM servers.

Cheers,
Sylvain

RE: Globus WS-GRAM adaptor issue - Added by Budano Antonio about 12 years ago

Hi to all,
I've done a test suggested by Sylvain, in particular I’ve commented this line in the java code:

desc.setVectorAttribute(JobDescription.FILETRANSFER, ("/home/liferayadmin/JSAGA-TEST/stdout<stdout,/home/liferayadmin/JSAGA-TEST/stderr

And I’ve received this output:

[liferayadmin@gridsrv-03 JSAGA-TEST]$ java RunTest
2012-06-27 16:30:33,844 [main] WARN SagaFactoryImpl - Failed to load engine properties, using defaults [/opt/glassfish3/glassfish/domains/liferay/lib/etc/jsaga-config.properties (No such file or directory)]
DN=/C=IT/O=INFN/OU=Personal Certificate/L=Roma 3/CN=Antonio Budano
Creating job description...
Job submitting...
2012-06-27 16:30:34,951 [main] INFO GramJob - <startTime name="submission">1340807434951</startTime>
2012-06-27 16:30:35,035 [main] INFO GramJob - <startTime name="fetchDelegFactoryEndoints">1340807435035</startTime>
Error in creating jobDescription...
NoSuccess: org.globus.common.ChainedIOException: Authentication failed [Caused by: Operation unauthorized (Mechanism level: [JGLOBUS-56] Authorization failed. Expected "/CN=host/14.139.1.71" target but received "/DC=IN/DC=GARUDAINDIA/O=C-DAC/OU=CTSF/CN=xn03.ctsf.cdacb.in")]
Cause :org.globus.common.ChainedIOException: Authentication failed [Caused by: Operation unauthorized (Mechanism level: [JGLOBUS-56] Authorization failed. Expected "/CN=host/14.139.1.71" target but received "/DC=IN/DC=GARUDAINDIA/O=C-DAC/OU=CTSF/CN=xn03.ctsf.cdacb.in")]
state=NEW
Unexpected state: NEW

As you can see the connection to the gridftp it’s not done but the problem persist.

Antonio

RE: Globus WS-GRAM adaptor issue - Added by Schwarz Lionel about 12 years ago

Hi Antonio,
I have modified the code of the WSGRAM plugin so that it should be able to connect to xn03.ctsf.cdacb.in with the service name "/DC=IN/DC=GARUDAINDIA/O=C-DAC/OU=CTSF/CN=xn03.ctsf.cdacb.in". Could you try the same command with the attached JAR please and let me know?

Cheers
Lionel

RE: Globus WS-GRAM adaptor issue - Added by Budano Antonio about 12 years ago

Hi Lionel,
we have undestud that the problem coming from a wrong reverse DNS name.
I've added the entry in the /etc/hosts and now the job runs:

[liferayadmin@gridsrv-03 JSAGA-TEST]$ java RunTest

2012-06-28 15:09:05,528 [main] WARN SagaFactoryImpl - Failed to load engine properties, using defaults [/opt/glassfish3/glassfish/domains/liferay/lib/etc/jsaga-config.properties (No such file or directory)]

DN=/C=IT/O=INFN/OU=Personal Certificate/L=Roma 3/CN=Antonio Budano

Creating job description...

Job submitting...

2012-06-28 15:09:06,618 [main] INFO GsiftpDataAdaptorAbstract - Connecting to Gsiftp service at: xn03.ctsf.cdacb.in:2811...

2012-06-28 15:09:09,176 [main] INFO GsiftpDataAdaptorAbstract - xn03.ctsf.cdacb.in GridFTP Server 2.7 (gcc32dbg, 1204845443-63) [Globus Toolkit 4.0.7] ready.

2012-06-28 15:09:12,067 [main] INFO GramJob - <startTime name="submission">1340888952067</startTime>

2012-06-28 15:09:12,148 [main] INFO GramJob - <startTime name="fetchDelegFactoryEndoints">1340888952148</startTime>

2012-06-28 15:09:43,471 [main] INFO GramJob - <endTime name="fetchDelegFactoryEndoints">1340888983471</endTime>

2012-06-28 15:09:43,474 [main] INFO GramJob - <startTime name="fetchDelegCertChainRP">1340888983474</startTime>

2012-06-28 15:09:44,736 [main] INFO GramJob - <endTime name="fetchDelegCertChainRP">1340888984736</endTime>

2012-06-28 15:09:44,736 [main] INFO GramJob - <startTime name="delegate">1340888984736</startTime>

2012-06-28 15:09:45,939 [main] INFO GramJob - <endTime name="delegate">1340888985939</endTime>

2012-06-28 15:09:45,939 [main] INFO GramJob - <startTime name="fetchDelegCertChainRP">1340888985939</startTime>

2012-06-28 15:09:47,059 [main] INFO GramJob - <endTime name="fetchDelegCertChainRP">1340888987059</endTime>

2012-06-28 15:09:47,059 [main] INFO GramJob - <startTime name="delegate">1340888987059</startTime>

2012-06-28 15:09:48,254 [main] INFO GramJob - <endTime name="delegate">1340888988254</endTime>

2012-06-28 15:09:48,263 [main] INFO GramJob - <startTime name="createManagedJob">1340888988263</startTime>

2012-06-28 15:09:49,440 [main] INFO GramJob - <endTime name="createManagedJob">1340888989440</endTime

2012-06-28 15:09:50,591 [main] INFO GramJob - Raw status query response message:

<ns1:state xmlns:ns1="http://www.globus.org/namespaces/2004/10/gram/job/types">Unsubmitted</ns1:state><ns2:holding xmlns:ns2="http://www.globus.org/namespaces/2004/10/gram/job/types">false</ns2:holding>

state=RUNNING

Unexpected state: RUNNING

2012-06-28 15:10:01,683 [main] INFO GramJob - Raw status query response message:

<ns1:state xmlns:ns1="http://www.globus.org/namespaces/2004/10/gram/job/types">StageOut</ns1:state><ns2:holding xmlns:ns2="http://www.globus.org/namespaces/2004/10/gram/job/types">false</ns2:holding><ns3:exitCode xmlns:ns3="http://www.globus.org/namespaces/2004/10/gram/job/types">0</ns3:exitCode>

state=RUNNING

Unexpected state: RUNNING

2012-06-28 15:10:12,775 [main] INFO GramJob - Raw status query response message:

<ns1:state xmlns:ns1="http://www.globus.org/namespaces/2004/10/gram/job/types">Done</ns1:state><ns2:holding xmlns:ns2="http://www.globus.org/namespaces/2004/10/gram/job/types">false</ns2:holding><ns3:exitCode xmlns:ns3="http://www.globus.org/namespaces/2004/10/gram/job/types">0</ns3:exitCode>

state=DONE

Job done.

2012-06-28 15:10:13,866 [main] INFO GsiftpDataAdaptorAbstract - Connecting to Gsiftp service at: xn03.ctsf.cdacb.in:2811...

2012-06-28 15:10:14,322 [main] INFO GsiftpDataAdaptorAbstract - xn03.ctsf.cdacb.in GridFTP Server 2.7 (gcc32dbg, 1204845443-63) [Globus Toolkit 4.0.7] ready.

2012-06-28 15:10:19,439 [main] INFO GsiftpDataAdaptorAbstract - Connecting to Gsiftp service at: xn03.ctsf.cdacb.in:2811...

2012-06-28 15:10:19,900 [main] INFO GsiftpDataAdaptorAbstract - xn03.ctsf.cdacb.in GridFTP Server 2.7 (gcc32dbg, 1204845443-63) [Globus Toolkit 4.0.7] ready.

2012-06-28 15:10:27,328 [main] INFO GsiftpDataAdaptorAbstract - Connecting to Gsiftp service at: xn03.ctsf.cdacb.in:2811...

2012-06-28 15:10:28,007 [main] INFO GsiftpDataAdaptorAbstract - xn03.ctsf.cdacb.in GridFTP Server 2.7 (gcc32dbg, 1204845443-63) [Globus Toolkit 4.0.7] ready.

2012-06-28 15:10:30,843 [main] INFO GsiftpDataAdaptorAbstract - Connecting to Gsiftp service at: xn03.ctsf.cdacb.in:2811...

2012-06-28 15:10:31,290 [main] INFO GsiftpDataAdaptorAbstract - xn03.ctsf.cdacb.in GridFTP Server 2.7 (gcc32dbg, 1204845443-63) [Globus Toolkit 4.0.7] ready.

2012-06-28 15:10:35,531 [main] INFO GsiftpDataAdaptorAbstract - Connecting to Gsiftp service at: xn03.ctsf.cdacb.in:2811...

2012-06-28 15:10:35,988 [main] INFO GsiftpDataAdaptorAbstract - xn03.ctsf.cdacb.in GridFTP Server 2.7 (gcc32dbg, 1204845443-63) [Globus Toolkit 4.0.7] ready.

2012-06-28 15:10:39,827 [main] INFO GramJob - <startTime name="destroy">1340889039827</startTime>

2012-06-28 15:10:40,901 [main] INFO GramJob - <endTime name="destroy">1340889040901</endTime>

2012-06-28 15:10:40,915 [main] INFO GramJob - <startTime name="delegatedCredentialDestroy">1340889040915</startTime>

2012-06-28 15:10:41,985 [main] INFO GramJob - <endTime name="delegatedCredentialDestroy">1340889041985</endTime>

2012-06-28 15:10:41,992 [main] INFO GramJob - <startTime name="delegatedCredentialDestroy">1340889041992</startTime>

2012-06-28 15:10:43,065 [main] INFO GramJob - <endTime name="delegatedCredentialDestroy">1340889043065</endTime>

Job output have been retrieved successfully (if it exists)

Thank you.

Antonio

RE: Globus WS-GRAM adaptor issue - Added by Scardaci Diego about 12 years ago

Hi Lionel,
after we fixed the DNS problem, we successfully used the original adaptor without your last update.

Cheers,
Diego

    (1-7/7)