Re: [SciGaP-Project] Re: current documentation, user GPG in credential store?

2017-12-08 Thread K Yoshimoto
Thanks, Suresh.

On Fri, Dec 08, 2017 at 05:13:55PM -0500, Suresh Marru wrote:
> Hi Kenneth,
> 
> We need to update the docs to 0.17, will do Monday. The short answer is yes 
> you can store user credentials in credential store. Here are the types of 
> credentials supported:
> 
> SSH (ssh user name and passwords, or ssh keys)
> Password (user name and password)
> Tokens 
> 
> More details here - 
> https://github.com/apache/airavata/blob/master/thrift-interface-descriptions/data-models/credential-store-models/credential_store_data_models.thrift
>  
> 
> 
> Suresh
> 
> 
> > On Dec 8, 2017, at 4:51 PM, K Yoshimoto  wrote:
> > 
> > Hi,
> > 
> > Is this the current API documentation:
> > http://airavata.readthedocs.io/en/latest/AiravataApi/
> > http://airavata.apache.org/api-docs/0.16/
> > 
> > Also, I'm wondering if credential score might be
> > usable to store end user credentials and associated info.
> > 
> > Kenneth
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "SciGaP Project Mail" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to project+unsubscr...@scigap.org.
> Visit this group at https://groups.google.com/a/scigap.org/group/project/.


Re: current documentation, user GPG in credential store?

2017-12-08 Thread Suresh Marru
Hi Kenneth,

We need to update the docs to 0.17, will do Monday. The short answer is yes you 
can store user credentials in credential store. Here are the types of 
credentials supported:

SSH (ssh user name and passwords, or ssh keys)
Password (user name and password)
Tokens 

More details here - 
https://github.com/apache/airavata/blob/master/thrift-interface-descriptions/data-models/credential-store-models/credential_store_data_models.thrift
 


Suresh


> On Dec 8, 2017, at 4:51 PM, K Yoshimoto  wrote:
> 
> Hi,
> 
> Is this the current API documentation:
> http://airavata.readthedocs.io/en/latest/AiravataApi/
> http://airavata.apache.org/api-docs/0.16/
> 
> Also, I'm wondering if credential score might be
> usable to store end user credentials and associated info.
> 
> Kenneth



current documentation, user GPG in credential store?

2017-12-08 Thread K Yoshimoto
Hi,

 Is this the current API documentation:
http://airavata.readthedocs.io/en/latest/AiravataApi/
http://airavata.apache.org/api-docs/0.16/

 Also, I'm wondering if credential score might be
usable to store end user credentials and associated info.

Kenneth


Re: Running Airavata in standalone mode

2017-12-08 Thread Christie, Marcus Aaron
Dimuthu,

I’ll separately send you the airavata-server.properties file and the database 
dump tarball and credential store keystore, but I wanted to document here how I 
created these.


airavata-server.properties:

* I copied this from our dev environment 
(apidev.scigap.org)
* Changed database urls to localhost and username ‘airavata’ with password 
'airavata’.  You can change this if you want or you can create a MariaDB user 
with username ‘airavata’ and password ‘airavata’.
* Changed service urls to localhost.
* NOTE: you’ll need to set a email username and password for job monitoring, 
see these two properties:

email.based.monitor.address=
email.based.monitor.password=

* NOTE: you’ll need to set the path to the credential store keystore. I’ll send 
this file to you too.

credential.store.keystore.url=/path/to/dev_airavata_sym.jks

* Changed rabbitmq broker url to localhost.
* Changed Zookeeper to run in embedded mode.
* Turned off API and TLS security.


Dumping the databases:

mysqldump --hex-blob app_catalog > app_catalog.sql
mysqldump --hex-blob credential_store > credential_store.sql
mysqldump --hex-blob experiment_catalog > experiment_catalog.sql
mysqldump --hex-blob profile_service > profile_service.sql
mysqldump --hex-blob replica_catalog > replica_catalog.sql
mysqldump --hex-blob sharing_catalog > sharing_catalog.sql
mysqldump --hex-blob workflow_catalog > workflow_catalog.sql

* NOTE: you’ll need to load these into your local MySQL database.



Thanks,

Marcus

On Dec 8, 2017, at 9:03 AM, Christie, Marcus Aaron 
> wrote:

Hi Dimuthu,

I’ll get the airavata-server.properties and database dump to you today.

On Dec 8, 2017, at 7:40 AM, DImuthu Upeksha 
> wrote:

Hi Suresh/ Marcus,

I'm trying to run Airavata in standalone mode by running ServerMain class in 
airavata-standalone-server module using Idea. However I came across this [1] 
error trail. Now I'm working on investigating them one by one and please 
suggest what I can do to fix them if you have come across with same issues 
before. In the mean time, if you can send me a sample 
airavata-server.properties file and the dump of a database, it will be really 
helpful.

[1] https://gist.github.com/DImuthuUpe/dffd0275022dcd0242b1ad1bd762298a

Thanks
Dimuthu




Re: Project for Assignment 6 and 7

2017-12-08 Thread Suresh Marru
Hi Subham,

The two steps are Create and then Launch. In your sample you can have a single 
client to do both. You can look at these PHP examples as a reference:

https://github.com/SciGaP/ultrascan-airavata-bridge/blob/master/AiravataWrapper.php
 

 and 
https://github.com/SciGaP/ultrascan-airavata-bridge/blob/master/AiravataUtils.php
 


Suresh


