You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@airavata.apache.org by Douglas Chau <dc...@binghamton.edu> on 2015/08/06 23:56:24 UTC

python client - gw111

Hey Devs,

I was working on a small python client to submit jobs to airavata and I believe I am having issues with passing in the correct gateway Id (i.g. making a call to getAllComputeResourceNames(1: required AuthzToken, 2: required gatewayId))

Here is a gist of my code: https://gist.github.com/dogless/090c0d5ddb747089476a <https://gist.github.com/dogless/090c0d5ddb747089476a>

I pass in “default” as the gatewayId on line 91, and I receive the error:
thrift.Thrift.TApplicationException: Required field 'gatewayId' was not present! Struct: getAllApplicationInterfaceNames_args(gatewayId:null)

My airavata client properties are set to:
# SciGaP Development Server
host=gw111.iu.xsede.org
port=9930
# Gateway Specific Properties
[GatewayProperties]
gateway_id=default

Perhaps I’m missing something here, but has anyone encountered this issue before?

Thanks
Doug


Re: python client - gw111

Posted by Suresh Marru <sm...@apache.org>.
Hi Doug,


TApplicationException says that the exception is caught at client side (the
python code), so you should add some debug statements and see if the
gatewayId is passed correctly.

Lets chat on hip chat.

Suresh

On Thu, Aug 6, 2015 at 6:52 PM Douglas Chau <dc...@binghamton.edu> wrote:

> Hey Suresh,
>
> I also tried reading it directly from the configuration once before to
> make sure, but the issue still persisted.
>
> Doug
> On Aug 6, 2015 6:44 PM, "Suresh Marru" <sm...@gmail.com> wrote:
>
>> Hi Doug,
>>
>> As you can see from the exception the gateway id in your python code is
>> null. May be you are not reading it from config file. Try adding something
>> like:
>>
>> self.gatewayId = self.airavataConfig.get('GatewayProperties',
>> 'gateway_id')
>>
>> Suresh
>>
>> On Aug 6, 2015, at 5:56 PM, Douglas Chau <dc...@binghamton.edu> wrote:
>>
>> Hey Devs,
>>
>> I was working on a small python client to submit jobs to airavata and I
>> believe I am having issues with passing in the correct gateway Id (i.g.
>> making a call to getAllComputeResourceNames(1: required AuthzToken, 2:
>> required gatewayId))
>>
>> Here is a gist of my code:
>> https://gist.github.com/dogless/090c0d5ddb747089476a
>>
>> I pass in “default” as the gatewayId on line 91, and I receive the error:
>> thrift.Thrift.TApplicationException: Required field 'gatewayId' was not
>> present! Struct: getAllApplicationInterfaceNames_args(gatewayId:null)
>>
>> My airavata client properties are set to:
>> # SciGaP Development Server
>> host=gw111.iu.xsede.org
>> port=9930
>> # Gateway Specific Properties
>> [GatewayProperties]
>> gateway_id=default
>>
>> Perhaps I’m missing something here, but has anyone encountered this issue
>> before?
>>
>> Thanks
>> Doug
>>
>>
>>

Re: python client - gw111

Posted by Douglas Chau <dc...@binghamton.edu>.
Hey Suresh,

I also tried reading it directly from the configuration once before to make
sure, but the issue still persisted.

Doug
On Aug 6, 2015 6:44 PM, "Suresh Marru" <sm...@gmail.com> wrote:

> Hi Doug,
>
> As you can see from the exception the gateway id in your python code is
> null. May be you are not reading it from config file. Try adding something
> like:
>
> self.gatewayId = self.airavataConfig.get('GatewayProperties', 'gateway_id')
>
> Suresh
>
> On Aug 6, 2015, at 5:56 PM, Douglas Chau <dc...@binghamton.edu> wrote:
>
> Hey Devs,
>
> I was working on a small python client to submit jobs to airavata and I
> believe I am having issues with passing in the correct gateway Id (i.g.
> making a call to getAllComputeResourceNames(1: required AuthzToken, 2:
> required gatewayId))
>
> Here is a gist of my code:
> https://gist.github.com/dogless/090c0d5ddb747089476a
>
> I pass in “default” as the gatewayId on line 91, and I receive the error:
> thrift.Thrift.TApplicationException: Required field 'gatewayId' was not
> present! Struct: getAllApplicationInterfaceNames_args(gatewayId:null)
>
> My airavata client properties are set to:
> # SciGaP Development Server
> host=gw111.iu.xsede.org
> port=9930
> # Gateway Specific Properties
> [GatewayProperties]
> gateway_id=default
>
> Perhaps I’m missing something here, but has anyone encountered this issue
> before?
>
> Thanks
> Doug
>
>
>

Re: python client - gw111

Posted by Suresh Marru <sm...@gmail.com>.
Hi Doug,

As you can see from the exception the gateway id in your python code is
null. May be you are not reading it from config file. Try adding something
like:

self.gatewayId = self.airavataConfig.get('GatewayProperties', 'gateway_id')

Suresh

On Aug 6, 2015, at 5:56 PM, Douglas Chau <dc...@binghamton.edu> wrote:

Hey Devs,

I was working on a small python client to submit jobs to airavata and I
believe I am having issues with passing in the correct gateway Id (i.g.
making a call to getAllComputeResourceNames(1: required AuthzToken, 2:
required gatewayId))

Here is a gist of my code:
https://gist.github.com/dogless/090c0d5ddb747089476a

I pass in “default” as the gatewayId on line 91, and I receive the error:
thrift.Thrift.TApplicationException: Required field 'gatewayId' was not
present! Struct: getAllApplicationInterfaceNames_args(gatewayId:null)

My airavata client properties are set to:
# SciGaP Development Server
host=gw111.iu.xsede.org
port=9930
# Gateway Specific Properties
[GatewayProperties]
gateway_id=default

Perhaps I’m missing something here, but has anyone encountered this issue
before?

Thanks
Doug