> On Dec 8, 2017, at 2:58 PM, Shubham Kumar  wrote:
> 
> Hi,
> 
> I cannot get client side code to createExperiment working. It throws error - 
> Error creating resource. Error while retrieving resource. 
> 
> I see that from UI side, creating experiment is a two step process. First is 
> to create experiment giving name and description and select application. 
> Another is to add input files, select compute resource and configurations of 
> cores and RAM to use. But createExperiment function we only set 
> owner,experiment
> name and description. Is there an equivalent function for 2nd step.
> 
> Best,
> Shubham
> 
> On Tue, Dec 5, 2017 at 1:41 PM, Shubham Kumar  > wrote:
> Hi,
> 
> While coding, I found that the latest Airavata API library does not contains 
> functions like SearchExperimentsByName , SearchExperimentsByDesc, 
> SearchExperimentsByApplication , getAllUserProjects but they are used in php 
> client side code.
> 
> On Mon, Dec 4, 2017 at 3:27 PM, Suresh Marru  > wrote:
> Hi Shubham,
> 
> Please replace the python samples with Python 3 instead. Please refer to 
> airavata python client code in Django portal for reference - 
> https://github.com/apache/airavata-django-portal 
> 
> 
> Suresh
> 
> 
>> On Dec 3, 2017, at 1:35 PM, Shubham Kumar > > wrote:
>> 
>> Hello Dev,
>> 
>> As discussed with Suresh, for my assignment 6 and 7, I will be working on 
>> Developing more airavata python samples in python sdk module (JIRA - 
>> https://issues.apache.org/jira/browse/AIRAVATA-1643 
>> ). I will break up this 
>> work into assignment 6 and 7.
>> 
>> I see the current code is written in Python 2.7 and requires Thrift 0.10.0 
>> to compile.
>> 
>> Best,
>> Shubham
> 
> 
> 



Re: Project for Assignment 6 and 7

2017-12-08 Thread Shubham Kumar
Hi,

I cannot get client side code to createExperiment working. It throws error
- Error creating resource. Error while retrieving resource.

I see that from UI side, creating experiment is a two step process. First
is to create experiment giving name and description and select application.
Another is to add input files, select compute resource and configurations
of cores and RAM to use. But createExperiment function we only set
owner,experiment
name and description. Is there an equivalent function for 2nd step.

Best,
Shubham

On Tue, Dec 5, 2017 at 1:41 PM, Shubham Kumar  wrote:

> Hi,
>
> While coding, I found that the latest Airavata API library does not
> contains functions like SearchExperimentsByName , SearchExperimentsByDesc,
> SearchExperimentsByApplication , getAllUserProjects but they are used in
> php client side code.
>
> On Mon, Dec 4, 2017 at 3:27 PM, Suresh Marru  wrote:
>
>> Hi Shubham,
>>
>> Please replace the python samples with Python 3 instead. Please refer to
>> airavata python client code in Django portal for reference -
>> https://github.com/apache/airavata-django-portal
>>
>> Suresh
>>
>>
>> On Dec 3, 2017, at 1:35 PM, Shubham Kumar  wrote:
>>
>> Hello Dev,
>>
>> As discussed with Suresh, for my assignment 6 and 7, I will be working on
>> Developing more airavata python samples in python sdk module (JIRA -
>> https://issues.apache.org/jira/browse/AIRAVATA-1643). I will break up
>> this work into assignment 6 and 7.
>>
>> I see the current code is written in Python 2.7 and requires Thrift
>> 0.10.0 to compile.
>>
>> Best,
>> Shubham
>>
>>
>>
>


Re: Running Airavata in standalone mode

2017-12-08 Thread Christie, Marcus Aaron
Hi Dimuthu,

I’ll get the airavata-server.properties and database dump to you today.

On Dec 8, 2017, at 7:40 AM, DImuthu Upeksha 
> wrote:

Hi Suresh/ Marcus,

I'm trying to run Airavata in standalone mode by running ServerMain class in 
airavata-standalone-server module using Idea. However I came across this [1] 
error trail. Now I'm working on investigating them one by one and please 
suggest what I can do to fix them if you have come across with same issues 
before. In the mean time, if you can send me a sample 
airavata-server.properties file and the dump of a database, it will be really 
helpful.

[1] https://gist.github.com/DImuthuUpe/dffd0275022dcd0242b1ad1bd762298a

Thanks
Dimuthu



Re: Running Airavata in standalone mode

2017-12-08 Thread Pamidighantam, Sudhakar V
I believe these kind of error are seen many times if the deployment 
instructions are not followed. I think it is time to capture them and suggest 
actionable solutions or refer back to the deployment instructions.

Thanks,
Sudhakar.
On Dec 8, 2017, at 7:40 AM, DImuthu Upeksha 
> wrote:

Hi Suresh/ Marcus,

I'm trying to run Airavata in standalone mode by running ServerMain class in 
airavata-standalone-server module using Idea. However I came across this [1] 
error trail. Now I'm working on investigating them one by one and please 
suggest what I can do to fix them if you have come across with same issues 
before. In the mean time, if you can send me a sample 
airavata-server.properties file and the dump of a database, it will be really 
helpful.

[1] https://gist.github.com/DImuthuUpe/dffd0275022dcd0242b1ad1bd762298a

Thanks
Dimuthu



Running Airavata in standalone mode

2017-12-08 Thread DImuthu Upeksha
Hi Suresh/ Marcus,

I'm trying to run Airavata in standalone mode by running ServerMain class
in airavata-standalone-server module using Idea. However I came across this
[1] error trail. Now I'm working on investigating them one by one and
please suggest what I can do to fix them if you have come across with same
issues before. In the mean time, if you can send me a sample
airavata-server.properties file and the dump of a database, it will be
really helpful.

[1] https://gist.github.com/DImuthuUpe/dffd0275022dcd0242b1ad1bd762298a

Thanks
Dimuthu