You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@airavata.apache.org by Pankaj Saha <ps...@binghamton.edu> on 2016/04/20 17:37:48 UTC

Jetstream VM creation through Airavata

Hello Mangirish,
I have latest Airavata mater branch installed in my local system. Can you
please give us some clue how to start creating the VMs through you
application. Please specify where we can find your corresponding java code.
Is it through PGA website?
Please share the required password to me in a separate email.

Thanks
Pankaj

Re: Jetstream VM creation through Airavata

Posted by Pankaj Saha <ps...@binghamton.edu>.
looks like the issue is not yet fixed. I am getting this error from
the cloud-provisioning module.

 fault=*Unable to associate floating ip 149.165.168.5 to fixed ip
10.1.1.255* for instance f70b1607-d297-406f-882b-713268f0da1d. Error:
External network 4367cd20-722f-4dc2-97e8-90d98c25f12e is not reachable from
subnet c804c9c8-0451-4066-aa8f-5f4adbb47d3d.  Therefore, cannot associate
Port 948345eb-883a-43e9-98c0-4a0c9fbe26f8 with a Floating IP., code=400}

On Sat, Apr 30, 2016 at 8:18 PM, Emre Brookes <em...@biochem.uthscsa.edu>
wrote:

> Suresh,
>
> Yes, I am having issues with Jetstream today..
> Fortunately, Jetstream is not in formal "production", but I was hoping to
> use
> it during a genapp tutorial at the ssi/ccp-sas meeting late May, but with
> all the problems with Jetstream, I will have to make other plans for the
> tutorial.
>
> Emre
>
>
> Suresh Marru wrote:
>
>> On Apr 29, 2016, at 10:00 PM, Emre Brookes <em...@biochem.uthscsa.edu>
>> wrote:
>>
>>> FYI - I think this effects other users also.  I have had odd issues with
>>> Jetstream after you mentioned these tests.
>>>
>> Hi Emre,
>>
>> Is this now? If you are referring to network issues few days ago, there
>> were isolated problems with DHCP servers. But largely most of the issues
>> Pankaj and me are discussing are related a single user quota (we both are
>> sharing a account) and that should not have effected you.
>>
>> With the scale of testing I am loading up, its possible I could be
>> causing the system wide issues. My excuse will be the system is not yet in
>> production :)
>>
>> Suresh
>>
>> Emre
>>>
>>> Suresh Marru wrote:
>>>
>>>> How many instances do you need to test? I have about 1200 instances
>>>> running for a stress test and I am exhausting quotes at various levels,
>>>> hence these errors.
>>>>
>>>> If will be releasing all my VM’s wednesday afternoon. So tell me how
>>>> many you need between now and then and I will release some.
>>>>
>>>> Suresh
>>>>
>>>> On Apr 29, 2016, at 9:05 PM, Pankaj Saha <psaha4@binghamton.edu
>>>>> <ma...@binghamton.edu>> wrote:
>>>>>
>>>>> Hi Suresh,
>>>>> I could ssh to VMs but new VMs are not getting any floating public IP.
>>>>>
>>>>> Thanks
>>>>> Pankaj
>>>>>
>>>>> On Fri, Apr 29, 2016 at 8:51 PM, Suresh Marru <smarru@apache.org
>>>>> <ma...@apache.org>> wrote:
>>>>>
>>>>>     Pankaj,
>>>>>
>>>>>     Do you still have the issue?
>>>>>
>>>>>     Suresh
>>>>>
>>>>>     On Apr 28, 2016, at 5:26 PM, Pankaj Saha <psaha4@binghamton.edu
>>>>>>     <ma...@binghamton.edu>> wrote:
>>>>>>
>>>>>>     Details of my VM is as mentioned below:
>>>>>>
>>>>>>     Name: Mesos Agent
>>>>>>     Floating IPs:149.165.157.247
>>>>>>     size: m1.medium
>>>>>>     key: pankaj SSH key
>>>>>>
>>>>>>
>>>>>>     On Thu, Apr 28, 2016 at 5:22 PM, Pankaj Saha
>>>>>>     <psaha4@binghamton.edu <ma...@binghamton.edu>> wrote:
>>>>>>
>>>>>>         Hi
>>>>>>         I need SSH to get the console access to install required
>>>>>>         software. I believe SSH server is not running by default in
>>>>>>         the ubuntu based servers and also I can not access its
>>>>>>         console through the openstack web UI.
>>>>>>         Please suggest.
>>>>>>
>>>>>>         Thanks
>>>>>>         Pankaj
>>>>>>
>>>>>>         On Thu, Apr 28, 2016 at 5:00 PM, Pankaj Saha
>>>>>>         <psaha4@binghamton.edu <ma...@binghamton.edu>> wrote:
>>>>>>
>>>>>>             Hi Suresh,
>>>>>>             Yes, it's accessible now. Thanks.
>>>>>>
>>>>>>             On Thu, Apr 28, 2016 at 4:39 PM, Suresh Marru
>>>>>>             <smarru@apache.org <ma...@apache.org>> wrote:
>>>>>>
>>>>>>                 Pankaj,
>>>>>>
>>>>>>                 Try now.
>>>>>>
>>>>>>                 Suresh
>>>>>>
>>>>>>                 On Apr 28, 2016, at 1:05 PM, Suresh Marru
>>>>>>>                 <smarru@apache.org <ma...@apache.org>>
>>>>>>> wrote:
>>>>>>>
>>>>>>>                 Hi Pankaj,
>>>>>>>
>>>>>>>                 By default yes they will be accessible from
>>>>>>>                 outside. The firewall’s are controlled by the
>>>>>>>                 security policy and currently both ssh and http are
>>>>>>>                 accessible widely. There are issues with Open Stack
>>>>>>>                 Neutron services and I reported them. I will post
>>>>>>>                 when the network is back stable.
>>>>>>>
>>>>>>>                 Suresh
>>>>>>>
>>>>>>>                 On Apr 28, 2016, at 1:02 PM, Pankaj Saha
>>>>>>>>                 <psaha4@binghamton.edu
>>>>>>>>                 <ma...@binghamton.edu>> wrote:
>>>>>>>>
>>>>>>>>                 Hello Devs,
>>>>>>>>                 I have created a VM in openstack through
>>>>>>>>                 cloud-provisioning module. Which returned an VM
>>>>>>>>                 with floating ip : 149.165.157.215. I was
>>>>>>>>                 expecting that this VM will be accessible through
>>>>>>>>                 ssh over public ipassigned to it. I need ssh
>>>>>>>>                 access to these VMs for including mesos binaries
>>>>>>>>                 into them so that these images can be used as
>>>>>>>>                 mesos agents for Gourav's prject.
>>>>>>>>
>>>>>>>>                 Please let me know if it is blocked by any
>>>>>>>>                 firewall and whats the process to get access to
>>>>>>>> them.
>>>>>>>>
>>>>>>>>                 Thanks
>>>>>>>>                 Pankaj
>>>>>>>>
>>>>>>>>                 On Fri, Apr 22, 2016 at 4:43 PM, Pankaj Saha
>>>>>>>>                 <psaha4@binghamton.edu
>>>>>>>>                 <ma...@binghamton.edu>> wrote:
>>>>>>>>
>>>>>>>>                     Hi Suresh,
>>>>>>>>                     Yes, that was the problem. Now it's working.
>>>>>>>>                     here is the log:
>>>>>>>>                     [main] INFO
>>>>>>>>
>>>>>>>> org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl
>>>>>>>>                     - Keypair created successfully: testKey
>>>>>>>>                     [main] INFO
>>>>>>>>                     org.apache.airavata.cloud.test.CloudIntfTest -
>>>>>>>>                     Keypair created/ retrieved:
>>>>>>>>                     83:17:5b:2c:f3:31:06:af:99:c1:c8:8b:62:72:36:35
>>>>>>>>                     [main] INFO
>>>>>>>>
>>>>>>>> org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl
>>>>>>>>                     - Using network subnet-airavata with ID:
>>>>>>>>                     ad2552d6-1a02-4d6c-9fa4-ad40d93e5423
>>>>>>>>                     [main] INFO
>>>>>>>>
>>>>>>>> org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl
>>>>>>>>                     - New server created with ID:
>>>>>>>>                     2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>>>>>>>>                     [main] INFO
>>>>>>>>                     org.apache.airavata.cloud.test.CloudIntfTest -
>>>>>>>>                     Server Created:
>>>>>>>>                     2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>>>>>>>>                     [main] INFO
>>>>>>>>                     org.apache.airavata.cloud.test.CloudIntfTest -
>>>>>>>>                     Waiting for instance to go ACTIVE...
>>>>>>>>                     [main] INFO
>>>>>>>>
>>>>>>>> org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl
>>>>>>>>                     - Server retrieved successfully for ID:
>>>>>>>>                     2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>>>>>>>>                     [main] INFO
>>>>>>>>
>>>>>>>> org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl
>>>>>>>>                     - true:200:null:ActionResponse{success=true,
>>>>>>>>                     code=200}
>>>>>>>>                     [main] INFO
>>>>>>>>
>>>>>>>> org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl
>>>>>>>>                     - Floating IP 149.165.156.142 assigned
>>>>>>>>                     successfully to server with ID:
>>>>>>>>                     2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>>>>>>>>                     [main] INFO
>>>>>>>>
>>>>>>>> org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl
>>>>>>>>                     - Server retrieved successfully for ID:
>>>>>>>>                     2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>>>>>>>>                     [main] INFO
>>>>>>>>
>>>>>>>> org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl
>>>>>>>>                     - Server deleted successfully for ID:
>>>>>>>>                     2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>>>>>>>>                     [main] INFO
>>>>>>>>                     org.apache.airavata.cloud.test.CloudIntfTest -
>>>>>>>>                     Server deleted:
>>>>>>>>                     2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>>>>>>>>                     [main] INFO
>>>>>>>>                     org.apache.airavata.cloud.test.CloudIntfTest -
>>>>>>>>                     Waiting for instance to terminate...
>>>>>>>>                     [main] INFO
>>>>>>>>
>>>>>>>> org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl
>>>>>>>>                     - Keypair deleted successfully: testKey
>>>>>>>>                     [main] INFO
>>>>>>>>                     org.apache.airavata.cloud.test.CloudIntfTest -
>>>>>>>>                     Keypair deleted: testKey
>>>>>>>>                     [main] INFO
>>>>>>>>
>>>>>>>> org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl
>>>>>>>>                     - Server retrieved successfully for ID:
>>>>>>>>                     2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>>>>>>>>
>>>>>>>>
>>>>>>>>                     Thanks
>>>>>>>>                     Pankaj
>>>>>>>>
>>>>>>>>                     On Fri, Apr 22, 2016 at 4:15 PM, Suresh Marru
>>>>>>>>                     <smarru@apache.org <ma...@apache.org>>
>>>>>>>>                     wrote:
>>>>>>>>
>>>>>>>>                         I now noticed that you have
>>>>>>>>                         used OS_PROJECT_DOMAIN_NAME=tacc instead
>>>>>>>>                         of OS_PROJECT_DOMAIN_NAME=scigap
>>>>>>>>
>>>>>>>>                         Suresh
>>>>>>>>
>>>>>>>>                         On Apr 22, 2016, at 4:14 PM, Suresh Marru
>>>>>>>>>                         <smarru@apache.org
>>>>>>>>>                         <ma...@apache.org>> wrote:
>>>>>>>>>
>>>>>>>>>                         Hi Pankaj, Mangirish,
>>>>>>>>>
>>>>>>>>>                         Is this intermittent or do you
>>>>>>>>>                         consistently get authentication issues? I
>>>>>>>>>                         am attaching my openrc file:
>>>>>>>>>
>>>>>>>>>                         OS_PROJECT_DOMAIN_NAME=scigap
>>>>>>>>>                         OS_USER_DOMAIN_NAME=tacc
>>>>>>>>>                         OS_PROJECT_NAME=scigap
>>>>>>>>>                         OS_TENANT_NAME=scigap
>>>>>>>>>                         OS_USERNAME=scigap
>>>>>>>>>                         OS_PASSWORD=XXXXXXXXXXXXX
>>>>>>>>>                         OS_AUTH_URL=
>>>>>>>>> https://jblb.jetstream-cloud.org:35357/v3
>>>>>>>>>                         OS_IDENTITY_API_VERSION=3
>>>>>>>>>
>>>>>>>>>                         # Network Properties
>>>>>>>>>                         OS_FLOATING_IP_POOL=public
>>>>>>>>>                         OS_SUBNET_NAME=airavata
>>>>>>>>>
>>>>>>>>>                         To complicate the puzzle, I am
>>>>>>>>>                         consistently able to launch few hundred’s
>>>>>>>>>                         of instances within the past day without
>>>>>>>>>                         any issues. I just checked the code, I am
>>>>>>>>>                         using it out of the box and no local
>>>>>>>>>                         changes.
>>>>>>>>>
>>>>>>>>>                         Suresh
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>                         On Apr 22, 2016, at 3:18 PM, Pankaj Saha
>>>>>>>>>>                         <psaha4@binghamton.edu
>>>>>>>>>>                         <ma...@binghamton.edu>> wrote:
>>>>>>>>>>
>>>>>>>>>>                         Hello Everyone,
>>>>>>>>>>
>>>>>>>>>>                         I had a discussion with Mangirish today
>>>>>>>>>>                         morning and we could figure out through
>>>>>>>>>>                         debugging that java code getting
>>>>>>>>>>                         authentication exception when trying to
>>>>>>>>>>                         authenticate the user with openstack.
>>>>>>>>>>                         NOVA client for openstack did work well
>>>>>>>>>>                         and I have also tested with credentials
>>>>>>>>>>                         to directly login into the portal.
>>>>>>>>>>                         I have replicated the same in another
>>>>>>>>>>                         system in my same lab network and the
>>>>>>>>>>                         test case still failing for the same
>>>>>>>>>>                         status-401, authentication error.
>>>>>>>>>>
>>>>>>>>>>                         I have followed these below steps:
>>>>>>>>>>
>>>>>>>>>>                          1. generated rsa key
>>>>>>>>>>                          2. downloaded airavata from git,
>>>>>>>>>>                             switched it to "develop" branch
>>>>>>>>>>                          3. changed the required property values
>>>>>>>>>>                             for openstack.
>>>>>>>>>>                          4. run : mvn clean install from inside
>>>>>>>>>>                             the cloud/cloud-provisioning module.
>>>>>>>>>>
>>>>>>>>>>                         It's definitely not the firewall issue
>>>>>>>>>>                         as its failing in the authentication
>>>>>>>>>>                         stage. I am attaching my property file
>>>>>>>>>>                         for reference, please let me know if you
>>>>>>>>>>                         find anything wrong in this.
>>>>>>>>>>                         *test_data.properties*
>>>>>>>>>>
>>>>>>>>>>                             # Common properties
>>>>>>>>>>
>>>>>>>>>> publicKeyFile=/home/psaha4/.ssh/id_rsa.pub
>>>>>>>>>>                             # Jetstream properties
>>>>>>>>>>
>>>>>>>>>> jetstream_imageId=448636b0-450a-4b49-9bfe-b3135fc443e8
>>>>>>>>>>                             jetstream_flavorId=3
>>>>>>>>>>                             OS_PROJECT_DOMAIN_NAME=tacc
>>>>>>>>>>                             OS_USER_DOMAIN_NAME=tacc
>>>>>>>>>>                             OS_PROJECT_NAME=scigap
>>>>>>>>>>                             OS_TENANT_NAME=scigap
>>>>>>>>>>                             OS_USERNAME=scigap
>>>>>>>>>>                             OS_PASSWORD=<not exposing the
>>>>>>>>>>                             password here>
>>>>>>>>>>                             OS_AUTH_URL=
>>>>>>>>>> https://jblb.jetstream-cloud.org:35357/v3
>>>>>>>>>>                             OS_IDENTITY_API_VERSION=3
>>>>>>>>>>                             # Network Properties
>>>>>>>>>>                             OS_FLOATING_IP_POOL=public
>>>>>>>>>>                             OS_SUBNET_NAME=airavata
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>                         Can someone send me
>>>>>>>>>>                         jetstream_openrc.properties and
>>>>>>>>>>                         test_data.properties file from a working
>>>>>>>>>>                         environment in  a separate email so that
>>>>>>>>>>                         I can place them and test from my system
>>>>>>>>>>                         once.
>>>>>>>>>>
>>>>>>>>>>                         Thanks
>>>>>>>>>>                         Pankaj
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>                         On Thu, Apr 21, 2016 at 11:43 AM, Pankaj
>>>>>>>>>>                         Saha <psaha4@binghamton.edu
>>>>>>>>>>                         <ma...@binghamton.edu>> wrote:
>>>>>>>>>>
>>>>>>>>>>                             Hi Shameera,
>>>>>>>>>>                             I have received the password from
>>>>>>>>>>                             Mangirish and I am using the same
>>>>>>>>>>                             details as he has provided.
>>>>>>>>>>                             Regarding the jetstream keypair, my
>>>>>>>>>>                             understanding is, during the test
>>>>>>>>>>                             run it fetches the public key from
>>>>>>>>>>                             the properties file and send it to
>>>>>>>>>>                             the jetstream servers. Please let me
>>>>>>>>>>                             know how I need to configure it
>>>>>>>>>>                             separately.
>>>>>>>>>>
>>>>>>>>>>                             Thanks
>>>>>>>>>>                             Pankaj
>>>>>>>>>>
>>>>>>>>>>                             On Wed, Apr 20, 2016 at 8:48 PM,
>>>>>>>>>>                             Shameera Rathnayaka
>>>>>>>>>>                             <shameerainfo@gmail.com
>>>>>>>>>>                             <ma...@gmail.com>>
>>>>>>>>>> wrote:
>>>>>>>>>>
>>>>>>>>>>                                 Hi Pankaj,
>>>>>>>>>>
>>>>>>>>>>                                 To work with your ssh keys you
>>>>>>>>>>                                 need to add them to jetstream
>>>>>>>>>>                                 keypair. Have you done that part?
>>>>>>>>>>
>>>>>>>>>>                                 also you are not providing
>>>>>>>>>>                                 correct the OS_PASSWORD value
>>>>>>>>>>                                 accordding to above deatils.
>>>>>>>>>>
>>>>>>>>>>                                 Shameera.
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>                                 On Wed, Apr 20, 2016 at 3:42 PM
>>>>>>>>>>                                 Pankaj Saha
>>>>>>>>>>                                 <psaha4@binghamton.edu
>>>>>>>>>>                                 <ma...@binghamton.edu>>
>>>>>>>>>>                                 wrote:
>>>>>>>>>>
>>>>>>>>>>                                     I have just use maven to
>>>>>>>>>>                                     build the same project. here
>>>>>>>>>>                                     is thedetails
>>>>>>>>>>                                     # Common properties
>>>>>>>>>>
>>>>>>>>>> publicKeyFile=/home/psaha4/.ssh/id_rsa.pub
>>>>>>>>>>
>>>>>>>>>>                                     # Jetstream properties
>>>>>>>>>>
>>>>>>>>>> jetstream_imageId=448636b0-450a-4b49-9bfe-b3135fc443e8
>>>>>>>>>>                                     jetstream_flavorId=3
>>>>>>>>>>
>>>>>>>>>>                                     OS_PROJECT_DOMAIN_NAME=tacc
>>>>>>>>>>                                     OS_USER_DOMAIN_NAME=tacc
>>>>>>>>>>                                     OS_PROJECT_NAME=scigap
>>>>>>>>>>                                     OS_TENANT_NAME=scigap
>>>>>>>>>>                                     OS_USERNAME=scigap
>>>>>>>>>>                                     OS_PASSWORD=<not exposing
>>>>>>>>>> here>
>>>>>>>>>>                                     OS_AUTH_URL=
>>>>>>>>>> https://jblb.jetstream-cloud.org:35357/v3
>>>>>>>>>>                                     OS_IDENTITY_API_VERSION=3
>>>>>>>>>>
>>>>>>>>>>                                     # Network Properties
>>>>>>>>>>                                     OS_FLOATING_IP_POOL=public
>>>>>>>>>>                                     OS_SUBNET_NAME=airavata
>>>>>>>>>>
>>>>>>>>>>                                     The test case error that I
>>>>>>>>>>                                     am getting for the Test case
>>>>>>>>>>                                     is al below:
>>>>>>>>>>
>>>>>>>>>> -------------------------------------------------------
>>>>>>>>>>                                      T E S T S
>>>>>>>>>>
>>>>>>>>>> -------------------------------------------------------
>>>>>>>>>>                                     Running
>>>>>>>>>>
>>>>>>>>>> org.apache.airavata.cloud.test.CloudIntfTest
>>>>>>>>>>
>>>>>>>>>> AuthenticationException{message=Unauthorized,
>>>>>>>>>>                                     status=401}
>>>>>>>>>>                                     at
>>>>>>>>>>
>>>>>>>>>> org.openstack4j.core.transport.HttpExceptionHandler.mapException(HttpExceptionHandler.java:36)
>>>>>>>>>>                                     at
>>>>>>>>>>
>>>>>>>>>> org.openstack4j.core.transport.HttpExceptionHandler.mapException(HttpExceptionHandler.java:23)
>>>>>>>>>>                                     at
>>>>>>>>>>
>>>>>>>>>> org.openstack4j.openstack.internal.OSAuthenticator.authenticateV3(OSAuthenticator.java:161)
>>>>>>>>>>                                     at
>>>>>>>>>>
>>>>>>>>>> org.openstack4j.openstack.internal.OSAuthenticator.invoke(OSAuthenticator.java:78)
>>>>>>>>>>                                     at
>>>>>>>>>>
>>>>>>>>>> org.openstack4j.openstack.client.OSClientBuilder$ClientV3.authenticate(OSClientBuilder.java:163)
>>>>>>>>>>                                     at
>>>>>>>>>>
>>>>>>>>>> org.openstack4j.openstack.client.OSClientBuilder$ClientV3.authenticate(OSClientBuilder.java:127)
>>>>>>>>>>                                     at
>>>>>>>>>>
>>>>>>>>>> org.apache.airavata.cloud.openstack.OS4JClientProvider.getOSClientV3(OS4JClientProvider.java:86)
>>>>>>>>>>                                     at
>>>>>>>>>>
>>>>>>>>>> org.apache.airavata.cloud.openstack.OS4JClientProvider.getOSClient(OS4JClientProvider.java:49)
>>>>>>>>>>                                     at
>>>>>>>>>>
>>>>>>>>>> org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl.<init>(OpenstackIntfImpl.java:78)
>>>>>>>>>>                                     at
>>>>>>>>>>
>>>>>>>>>> org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:77)
>>>>>>>>>>                                     at
>>>>>>>>>>
>>>>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native
>>>>>>>>>>                                     Method)
>>>>>>>>>>                                     at
>>>>>>>>>>
>>>>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>>>>>>>>>                                     at
>>>>>>>>>>
>>>>>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>>>>>>>                                     at
>>>>>>>>>>
>>>>>>>>>> java.lang.reflect.Method.invoke(Method.java:498)
>>>>>>>>>>                                     at
>>>>>>>>>>
>>>>>>>>>> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>>>>>>>>>>                                     at
>>>>>>>>>>
>>>>>>>>>> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>>>>>>>>>>                                     at
>>>>>>>>>>
>>>>>>>>>> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>>>>>>>>>>                                     at
>>>>>>>>>>
>>>>>>>>>> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>>>>>>>>>>                                     at
>>>>>>>>>>
>>>>>>>>>> org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>>>>>>>>>>                                     at
>>>>>>>>>>
>>>>>>>>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
>>>>>>>>>>                                     at
>>>>>>>>>>
>>>>>>>>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
>>>>>>>>>>                                     at
>>>>>>>>>>
>>>>>>>>>> org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>>>>>>>>>>                                     at
>>>>>>>>>>
>>>>>>>>>> org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>>>>>>>>>>                                     at
>>>>>>>>>>
>>>>>>>>>> org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>>>>>>>>>>                                     at
>>>>>>>>>>
>>>>>>>>>> org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>>>>>>>>>>                                     at
>>>>>>>>>>
>>>>>>>>>> org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>>>>>>>>>>                                     at
>>>>>>>>>>
>>>>>>>>>> org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>>>>>>>>>>                                     at
>>>>>>>>>>
>>>>>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
>>>>>>>>>>                                     at
>>>>>>>>>>
>>>>>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
>>>>>>>>>>                                     at
>>>>>>>>>>
>>>>>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
>>>>>>>>>>                                     at
>>>>>>>>>>
>>>>>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
>>>>>>>>>>                                     at
>>>>>>>>>>
>>>>>>>>>> org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
>>>>>>>>>>                                     at
>>>>>>>>>>
>>>>>>>>>> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
>>>>>>>>>>                                     at
>>>>>>>>>>
>>>>>>>>>> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>>>>>>>>>>                                     java.lang.NullPointerException
>>>>>>>>>>                                     at
>>>>>>>>>>
>>>>>>>>>> org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl.getKeyPair(OpenstackIntfImpl.java:215)
>>>>>>>>>>                                     at
>>>>>>>>>>
>>>>>>>>>> org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:92)
>>>>>>>>>>                                     at
>>>>>>>>>>
>>>>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native
>>>>>>>>>>                                     Method)
>>>>>>>>>>                                     at
>>>>>>>>>>
>>>>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>>>>>>>>>                                     at
>>>>>>>>>>
>>>>>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>>>>>>>                                     at
>>>>>>>>>>
>>>>>>>>>> java.lang.reflect.Method.invoke(Method.java:498)
>>>>>>>>>>                                     at
>>>>>>>>>>
>>>>>>>>>> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>>>>>>>>>>                                     at
>>>>>>>>>>
>>>>>>>>>> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>>>>>>>>>>                                     at
>>>>>>>>>>
>>>>>>>>>> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>>>>>>>>>>                                     at
>>>>>>>>>>
>>>>>>>>>> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>>>>>>>>>>                                     at
>>>>>>>>>>
>>>>>>>>>> org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>>>>>>>>>>                                     at
>>>>>>>>>>
>>>>>>>>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
>>>>>>>>>>                                     at
>>>>>>>>>>
>>>>>>>>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
>>>>>>>>>>                                     at
>>>>>>>>>>
>>>>>>>>>> org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>>>>>>>>>>                                     at
>>>>>>>>>>
>>>>>>>>>> org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>>>>>>>>>>                                     at
>>>>>>>>>>
>>>>>>>>>> org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>>>>>>>>>>                                     at
>>>>>>>>>>
>>>>>>>>>> org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>>>>>>>>>>                                     at
>>>>>>>>>>
>>>>>>>>>> org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>>>>>>>>>>                                     at
>>>>>>>>>>
>>>>>>>>>> org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>>>>>>>>>>                                     at
>>>>>>>>>>
>>>>>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
>>>>>>>>>>                                     at
>>>>>>>>>>
>>>>>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
>>>>>>>>>>                                     at
>>>>>>>>>>
>>>>>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
>>>>>>>>>>                                     at
>>>>>>>>>>
>>>>>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
>>>>>>>>>>                                     at
>>>>>>>>>>
>>>>>>>>>> org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
>>>>>>>>>>                                     at
>>>>>>>>>>
>>>>>>>>>> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
>>>>>>>>>>                                     at
>>>>>>>>>>
>>>>>>>>>> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>>>>>>>>>>                                     [main] ERROR
>>>>>>>>>>
>>>>>>>>>> org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl
>>>>>>>>>>                                     - Failed to retrieve
>>>>>>>>>>                                     keypair: testKey
>>>>>>>>>>                                     java.lang.NullPointerException
>>>>>>>>>>                                     at
>>>>>>>>>>
>>>>>>>>>> org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl.createKeyPair(OpenstackIntfImpl.java:197)
>>>>>>>>>>                                     at
>>>>>>>>>>
>>>>>>>>>> org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:94)
>>>>>>>>>>                                     at
>>>>>>>>>>
>>>>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native
>>>>>>>>>>                                     Method)
>>>>>>>>>>                                     at
>>>>>>>>>>
>>>>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>>>>>>>>>                                     at
>>>>>>>>>>
>>>>>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>>>>>>>                                     at
>>>>>>>>>>
>>>>>>>>>> java.lang.reflect.Method.invoke(Method.java:498)
>>>>>>>>>>                                     at
>>>>>>>>>>
>>>>>>>>>> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>>>>>>>>>>                                     at
>>>>>>>>>>
>>>>>>>>>> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>>>>>>>>>>                                     at
>>>>>>>>>>
>>>>>>>>>> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>>>>>>>>>>                                     at
>>>>>>>>>>
>>>>>>>>>> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>>>>>>>>>>                                     at
>>>>>>>>>>
>>>>>>>>>> org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>>>>>>>>>>                                     at
>>>>>>>>>>
>>>>>>>>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
>>>>>>>>>>                                     at
>>>>>>>>>>
>>>>>>>>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
>>>>>>>>>>                                     at
>>>>>>>>>>
>>>>>>>>>> org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>>>>>>>>>>                                     at
>>>>>>>>>>
>>>>>>>>>> org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>>>>>>>>>>                                     at
>>>>>>>>>>
>>>>>>>>>> org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>>>>>>>>>>                                     at
>>>>>>>>>>
>>>>>>>>>> org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>>>>>>>>>>                                     at
>>>>>>>>>>
>>>>>>>>>> org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>>>>>>>>>>                                     at
>>>>>>>>>>
>>>>>>>>>> org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>>>>>>>>>>                                     at
>>>>>>>>>>
>>>>>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
>>>>>>>>>>                                     at
>>>>>>>>>>
>>>>>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
>>>>>>>>>>                                     at
>>>>>>>>>>
>>>>>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
>>>>>>>>>>                                     at
>>>>>>>>>>
>>>>>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
>>>>>>>>>>                                     at
>>>>>>>>>>
>>>>>>>>>> org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
>>>>>>>>>>                                     at
>>>>>>>>>>
>>>>>>>>>> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
>>>>>>>>>>                                     at
>>>>>>>>>>
>>>>>>>>>> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>>>>>>>>>>                                     [main] ERROR
>>>>>>>>>>
>>>>>>>>>> org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl
>>>>>>>>>>                                     - Failed to create keypair:
>>>>>>>>>>                                     testKey
>>>>>>>>>>                                     java.lang.NullPointerException
>>>>>>>>>>                                     at
>>>>>>>>>>
>>>>>>>>>> org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:97)
>>>>>>>>>>                                     at
>>>>>>>>>>
>>>>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native
>>>>>>>>>>                                     Method)
>>>>>>>>>>                                     at
>>>>>>>>>>
>>>>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>>>>>>>>>                                     at
>>>>>>>>>>
>>>>>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>>>>>>>                                     at
>>>>>>>>>>
>>>>>>>>>> java.lang.reflect.Method.invoke(Method.java:498)
>>>>>>>>>>                                     at
>>>>>>>>>>
>>>>>>>>>> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>>>>>>>>>>                                     at
>>>>>>>>>>
>>>>>>>>>> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>>>>>>>>>>                                     at
>>>>>>>>>>
>>>>>>>>>> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>>>>>>>>>>                                     at
>>>>>>>>>>
>>>>>>>>>> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>>>>>>>>>>                                     at
>>>>>>>>>>
>>>>>>>>>> org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>>>>>>>>>>                                     at
>>>>>>>>>>
>>>>>>>>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
>>>>>>>>>>                                     at
>>>>>>>>>>
>>>>>>>>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
>>>>>>>>>>                                     at
>>>>>>>>>>
>>>>>>>>>> org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>>>>>>>>>>                                     at
>>>>>>>>>>
>>>>>>>>>> org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>>>>>>>>>>                                     at
>>>>>>>>>>
>>>>>>>>>> org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>>>>>>>>>>                                     at
>>>>>>>>>>
>>>>>>>>>> org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>>>>>>>>>>                                     at
>>>>>>>>>>
>>>>>>>>>> org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>>>>>>>>>>                                     at
>>>>>>>>>>
>>>>>>>>>> org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>>>>>>>>>>                                     at
>>>>>>>>>>
>>>>>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
>>>>>>>>>>                                     at
>>>>>>>>>>
>>>>>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
>>>>>>>>>>                                     at
>>>>>>>>>>
>>>>>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
>>>>>>>>>>                                     at
>>>>>>>>>>
>>>>>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
>>>>>>>>>>                                     at
>>>>>>>>>>
>>>>>>>>>> org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
>>>>>>>>>>                                     at
>>>>>>>>>>
>>>>>>>>>> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
>>>>>>>>>>                                     at
>>>>>>>>>>
>>>>>>>>>> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>>>>>>>>>>                                     Tests run: 1, Failures: 1,
>>>>>>>>>>                                     Errors: 0, Skipped: 0, Time
>>>>>>>>>>                                     elapsed: 0.913 sec <<<
>>>>>>>>>>                                     FAILURE! - in
>>>>>>>>>>
>>>>>>>>>> org.apache.airavata.cloud.test.CloudIntfTest
>>>>>>>>>>
>>>>>>>>>> jetstreamCreateDeleteServerTest(org.apache.airavata.cloud.test.CloudIntfTest)
>>>>>>>>>>                                      Time elapsed: 0.908 sec
>>>>>>>>>>                                      <<< FAILURE!
>>>>>>>>>>                                     java.lang.AssertionError: null
>>>>>>>>>>                                     at
>>>>>>>>>>
>>>>>>>>>> org.junit.Assert.fail(Assert.java:86)
>>>>>>>>>>                                     at
>>>>>>>>>>
>>>>>>>>>> org.junit.Assert.fail(Assert.java:95)
>>>>>>>>>>                                     at
>>>>>>>>>>
>>>>>>>>>> org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:128)
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>                                     On Wed, Apr 20, 2016 at 3:36
>>>>>>>>>>                                     PM, Suresh Marru
>>>>>>>>>>                                     <smarru@apache.org
>>>>>>>>>>                                     <ma...@apache.org>>
>>>>>>>>>>                                     wrote:
>>>>>>>>>>
>>>>>>>>>>                                         Thats nice. Few
>>>>>>>>>>                                         suggestions:
>>>>>>>>>>
>>>>>>>>>>                                         * Eclipse or IDEA are
>>>>>>>>>>                                         good to write code, but
>>>>>>>>>>                                         to build and run tests
>>>>>>>>>>                                         from maven, command line
>>>>>>>>>>                                         is the best option.
>>>>>>>>>>                                         * Please use the mailing
>>>>>>>>>>                                         lists as much as
>>>>>>>>>>                                         possible so rest of us
>>>>>>>>>>                                         can also contribute. If
>>>>>>>>>>                                         even you use hangouts,
>>>>>>>>>>                                         please take time to
>>>>>>>>>>                                         explain what the issue
>>>>>>>>>>                                         is so it engages every
>>>>>>>>>> one.
>>>>>>>>>>
>>>>>>>>>>                                         I am able to run the
>>>>>>>>>>                                         test cases and am able
>>>>>>>>>>                                         to program
>>>>>>>>>>                                         against OpenstackIntfImpl
>>>>>>>>>> just
>>>>>>>>>>                                         fine. Can you elaborate
>>>>>>>>>>                                         on what is the
>>>>>>>>>>                                         authentication issue you
>>>>>>>>>>                                         are running into?
>>>>>>>>>>
>>>>>>>>>>                                         Suresh
>>>>>>>>>>
>>>>>>>>>>                                         On Apr 20, 2016, at
>>>>>>>>>>>                                         3:30 PM, Pankaj Saha
>>>>>>>>>>>                                         <psaha4@binghamton.edu
>>>>>>>>>>>                                         <mailto:
>>>>>>>>>>> psaha4@binghamton.edu>>
>>>>>>>>>>>                                         wrote:
>>>>>>>>>>>
>>>>>>>>>>>                                         Hi Suresh,
>>>>>>>>>>>
>>>>>>>>>>>                                         I just had a hangout
>>>>>>>>>>>                                         session with Mangirish
>>>>>>>>>>>                                         regarding the same. It
>>>>>>>>>>>                                         looks like an
>>>>>>>>>>>                                         authentication issue
>>>>>>>>>>>                                         with openstack which he
>>>>>>>>>>>                                         is aware of. He has
>>>>>>>>>>>                                         explained me his code
>>>>>>>>>>>                                         and I am going to retry
>>>>>>>>>>>                                         fixing the problem.
>>>>>>>>>>>
>>>>>>>>>>>                                         I did not use maven to
>>>>>>>>>>>                                         build his project
>>>>>>>>>>>                                         instead I have export
>>>>>>>>>>>                                         his project as eclipse
>>>>>>>>>>>                                         (mvn eclipse:eclipse)
>>>>>>>>>>>                                         and trying to run the
>>>>>>>>>>>                                         junit test.
>>>>>>>>>>>
>>>>>>>>>>>                                         Will update you once I
>>>>>>>>>>>                                         find something new.
>>>>>>>>>>>
>>>>>>>>>>>                                         Thanks
>>>>>>>>>>>                                         Pankaj
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>                                         On Wed, Apr 20, 2016 at
>>>>>>>>>>>                                         3:21 PM, Suresh Marru
>>>>>>>>>>>                                         <smarru@apache.org
>>>>>>>>>>>                                         <mailto:
>>>>>>>>>>> smarru@apache.org>>
>>>>>>>>>>>                                         wrote:
>>>>>>>>>>>
>>>>>>>>>>>                                             Hi Pankaj,
>>>>>>>>>>>
>>>>>>>>>>>                                             Can you please be
>>>>>>>>>>>                                             more clear? What is
>>>>>>>>>>>                                             failing? Did you
>>>>>>>>>>>                                             try to build it
>>>>>>>>>>>                                             using maven within
>>>>>>>>>>>                                             the cloud
>>>>>>>>>>>                                             provisioning
>>>>>>>>>>>                                             directory itself?
>>>>>>>>>>>                                             Did you change the
>>>>>>>>>>>                                             public key file in
>>>>>>>>>>>                                             the
>>>>>>>>>>>                                             test_data.properties?
>>>>>>>>>>>
>>>>>>>>>>>                                             Suresh
>>>>>>>>>>>
>>>>>>>>>>>                                             On Apr 20, 2016,
>>>>>>>>>>>>                                             at 2:56 PM, Pankaj
>>>>>>>>>>>>                                             Saha
>>>>>>>>>>>>                                             <
>>>>>>>>>>>> psaha4@binghamton.edu
>>>>>>>>>>>>                                             <mailto:
>>>>>>>>>>>> psaha4@binghamton.edu>>
>>>>>>>>>>>>                                             wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>                                             I am able to get
>>>>>>>>>>>>                                             Mangirish's code
>>>>>>>>>>>>                                             in the develop
>>>>>>>>>>>>                                             branch. After
>>>>>>>>>>>>                                             making it an
>>>>>>>>>>>>                                             eclipse project,
>>>>>>>>>>>>                                             when I am trying
>>>>>>>>>>>>                                             to run it as JUnit
>>>>>>>>>>>>                                             test, it's failing.
>>>>>>>>>>>>                                             Need help to fix
>>>>>>>>>>>>                                             this, possibly
>>>>>>>>>>>>                                             some configuration
>>>>>>>>>>>>                                             changes in the
>>>>>>>>>>>>                                             properties file or
>>>>>>>>>>>>                                             similar.
>>>>>>>>>>>>                                             It will be great
>>>>>>>>>>>>                                             we can talk over a
>>>>>>>>>>>>                                             hangout session or
>>>>>>>>>>>>                                             at least a chat
>>>>>>>>>>>>                                             session to make it
>>>>>>>>>>>>                                             work.
>>>>>>>>>>>>
>>>>>>>>>>>>                                             On Wed, Apr 20,
>>>>>>>>>>>>                                             2016 at 12:05 PM,
>>>>>>>>>>>>                                             Mangirish Wagle
>>>>>>>>>>>>                                             <
>>>>>>>>>>>> vaglomangirish@gmail.com
>>>>>>>>>>>>                                             <mailto:
>>>>>>>>>>>> vaglomangirish@gmail.com>>
>>>>>>>>>>>>                                             wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>                                                 Hi Pankaj,
>>>>>>>>>>>>
>>>>>>>>>>>>                                                 You may find a
>>>>>>>>>>>>                                                 sample test
>>>>>>>>>>>>                                                 code for the
>>>>>>>>>>>>                                                 module in this
>>>>>>>>>>>>                                                 unit test file:-
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> https://github.com/apache/airavata/blob/develop/modules/cloud/cloud-provisioning/src/test/java/org/apache/airavata/cloud/test/CloudIntfTest.java
>>>>>>>>>>>>
>>>>>>>>>>>>                                                 Also, if you
>>>>>>>>>>>>                                                 want to test
>>>>>>>>>>>>                                                 run the code,
>>>>>>>>>>>>                                                 you may please
>>>>>>>>>>>>                                                 follow this
>>>>>>>>>>>>                                                 quick README:-
>>>>>>>>>>>
>>>>>>>>>>>

Re: Jetstream VM creation through Airavata

Posted by Emre Brookes <em...@biochem.uthscsa.edu>.
Suresh,

Yes, I am having issues with Jetstream today..
Fortunately, Jetstream is not in formal "production", but I was hoping 
to use
it during a genapp tutorial at the ssi/ccp-sas meeting late May, but with
all the problems with Jetstream, I will have to make other plans for the 
tutorial.

Emre


Suresh Marru wrote:
> On Apr 29, 2016, at 10:00 PM, Emre Brookes <em...@biochem.uthscsa.edu> wrote:
>> FYI - I think this effects other users also.  I have had odd issues with Jetstream after you mentioned these tests.
> Hi Emre,
>
> Is this now? If you are referring to network issues few days ago, there were isolated problems with DHCP servers. But largely most of the issues Pankaj and me are discussing are related a single user quota (we both are sharing a account) and that should not have effected you.
>
> With the scale of testing I am loading up, its possible I could be causing the system wide issues. My excuse will be the system is not yet in production :)
>
> Suresh
>
>> Emre
>>
>> Suresh Marru wrote:
>>> How many instances do you need to test? I have about 1200 instances running for a stress test and I am exhausting quotes at various levels, hence these errors.
>>>
>>> If will be releasing all my VM\u2019s wednesday afternoon. So tell me how many you need between now and then and I will release some.
>>>
>>> Suresh
>>>
>>>> On Apr 29, 2016, at 9:05 PM, Pankaj Saha <psaha4@binghamton.edu <ma...@binghamton.edu>> wrote:
>>>>
>>>> Hi Suresh,
>>>> I could ssh to VMs but new VMs are not getting any floating public IP.
>>>>
>>>> Thanks
>>>> Pankaj
>>>>
>>>> On Fri, Apr 29, 2016 at 8:51 PM, Suresh Marru <smarru@apache.org <ma...@apache.org>> wrote:
>>>>
>>>>     Pankaj,
>>>>
>>>>     Do you still have the issue?
>>>>
>>>>     Suresh
>>>>
>>>>>     On Apr 28, 2016, at 5:26 PM, Pankaj Saha <psaha4@binghamton.edu
>>>>>     <ma...@binghamton.edu>> wrote:
>>>>>
>>>>>     Details of my VM is as mentioned below:
>>>>>
>>>>>     Name: Mesos Agent
>>>>>     Floating IPs:149.165.157.247
>>>>>     size: m1.medium
>>>>>     key: pankaj SSH key
>>>>>
>>>>>
>>>>>     On Thu, Apr 28, 2016 at 5:22 PM, Pankaj Saha
>>>>>     <psaha4@binghamton.edu <ma...@binghamton.edu>> wrote:
>>>>>
>>>>>         Hi
>>>>>         I need SSH to get the console access to install required
>>>>>         software. I believe SSH server is not running by default in
>>>>>         the ubuntu based servers and also I can not access its
>>>>>         console through the openstack web UI.
>>>>>         Please suggest.
>>>>>
>>>>>         Thanks
>>>>>         Pankaj
>>>>>
>>>>>         On Thu, Apr 28, 2016 at 5:00 PM, Pankaj Saha
>>>>>         <psaha4@binghamton.edu <ma...@binghamton.edu>> wrote:
>>>>>
>>>>>             Hi Suresh,
>>>>>             Yes, it's accessible now. Thanks.
>>>>>
>>>>>             On Thu, Apr 28, 2016 at 4:39 PM, Suresh Marru
>>>>>             <smarru@apache.org <ma...@apache.org>> wrote:
>>>>>
>>>>>                 Pankaj,
>>>>>
>>>>>                 Try now.
>>>>>
>>>>>                 Suresh
>>>>>
>>>>>>                 On Apr 28, 2016, at 1:05 PM, Suresh Marru
>>>>>>                 <smarru@apache.org <ma...@apache.org>> wrote:
>>>>>>
>>>>>>                 Hi Pankaj,
>>>>>>
>>>>>>                 By default yes they will be accessible from
>>>>>>                 outside. The firewall\u2019s are controlled by the
>>>>>>                 security policy and currently both ssh and http are
>>>>>>                 accessible widely. There are issues with Open Stack
>>>>>>                 Neutron services and I reported them. I will post
>>>>>>                 when the network is back stable.
>>>>>>
>>>>>>                 Suresh
>>>>>>
>>>>>>>                 On Apr 28, 2016, at 1:02 PM, Pankaj Saha
>>>>>>>                 <psaha4@binghamton.edu
>>>>>>>                 <ma...@binghamton.edu>> wrote:
>>>>>>>
>>>>>>>                 Hello Devs,
>>>>>>>                 I have created a VM in openstack through
>>>>>>>                 cloud-provisioning module. Which returned an VM
>>>>>>>                 with floating ip : 149.165.157.215. I was
>>>>>>>                 expecting that this VM will be accessible through
>>>>>>>                 ssh over public ipassigned to it. I need ssh
>>>>>>>                 access to these VMs for including mesos binaries
>>>>>>>                 into them so that these images can be used as
>>>>>>>                 mesos agents for Gourav's prject.
>>>>>>>
>>>>>>>                 Please let me know if it is blocked by any
>>>>>>>                 firewall and whats the process to get access to them.
>>>>>>>
>>>>>>>                 Thanks
>>>>>>>                 Pankaj
>>>>>>>
>>>>>>>                 On Fri, Apr 22, 2016 at 4:43 PM, Pankaj Saha
>>>>>>>                 <psaha4@binghamton.edu
>>>>>>>                 <ma...@binghamton.edu>> wrote:
>>>>>>>
>>>>>>>                     Hi Suresh,
>>>>>>>                     Yes, that was the problem. Now it's working.
>>>>>>>                     here is the log:
>>>>>>>                     [main] INFO
>>>>>>>                     org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl
>>>>>>>                     - Keypair created successfully: testKey
>>>>>>>                     [main] INFO
>>>>>>>                     org.apache.airavata.cloud.test.CloudIntfTest -
>>>>>>>                     Keypair created/ retrieved:
>>>>>>>                     83:17:5b:2c:f3:31:06:af:99:c1:c8:8b:62:72:36:35
>>>>>>>                     [main] INFO
>>>>>>>                     org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl
>>>>>>>                     - Using network subnet-airavata with ID:
>>>>>>>                     ad2552d6-1a02-4d6c-9fa4-ad40d93e5423
>>>>>>>                     [main] INFO
>>>>>>>                     org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl
>>>>>>>                     - New server created with ID:
>>>>>>>                     2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>>>>>>>                     [main] INFO
>>>>>>>                     org.apache.airavata.cloud.test.CloudIntfTest -
>>>>>>>                     Server Created:
>>>>>>>                     2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>>>>>>>                     [main] INFO
>>>>>>>                     org.apache.airavata.cloud.test.CloudIntfTest -
>>>>>>>                     Waiting for instance to go ACTIVE...
>>>>>>>                     [main] INFO
>>>>>>>                     org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl
>>>>>>>                     - Server retrieved successfully for ID:
>>>>>>>                     2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>>>>>>>                     [main] INFO
>>>>>>>                     org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl
>>>>>>>                     - true:200:null:ActionResponse{success=true,
>>>>>>>                     code=200}
>>>>>>>                     [main] INFO
>>>>>>>                     org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl
>>>>>>>                     - Floating IP 149.165.156.142 assigned
>>>>>>>                     successfully to server with ID:
>>>>>>>                     2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>>>>>>>                     [main] INFO
>>>>>>>                     org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl
>>>>>>>                     - Server retrieved successfully for ID:
>>>>>>>                     2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>>>>>>>                     [main] INFO
>>>>>>>                     org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl
>>>>>>>                     - Server deleted successfully for ID:
>>>>>>>                     2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>>>>>>>                     [main] INFO
>>>>>>>                     org.apache.airavata.cloud.test.CloudIntfTest -
>>>>>>>                     Server deleted:
>>>>>>>                     2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>>>>>>>                     [main] INFO
>>>>>>>                     org.apache.airavata.cloud.test.CloudIntfTest -
>>>>>>>                     Waiting for instance to terminate...
>>>>>>>                     [main] INFO
>>>>>>>                     org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl
>>>>>>>                     - Keypair deleted successfully: testKey
>>>>>>>                     [main] INFO
>>>>>>>                     org.apache.airavata.cloud.test.CloudIntfTest -
>>>>>>>                     Keypair deleted: testKey
>>>>>>>                     [main] INFO
>>>>>>>                     org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl
>>>>>>>                     - Server retrieved successfully for ID:
>>>>>>>                     2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>>>>>>>
>>>>>>>
>>>>>>>                     Thanks
>>>>>>>                     Pankaj
>>>>>>>
>>>>>>>                     On Fri, Apr 22, 2016 at 4:15 PM, Suresh Marru
>>>>>>>                     <smarru@apache.org <ma...@apache.org>>
>>>>>>>                     wrote:
>>>>>>>
>>>>>>>                         I now noticed that you have
>>>>>>>                         used OS_PROJECT_DOMAIN_NAME=tacc instead
>>>>>>>                         of OS_PROJECT_DOMAIN_NAME=scigap
>>>>>>>
>>>>>>>                         Suresh
>>>>>>>
>>>>>>>>                         On Apr 22, 2016, at 4:14 PM, Suresh Marru
>>>>>>>>                         <smarru@apache.org
>>>>>>>>                         <ma...@apache.org>> wrote:
>>>>>>>>
>>>>>>>>                         Hi Pankaj, Mangirish,
>>>>>>>>
>>>>>>>>                         Is this intermittent or do you
>>>>>>>>                         consistently get authentication issues? I
>>>>>>>>                         am attaching my openrc file:
>>>>>>>>
>>>>>>>>                         OS_PROJECT_DOMAIN_NAME=scigap
>>>>>>>>                         OS_USER_DOMAIN_NAME=tacc
>>>>>>>>                         OS_PROJECT_NAME=scigap
>>>>>>>>                         OS_TENANT_NAME=scigap
>>>>>>>>                         OS_USERNAME=scigap
>>>>>>>>                         OS_PASSWORD=XXXXXXXXXXXXX
>>>>>>>>                         OS_AUTH_URL=https://jblb.jetstream-cloud.org:35357/v3
>>>>>>>>                         OS_IDENTITY_API_VERSION=3
>>>>>>>>
>>>>>>>>                         # Network Properties
>>>>>>>>                         OS_FLOATING_IP_POOL=public
>>>>>>>>                         OS_SUBNET_NAME=airavata
>>>>>>>>
>>>>>>>>                         To complicate the puzzle, I am
>>>>>>>>                         consistently able to launch few hundred\u2019s
>>>>>>>>                         of instances within the past day without
>>>>>>>>                         any issues. I just checked the code, I am
>>>>>>>>                         using it out of the box and no local
>>>>>>>>                         changes.
>>>>>>>>
>>>>>>>>                         Suresh
>>>>>>>>
>>>>>>>>
>>>>>>>>>                         On Apr 22, 2016, at 3:18 PM, Pankaj Saha
>>>>>>>>>                         <psaha4@binghamton.edu
>>>>>>>>>                         <ma...@binghamton.edu>> wrote:
>>>>>>>>>
>>>>>>>>>                         Hello Everyone,
>>>>>>>>>
>>>>>>>>>                         I had a discussion with Mangirish today
>>>>>>>>>                         morning and we could figure out through
>>>>>>>>>                         debugging that java code getting
>>>>>>>>>                         authentication exception when trying to
>>>>>>>>>                         authenticate the user with openstack.
>>>>>>>>>                         NOVA client for openstack did work well
>>>>>>>>>                         and I have also tested with credentials
>>>>>>>>>                         to directly login into the portal.
>>>>>>>>>                         I have replicated the same in another
>>>>>>>>>                         system in my same lab network and the
>>>>>>>>>                         test case still failing for the same
>>>>>>>>>                         status-401, authentication error.
>>>>>>>>>
>>>>>>>>>                         I have followed these below steps:
>>>>>>>>>
>>>>>>>>>                          1. generated rsa key
>>>>>>>>>                          2. downloaded airavata from git,
>>>>>>>>>                             switched it to "develop" branch
>>>>>>>>>                          3. changed the required property values
>>>>>>>>>                             for openstack.
>>>>>>>>>                          4. run : mvn clean install from inside
>>>>>>>>>                             the cloud/cloud-provisioning module.
>>>>>>>>>
>>>>>>>>>                         It's definitely not the firewall issue
>>>>>>>>>                         as its failing in the authentication
>>>>>>>>>                         stage. I am attaching my property file
>>>>>>>>>                         for reference, please let me know if you
>>>>>>>>>                         find anything wrong in this.
>>>>>>>>>                         *test_data.properties*
>>>>>>>>>
>>>>>>>>>                             # Common properties
>>>>>>>>>                             publicKeyFile=/home/psaha4/.ssh/id_rsa.pub
>>>>>>>>>                             # Jetstream properties
>>>>>>>>>                             jetstream_imageId=448636b0-450a-4b49-9bfe-b3135fc443e8
>>>>>>>>>                             jetstream_flavorId=3
>>>>>>>>>                             OS_PROJECT_DOMAIN_NAME=tacc
>>>>>>>>>                             OS_USER_DOMAIN_NAME=tacc
>>>>>>>>>                             OS_PROJECT_NAME=scigap
>>>>>>>>>                             OS_TENANT_NAME=scigap
>>>>>>>>>                             OS_USERNAME=scigap
>>>>>>>>>                             OS_PASSWORD=<not exposing the
>>>>>>>>>                             password here>
>>>>>>>>>                             OS_AUTH_URL=https://jblb.jetstream-cloud.org:35357/v3
>>>>>>>>>                             OS_IDENTITY_API_VERSION=3
>>>>>>>>>                             # Network Properties
>>>>>>>>>                             OS_FLOATING_IP_POOL=public
>>>>>>>>>                             OS_SUBNET_NAME=airavata
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>                         Can someone send me
>>>>>>>>>                         jetstream_openrc.properties and
>>>>>>>>>                         test_data.properties file from a working
>>>>>>>>>                         environment in  a separate email so that
>>>>>>>>>                         I can place them and test from my system
>>>>>>>>>                         once.
>>>>>>>>>
>>>>>>>>>                         Thanks
>>>>>>>>>                         Pankaj
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>                         On Thu, Apr 21, 2016 at 11:43 AM, Pankaj
>>>>>>>>>                         Saha <psaha4@binghamton.edu
>>>>>>>>>                         <ma...@binghamton.edu>> wrote:
>>>>>>>>>
>>>>>>>>>                             Hi Shameera,
>>>>>>>>>                             I have received the password from
>>>>>>>>>                             Mangirish and I am using the same
>>>>>>>>>                             details as he has provided.
>>>>>>>>>                             Regarding the jetstream keypair, my
>>>>>>>>>                             understanding is, during the test
>>>>>>>>>                             run it fetches the public key from
>>>>>>>>>                             the properties file and send it to
>>>>>>>>>                             the jetstream servers. Please let me
>>>>>>>>>                             know how I need to configure it
>>>>>>>>>                             separately.
>>>>>>>>>
>>>>>>>>>                             Thanks
>>>>>>>>>                             Pankaj
>>>>>>>>>
>>>>>>>>>                             On Wed, Apr 20, 2016 at 8:48 PM,
>>>>>>>>>                             Shameera Rathnayaka
>>>>>>>>>                             <shameerainfo@gmail.com
>>>>>>>>>                             <ma...@gmail.com>> wrote:
>>>>>>>>>
>>>>>>>>>                                 Hi Pankaj,
>>>>>>>>>
>>>>>>>>>                                 To work with your ssh keys you
>>>>>>>>>                                 need to add them to jetstream
>>>>>>>>>                                 keypair. Have you done that part?
>>>>>>>>>
>>>>>>>>>                                 also you are not providing
>>>>>>>>>                                 correct the OS_PASSWORD value
>>>>>>>>>                                 accordding to above deatils.
>>>>>>>>>
>>>>>>>>>                                 Shameera.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>                                 On Wed, Apr 20, 2016 at 3:42 PM
>>>>>>>>>                                 Pankaj Saha
>>>>>>>>>                                 <psaha4@binghamton.edu
>>>>>>>>>                                 <ma...@binghamton.edu>>
>>>>>>>>>                                 wrote:
>>>>>>>>>
>>>>>>>>>                                     I have just use maven to
>>>>>>>>>                                     build the same project. here
>>>>>>>>>                                     is thedetails
>>>>>>>>>                                     # Common properties
>>>>>>>>>                                     publicKeyFile=/home/psaha4/.ssh/id_rsa.pub
>>>>>>>>>
>>>>>>>>>                                     # Jetstream properties
>>>>>>>>>                                     jetstream_imageId=448636b0-450a-4b49-9bfe-b3135fc443e8
>>>>>>>>>                                     jetstream_flavorId=3
>>>>>>>>>
>>>>>>>>>                                     OS_PROJECT_DOMAIN_NAME=tacc
>>>>>>>>>                                     OS_USER_DOMAIN_NAME=tacc
>>>>>>>>>                                     OS_PROJECT_NAME=scigap
>>>>>>>>>                                     OS_TENANT_NAME=scigap
>>>>>>>>>                                     OS_USERNAME=scigap
>>>>>>>>>                                     OS_PASSWORD=<not exposing here>
>>>>>>>>>                                     OS_AUTH_URL=https://jblb.jetstream-cloud.org:35357/v3
>>>>>>>>>                                     OS_IDENTITY_API_VERSION=3
>>>>>>>>>
>>>>>>>>>                                     # Network Properties
>>>>>>>>>                                     OS_FLOATING_IP_POOL=public
>>>>>>>>>                                     OS_SUBNET_NAME=airavata
>>>>>>>>>
>>>>>>>>>                                     The test case error that I
>>>>>>>>>                                     am getting for the Test case
>>>>>>>>>                                     is al below:
>>>>>>>>>                                     -------------------------------------------------------
>>>>>>>>>                                      T E S T S
>>>>>>>>>                                     -------------------------------------------------------
>>>>>>>>>                                     Running
>>>>>>>>>                                     org.apache.airavata.cloud.test.CloudIntfTest
>>>>>>>>>                                     AuthenticationException{message=Unauthorized,
>>>>>>>>>                                     status=401}
>>>>>>>>>                                     at
>>>>>>>>>                                     org.openstack4j.core.transport.HttpExceptionHandler.mapException(HttpExceptionHandler.java:36)
>>>>>>>>>                                     at
>>>>>>>>>                                     org.openstack4j.core.transport.HttpExceptionHandler.mapException(HttpExceptionHandler.java:23)
>>>>>>>>>                                     at
>>>>>>>>>                                     org.openstack4j.openstack.internal.OSAuthenticator.authenticateV3(OSAuthenticator.java:161)
>>>>>>>>>                                     at
>>>>>>>>>                                     org.openstack4j.openstack.internal.OSAuthenticator.invoke(OSAuthenticator.java:78)
>>>>>>>>>                                     at
>>>>>>>>>                                     org.openstack4j.openstack.client.OSClientBuilder$ClientV3.authenticate(OSClientBuilder.java:163)
>>>>>>>>>                                     at
>>>>>>>>>                                     org.openstack4j.openstack.client.OSClientBuilder$ClientV3.authenticate(OSClientBuilder.java:127)
>>>>>>>>>                                     at
>>>>>>>>>                                     org.apache.airavata.cloud.openstack.OS4JClientProvider.getOSClientV3(OS4JClientProvider.java:86)
>>>>>>>>>                                     at
>>>>>>>>>                                     org.apache.airavata.cloud.openstack.OS4JClientProvider.getOSClient(OS4JClientProvider.java:49)
>>>>>>>>>                                     at
>>>>>>>>>                                     org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl.<init>(OpenstackIntfImpl.java:78)
>>>>>>>>>                                     at
>>>>>>>>>                                     org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:77)
>>>>>>>>>                                     at
>>>>>>>>>                                     sun.reflect.NativeMethodAccessorImpl.invoke0(Native
>>>>>>>>>                                     Method)
>>>>>>>>>                                     at
>>>>>>>>>                                     sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>>>>>>>>                                     at
>>>>>>>>>                                     sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>>>>>>                                     at
>>>>>>>>>                                     java.lang.reflect.Method.invoke(Method.java:498)
>>>>>>>>>                                     at
>>>>>>>>>                                     org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>>>>>>>>>                                     at
>>>>>>>>>                                     org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>>>>>>>>>                                     at
>>>>>>>>>                                     org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>>>>>>>>>                                     at
>>>>>>>>>                                     org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>>>>>>>>>                                     at
>>>>>>>>>                                     org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>>>>>>>>>                                     at
>>>>>>>>>                                     org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
>>>>>>>>>                                     at
>>>>>>>>>                                     org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
>>>>>>>>>                                     at
>>>>>>>>>                                     org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>>>>>>>>>                                     at
>>>>>>>>>                                     org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>>>>>>>>>                                     at
>>>>>>>>>                                     org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>>>>>>>>>                                     at
>>>>>>>>>                                     org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>>>>>>>>>                                     at
>>>>>>>>>                                     org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>>>>>>>>>                                     at
>>>>>>>>>                                     org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>>>>>>>>>                                     at
>>>>>>>>>                                     org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
>>>>>>>>>                                     at
>>>>>>>>>                                     org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
>>>>>>>>>                                     at
>>>>>>>>>                                     org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
>>>>>>>>>                                     at
>>>>>>>>>                                     org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
>>>>>>>>>                                     at
>>>>>>>>>                                     org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
>>>>>>>>>                                     at
>>>>>>>>>                                     org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
>>>>>>>>>                                     at
>>>>>>>>>                                     org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>>>>>>>>>                                     java.lang.NullPointerException
>>>>>>>>>                                     at
>>>>>>>>>                                     org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl.getKeyPair(OpenstackIntfImpl.java:215)
>>>>>>>>>                                     at
>>>>>>>>>                                     org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:92)
>>>>>>>>>                                     at
>>>>>>>>>                                     sun.reflect.NativeMethodAccessorImpl.invoke0(Native
>>>>>>>>>                                     Method)
>>>>>>>>>                                     at
>>>>>>>>>                                     sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>>>>>>>>                                     at
>>>>>>>>>                                     sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>>>>>>                                     at
>>>>>>>>>                                     java.lang.reflect.Method.invoke(Method.java:498)
>>>>>>>>>                                     at
>>>>>>>>>                                     org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>>>>>>>>>                                     at
>>>>>>>>>                                     org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>>>>>>>>>                                     at
>>>>>>>>>                                     org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>>>>>>>>>                                     at
>>>>>>>>>                                     org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>>>>>>>>>                                     at
>>>>>>>>>                                     org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>>>>>>>>>                                     at
>>>>>>>>>                                     org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
>>>>>>>>>                                     at
>>>>>>>>>                                     org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
>>>>>>>>>                                     at
>>>>>>>>>                                     org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>>>>>>>>>                                     at
>>>>>>>>>                                     org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>>>>>>>>>                                     at
>>>>>>>>>                                     org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>>>>>>>>>                                     at
>>>>>>>>>                                     org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>>>>>>>>>                                     at
>>>>>>>>>                                     org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>>>>>>>>>                                     at
>>>>>>>>>                                     org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>>>>>>>>>                                     at
>>>>>>>>>                                     org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
>>>>>>>>>                                     at
>>>>>>>>>                                     org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
>>>>>>>>>                                     at
>>>>>>>>>                                     org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
>>>>>>>>>                                     at
>>>>>>>>>                                     org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
>>>>>>>>>                                     at
>>>>>>>>>                                     org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
>>>>>>>>>                                     at
>>>>>>>>>                                     org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
>>>>>>>>>                                     at
>>>>>>>>>                                     org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>>>>>>>>>                                     [main] ERROR
>>>>>>>>>                                     org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl
>>>>>>>>>                                     - Failed to retrieve
>>>>>>>>>                                     keypair: testKey
>>>>>>>>>                                     java.lang.NullPointerException
>>>>>>>>>                                     at
>>>>>>>>>                                     org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl.createKeyPair(OpenstackIntfImpl.java:197)
>>>>>>>>>                                     at
>>>>>>>>>                                     org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:94)
>>>>>>>>>                                     at
>>>>>>>>>                                     sun.reflect.NativeMethodAccessorImpl.invoke0(Native
>>>>>>>>>                                     Method)
>>>>>>>>>                                     at
>>>>>>>>>                                     sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>>>>>>>>                                     at
>>>>>>>>>                                     sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>>>>>>                                     at
>>>>>>>>>                                     java.lang.reflect.Method.invoke(Method.java:498)
>>>>>>>>>                                     at
>>>>>>>>>                                     org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>>>>>>>>>                                     at
>>>>>>>>>                                     org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>>>>>>>>>                                     at
>>>>>>>>>                                     org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>>>>>>>>>                                     at
>>>>>>>>>                                     org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>>>>>>>>>                                     at
>>>>>>>>>                                     org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>>>>>>>>>                                     at
>>>>>>>>>                                     org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
>>>>>>>>>                                     at
>>>>>>>>>                                     org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
>>>>>>>>>                                     at
>>>>>>>>>                                     org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>>>>>>>>>                                     at
>>>>>>>>>                                     org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>>>>>>>>>                                     at
>>>>>>>>>                                     org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>>>>>>>>>                                     at
>>>>>>>>>                                     org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>>>>>>>>>                                     at
>>>>>>>>>                                     org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>>>>>>>>>                                     at
>>>>>>>>>                                     org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>>>>>>>>>                                     at
>>>>>>>>>                                     org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
>>>>>>>>>                                     at
>>>>>>>>>                                     org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
>>>>>>>>>                                     at
>>>>>>>>>                                     org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
>>>>>>>>>                                     at
>>>>>>>>>                                     org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
>>>>>>>>>                                     at
>>>>>>>>>                                     org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
>>>>>>>>>                                     at
>>>>>>>>>                                     org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
>>>>>>>>>                                     at
>>>>>>>>>                                     org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>>>>>>>>>                                     [main] ERROR
>>>>>>>>>                                     org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl
>>>>>>>>>                                     - Failed to create keypair:
>>>>>>>>>                                     testKey
>>>>>>>>>                                     java.lang.NullPointerException
>>>>>>>>>                                     at
>>>>>>>>>                                     org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:97)
>>>>>>>>>                                     at
>>>>>>>>>                                     sun.reflect.NativeMethodAccessorImpl.invoke0(Native
>>>>>>>>>                                     Method)
>>>>>>>>>                                     at
>>>>>>>>>                                     sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>>>>>>>>                                     at
>>>>>>>>>                                     sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>>>>>>                                     at
>>>>>>>>>                                     java.lang.reflect.Method.invoke(Method.java:498)
>>>>>>>>>                                     at
>>>>>>>>>                                     org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>>>>>>>>>                                     at
>>>>>>>>>                                     org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>>>>>>>>>                                     at
>>>>>>>>>                                     org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>>>>>>>>>                                     at
>>>>>>>>>                                     org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>>>>>>>>>                                     at
>>>>>>>>>                                     org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>>>>>>>>>                                     at
>>>>>>>>>                                     org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
>>>>>>>>>                                     at
>>>>>>>>>                                     org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
>>>>>>>>>                                     at
>>>>>>>>>                                     org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>>>>>>>>>                                     at
>>>>>>>>>                                     org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>>>>>>>>>                                     at
>>>>>>>>>                                     org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>>>>>>>>>                                     at
>>>>>>>>>                                     org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>>>>>>>>>                                     at
>>>>>>>>>                                     org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>>>>>>>>>                                     at
>>>>>>>>>                                     org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>>>>>>>>>                                     at
>>>>>>>>>                                     org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
>>>>>>>>>                                     at
>>>>>>>>>                                     org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
>>>>>>>>>                                     at
>>>>>>>>>                                     org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
>>>>>>>>>                                     at
>>>>>>>>>                                     org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
>>>>>>>>>                                     at
>>>>>>>>>                                     org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
>>>>>>>>>                                     at
>>>>>>>>>                                     org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
>>>>>>>>>                                     at
>>>>>>>>>                                     org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>>>>>>>>>                                     Tests run: 1, Failures: 1,
>>>>>>>>>                                     Errors: 0, Skipped: 0, Time
>>>>>>>>>                                     elapsed: 0.913 sec <<<
>>>>>>>>>                                     FAILURE! - in
>>>>>>>>>                                     org.apache.airavata.cloud.test.CloudIntfTest
>>>>>>>>>                                     jetstreamCreateDeleteServerTest(org.apache.airavata.cloud.test.CloudIntfTest)
>>>>>>>>>                                      Time elapsed: 0.908 sec
>>>>>>>>>                                      <<< FAILURE!
>>>>>>>>>                                     java.lang.AssertionError: null
>>>>>>>>>                                     at
>>>>>>>>>                                     org.junit.Assert.fail(Assert.java:86)
>>>>>>>>>                                     at
>>>>>>>>>                                     org.junit.Assert.fail(Assert.java:95)
>>>>>>>>>                                     at
>>>>>>>>>                                     org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:128)
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>                                     On Wed, Apr 20, 2016 at 3:36
>>>>>>>>>                                     PM, Suresh Marru
>>>>>>>>>                                     <smarru@apache.org
>>>>>>>>>                                     <ma...@apache.org>>
>>>>>>>>>                                     wrote:
>>>>>>>>>
>>>>>>>>>                                         Thats nice. Few
>>>>>>>>>                                         suggestions:
>>>>>>>>>
>>>>>>>>>                                         * Eclipse or IDEA are
>>>>>>>>>                                         good to write code, but
>>>>>>>>>                                         to build and run tests
>>>>>>>>>                                         from maven, command line
>>>>>>>>>                                         is the best option.
>>>>>>>>>                                         * Please use the mailing
>>>>>>>>>                                         lists as much as
>>>>>>>>>                                         possible so rest of us
>>>>>>>>>                                         can also contribute. If
>>>>>>>>>                                         even you use hangouts,
>>>>>>>>>                                         please take time to
>>>>>>>>>                                         explain what the issue
>>>>>>>>>                                         is so it engages every one.
>>>>>>>>>
>>>>>>>>>                                         I am able to run the
>>>>>>>>>                                         test cases and am able
>>>>>>>>>                                         to program
>>>>>>>>>                                         against OpenstackIntfImpl just
>>>>>>>>>                                         fine. Can you elaborate
>>>>>>>>>                                         on what is the
>>>>>>>>>                                         authentication issue you
>>>>>>>>>                                         are running into?
>>>>>>>>>
>>>>>>>>>                                         Suresh
>>>>>>>>>
>>>>>>>>>>                                         On Apr 20, 2016, at
>>>>>>>>>>                                         3:30 PM, Pankaj Saha
>>>>>>>>>>                                         <psaha4@binghamton.edu
>>>>>>>>>>                                         <ma...@binghamton.edu>>
>>>>>>>>>>                                         wrote:
>>>>>>>>>>
>>>>>>>>>>                                         Hi Suresh,
>>>>>>>>>>
>>>>>>>>>>                                         I just had a hangout
>>>>>>>>>>                                         session with Mangirish
>>>>>>>>>>                                         regarding the same. It
>>>>>>>>>>                                         looks like an
>>>>>>>>>>                                         authentication issue
>>>>>>>>>>                                         with openstack which he
>>>>>>>>>>                                         is aware of. He has
>>>>>>>>>>                                         explained me his code
>>>>>>>>>>                                         and I am going to retry
>>>>>>>>>>                                         fixing the problem.
>>>>>>>>>>
>>>>>>>>>>                                         I did not use maven to
>>>>>>>>>>                                         build his project
>>>>>>>>>>                                         instead I have export
>>>>>>>>>>                                         his project as eclipse
>>>>>>>>>>                                         (mvn eclipse:eclipse)
>>>>>>>>>>                                         and trying to run the
>>>>>>>>>>                                         junit test.
>>>>>>>>>>
>>>>>>>>>>                                         Will update you once I
>>>>>>>>>>                                         find something new.
>>>>>>>>>>
>>>>>>>>>>                                         Thanks
>>>>>>>>>>                                         Pankaj
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>                                         On Wed, Apr 20, 2016 at
>>>>>>>>>>                                         3:21 PM, Suresh Marru
>>>>>>>>>>                                         <smarru@apache.org
>>>>>>>>>>                                         <ma...@apache.org>>
>>>>>>>>>>                                         wrote:
>>>>>>>>>>
>>>>>>>>>>                                             Hi Pankaj,
>>>>>>>>>>
>>>>>>>>>>                                             Can you please be
>>>>>>>>>>                                             more clear? What is
>>>>>>>>>>                                             failing? Did you
>>>>>>>>>>                                             try to build it
>>>>>>>>>>                                             using maven within
>>>>>>>>>>                                             the cloud
>>>>>>>>>>                                             provisioning
>>>>>>>>>>                                             directory itself?
>>>>>>>>>>                                             Did you change the
>>>>>>>>>>                                             public key file in
>>>>>>>>>>                                             the
>>>>>>>>>>                                             test_data.properties?
>>>>>>>>>>
>>>>>>>>>>                                             Suresh
>>>>>>>>>>
>>>>>>>>>>>                                             On Apr 20, 2016,
>>>>>>>>>>>                                             at 2:56 PM, Pankaj
>>>>>>>>>>>                                             Saha
>>>>>>>>>>>                                             <psaha4@binghamton.edu
>>>>>>>>>>>                                             <ma...@binghamton.edu>>
>>>>>>>>>>>                                             wrote:
>>>>>>>>>>>
>>>>>>>>>>>                                             I am able to get
>>>>>>>>>>>                                             Mangirish's code
>>>>>>>>>>>                                             in the develop
>>>>>>>>>>>                                             branch. After
>>>>>>>>>>>                                             making it an
>>>>>>>>>>>                                             eclipse project,
>>>>>>>>>>>                                             when I am trying
>>>>>>>>>>>                                             to run it as JUnit
>>>>>>>>>>>                                             test, it's failing.
>>>>>>>>>>>                                             Need help to fix
>>>>>>>>>>>                                             this, possibly
>>>>>>>>>>>                                             some configuration
>>>>>>>>>>>                                             changes in the
>>>>>>>>>>>                                             properties file or
>>>>>>>>>>>                                             similar.
>>>>>>>>>>>                                             It will be great
>>>>>>>>>>>                                             we can talk over a
>>>>>>>>>>>                                             hangout session or
>>>>>>>>>>>                                             at least a chat
>>>>>>>>>>>                                             session to make it
>>>>>>>>>>>                                             work.
>>>>>>>>>>>
>>>>>>>>>>>                                             On Wed, Apr 20,
>>>>>>>>>>>                                             2016 at 12:05 PM,
>>>>>>>>>>>                                             Mangirish Wagle
>>>>>>>>>>>                                             <vaglomangirish@gmail.com
>>>>>>>>>>>                                             <ma...@gmail.com>>
>>>>>>>>>>>                                             wrote:
>>>>>>>>>>>
>>>>>>>>>>>                                                 Hi Pankaj,
>>>>>>>>>>>
>>>>>>>>>>>                                                 You may find a
>>>>>>>>>>>                                                 sample test
>>>>>>>>>>>                                                 code for the
>>>>>>>>>>>                                                 module in this
>>>>>>>>>>>                                                 unit test file:-
>>>>>>>>>>>
>>>>>>>>>>>                                                 https://github.com/apache/airavata/blob/develop/modules/cloud/cloud-provisioning/src/test/java/org/apache/airavata/cloud/test/CloudIntfTest.java
>>>>>>>>>>>
>>>>>>>>>>>                                                 Also, if you
>>>>>>>>>>>                                                 want to test
>>>>>>>>>>>                                                 run the code,
>>>>>>>>>>>                                                 you may please
>>>>>>>>>>>                                                 follow this
>>>>>>>>>>>                                                 quick README:-
>>>>>>>>>>>
>>>>>>>>>>>                                                 https://github.com/apache/airavata/blob/develop/modules/cloud/cloud-provisioning/README
>>>>>>>>>>>
>>>>>>>>>>>                                                 Please let me
>>>>>>>>>>>                                                 know if you
>>>>>>>>>>>                                                 need some more
>>>>>>>>>>>                                                 info or code
>>>>>>>>>>>                                                 walkthrough.
>>>>>>>>>>>                                                 Sending you
>>>>>>>>>>>                                                 the jetstream
>>>>>>>>>>>                                                 openrc
>>>>>>>>>>>                                                 credentials
>>>>>>>>>>>                                                 separately.
>>>>>>>>>>>
>>>>>>>>>>>                                                 Thanks.
>>>>>>>>>>>
>>>>>>>>>>>                                                 Regards,
>>>>>>>>>>>                                                 Mangirish
>>>>>>>>>>>
>>>>>>>>>>>                                                 On Wed, Apr
>>>>>>>>>>>                                                 20, 2016 at
>>>>>>>>>>>                                                 11:42 AM,
>>>>>>>>>>>                                                 Suresh Marru
>>>>>>>>>>>                                                 <smarru@apache.org
>>>>>>>>>>>                                                 <ma...@apache.org>>
>>>>>>>>>>>                                                 wrote:
>>>>>>>>>>>
>>>>>>>>>>>                                                     Hi Pankaj,
>>>>>>>>>>>
>>>>>>>>>>>                                                     Please
>>>>>>>>>>>                                                     switch to
>>>>>>>>>>>                                                     \u2018develop\u2019
>>>>>>>>>>>                                                     branch and
>>>>>>>>>>>                                                     look for
>>>>>>>>>>>                                                     the cloud
>>>>>>>>>>>                                                     provisioning
>>>>>>>>>>>                                                     module -
>>>>>>>>>>>                                                     https://github.com/apache/airavata/tree/develop/modules/cloud/cloud-provisioning
>>>>>>>>>>>
>>>>>>>>>>>                                                     Suresh
>>>>>>>>>>>
>>>>>>>>>>>>                                                     On Apr
>>>>>>>>>>>>                                                     20, 2016,
>>>>>>>>>>>>                                                     at 11:37
>>>>>>>>>>>>                                                     AM,
>>>>>>>>>>>>                                                     Pankaj
>>>>>>>>>>>>                                                     Saha
>>>>>>>>>>>>                                                     <psaha4@binghamton.edu
>>>>>>>>>>>>                                                     <ma...@binghamton.edu>>
>>>>>>>>>>>>                                                     wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>                                                     Hello
>>>>>>>>>>>>                                                     Mangirish,
>>>>>>>>>>>>                                                     I have
>>>>>>>>>>>>                                                     latest
>>>>>>>>>>>>                                                     Airavata
>>>>>>>>>>>>                                                     mater
>>>>>>>>>>>>                                                     branch
>>>>>>>>>>>>                                                     installed
>>>>>>>>>>>>                                                     in my
>>>>>>>>>>>>                                                     local
>>>>>>>>>>>>                                                     system.
>>>>>>>>>>>>                                                     Can you
>>>>>>>>>>>>                                                     please
>>>>>>>>>>>>                                                     give us
>>>>>>>>>>>>                                                     some clue
>>>>>>>>>>>>                                                     how to
>>>>>>>>>>>>                                                     start
>>>>>>>>>>>>                                                     creating
>>>>>>>>>>>>                                                     the VMs
>>>>>>>>>>>>                                                     through
>>>>>>>>>>>>                                                     you
>>>>>>>>>>>>                                                     application.
>>>>>>>>>>>>                                                     Please
>>>>>>>>>>>>                                                     specify
>>>>>>>>>>>>                                                     where we
>>>>>>>>>>>>                                                     can find
>>>>>>>>>>>>                                                     your
>>>>>>>>>>>>                                                     corresponding
>>>>>>>>>>>>                                                     java
>>>>>>>>>>>>                                                     code. Is
>>>>>>>>>>>>                                                     it
>>>>>>>>>>>>                                                     through
>>>>>>>>>>>>                                                     PGA website?
>>>>>>>>>>>>                                                     Please
>>>>>>>>>>>>                                                     share the
>>>>>>>>>>>>                                                     required
>>>>>>>>>>>>                                                     password
>>>>>>>>>>>>                                                     to me in
>>>>>>>>>>>>                                                     a
>>>>>>>>>>>>                                                     separate
>>>>>>>>>>>>                                                     email.
>>>>>>>>>>>>
>>>>>>>>>>>>                                                     Thanks
>>>>>>>>>>>>                                                     Pankaj
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>                                 --                                 Shameera Rathnayaka
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>
>>>>>
>>>>>
>>>>


Re: Jetstream VM creation through Airavata

Posted by Suresh Marru <sm...@apache.org>.
On Apr 29, 2016, at 10:00 PM, Emre Brookes <em...@biochem.uthscsa.edu> wrote:
> 
> FYI - I think this effects other users also.  I have had odd issues with Jetstream after you mentioned these tests.

Hi Emre,

Is this now? If you are referring to network issues few days ago, there were isolated problems with DHCP servers. But largely most of the issues Pankaj and me are discussing are related a single user quota (we both are sharing a account) and that should not have effected you.

With the scale of testing I am loading up, its possible I could be causing the system wide issues. My excuse will be the system is not yet in production :) 

Suresh

> 
> Emre
> 
> Suresh Marru wrote:
>> How many instances do you need to test? I have about 1200 instances running for a stress test and I am exhausting quotes at various levels, hence these errors.
>> 
>> If will be releasing all my VM’s wednesday afternoon. So tell me how many you need between now and then and I will release some.
>> 
>> Suresh
>> 
>>> On Apr 29, 2016, at 9:05 PM, Pankaj Saha <psaha4@binghamton.edu <ma...@binghamton.edu>> wrote:
>>> 
>>> Hi Suresh,
>>> I could ssh to VMs but new VMs are not getting any floating public IP.
>>> 
>>> Thanks
>>> Pankaj
>>> 
>>> On Fri, Apr 29, 2016 at 8:51 PM, Suresh Marru <smarru@apache.org <ma...@apache.org>> wrote:
>>> 
>>>    Pankaj,
>>> 
>>>    Do you still have the issue?
>>> 
>>>    Suresh
>>> 
>>>>    On Apr 28, 2016, at 5:26 PM, Pankaj Saha <psaha4@binghamton.edu
>>>>    <ma...@binghamton.edu>> wrote:
>>>> 
>>>>    Details of my VM is as mentioned below:
>>>> 
>>>>    Name: Mesos Agent
>>>>    Floating IPs:149.165.157.247
>>>>    size: m1.medium
>>>>    key: pankaj SSH key
>>>> 
>>>> 
>>>>    On Thu, Apr 28, 2016 at 5:22 PM, Pankaj Saha
>>>>    <psaha4@binghamton.edu <ma...@binghamton.edu>> wrote:
>>>> 
>>>>        Hi
>>>>        I need SSH to get the console access to install required
>>>>        software. I believe SSH server is not running by default in
>>>>        the ubuntu based servers and also I can not access its
>>>>        console through the openstack web UI.
>>>>        Please suggest.
>>>> 
>>>>        Thanks
>>>>        Pankaj
>>>> 
>>>>        On Thu, Apr 28, 2016 at 5:00 PM, Pankaj Saha
>>>>        <psaha4@binghamton.edu <ma...@binghamton.edu>> wrote:
>>>> 
>>>>            Hi Suresh,
>>>>            Yes, it's accessible now. Thanks.
>>>> 
>>>>            On Thu, Apr 28, 2016 at 4:39 PM, Suresh Marru
>>>>            <smarru@apache.org <ma...@apache.org>> wrote:
>>>> 
>>>>                Pankaj,
>>>> 
>>>>                Try now.
>>>> 
>>>>                Suresh
>>>> 
>>>>>                On Apr 28, 2016, at 1:05 PM, Suresh Marru
>>>>>                <smarru@apache.org <ma...@apache.org>> wrote:
>>>>> 
>>>>>                Hi Pankaj,
>>>>> 
>>>>>                By default yes they will be accessible from
>>>>>                outside. The firewall’s are controlled by the
>>>>>                security policy and currently both ssh and http are
>>>>>                accessible widely. There are issues with Open Stack
>>>>>                Neutron services and I reported them. I will post
>>>>>                when the network is back stable.
>>>>> 
>>>>>                Suresh
>>>>> 
>>>>>>                On Apr 28, 2016, at 1:02 PM, Pankaj Saha
>>>>>>                <psaha4@binghamton.edu
>>>>>>                <ma...@binghamton.edu>> wrote:
>>>>>> 
>>>>>>                Hello Devs,
>>>>>>                I have created a VM in openstack through
>>>>>>                cloud-provisioning module. Which returned an VM
>>>>>>                with floating ip : 149.165.157.215. I was
>>>>>>                expecting that this VM will be accessible through
>>>>>>                ssh over public ipassigned to it. I need ssh
>>>>>>                access to these VMs for including mesos binaries
>>>>>>                into them so that these images can be used as
>>>>>>                mesos agents for Gourav's prject.
>>>>>> 
>>>>>>                Please let me know if it is blocked by any
>>>>>>                firewall and whats the process to get access to them.
>>>>>> 
>>>>>>                Thanks
>>>>>>                Pankaj
>>>>>> 
>>>>>>                On Fri, Apr 22, 2016 at 4:43 PM, Pankaj Saha
>>>>>>                <psaha4@binghamton.edu
>>>>>>                <ma...@binghamton.edu>> wrote:
>>>>>> 
>>>>>>                    Hi Suresh,
>>>>>>                    Yes, that was the problem. Now it's working.
>>>>>>                    here is the log:
>>>>>>                    [main] INFO
>>>>>>                    org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl
>>>>>>                    - Keypair created successfully: testKey
>>>>>>                    [main] INFO
>>>>>>                    org.apache.airavata.cloud.test.CloudIntfTest -
>>>>>>                    Keypair created/ retrieved:
>>>>>>                    83:17:5b:2c:f3:31:06:af:99:c1:c8:8b:62:72:36:35
>>>>>>                    [main] INFO
>>>>>>                    org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl
>>>>>>                    - Using network subnet-airavata with ID:
>>>>>>                    ad2552d6-1a02-4d6c-9fa4-ad40d93e5423
>>>>>>                    [main] INFO
>>>>>>                    org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl
>>>>>>                    - New server created with ID:
>>>>>>                    2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>>>>>>                    [main] INFO
>>>>>>                    org.apache.airavata.cloud.test.CloudIntfTest -
>>>>>>                    Server Created:
>>>>>>                    2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>>>>>>                    [main] INFO
>>>>>>                    org.apache.airavata.cloud.test.CloudIntfTest -
>>>>>>                    Waiting for instance to go ACTIVE...
>>>>>>                    [main] INFO
>>>>>>                    org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl
>>>>>>                    - Server retrieved successfully for ID:
>>>>>>                    2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>>>>>>                    [main] INFO
>>>>>>                    org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl
>>>>>>                    - true:200:null:ActionResponse{success=true,
>>>>>>                    code=200}
>>>>>>                    [main] INFO
>>>>>>                    org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl
>>>>>>                    - Floating IP 149.165.156.142 assigned
>>>>>>                    successfully to server with ID:
>>>>>>                    2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>>>>>>                    [main] INFO
>>>>>>                    org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl
>>>>>>                    - Server retrieved successfully for ID:
>>>>>>                    2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>>>>>>                    [main] INFO
>>>>>>                    org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl
>>>>>>                    - Server deleted successfully for ID:
>>>>>>                    2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>>>>>>                    [main] INFO
>>>>>>                    org.apache.airavata.cloud.test.CloudIntfTest -
>>>>>>                    Server deleted:
>>>>>>                    2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>>>>>>                    [main] INFO
>>>>>>                    org.apache.airavata.cloud.test.CloudIntfTest -
>>>>>>                    Waiting for instance to terminate...
>>>>>>                    [main] INFO
>>>>>>                    org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl
>>>>>>                    - Keypair deleted successfully: testKey
>>>>>>                    [main] INFO
>>>>>>                    org.apache.airavata.cloud.test.CloudIntfTest -
>>>>>>                    Keypair deleted: testKey
>>>>>>                    [main] INFO
>>>>>>                    org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl
>>>>>>                    - Server retrieved successfully for ID:
>>>>>>                    2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>>>>>> 
>>>>>> 
>>>>>>                    Thanks
>>>>>>                    Pankaj
>>>>>> 
>>>>>>                    On Fri, Apr 22, 2016 at 4:15 PM, Suresh Marru
>>>>>>                    <smarru@apache.org <ma...@apache.org>>
>>>>>>                    wrote:
>>>>>> 
>>>>>>                        I now noticed that you have
>>>>>>                        used OS_PROJECT_DOMAIN_NAME=tacc instead
>>>>>>                        of OS_PROJECT_DOMAIN_NAME=scigap
>>>>>> 
>>>>>>                        Suresh
>>>>>> 
>>>>>>>                        On Apr 22, 2016, at 4:14 PM, Suresh Marru
>>>>>>>                        <smarru@apache.org
>>>>>>>                        <ma...@apache.org>> wrote:
>>>>>>> 
>>>>>>>                        Hi Pankaj, Mangirish,
>>>>>>> 
>>>>>>>                        Is this intermittent or do you
>>>>>>>                        consistently get authentication issues? I
>>>>>>>                        am attaching my openrc file:
>>>>>>> 
>>>>>>>                        OS_PROJECT_DOMAIN_NAME=scigap
>>>>>>>                        OS_USER_DOMAIN_NAME=tacc
>>>>>>>                        OS_PROJECT_NAME=scigap
>>>>>>>                        OS_TENANT_NAME=scigap
>>>>>>>                        OS_USERNAME=scigap
>>>>>>>                        OS_PASSWORD=XXXXXXXXXXXXX
>>>>>>>                        OS_AUTH_URL=https://jblb.jetstream-cloud.org:35357/v3
>>>>>>>                        OS_IDENTITY_API_VERSION=3
>>>>>>> 
>>>>>>>                        # Network Properties
>>>>>>>                        OS_FLOATING_IP_POOL=public
>>>>>>>                        OS_SUBNET_NAME=airavata
>>>>>>> 
>>>>>>>                        To complicate the puzzle, I am
>>>>>>>                        consistently able to launch few hundred’s
>>>>>>>                        of instances within the past day without
>>>>>>>                        any issues. I just checked the code, I am
>>>>>>>                        using it out of the box and no local
>>>>>>>                        changes.
>>>>>>> 
>>>>>>>                        Suresh
>>>>>>> 
>>>>>>> 
>>>>>>>>                        On Apr 22, 2016, at 3:18 PM, Pankaj Saha
>>>>>>>>                        <psaha4@binghamton.edu
>>>>>>>>                        <ma...@binghamton.edu>> wrote:
>>>>>>>> 
>>>>>>>>                        Hello Everyone,
>>>>>>>> 
>>>>>>>>                        I had a discussion with Mangirish today
>>>>>>>>                        morning and we could figure out through
>>>>>>>>                        debugging that java code getting
>>>>>>>>                        authentication exception when trying to
>>>>>>>>                        authenticate the user with openstack.
>>>>>>>>                        NOVA client for openstack did work well
>>>>>>>>                        and I have also tested with credentials
>>>>>>>>                        to directly login into the portal.
>>>>>>>>                        I have replicated the same in another
>>>>>>>>                        system in my same lab network and the
>>>>>>>>                        test case still failing for the same
>>>>>>>>                        status-401, authentication error.
>>>>>>>> 
>>>>>>>>                        I have followed these below steps:
>>>>>>>> 
>>>>>>>>                         1. generated rsa key
>>>>>>>>                         2. downloaded airavata from git,
>>>>>>>>                            switched it to "develop" branch
>>>>>>>>                         3. changed the required property values
>>>>>>>>                            for openstack.
>>>>>>>>                         4. run : mvn clean install from inside
>>>>>>>>                            the cloud/cloud-provisioning module.
>>>>>>>> 
>>>>>>>>                        It's definitely not the firewall issue
>>>>>>>>                        as its failing in the authentication
>>>>>>>>                        stage. I am attaching my property file
>>>>>>>>                        for reference, please let me know if you
>>>>>>>>                        find anything wrong in this.
>>>>>>>>                        *test_data.properties*
>>>>>>>> 
>>>>>>>>                            # Common properties
>>>>>>>>                            publicKeyFile=/home/psaha4/.ssh/id_rsa.pub
>>>>>>>>                            # Jetstream properties
>>>>>>>>                            jetstream_imageId=448636b0-450a-4b49-9bfe-b3135fc443e8
>>>>>>>>                            jetstream_flavorId=3
>>>>>>>>                            OS_PROJECT_DOMAIN_NAME=tacc
>>>>>>>>                            OS_USER_DOMAIN_NAME=tacc
>>>>>>>>                            OS_PROJECT_NAME=scigap
>>>>>>>>                            OS_TENANT_NAME=scigap
>>>>>>>>                            OS_USERNAME=scigap
>>>>>>>>                            OS_PASSWORD=<not exposing the
>>>>>>>>                            password here>
>>>>>>>>                            OS_AUTH_URL=https://jblb.jetstream-cloud.org:35357/v3
>>>>>>>>                            OS_IDENTITY_API_VERSION=3
>>>>>>>>                            # Network Properties
>>>>>>>>                            OS_FLOATING_IP_POOL=public
>>>>>>>>                            OS_SUBNET_NAME=airavata
>>>>>>>> 
>>>>>>>> 
>>>>>>>>                        Can someone send me
>>>>>>>>                        jetstream_openrc.properties and
>>>>>>>>                        test_data.properties file from a working
>>>>>>>>                        environment in  a separate email so that
>>>>>>>>                        I can place them and test from my system
>>>>>>>>                        once.
>>>>>>>> 
>>>>>>>>                        Thanks
>>>>>>>>                        Pankaj
>>>>>>>> 
>>>>>>>> 
>>>>>>>>                        On Thu, Apr 21, 2016 at 11:43 AM, Pankaj
>>>>>>>>                        Saha <psaha4@binghamton.edu
>>>>>>>>                        <ma...@binghamton.edu>> wrote:
>>>>>>>> 
>>>>>>>>                            Hi Shameera,
>>>>>>>>                            I have received the password from
>>>>>>>>                            Mangirish and I am using the same
>>>>>>>>                            details as he has provided.
>>>>>>>>                            Regarding the jetstream keypair, my
>>>>>>>>                            understanding is, during the test
>>>>>>>>                            run it fetches the public key from
>>>>>>>>                            the properties file and send it to
>>>>>>>>                            the jetstream servers. Please let me
>>>>>>>>                            know how I need to configure it
>>>>>>>>                            separately.
>>>>>>>> 
>>>>>>>>                            Thanks
>>>>>>>>                            Pankaj
>>>>>>>> 
>>>>>>>>                            On Wed, Apr 20, 2016 at 8:48 PM,
>>>>>>>>                            Shameera Rathnayaka
>>>>>>>>                            <shameerainfo@gmail.com
>>>>>>>>                            <ma...@gmail.com>> wrote:
>>>>>>>> 
>>>>>>>>                                Hi Pankaj,
>>>>>>>> 
>>>>>>>>                                To work with your ssh keys you
>>>>>>>>                                need to add them to jetstream
>>>>>>>>                                keypair. Have you done that part?
>>>>>>>> 
>>>>>>>>                                also you are not providing
>>>>>>>>                                correct the OS_PASSWORD value
>>>>>>>>                                accordding to above deatils.
>>>>>>>> 
>>>>>>>>                                Shameera.
>>>>>>>> 
>>>>>>>> 
>>>>>>>>                                On Wed, Apr 20, 2016 at 3:42 PM
>>>>>>>>                                Pankaj Saha
>>>>>>>>                                <psaha4@binghamton.edu
>>>>>>>>                                <ma...@binghamton.edu>>
>>>>>>>>                                wrote:
>>>>>>>> 
>>>>>>>>                                    I have just use maven to
>>>>>>>>                                    build the same project. here
>>>>>>>>                                    is thedetails
>>>>>>>>                                    # Common properties
>>>>>>>>                                    publicKeyFile=/home/psaha4/.ssh/id_rsa.pub
>>>>>>>> 
>>>>>>>>                                    # Jetstream properties
>>>>>>>>                                    jetstream_imageId=448636b0-450a-4b49-9bfe-b3135fc443e8
>>>>>>>>                                    jetstream_flavorId=3
>>>>>>>> 
>>>>>>>>                                    OS_PROJECT_DOMAIN_NAME=tacc
>>>>>>>>                                    OS_USER_DOMAIN_NAME=tacc
>>>>>>>>                                    OS_PROJECT_NAME=scigap
>>>>>>>>                                    OS_TENANT_NAME=scigap
>>>>>>>>                                    OS_USERNAME=scigap
>>>>>>>>                                    OS_PASSWORD=<not exposing here>
>>>>>>>>                                    OS_AUTH_URL=https://jblb.jetstream-cloud.org:35357/v3
>>>>>>>>                                    OS_IDENTITY_API_VERSION=3
>>>>>>>> 
>>>>>>>>                                    # Network Properties
>>>>>>>>                                    OS_FLOATING_IP_POOL=public
>>>>>>>>                                    OS_SUBNET_NAME=airavata
>>>>>>>> 
>>>>>>>>                                    The test case error that I
>>>>>>>>                                    am getting for the Test case
>>>>>>>>                                    is al below:
>>>>>>>>                                    -------------------------------------------------------
>>>>>>>>                                     T E S T S
>>>>>>>>                                    -------------------------------------------------------
>>>>>>>>                                    Running
>>>>>>>>                                    org.apache.airavata.cloud.test.CloudIntfTest
>>>>>>>>                                    AuthenticationException{message=Unauthorized,
>>>>>>>>                                    status=401}
>>>>>>>>                                    at
>>>>>>>>                                    org.openstack4j.core.transport.HttpExceptionHandler.mapException(HttpExceptionHandler.java:36)
>>>>>>>>                                    at
>>>>>>>>                                    org.openstack4j.core.transport.HttpExceptionHandler.mapException(HttpExceptionHandler.java:23)
>>>>>>>>                                    at
>>>>>>>>                                    org.openstack4j.openstack.internal.OSAuthenticator.authenticateV3(OSAuthenticator.java:161)
>>>>>>>>                                    at
>>>>>>>>                                    org.openstack4j.openstack.internal.OSAuthenticator.invoke(OSAuthenticator.java:78)
>>>>>>>>                                    at
>>>>>>>>                                    org.openstack4j.openstack.client.OSClientBuilder$ClientV3.authenticate(OSClientBuilder.java:163)
>>>>>>>>                                    at
>>>>>>>>                                    org.openstack4j.openstack.client.OSClientBuilder$ClientV3.authenticate(OSClientBuilder.java:127)
>>>>>>>>                                    at
>>>>>>>>                                    org.apache.airavata.cloud.openstack.OS4JClientProvider.getOSClientV3(OS4JClientProvider.java:86)
>>>>>>>>                                    at
>>>>>>>>                                    org.apache.airavata.cloud.openstack.OS4JClientProvider.getOSClient(OS4JClientProvider.java:49)
>>>>>>>>                                    at
>>>>>>>>                                    org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl.<init>(OpenstackIntfImpl.java:78)
>>>>>>>>                                    at
>>>>>>>>                                    org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:77)
>>>>>>>>                                    at
>>>>>>>>                                    sun.reflect.NativeMethodAccessorImpl.invoke0(Native
>>>>>>>>                                    Method)
>>>>>>>>                                    at
>>>>>>>>                                    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>>>>>>>                                    at
>>>>>>>>                                    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>>>>>                                    at
>>>>>>>>                                    java.lang.reflect.Method.invoke(Method.java:498)
>>>>>>>>                                    at
>>>>>>>>                                    org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>>>>>>>>                                    at
>>>>>>>>                                    org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>>>>>>>>                                    at
>>>>>>>>                                    org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>>>>>>>>                                    at
>>>>>>>>                                    org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>>>>>>>>                                    at
>>>>>>>>                                    org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>>>>>>>>                                    at
>>>>>>>>                                    org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
>>>>>>>>                                    at
>>>>>>>>                                    org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
>>>>>>>>                                    at
>>>>>>>>                                    org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>>>>>>>>                                    at
>>>>>>>>                                    org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>>>>>>>>                                    at
>>>>>>>>                                    org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>>>>>>>>                                    at
>>>>>>>>                                    org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>>>>>>>>                                    at
>>>>>>>>                                    org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>>>>>>>>                                    at
>>>>>>>>                                    org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>>>>>>>>                                    at
>>>>>>>>                                    org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
>>>>>>>>                                    at
>>>>>>>>                                    org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
>>>>>>>>                                    at
>>>>>>>>                                    org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
>>>>>>>>                                    at
>>>>>>>>                                    org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
>>>>>>>>                                    at
>>>>>>>>                                    org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
>>>>>>>>                                    at
>>>>>>>>                                    org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
>>>>>>>>                                    at
>>>>>>>>                                    org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>>>>>>>>                                    java.lang.NullPointerException
>>>>>>>>                                    at
>>>>>>>>                                    org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl.getKeyPair(OpenstackIntfImpl.java:215)
>>>>>>>>                                    at
>>>>>>>>                                    org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:92)
>>>>>>>>                                    at
>>>>>>>>                                    sun.reflect.NativeMethodAccessorImpl.invoke0(Native
>>>>>>>>                                    Method)
>>>>>>>>                                    at
>>>>>>>>                                    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>>>>>>>                                    at
>>>>>>>>                                    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>>>>>                                    at
>>>>>>>>                                    java.lang.reflect.Method.invoke(Method.java:498)
>>>>>>>>                                    at
>>>>>>>>                                    org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>>>>>>>>                                    at
>>>>>>>>                                    org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>>>>>>>>                                    at
>>>>>>>>                                    org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>>>>>>>>                                    at
>>>>>>>>                                    org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>>>>>>>>                                    at
>>>>>>>>                                    org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>>>>>>>>                                    at
>>>>>>>>                                    org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
>>>>>>>>                                    at
>>>>>>>>                                    org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
>>>>>>>>                                    at
>>>>>>>>                                    org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>>>>>>>>                                    at
>>>>>>>>                                    org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>>>>>>>>                                    at
>>>>>>>>                                    org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>>>>>>>>                                    at
>>>>>>>>                                    org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>>>>>>>>                                    at
>>>>>>>>                                    org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>>>>>>>>                                    at
>>>>>>>>                                    org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>>>>>>>>                                    at
>>>>>>>>                                    org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
>>>>>>>>                                    at
>>>>>>>>                                    org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
>>>>>>>>                                    at
>>>>>>>>                                    org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
>>>>>>>>                                    at
>>>>>>>>                                    org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
>>>>>>>>                                    at
>>>>>>>>                                    org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
>>>>>>>>                                    at
>>>>>>>>                                    org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
>>>>>>>>                                    at
>>>>>>>>                                    org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>>>>>>>>                                    [main] ERROR
>>>>>>>>                                    org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl
>>>>>>>>                                    - Failed to retrieve
>>>>>>>>                                    keypair: testKey
>>>>>>>>                                    java.lang.NullPointerException
>>>>>>>>                                    at
>>>>>>>>                                    org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl.createKeyPair(OpenstackIntfImpl.java:197)
>>>>>>>>                                    at
>>>>>>>>                                    org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:94)
>>>>>>>>                                    at
>>>>>>>>                                    sun.reflect.NativeMethodAccessorImpl.invoke0(Native
>>>>>>>>                                    Method)
>>>>>>>>                                    at
>>>>>>>>                                    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>>>>>>>                                    at
>>>>>>>>                                    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>>>>>                                    at
>>>>>>>>                                    java.lang.reflect.Method.invoke(Method.java:498)
>>>>>>>>                                    at
>>>>>>>>                                    org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>>>>>>>>                                    at
>>>>>>>>                                    org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>>>>>>>>                                    at
>>>>>>>>                                    org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>>>>>>>>                                    at
>>>>>>>>                                    org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>>>>>>>>                                    at
>>>>>>>>                                    org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>>>>>>>>                                    at
>>>>>>>>                                    org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
>>>>>>>>                                    at
>>>>>>>>                                    org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
>>>>>>>>                                    at
>>>>>>>>                                    org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>>>>>>>>                                    at
>>>>>>>>                                    org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>>>>>>>>                                    at
>>>>>>>>                                    org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>>>>>>>>                                    at
>>>>>>>>                                    org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>>>>>>>>                                    at
>>>>>>>>                                    org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>>>>>>>>                                    at
>>>>>>>>                                    org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>>>>>>>>                                    at
>>>>>>>>                                    org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
>>>>>>>>                                    at
>>>>>>>>                                    org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
>>>>>>>>                                    at
>>>>>>>>                                    org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
>>>>>>>>                                    at
>>>>>>>>                                    org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
>>>>>>>>                                    at
>>>>>>>>                                    org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
>>>>>>>>                                    at
>>>>>>>>                                    org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
>>>>>>>>                                    at
>>>>>>>>                                    org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>>>>>>>>                                    [main] ERROR
>>>>>>>>                                    org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl
>>>>>>>>                                    - Failed to create keypair:
>>>>>>>>                                    testKey
>>>>>>>>                                    java.lang.NullPointerException
>>>>>>>>                                    at
>>>>>>>>                                    org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:97)
>>>>>>>>                                    at
>>>>>>>>                                    sun.reflect.NativeMethodAccessorImpl.invoke0(Native
>>>>>>>>                                    Method)
>>>>>>>>                                    at
>>>>>>>>                                    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>>>>>>>                                    at
>>>>>>>>                                    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>>>>>                                    at
>>>>>>>>                                    java.lang.reflect.Method.invoke(Method.java:498)
>>>>>>>>                                    at
>>>>>>>>                                    org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>>>>>>>>                                    at
>>>>>>>>                                    org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>>>>>>>>                                    at
>>>>>>>>                                    org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>>>>>>>>                                    at
>>>>>>>>                                    org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>>>>>>>>                                    at
>>>>>>>>                                    org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>>>>>>>>                                    at
>>>>>>>>                                    org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
>>>>>>>>                                    at
>>>>>>>>                                    org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
>>>>>>>>                                    at
>>>>>>>>                                    org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>>>>>>>>                                    at
>>>>>>>>                                    org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>>>>>>>>                                    at
>>>>>>>>                                    org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>>>>>>>>                                    at
>>>>>>>>                                    org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>>>>>>>>                                    at
>>>>>>>>                                    org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>>>>>>>>                                    at
>>>>>>>>                                    org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>>>>>>>>                                    at
>>>>>>>>                                    org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
>>>>>>>>                                    at
>>>>>>>>                                    org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
>>>>>>>>                                    at
>>>>>>>>                                    org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
>>>>>>>>                                    at
>>>>>>>>                                    org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
>>>>>>>>                                    at
>>>>>>>>                                    org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
>>>>>>>>                                    at
>>>>>>>>                                    org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
>>>>>>>>                                    at
>>>>>>>>                                    org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>>>>>>>>                                    Tests run: 1, Failures: 1,
>>>>>>>>                                    Errors: 0, Skipped: 0, Time
>>>>>>>>                                    elapsed: 0.913 sec <<<
>>>>>>>>                                    FAILURE! - in
>>>>>>>>                                    org.apache.airavata.cloud.test.CloudIntfTest
>>>>>>>>                                    jetstreamCreateDeleteServerTest(org.apache.airavata.cloud.test.CloudIntfTest)
>>>>>>>>                                     Time elapsed: 0.908 sec
>>>>>>>>                                     <<< FAILURE!
>>>>>>>>                                    java.lang.AssertionError: null
>>>>>>>>                                    at
>>>>>>>>                                    org.junit.Assert.fail(Assert.java:86)
>>>>>>>>                                    at
>>>>>>>>                                    org.junit.Assert.fail(Assert.java:95)
>>>>>>>>                                    at
>>>>>>>>                                    org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:128)
>>>>>>>> 
>>>>>>>> 
>>>>>>>> 
>>>>>>>>                                    On Wed, Apr 20, 2016 at 3:36
>>>>>>>>                                    PM, Suresh Marru
>>>>>>>>                                    <smarru@apache.org
>>>>>>>>                                    <ma...@apache.org>>
>>>>>>>>                                    wrote:
>>>>>>>> 
>>>>>>>>                                        Thats nice. Few
>>>>>>>>                                        suggestions:
>>>>>>>> 
>>>>>>>>                                        * Eclipse or IDEA are
>>>>>>>>                                        good to write code, but
>>>>>>>>                                        to build and run tests
>>>>>>>>                                        from maven, command line
>>>>>>>>                                        is the best option.
>>>>>>>>                                        * Please use the mailing
>>>>>>>>                                        lists as much as
>>>>>>>>                                        possible so rest of us
>>>>>>>>                                        can also contribute. If
>>>>>>>>                                        even you use hangouts,
>>>>>>>>                                        please take time to
>>>>>>>>                                        explain what the issue
>>>>>>>>                                        is so it engages every one.
>>>>>>>> 
>>>>>>>>                                        I am able to run the
>>>>>>>>                                        test cases and am able
>>>>>>>>                                        to program
>>>>>>>>                                        against OpenstackIntfImpl just
>>>>>>>>                                        fine. Can you elaborate
>>>>>>>>                                        on what is the
>>>>>>>>                                        authentication issue you
>>>>>>>>                                        are running into?
>>>>>>>> 
>>>>>>>>                                        Suresh
>>>>>>>> 
>>>>>>>>>                                        On Apr 20, 2016, at
>>>>>>>>>                                        3:30 PM, Pankaj Saha
>>>>>>>>>                                        <psaha4@binghamton.edu
>>>>>>>>>                                        <ma...@binghamton.edu>>
>>>>>>>>>                                        wrote:
>>>>>>>>> 
>>>>>>>>>                                        Hi Suresh,
>>>>>>>>> 
>>>>>>>>>                                        I just had a hangout
>>>>>>>>>                                        session with Mangirish
>>>>>>>>>                                        regarding the same. It
>>>>>>>>>                                        looks like an
>>>>>>>>>                                        authentication issue
>>>>>>>>>                                        with openstack which he
>>>>>>>>>                                        is aware of. He has
>>>>>>>>>                                        explained me his code
>>>>>>>>>                                        and I am going to retry
>>>>>>>>>                                        fixing the problem.
>>>>>>>>> 
>>>>>>>>>                                        I did not use maven to
>>>>>>>>>                                        build his project
>>>>>>>>>                                        instead I have export
>>>>>>>>>                                        his project as eclipse
>>>>>>>>>                                        (mvn eclipse:eclipse)
>>>>>>>>>                                        and trying to run the
>>>>>>>>>                                        junit test.
>>>>>>>>> 
>>>>>>>>>                                        Will update you once I
>>>>>>>>>                                        find something new.
>>>>>>>>> 
>>>>>>>>>                                        Thanks
>>>>>>>>>                                        Pankaj
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>>                                        On Wed, Apr 20, 2016 at
>>>>>>>>>                                        3:21 PM, Suresh Marru
>>>>>>>>>                                        <smarru@apache.org
>>>>>>>>>                                        <ma...@apache.org>>
>>>>>>>>>                                        wrote:
>>>>>>>>> 
>>>>>>>>>                                            Hi Pankaj,
>>>>>>>>> 
>>>>>>>>>                                            Can you please be
>>>>>>>>>                                            more clear? What is
>>>>>>>>>                                            failing? Did you
>>>>>>>>>                                            try to build it
>>>>>>>>>                                            using maven within
>>>>>>>>>                                            the cloud
>>>>>>>>>                                            provisioning
>>>>>>>>>                                            directory itself?
>>>>>>>>>                                            Did you change the
>>>>>>>>>                                            public key file in
>>>>>>>>>                                            the
>>>>>>>>>                                            test_data.properties?
>>>>>>>>> 
>>>>>>>>>                                            Suresh
>>>>>>>>> 
>>>>>>>>>>                                            On Apr 20, 2016,
>>>>>>>>>>                                            at 2:56 PM, Pankaj
>>>>>>>>>>                                            Saha
>>>>>>>>>>                                            <psaha4@binghamton.edu
>>>>>>>>>>                                            <ma...@binghamton.edu>>
>>>>>>>>>>                                            wrote:
>>>>>>>>>> 
>>>>>>>>>>                                            I am able to get
>>>>>>>>>>                                            Mangirish's code
>>>>>>>>>>                                            in the develop
>>>>>>>>>>                                            branch. After
>>>>>>>>>>                                            making it an
>>>>>>>>>>                                            eclipse project,
>>>>>>>>>>                                            when I am trying
>>>>>>>>>>                                            to run it as JUnit
>>>>>>>>>>                                            test, it's failing.
>>>>>>>>>>                                            Need help to fix
>>>>>>>>>>                                            this, possibly
>>>>>>>>>>                                            some configuration
>>>>>>>>>>                                            changes in the
>>>>>>>>>>                                            properties file or
>>>>>>>>>>                                            similar.
>>>>>>>>>>                                            It will be great
>>>>>>>>>>                                            we can talk over a
>>>>>>>>>>                                            hangout session or
>>>>>>>>>>                                            at least a chat
>>>>>>>>>>                                            session to make it
>>>>>>>>>>                                            work.
>>>>>>>>>> 
>>>>>>>>>>                                            On Wed, Apr 20,
>>>>>>>>>>                                            2016 at 12:05 PM,
>>>>>>>>>>                                            Mangirish Wagle
>>>>>>>>>>                                            <vaglomangirish@gmail.com
>>>>>>>>>>                                            <ma...@gmail.com>>
>>>>>>>>>>                                            wrote:
>>>>>>>>>> 
>>>>>>>>>>                                                Hi Pankaj,
>>>>>>>>>> 
>>>>>>>>>>                                                You may find a
>>>>>>>>>>                                                sample test
>>>>>>>>>>                                                code for the
>>>>>>>>>>                                                module in this
>>>>>>>>>>                                                unit test file:-
>>>>>>>>>> 
>>>>>>>>>>                                                https://github.com/apache/airavata/blob/develop/modules/cloud/cloud-provisioning/src/test/java/org/apache/airavata/cloud/test/CloudIntfTest.java
>>>>>>>>>> 
>>>>>>>>>>                                                Also, if you
>>>>>>>>>>                                                want to test
>>>>>>>>>>                                                run the code,
>>>>>>>>>>                                                you may please
>>>>>>>>>>                                                follow this
>>>>>>>>>>                                                quick README:-
>>>>>>>>>> 
>>>>>>>>>>                                                https://github.com/apache/airavata/blob/develop/modules/cloud/cloud-provisioning/README
>>>>>>>>>> 
>>>>>>>>>>                                                Please let me
>>>>>>>>>>                                                know if you
>>>>>>>>>>                                                need some more
>>>>>>>>>>                                                info or code
>>>>>>>>>>                                                walkthrough.
>>>>>>>>>>                                                Sending you
>>>>>>>>>>                                                the jetstream
>>>>>>>>>>                                                openrc
>>>>>>>>>>                                                credentials
>>>>>>>>>>                                                separately.
>>>>>>>>>> 
>>>>>>>>>>                                                Thanks.
>>>>>>>>>> 
>>>>>>>>>>                                                Regards,
>>>>>>>>>>                                                Mangirish
>>>>>>>>>> 
>>>>>>>>>>                                                On Wed, Apr
>>>>>>>>>>                                                20, 2016 at
>>>>>>>>>>                                                11:42 AM,
>>>>>>>>>>                                                Suresh Marru
>>>>>>>>>>                                                <smarru@apache.org
>>>>>>>>>>                                                <ma...@apache.org>>
>>>>>>>>>>                                                wrote:
>>>>>>>>>> 
>>>>>>>>>>                                                    Hi Pankaj,
>>>>>>>>>> 
>>>>>>>>>>                                                    Please
>>>>>>>>>>                                                    switch to
>>>>>>>>>>                                                    ‘develop’
>>>>>>>>>>                                                    branch and
>>>>>>>>>>                                                    look for
>>>>>>>>>>                                                    the cloud
>>>>>>>>>>                                                    provisioning
>>>>>>>>>>                                                    module -
>>>>>>>>>>                                                    https://github.com/apache/airavata/tree/develop/modules/cloud/cloud-provisioning
>>>>>>>>>> 
>>>>>>>>>>                                                    Suresh
>>>>>>>>>> 
>>>>>>>>>>>                                                    On Apr
>>>>>>>>>>>                                                    20, 2016,
>>>>>>>>>>>                                                    at 11:37
>>>>>>>>>>>                                                    AM,
>>>>>>>>>>>                                                    Pankaj
>>>>>>>>>>>                                                    Saha
>>>>>>>>>>>                                                    <psaha4@binghamton.edu
>>>>>>>>>>>                                                    <ma...@binghamton.edu>>
>>>>>>>>>>>                                                    wrote:
>>>>>>>>>>> 
>>>>>>>>>>>                                                    Hello
>>>>>>>>>>>                                                    Mangirish,
>>>>>>>>>>>                                                    I have
>>>>>>>>>>>                                                    latest
>>>>>>>>>>>                                                    Airavata
>>>>>>>>>>>                                                    mater
>>>>>>>>>>>                                                    branch
>>>>>>>>>>>                                                    installed
>>>>>>>>>>>                                                    in my
>>>>>>>>>>>                                                    local
>>>>>>>>>>>                                                    system.
>>>>>>>>>>>                                                    Can you
>>>>>>>>>>>                                                    please
>>>>>>>>>>>                                                    give us
>>>>>>>>>>>                                                    some clue
>>>>>>>>>>>                                                    how to
>>>>>>>>>>>                                                    start
>>>>>>>>>>>                                                    creating
>>>>>>>>>>>                                                    the VMs
>>>>>>>>>>>                                                    through
>>>>>>>>>>>                                                    you
>>>>>>>>>>>                                                    application.
>>>>>>>>>>>                                                    Please
>>>>>>>>>>>                                                    specify
>>>>>>>>>>>                                                    where we
>>>>>>>>>>>                                                    can find
>>>>>>>>>>>                                                    your
>>>>>>>>>>>                                                    corresponding
>>>>>>>>>>>                                                    java
>>>>>>>>>>>                                                    code. Is
>>>>>>>>>>>                                                    it
>>>>>>>>>>>                                                    through
>>>>>>>>>>>                                                    PGA website?
>>>>>>>>>>>                                                    Please
>>>>>>>>>>>                                                    share the
>>>>>>>>>>>                                                    required
>>>>>>>>>>>                                                    password
>>>>>>>>>>>                                                    to me in
>>>>>>>>>>>                                                    a
>>>>>>>>>>>                                                    separate
>>>>>>>>>>>                                                    email.
>>>>>>>>>>> 
>>>>>>>>>>>                                                    Thanks
>>>>>>>>>>>                                                    Pankaj
>>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>> 
>>>>>>>> 
>>>>>>>>                                --                                 Shameera Rathnayaka
>>>>>>>> 
>>>>>>>> 
>>>>>>>> 
>>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 
>>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>> 
>>> 
>> 
> 


Re: Jetstream VM creation through Airavata

Posted by Emre Brookes <em...@biochem.uthscsa.edu>.
FYI - I think this effects other users also.  I have had odd issues with 
Jetstream after you mentioned these tests.

Emre

Suresh Marru wrote:
> How many instances do you need to test? I have about 1200 instances 
> running for a stress test and I am exhausting quotes at various 
> levels, hence these errors.
>
> If will be releasing all my VM’s wednesday afternoon. So tell me how 
> many you need between now and then and I will release some.
>
> Suresh
>
>> On Apr 29, 2016, at 9:05 PM, Pankaj Saha <psaha4@binghamton.edu 
>> <ma...@binghamton.edu>> wrote:
>>
>> Hi Suresh,
>> I could ssh to VMs but new VMs are not getting any floating public IP.
>>
>> Thanks
>> Pankaj
>>
>> On Fri, Apr 29, 2016 at 8:51 PM, Suresh Marru <smarru@apache.org 
>> <ma...@apache.org>> wrote:
>>
>>     Pankaj,
>>
>>     Do you still have the issue?
>>
>>     Suresh
>>
>>>     On Apr 28, 2016, at 5:26 PM, Pankaj Saha <psaha4@binghamton.edu
>>>     <ma...@binghamton.edu>> wrote:
>>>
>>>     Details of my VM is as mentioned below:
>>>
>>>     Name: Mesos Agent
>>>     Floating IPs:149.165.157.247
>>>     size: m1.medium
>>>     key: pankaj SSH key
>>>
>>>
>>>     On Thu, Apr 28, 2016 at 5:22 PM, Pankaj Saha
>>>     <psaha4@binghamton.edu <ma...@binghamton.edu>> wrote:
>>>
>>>         Hi
>>>         I need SSH to get the console access to install required
>>>         software. I believe SSH server is not running by default in
>>>         the ubuntu based servers and also I can not access its
>>>         console through the openstack web UI.
>>>         Please suggest.
>>>
>>>         Thanks
>>>         Pankaj
>>>
>>>         On Thu, Apr 28, 2016 at 5:00 PM, Pankaj Saha
>>>         <psaha4@binghamton.edu <ma...@binghamton.edu>> wrote:
>>>
>>>             Hi Suresh,
>>>             Yes, it's accessible now. Thanks.
>>>
>>>             On Thu, Apr 28, 2016 at 4:39 PM, Suresh Marru
>>>             <smarru@apache.org <ma...@apache.org>> wrote:
>>>
>>>                 Pankaj,
>>>
>>>                 Try now.
>>>
>>>                 Suresh
>>>
>>>>                 On Apr 28, 2016, at 1:05 PM, Suresh Marru
>>>>                 <smarru@apache.org <ma...@apache.org>> wrote:
>>>>
>>>>                 Hi Pankaj,
>>>>
>>>>                 By default yes they will be accessible from
>>>>                 outside. The firewall’s are controlled by the
>>>>                 security policy and currently both ssh and http are
>>>>                 accessible widely. There are issues with Open Stack
>>>>                 Neutron services and I reported them. I will post
>>>>                 when the network is back stable.
>>>>
>>>>                 Suresh
>>>>
>>>>>                 On Apr 28, 2016, at 1:02 PM, Pankaj Saha
>>>>>                 <psaha4@binghamton.edu
>>>>>                 <ma...@binghamton.edu>> wrote:
>>>>>
>>>>>                 Hello Devs,
>>>>>                 I have created a VM in openstack through
>>>>>                 cloud-provisioning module. Which returned an VM
>>>>>                 with floating ip : 149.165.157.215. I was
>>>>>                 expecting that this VM will be accessible through
>>>>>                 ssh over public ipassigned to it. I need ssh
>>>>>                 access to these VMs for including mesos binaries
>>>>>                 into them so that these images can be used as
>>>>>                 mesos agents for Gourav's prject.
>>>>>
>>>>>                 Please let me know if it is blocked by any
>>>>>                 firewall and whats the process to get access to them.
>>>>>
>>>>>                 Thanks
>>>>>                 Pankaj
>>>>>
>>>>>                 On Fri, Apr 22, 2016 at 4:43 PM, Pankaj Saha
>>>>>                 <psaha4@binghamton.edu
>>>>>                 <ma...@binghamton.edu>> wrote:
>>>>>
>>>>>                     Hi Suresh,
>>>>>                     Yes, that was the problem. Now it's working.
>>>>>                     here is the log:
>>>>>                     [main] INFO
>>>>>                     org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl
>>>>>                     - Keypair created successfully: testKey
>>>>>                     [main] INFO
>>>>>                     org.apache.airavata.cloud.test.CloudIntfTest -
>>>>>                     Keypair created/ retrieved:
>>>>>                     83:17:5b:2c:f3:31:06:af:99:c1:c8:8b:62:72:36:35
>>>>>                     [main] INFO
>>>>>                     org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl
>>>>>                     - Using network subnet-airavata with ID:
>>>>>                     ad2552d6-1a02-4d6c-9fa4-ad40d93e5423
>>>>>                     [main] INFO
>>>>>                     org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl
>>>>>                     - New server created with ID:
>>>>>                     2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>>>>>                     [main] INFO
>>>>>                     org.apache.airavata.cloud.test.CloudIntfTest -
>>>>>                     Server Created:
>>>>>                     2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>>>>>                     [main] INFO
>>>>>                     org.apache.airavata.cloud.test.CloudIntfTest -
>>>>>                     Waiting for instance to go ACTIVE...
>>>>>                     [main] INFO
>>>>>                     org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl
>>>>>                     - Server retrieved successfully for ID:
>>>>>                     2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>>>>>                     [main] INFO
>>>>>                     org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl
>>>>>                     - true:200:null:ActionResponse{success=true,
>>>>>                     code=200}
>>>>>                     [main] INFO
>>>>>                     org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl
>>>>>                     - Floating IP 149.165.156.142 assigned
>>>>>                     successfully to server with ID:
>>>>>                     2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>>>>>                     [main] INFO
>>>>>                     org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl
>>>>>                     - Server retrieved successfully for ID:
>>>>>                     2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>>>>>                     [main] INFO
>>>>>                     org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl
>>>>>                     - Server deleted successfully for ID:
>>>>>                     2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>>>>>                     [main] INFO
>>>>>                     org.apache.airavata.cloud.test.CloudIntfTest -
>>>>>                     Server deleted:
>>>>>                     2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>>>>>                     [main] INFO
>>>>>                     org.apache.airavata.cloud.test.CloudIntfTest -
>>>>>                     Waiting for instance to terminate...
>>>>>                     [main] INFO
>>>>>                     org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl
>>>>>                     - Keypair deleted successfully: testKey
>>>>>                     [main] INFO
>>>>>                     org.apache.airavata.cloud.test.CloudIntfTest -
>>>>>                     Keypair deleted: testKey
>>>>>                     [main] INFO
>>>>>                     org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl
>>>>>                     - Server retrieved successfully for ID:
>>>>>                     2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>>>>>
>>>>>
>>>>>                     Thanks
>>>>>                     Pankaj
>>>>>
>>>>>                     On Fri, Apr 22, 2016 at 4:15 PM, Suresh Marru
>>>>>                     <smarru@apache.org <ma...@apache.org>>
>>>>>                     wrote:
>>>>>
>>>>>                         I now noticed that you have
>>>>>                         used OS_PROJECT_DOMAIN_NAME=tacc instead
>>>>>                         of OS_PROJECT_DOMAIN_NAME=scigap
>>>>>
>>>>>                         Suresh
>>>>>
>>>>>>                         On Apr 22, 2016, at 4:14 PM, Suresh Marru
>>>>>>                         <smarru@apache.org
>>>>>>                         <ma...@apache.org>> wrote:
>>>>>>
>>>>>>                         Hi Pankaj, Mangirish,
>>>>>>
>>>>>>                         Is this intermittent or do you
>>>>>>                         consistently get authentication issues? I
>>>>>>                         am attaching my openrc file:
>>>>>>
>>>>>>                         OS_PROJECT_DOMAIN_NAME=scigap
>>>>>>                         OS_USER_DOMAIN_NAME=tacc
>>>>>>                         OS_PROJECT_NAME=scigap
>>>>>>                         OS_TENANT_NAME=scigap
>>>>>>                         OS_USERNAME=scigap
>>>>>>                         OS_PASSWORD=XXXXXXXXXXXXX
>>>>>>                         OS_AUTH_URL=https://jblb.jetstream-cloud.org:35357/v3
>>>>>>                         OS_IDENTITY_API_VERSION=3
>>>>>>
>>>>>>                         # Network Properties
>>>>>>                         OS_FLOATING_IP_POOL=public
>>>>>>                         OS_SUBNET_NAME=airavata
>>>>>>
>>>>>>                         To complicate the puzzle, I am
>>>>>>                         consistently able to launch few hundred’s
>>>>>>                         of instances within the past day without
>>>>>>                         any issues. I just checked the code, I am
>>>>>>                         using it out of the box and no local
>>>>>>                         changes.
>>>>>>
>>>>>>                         Suresh
>>>>>>
>>>>>>
>>>>>>>                         On Apr 22, 2016, at 3:18 PM, Pankaj Saha
>>>>>>>                         <psaha4@binghamton.edu
>>>>>>>                         <ma...@binghamton.edu>> wrote:
>>>>>>>
>>>>>>>                         Hello Everyone,
>>>>>>>
>>>>>>>                         I had a discussion with Mangirish today
>>>>>>>                         morning and we could figure out through
>>>>>>>                         debugging that java code getting
>>>>>>>                         authentication exception when trying to
>>>>>>>                         authenticate the user with openstack.
>>>>>>>                         NOVA client for openstack did work well
>>>>>>>                         and I have also tested with credentials
>>>>>>>                         to directly login into the portal.
>>>>>>>                         I have replicated the same in another
>>>>>>>                         system in my same lab network and the
>>>>>>>                         test case still failing for the same
>>>>>>>                         status-401, authentication error.
>>>>>>>
>>>>>>>                         I have followed these below steps:
>>>>>>>
>>>>>>>                          1. generated rsa key
>>>>>>>                          2. downloaded airavata from git,
>>>>>>>                             switched it to "develop" branch
>>>>>>>                          3. changed the required property values
>>>>>>>                             for openstack.
>>>>>>>                          4. run : mvn clean install from inside
>>>>>>>                             the cloud/cloud-provisioning module.
>>>>>>>
>>>>>>>                         It's definitely not the firewall issue
>>>>>>>                         as its failing in the authentication
>>>>>>>                         stage. I am attaching my property file
>>>>>>>                         for reference, please let me know if you
>>>>>>>                         find anything wrong in this.
>>>>>>>                         *test_data.properties*
>>>>>>>
>>>>>>>                             # Common properties
>>>>>>>                             publicKeyFile=/home/psaha4/.ssh/id_rsa.pub
>>>>>>>                             # Jetstream properties
>>>>>>>                             jetstream_imageId=448636b0-450a-4b49-9bfe-b3135fc443e8
>>>>>>>                             jetstream_flavorId=3
>>>>>>>                             OS_PROJECT_DOMAIN_NAME=tacc
>>>>>>>                             OS_USER_DOMAIN_NAME=tacc
>>>>>>>                             OS_PROJECT_NAME=scigap
>>>>>>>                             OS_TENANT_NAME=scigap
>>>>>>>                             OS_USERNAME=scigap
>>>>>>>                             OS_PASSWORD=<not exposing the
>>>>>>>                             password here>
>>>>>>>                             OS_AUTH_URL=https://jblb.jetstream-cloud.org:35357/v3
>>>>>>>                             OS_IDENTITY_API_VERSION=3
>>>>>>>                             # Network Properties
>>>>>>>                             OS_FLOATING_IP_POOL=public
>>>>>>>                             OS_SUBNET_NAME=airavata
>>>>>>>
>>>>>>>
>>>>>>>                         Can someone send me
>>>>>>>                         jetstream_openrc.properties and
>>>>>>>                         test_data.properties file from a working
>>>>>>>                         environment in  a separate email so that
>>>>>>>                         I can place them and test from my system
>>>>>>>                         once.
>>>>>>>
>>>>>>>                         Thanks
>>>>>>>                         Pankaj
>>>>>>>
>>>>>>>
>>>>>>>                         On Thu, Apr 21, 2016 at 11:43 AM, Pankaj
>>>>>>>                         Saha <psaha4@binghamton.edu
>>>>>>>                         <ma...@binghamton.edu>> wrote:
>>>>>>>
>>>>>>>                             Hi Shameera,
>>>>>>>                             I have received the password from
>>>>>>>                             Mangirish and I am using the same
>>>>>>>                             details as he has provided.
>>>>>>>                             Regarding the jetstream keypair, my
>>>>>>>                             understanding is, during the test
>>>>>>>                             run it fetches the public key from
>>>>>>>                             the properties file and send it to
>>>>>>>                             the jetstream servers. Please let me
>>>>>>>                             know how I need to configure it
>>>>>>>                             separately.
>>>>>>>
>>>>>>>                             Thanks
>>>>>>>                             Pankaj
>>>>>>>
>>>>>>>                             On Wed, Apr 20, 2016 at 8:48 PM,
>>>>>>>                             Shameera Rathnayaka
>>>>>>>                             <shameerainfo@gmail.com
>>>>>>>                             <ma...@gmail.com>> wrote:
>>>>>>>
>>>>>>>                                 Hi Pankaj,
>>>>>>>
>>>>>>>                                 To work with your ssh keys you
>>>>>>>                                 need to add them to jetstream
>>>>>>>                                 keypair. Have you done that part?
>>>>>>>
>>>>>>>                                 also you are not providing
>>>>>>>                                 correct the OS_PASSWORD value
>>>>>>>                                 accordding to above deatils.
>>>>>>>
>>>>>>>                                 Shameera.
>>>>>>>
>>>>>>>
>>>>>>>                                 On Wed, Apr 20, 2016 at 3:42 PM
>>>>>>>                                 Pankaj Saha
>>>>>>>                                 <psaha4@binghamton.edu
>>>>>>>                                 <ma...@binghamton.edu>>
>>>>>>>                                 wrote:
>>>>>>>
>>>>>>>                                     I have just use maven to
>>>>>>>                                     build the same project. here
>>>>>>>                                     is thedetails
>>>>>>>                                     # Common properties
>>>>>>>                                     publicKeyFile=/home/psaha4/.ssh/id_rsa.pub
>>>>>>>
>>>>>>>                                     # Jetstream properties
>>>>>>>                                     jetstream_imageId=448636b0-450a-4b49-9bfe-b3135fc443e8
>>>>>>>                                     jetstream_flavorId=3
>>>>>>>
>>>>>>>                                     OS_PROJECT_DOMAIN_NAME=tacc
>>>>>>>                                     OS_USER_DOMAIN_NAME=tacc
>>>>>>>                                     OS_PROJECT_NAME=scigap
>>>>>>>                                     OS_TENANT_NAME=scigap
>>>>>>>                                     OS_USERNAME=scigap
>>>>>>>                                     OS_PASSWORD=<not exposing here>
>>>>>>>                                     OS_AUTH_URL=https://jblb.jetstream-cloud.org:35357/v3
>>>>>>>                                     OS_IDENTITY_API_VERSION=3
>>>>>>>
>>>>>>>                                     # Network Properties
>>>>>>>                                     OS_FLOATING_IP_POOL=public
>>>>>>>                                     OS_SUBNET_NAME=airavata
>>>>>>>
>>>>>>>                                     The test case error that I
>>>>>>>                                     am getting for the Test case
>>>>>>>                                     is al below:
>>>>>>>                                     -------------------------------------------------------
>>>>>>>                                      T E S T S
>>>>>>>                                     -------------------------------------------------------
>>>>>>>                                     Running
>>>>>>>                                     org.apache.airavata.cloud.test.CloudIntfTest
>>>>>>>                                     AuthenticationException{message=Unauthorized,
>>>>>>>                                     status=401}
>>>>>>>                                     at
>>>>>>>                                     org.openstack4j.core.transport.HttpExceptionHandler.mapException(HttpExceptionHandler.java:36)
>>>>>>>                                     at
>>>>>>>                                     org.openstack4j.core.transport.HttpExceptionHandler.mapException(HttpExceptionHandler.java:23)
>>>>>>>                                     at
>>>>>>>                                     org.openstack4j.openstack.internal.OSAuthenticator.authenticateV3(OSAuthenticator.java:161)
>>>>>>>                                     at
>>>>>>>                                     org.openstack4j.openstack.internal.OSAuthenticator.invoke(OSAuthenticator.java:78)
>>>>>>>                                     at
>>>>>>>                                     org.openstack4j.openstack.client.OSClientBuilder$ClientV3.authenticate(OSClientBuilder.java:163)
>>>>>>>                                     at
>>>>>>>                                     org.openstack4j.openstack.client.OSClientBuilder$ClientV3.authenticate(OSClientBuilder.java:127)
>>>>>>>                                     at
>>>>>>>                                     org.apache.airavata.cloud.openstack.OS4JClientProvider.getOSClientV3(OS4JClientProvider.java:86)
>>>>>>>                                     at
>>>>>>>                                     org.apache.airavata.cloud.openstack.OS4JClientProvider.getOSClient(OS4JClientProvider.java:49)
>>>>>>>                                     at
>>>>>>>                                     org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl.<init>(OpenstackIntfImpl.java:78)
>>>>>>>                                     at
>>>>>>>                                     org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:77)
>>>>>>>                                     at
>>>>>>>                                     sun.reflect.NativeMethodAccessorImpl.invoke0(Native
>>>>>>>                                     Method)
>>>>>>>                                     at
>>>>>>>                                     sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>>>>>>                                     at
>>>>>>>                                     sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>>>>                                     at
>>>>>>>                                     java.lang.reflect.Method.invoke(Method.java:498)
>>>>>>>                                     at
>>>>>>>                                     org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>>>>>>>                                     at
>>>>>>>                                     org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>>>>>>>                                     at
>>>>>>>                                     org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>>>>>>>                                     at
>>>>>>>                                     org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>>>>>>>                                     at
>>>>>>>                                     org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>>>>>>>                                     at
>>>>>>>                                     org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
>>>>>>>                                     at
>>>>>>>                                     org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
>>>>>>>                                     at
>>>>>>>                                     org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>>>>>>>                                     at
>>>>>>>                                     org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>>>>>>>                                     at
>>>>>>>                                     org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>>>>>>>                                     at
>>>>>>>                                     org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>>>>>>>                                     at
>>>>>>>                                     org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>>>>>>>                                     at
>>>>>>>                                     org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>>>>>>>                                     at
>>>>>>>                                     org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
>>>>>>>                                     at
>>>>>>>                                     org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
>>>>>>>                                     at
>>>>>>>                                     org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
>>>>>>>                                     at
>>>>>>>                                     org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
>>>>>>>                                     at
>>>>>>>                                     org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
>>>>>>>                                     at
>>>>>>>                                     org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
>>>>>>>                                     at
>>>>>>>                                     org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>>>>>>>                                     java.lang.NullPointerException
>>>>>>>                                     at
>>>>>>>                                     org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl.getKeyPair(OpenstackIntfImpl.java:215)
>>>>>>>                                     at
>>>>>>>                                     org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:92)
>>>>>>>                                     at
>>>>>>>                                     sun.reflect.NativeMethodAccessorImpl.invoke0(Native
>>>>>>>                                     Method)
>>>>>>>                                     at
>>>>>>>                                     sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>>>>>>                                     at
>>>>>>>                                     sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>>>>                                     at
>>>>>>>                                     java.lang.reflect.Method.invoke(Method.java:498)
>>>>>>>                                     at
>>>>>>>                                     org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>>>>>>>                                     at
>>>>>>>                                     org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>>>>>>>                                     at
>>>>>>>                                     org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>>>>>>>                                     at
>>>>>>>                                     org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>>>>>>>                                     at
>>>>>>>                                     org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>>>>>>>                                     at
>>>>>>>                                     org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
>>>>>>>                                     at
>>>>>>>                                     org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
>>>>>>>                                     at
>>>>>>>                                     org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>>>>>>>                                     at
>>>>>>>                                     org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>>>>>>>                                     at
>>>>>>>                                     org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>>>>>>>                                     at
>>>>>>>                                     org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>>>>>>>                                     at
>>>>>>>                                     org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>>>>>>>                                     at
>>>>>>>                                     org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>>>>>>>                                     at
>>>>>>>                                     org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
>>>>>>>                                     at
>>>>>>>                                     org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
>>>>>>>                                     at
>>>>>>>                                     org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
>>>>>>>                                     at
>>>>>>>                                     org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
>>>>>>>                                     at
>>>>>>>                                     org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
>>>>>>>                                     at
>>>>>>>                                     org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
>>>>>>>                                     at
>>>>>>>                                     org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>>>>>>>                                     [main] ERROR
>>>>>>>                                     org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl
>>>>>>>                                     - Failed to retrieve
>>>>>>>                                     keypair: testKey
>>>>>>>                                     java.lang.NullPointerException
>>>>>>>                                     at
>>>>>>>                                     org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl.createKeyPair(OpenstackIntfImpl.java:197)
>>>>>>>                                     at
>>>>>>>                                     org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:94)
>>>>>>>                                     at
>>>>>>>                                     sun.reflect.NativeMethodAccessorImpl.invoke0(Native
>>>>>>>                                     Method)
>>>>>>>                                     at
>>>>>>>                                     sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>>>>>>                                     at
>>>>>>>                                     sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>>>>                                     at
>>>>>>>                                     java.lang.reflect.Method.invoke(Method.java:498)
>>>>>>>                                     at
>>>>>>>                                     org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>>>>>>>                                     at
>>>>>>>                                     org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>>>>>>>                                     at
>>>>>>>                                     org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>>>>>>>                                     at
>>>>>>>                                     org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>>>>>>>                                     at
>>>>>>>                                     org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>>>>>>>                                     at
>>>>>>>                                     org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
>>>>>>>                                     at
>>>>>>>                                     org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
>>>>>>>                                     at
>>>>>>>                                     org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>>>>>>>                                     at
>>>>>>>                                     org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>>>>>>>                                     at
>>>>>>>                                     org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>>>>>>>                                     at
>>>>>>>                                     org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>>>>>>>                                     at
>>>>>>>                                     org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>>>>>>>                                     at
>>>>>>>                                     org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>>>>>>>                                     at
>>>>>>>                                     org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
>>>>>>>                                     at
>>>>>>>                                     org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
>>>>>>>                                     at
>>>>>>>                                     org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
>>>>>>>                                     at
>>>>>>>                                     org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
>>>>>>>                                     at
>>>>>>>                                     org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
>>>>>>>                                     at
>>>>>>>                                     org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
>>>>>>>                                     at
>>>>>>>                                     org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>>>>>>>                                     [main] ERROR
>>>>>>>                                     org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl
>>>>>>>                                     - Failed to create keypair:
>>>>>>>                                     testKey
>>>>>>>                                     java.lang.NullPointerException
>>>>>>>                                     at
>>>>>>>                                     org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:97)
>>>>>>>                                     at
>>>>>>>                                     sun.reflect.NativeMethodAccessorImpl.invoke0(Native
>>>>>>>                                     Method)
>>>>>>>                                     at
>>>>>>>                                     sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>>>>>>                                     at
>>>>>>>                                     sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>>>>                                     at
>>>>>>>                                     java.lang.reflect.Method.invoke(Method.java:498)
>>>>>>>                                     at
>>>>>>>                                     org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>>>>>>>                                     at
>>>>>>>                                     org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>>>>>>>                                     at
>>>>>>>                                     org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>>>>>>>                                     at
>>>>>>>                                     org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>>>>>>>                                     at
>>>>>>>                                     org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>>>>>>>                                     at
>>>>>>>                                     org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
>>>>>>>                                     at
>>>>>>>                                     org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
>>>>>>>                                     at
>>>>>>>                                     org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>>>>>>>                                     at
>>>>>>>                                     org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>>>>>>>                                     at
>>>>>>>                                     org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>>>>>>>                                     at
>>>>>>>                                     org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>>>>>>>                                     at
>>>>>>>                                     org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>>>>>>>                                     at
>>>>>>>                                     org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>>>>>>>                                     at
>>>>>>>                                     org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
>>>>>>>                                     at
>>>>>>>                                     org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
>>>>>>>                                     at
>>>>>>>                                     org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
>>>>>>>                                     at
>>>>>>>                                     org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
>>>>>>>                                     at
>>>>>>>                                     org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
>>>>>>>                                     at
>>>>>>>                                     org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
>>>>>>>                                     at
>>>>>>>                                     org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>>>>>>>                                     Tests run: 1, Failures: 1,
>>>>>>>                                     Errors: 0, Skipped: 0, Time
>>>>>>>                                     elapsed: 0.913 sec <<<
>>>>>>>                                     FAILURE! - in
>>>>>>>                                     org.apache.airavata.cloud.test.CloudIntfTest
>>>>>>>                                     jetstreamCreateDeleteServerTest(org.apache.airavata.cloud.test.CloudIntfTest)
>>>>>>>                                      Time elapsed: 0.908 sec
>>>>>>>                                      <<< FAILURE!
>>>>>>>                                     java.lang.AssertionError: null
>>>>>>>                                     at
>>>>>>>                                     org.junit.Assert.fail(Assert.java:86)
>>>>>>>                                     at
>>>>>>>                                     org.junit.Assert.fail(Assert.java:95)
>>>>>>>                                     at
>>>>>>>                                     org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:128)
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>                                     On Wed, Apr 20, 2016 at 3:36
>>>>>>>                                     PM, Suresh Marru
>>>>>>>                                     <smarru@apache.org
>>>>>>>                                     <ma...@apache.org>>
>>>>>>>                                     wrote:
>>>>>>>
>>>>>>>                                         Thats nice. Few
>>>>>>>                                         suggestions:
>>>>>>>
>>>>>>>                                         * Eclipse or IDEA are
>>>>>>>                                         good to write code, but
>>>>>>>                                         to build and run tests
>>>>>>>                                         from maven, command line
>>>>>>>                                         is the best option.
>>>>>>>                                         * Please use the mailing
>>>>>>>                                         lists as much as
>>>>>>>                                         possible so rest of us
>>>>>>>                                         can also contribute. If
>>>>>>>                                         even you use hangouts,
>>>>>>>                                         please take time to
>>>>>>>                                         explain what the issue
>>>>>>>                                         is so it engages every one.
>>>>>>>
>>>>>>>                                         I am able to run the
>>>>>>>                                         test cases and am able
>>>>>>>                                         to program
>>>>>>>                                         against OpenstackIntfImpl just
>>>>>>>                                         fine. Can you elaborate
>>>>>>>                                         on what is the
>>>>>>>                                         authentication issue you
>>>>>>>                                         are running into?
>>>>>>>
>>>>>>>                                         Suresh
>>>>>>>
>>>>>>>>                                         On Apr 20, 2016, at
>>>>>>>>                                         3:30 PM, Pankaj Saha
>>>>>>>>                                         <psaha4@binghamton.edu
>>>>>>>>                                         <ma...@binghamton.edu>>
>>>>>>>>                                         wrote:
>>>>>>>>
>>>>>>>>                                         Hi Suresh,
>>>>>>>>
>>>>>>>>                                         I just had a hangout
>>>>>>>>                                         session with Mangirish
>>>>>>>>                                         regarding the same. It
>>>>>>>>                                         looks like an
>>>>>>>>                                         authentication issue
>>>>>>>>                                         with openstack which he
>>>>>>>>                                         is aware of. He has
>>>>>>>>                                         explained me his code
>>>>>>>>                                         and I am going to retry
>>>>>>>>                                         fixing the problem.
>>>>>>>>
>>>>>>>>                                         I did not use maven to
>>>>>>>>                                         build his project
>>>>>>>>                                         instead I have export
>>>>>>>>                                         his project as eclipse
>>>>>>>>                                         (mvn eclipse:eclipse)
>>>>>>>>                                         and trying to run the
>>>>>>>>                                         junit test.
>>>>>>>>
>>>>>>>>                                         Will update you once I
>>>>>>>>                                         find something new.
>>>>>>>>
>>>>>>>>                                         Thanks
>>>>>>>>                                         Pankaj
>>>>>>>>
>>>>>>>>
>>>>>>>>                                         On Wed, Apr 20, 2016 at
>>>>>>>>                                         3:21 PM, Suresh Marru
>>>>>>>>                                         <smarru@apache.org
>>>>>>>>                                         <ma...@apache.org>>
>>>>>>>>                                         wrote:
>>>>>>>>
>>>>>>>>                                             Hi Pankaj,
>>>>>>>>
>>>>>>>>                                             Can you please be
>>>>>>>>                                             more clear? What is
>>>>>>>>                                             failing? Did you
>>>>>>>>                                             try to build it
>>>>>>>>                                             using maven within
>>>>>>>>                                             the cloud
>>>>>>>>                                             provisioning
>>>>>>>>                                             directory itself?
>>>>>>>>                                             Did you change the
>>>>>>>>                                             public key file in
>>>>>>>>                                             the
>>>>>>>>                                             test_data.properties?
>>>>>>>>
>>>>>>>>                                             Suresh
>>>>>>>>
>>>>>>>>>                                             On Apr 20, 2016,
>>>>>>>>>                                             at 2:56 PM, Pankaj
>>>>>>>>>                                             Saha
>>>>>>>>>                                             <psaha4@binghamton.edu
>>>>>>>>>                                             <ma...@binghamton.edu>>
>>>>>>>>>                                             wrote:
>>>>>>>>>
>>>>>>>>>                                             I am able to get
>>>>>>>>>                                             Mangirish's code
>>>>>>>>>                                             in the develop
>>>>>>>>>                                             branch. After
>>>>>>>>>                                             making it an
>>>>>>>>>                                             eclipse project,
>>>>>>>>>                                             when I am trying
>>>>>>>>>                                             to run it as JUnit
>>>>>>>>>                                             test, it's failing.
>>>>>>>>>                                             Need help to fix
>>>>>>>>>                                             this, possibly
>>>>>>>>>                                             some configuration
>>>>>>>>>                                             changes in the
>>>>>>>>>                                             properties file or
>>>>>>>>>                                             similar.
>>>>>>>>>                                             It will be great
>>>>>>>>>                                             we can talk over a
>>>>>>>>>                                             hangout session or
>>>>>>>>>                                             at least a chat
>>>>>>>>>                                             session to make it
>>>>>>>>>                                             work.
>>>>>>>>>
>>>>>>>>>                                             On Wed, Apr 20,
>>>>>>>>>                                             2016 at 12:05 PM,
>>>>>>>>>                                             Mangirish Wagle
>>>>>>>>>                                             <vaglomangirish@gmail.com
>>>>>>>>>                                             <ma...@gmail.com>>
>>>>>>>>>                                             wrote:
>>>>>>>>>
>>>>>>>>>                                                 Hi Pankaj,
>>>>>>>>>
>>>>>>>>>                                                 You may find a
>>>>>>>>>                                                 sample test
>>>>>>>>>                                                 code for the
>>>>>>>>>                                                 module in this
>>>>>>>>>                                                 unit test file:-
>>>>>>>>>
>>>>>>>>>                                                 https://github.com/apache/airavata/blob/develop/modules/cloud/cloud-provisioning/src/test/java/org/apache/airavata/cloud/test/CloudIntfTest.java
>>>>>>>>>
>>>>>>>>>                                                 Also, if you
>>>>>>>>>                                                 want to test
>>>>>>>>>                                                 run the code,
>>>>>>>>>                                                 you may please
>>>>>>>>>                                                 follow this
>>>>>>>>>                                                 quick README:-
>>>>>>>>>
>>>>>>>>>                                                 https://github.com/apache/airavata/blob/develop/modules/cloud/cloud-provisioning/README
>>>>>>>>>
>>>>>>>>>                                                 Please let me
>>>>>>>>>                                                 know if you
>>>>>>>>>                                                 need some more
>>>>>>>>>                                                 info or code
>>>>>>>>>                                                 walkthrough.
>>>>>>>>>                                                 Sending you
>>>>>>>>>                                                 the jetstream
>>>>>>>>>                                                 openrc
>>>>>>>>>                                                 credentials
>>>>>>>>>                                                 separately.
>>>>>>>>>
>>>>>>>>>                                                 Thanks.
>>>>>>>>>
>>>>>>>>>                                                 Regards,
>>>>>>>>>                                                 Mangirish
>>>>>>>>>
>>>>>>>>>                                                 On Wed, Apr
>>>>>>>>>                                                 20, 2016 at
>>>>>>>>>                                                 11:42 AM,
>>>>>>>>>                                                 Suresh Marru
>>>>>>>>>                                                 <smarru@apache.org
>>>>>>>>>                                                 <ma...@apache.org>>
>>>>>>>>>                                                 wrote:
>>>>>>>>>
>>>>>>>>>                                                     Hi Pankaj,
>>>>>>>>>
>>>>>>>>>                                                     Please
>>>>>>>>>                                                     switch to
>>>>>>>>>                                                     ‘develop’
>>>>>>>>>                                                     branch and
>>>>>>>>>                                                     look for
>>>>>>>>>                                                     the cloud
>>>>>>>>>                                                     provisioning
>>>>>>>>>                                                     module -
>>>>>>>>>                                                     https://github.com/apache/airavata/tree/develop/modules/cloud/cloud-provisioning
>>>>>>>>>
>>>>>>>>>                                                     Suresh
>>>>>>>>>
>>>>>>>>>>                                                     On Apr
>>>>>>>>>>                                                     20, 2016,
>>>>>>>>>>                                                     at 11:37
>>>>>>>>>>                                                     AM,
>>>>>>>>>>                                                     Pankaj
>>>>>>>>>>                                                     Saha
>>>>>>>>>>                                                     <psaha4@binghamton.edu
>>>>>>>>>>                                                     <ma...@binghamton.edu>>
>>>>>>>>>>                                                     wrote:
>>>>>>>>>>
>>>>>>>>>>                                                     Hello
>>>>>>>>>>                                                     Mangirish,
>>>>>>>>>>                                                     I have
>>>>>>>>>>                                                     latest
>>>>>>>>>>                                                     Airavata
>>>>>>>>>>                                                     mater
>>>>>>>>>>                                                     branch
>>>>>>>>>>                                                     installed
>>>>>>>>>>                                                     in my
>>>>>>>>>>                                                     local
>>>>>>>>>>                                                     system.
>>>>>>>>>>                                                     Can you
>>>>>>>>>>                                                     please
>>>>>>>>>>                                                     give us
>>>>>>>>>>                                                     some clue
>>>>>>>>>>                                                     how to
>>>>>>>>>>                                                     start
>>>>>>>>>>                                                     creating
>>>>>>>>>>                                                     the VMs
>>>>>>>>>>                                                     through
>>>>>>>>>>                                                     you
>>>>>>>>>>                                                     application.
>>>>>>>>>>                                                     Please
>>>>>>>>>>                                                     specify
>>>>>>>>>>                                                     where we
>>>>>>>>>>                                                     can find
>>>>>>>>>>                                                     your
>>>>>>>>>>                                                     corresponding
>>>>>>>>>>                                                     java
>>>>>>>>>>                                                     code. Is
>>>>>>>>>>                                                     it
>>>>>>>>>>                                                     through
>>>>>>>>>>                                                     PGA website?
>>>>>>>>>>                                                     Please
>>>>>>>>>>                                                     share the
>>>>>>>>>>                                                     required
>>>>>>>>>>                                                     password
>>>>>>>>>>                                                     to me in
>>>>>>>>>>                                                     a
>>>>>>>>>>                                                     separate
>>>>>>>>>>                                                     email.
>>>>>>>>>>
>>>>>>>>>>                                                     Thanks
>>>>>>>>>>                                                     Pankaj
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>                                 -- 
>>>>>>>                                 Shameera Rathnayaka
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>
>>>
>>>
>>>
>>
>>
>


Re: Jetstream VM creation through Airavata

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

Can you hop on the hipchat, lets get these setup - https://www.hipchat.com/gMDHyN1KM

Suresh

> On Apr 29, 2016, at 9:51 PM, Pankaj Saha <ps...@binghamton.edu> wrote:
> 
> I need four VMs with public ip as of now.
> 
> On Apr 29, 2016 9:22 PM, "Suresh Marru" <smarru@apache.org <ma...@apache.org>> wrote:
> How many instances do you need to test? I have about 1200 instances running for a stress test and I am exhausting quotes at various levels, hence these errors. 
> 
> If will be releasing all my VM’s wednesday afternoon. So tell me how many you need between now and then and I will release some. 
> 
> Suresh
> 
>> On Apr 29, 2016, at 9:05 PM, Pankaj Saha <psaha4@binghamton.edu <ma...@binghamton.edu>> wrote:
>> 
>> Hi Suresh,
>> I could ssh to VMs but new VMs are not getting any floating public IP.
>> 
>>  
>> Thanks
>> Pankaj
>> 
>> On Fri, Apr 29, 2016 at 8:51 PM, Suresh Marru <smarru@apache.org <ma...@apache.org>> wrote:
>> Pankaj,
>> 
>> Do you still have the issue? 
>> 
>> Suresh
>> 
>>> On Apr 28, 2016, at 5:26 PM, Pankaj Saha <psaha4@binghamton.edu <ma...@binghamton.edu>> wrote:
>>> 
>>> Details of my VM is as mentioned below:
>>> 
>>> Name: Mesos Agent
>>> Floating IPs:149.165.157.247
>>> size: m1.medium	
>>> key: pankaj SSH key
>>> 
>>> 
>>> On Thu, Apr 28, 2016 at 5:22 PM, Pankaj Saha <psaha4@binghamton.edu <ma...@binghamton.edu>> wrote:
>>> Hi 
>>> I need SSH to get the console access to install required software. I believe SSH server is not running by default in the ubuntu based servers and also I can not access its console through the openstack web UI.
>>> Please suggest.
>>> 
>>> Thanks
>>> Pankaj 
>>> 
>>> On Thu, Apr 28, 2016 at 5:00 PM, Pankaj Saha <psaha4@binghamton.edu <ma...@binghamton.edu>> wrote:
>>> Hi Suresh,
>>> Yes, it's accessible now. Thanks.
>>> 
>>> On Thu, Apr 28, 2016 at 4:39 PM, Suresh Marru <smarru@apache.org <ma...@apache.org>> wrote:
>>> Pankaj,
>>> 
>>> Try now.
>>> 
>>> Suresh
>>> 
>>>> On Apr 28, 2016, at 1:05 PM, Suresh Marru <smarru@apache.org <ma...@apache.org>> wrote:
>>>> 
>>>> Hi Pankaj,
>>>> 
>>>> By default yes they will be accessible from outside. The firewall’s are controlled by the security policy and currently both ssh and http are accessible widely. There are issues with Open Stack Neutron services and I reported them. I will post when the network is back stable. 
>>>> 
>>>> Suresh
>>>> 
>>>>> On Apr 28, 2016, at 1:02 PM, Pankaj Saha <psaha4@binghamton.edu <ma...@binghamton.edu>> wrote:
>>>>> 
>>>>> Hello Devs,
>>>>> I have created a VM in openstack through cloud-provisioning module. Which returned an VM with floating ip : 149.165.157.215. I was expecting that this VM will be accessible through ssh over public ip assigned to it. I need ssh access to these VMs for including mesos binaries into them so that these images can be used as mesos agents for Gourav's prject.
>>>>> 
>>>>> Please let me know if it is blocked by any firewall and whats the process to get access to them.
>>>>> 
>>>>> Thanks
>>>>> Pankaj
>>>>> 
>>>>> On Fri, Apr 22, 2016 at 4:43 PM, Pankaj Saha <psaha4@binghamton.edu <ma...@binghamton.edu>> wrote:
>>>>> Hi Suresh,
>>>>> Yes, that was the problem. Now it's working.
>>>>> here is the log:
>>>>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - Keypair created successfully: testKey
>>>>> [main] INFO org.apache.airavata.cloud.test.CloudIntfTest - Keypair created/ retrieved: 83:17:5b:2c:f3:31:06:af:99:c1:c8:8b:62:72:36:35
>>>>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - Using network subnet-airavata with ID: ad2552d6-1a02-4d6c-9fa4-ad40d93e5423
>>>>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - New server created with ID: 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>>>>> [main] INFO org.apache.airavata.cloud.test.CloudIntfTest - Server Created: 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>>>>> [main] INFO org.apache.airavata.cloud.test.CloudIntfTest - Waiting for instance to go ACTIVE...
>>>>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - Server retrieved successfully for ID: 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>>>>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - true:200:null:ActionResponse{success=true, code=200}
>>>>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - Floating IP 149.165.156.142 assigned successfully to server with ID: 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>>>>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - Server retrieved successfully for ID: 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>>>>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - Server deleted successfully for ID: 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>>>>> [main] INFO org.apache.airavata.cloud.test.CloudIntfTest - Server deleted: 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>>>>> [main] INFO org.apache.airavata.cloud.test.CloudIntfTest - Waiting for instance to terminate...
>>>>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - Keypair deleted successfully: testKey
>>>>> [main] INFO org.apache.airavata.cloud.test.CloudIntfTest - Keypair deleted: testKey
>>>>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - Server retrieved successfully for ID: 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>>>>> 
>>>>> 
>>>>> Thanks
>>>>> Pankaj
>>>>> 
>>>>> On Fri, Apr 22, 2016 at 4:15 PM, Suresh Marru <smarru@apache.org <ma...@apache.org>> wrote:
>>>>> I now noticed that you have used OS_PROJECT_DOMAIN_NAME=tacc instead of OS_PROJECT_DOMAIN_NAME=scigap
>>>>> 
>>>>> Suresh
>>>>> 
>>>>>> On Apr 22, 2016, at 4:14 PM, Suresh Marru <smarru@apache.org <ma...@apache.org>> wrote:
>>>>>> 
>>>>>> Hi Pankaj, Mangirish,
>>>>>> 
>>>>>> Is this intermittent or do you consistently get authentication issues? I am attaching my openrc file:
>>>>>> 
>>>>>> OS_PROJECT_DOMAIN_NAME=scigap
>>>>>> OS_USER_DOMAIN_NAME=tacc
>>>>>> OS_PROJECT_NAME=scigap
>>>>>> OS_TENANT_NAME=scigap
>>>>>> OS_USERNAME=scigap
>>>>>> OS_PASSWORD=XXXXXXXXXXXXX
>>>>>> OS_AUTH_URL=https://jblb.jetstream-cloud.org:35357/v3 <https://jblb.jetstream-cloud.org:35357/v3>
>>>>>> OS_IDENTITY_API_VERSION=3
>>>>>> 
>>>>>> # Network Properties
>>>>>> OS_FLOATING_IP_POOL=public
>>>>>> OS_SUBNET_NAME=airavata
>>>>>> 
>>>>>> To complicate the puzzle, I am consistently able to launch few hundred’s of instances within the past day without any issues. I just checked the code, I am using it out of the box and no local changes. 
>>>>>> 
>>>>>> Suresh
>>>>>> 
>>>>>> 
>>>>>>> On Apr 22, 2016, at 3:18 PM, Pankaj Saha <psaha4@binghamton.edu <ma...@binghamton.edu>> wrote:
>>>>>>> 
>>>>>>> Hello Everyone,
>>>>>>> 
>>>>>>> I had a discussion with Mangirish today morning and we could figure out through debugging that java code getting authentication exception when trying to authenticate the user with openstack. 
>>>>>>> NOVA client for openstack did work well and I have also tested with credentials to directly login into the portal.
>>>>>>> I have replicated the same in another system in my same lab network and the test case still failing for the same status-401, authentication error. 
>>>>>>> 
>>>>>>> I have followed these below steps:
>>>>>>> generated rsa key
>>>>>>> downloaded airavata from git, switched it to "develop" branch
>>>>>>> changed the required property values for openstack.
>>>>>>> run : mvn clean install from inside the cloud/cloud-provisioning module.
>>>>>>> It's definitely not the firewall issue as its failing in the authentication stage. I am attaching my property file for reference, please let me know if you find anything wrong in this.
>>>>>>> test_data.properties
>>>>>>> 
>>>>>>> # Common properties
>>>>>>> publicKeyFile=/home/psaha4/.ssh/id_rsa.pub
>>>>>>> # Jetstream properties
>>>>>>> jetstream_imageId=448636b0-450a-4b49-9bfe-b3135fc443e8
>>>>>>> jetstream_flavorId=3
>>>>>>> OS_PROJECT_DOMAIN_NAME=tacc
>>>>>>> OS_USER_DOMAIN_NAME=tacc
>>>>>>> OS_PROJECT_NAME=scigap
>>>>>>> OS_TENANT_NAME=scigap
>>>>>>> OS_USERNAME=scigap
>>>>>>> OS_PASSWORD=<not exposing the password here>
>>>>>>> OS_AUTH_URL=https://jblb.jetstream-cloud.org:35357/v3 <https://jblb.jetstream-cloud.org:35357/v3>
>>>>>>> OS_IDENTITY_API_VERSION=3
>>>>>>> # Network Properties
>>>>>>> OS_FLOATING_IP_POOL=public
>>>>>>> OS_SUBNET_NAME=airavata
>>>>>>> 
>>>>>>> Can someone send me jetstream_openrc.properties and test_data.properties file from a working environment in  a separate email so that I can place them and test from my system once.
>>>>>>> 
>>>>>>> Thanks
>>>>>>> Pankaj
>>>>>>> 
>>>>>>> 
>>>>>>> On Thu, Apr 21, 2016 at 11:43 AM, Pankaj Saha <psaha4@binghamton.edu <ma...@binghamton.edu>> wrote:
>>>>>>> Hi Shameera,
>>>>>>> I have received the password from Mangirish and I am using the same details as he has provided.
>>>>>>> Regarding the jetstream keypair, my understanding is, during the test run it fetches the public key from the properties file and send it to the jetstream servers.  Please let me know how I need to configure it separately.
>>>>>>> 
>>>>>>> Thanks
>>>>>>> Pankaj
>>>>>>> 
>>>>>>> On Wed, Apr 20, 2016 at 8:48 PM, Shameera Rathnayaka <shameerainfo@gmail.com <ma...@gmail.com>> wrote:
>>>>>>> Hi Pankaj,
>>>>>>> 
>>>>>>> To work with your ssh keys you need to add them to jetstream keypair. Have you done that part? 
>>>>>>> 
>>>>>>> also you are not providing correct the OS_PASSWORD value accordding to above deatils.
>>>>>>> 
>>>>>>> Shameera.
>>>>>>> 
>>>>>>> 
>>>>>>> On Wed, Apr 20, 2016 at 3:42 PM Pankaj Saha <psaha4@binghamton.edu <ma...@binghamton.edu>> wrote:
>>>>>>> I have just use maven to build the same project. here is thedetails
>>>>>>> # Common properties
>>>>>>> publicKeyFile=/home/psaha4/.ssh/id_rsa.pub
>>>>>>> 
>>>>>>> # Jetstream properties
>>>>>>> jetstream_imageId=448636b0-450a-4b49-9bfe-b3135fc443e8
>>>>>>> jetstream_flavorId=3
>>>>>>> 
>>>>>>> OS_PROJECT_DOMAIN_NAME=tacc
>>>>>>> OS_USER_DOMAIN_NAME=tacc
>>>>>>> OS_PROJECT_NAME=scigap
>>>>>>> OS_TENANT_NAME=scigap
>>>>>>> OS_USERNAME=scigap
>>>>>>> OS_PASSWORD=<not exposing here>
>>>>>>> OS_AUTH_URL=https://jblb.jetstream-cloud.org:35357/v3 <https://jblb.jetstream-cloud.org:35357/v3>
>>>>>>> OS_IDENTITY_API_VERSION=3
>>>>>>> 
>>>>>>> # Network Properties
>>>>>>> OS_FLOATING_IP_POOL=public
>>>>>>> OS_SUBNET_NAME=airavata
>>>>>>> 
>>>>>>> The test case error that I am getting for the Test case is al below:
>>>>>>> -------------------------------------------------------
>>>>>>>  T E S T S
>>>>>>> -------------------------------------------------------
>>>>>>> Running org.apache.airavata.cloud.test.CloudIntfTest
>>>>>>> AuthenticationException{message=Unauthorized, status=401}
>>>>>>> 	at org.openstack4j.core.transport.HttpExceptionHandler.mapException(HttpExceptionHandler.java:36)
>>>>>>> 	at org.openstack4j.core.transport.HttpExceptionHandler.mapException(HttpExceptionHandler.java:23)
>>>>>>> 	at org.openstack4j.openstack.internal.OSAuthenticator.authenticateV3(OSAuthenticator.java:161)
>>>>>>> 	at org.openstack4j.openstack.internal.OSAuthenticator.invoke(OSAuthenticator.java:78)
>>>>>>> 	at org.openstack4j.openstack.client.OSClientBuilder$ClientV3.authenticate(OSClientBuilder.java:163)
>>>>>>> 	at org.openstack4j.openstack.client.OSClientBuilder$ClientV3.authenticate(OSClientBuilder.java:127)
>>>>>>> 	at org.apache.airavata.cloud.openstack.OS4JClientProvider.getOSClientV3(OS4JClientProvider.java:86)
>>>>>>> 	at org.apache.airavata.cloud.openstack.OS4JClientProvider.getOSClient(OS4JClientProvider.java:49)
>>>>>>> 	at org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl.<init>(OpenstackIntfImpl.java:78)
>>>>>>> 	at org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:77)
>>>>>>> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>>> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>>>>>> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>>>> 	at java.lang.reflect.Method.invoke(Method.java:498)
>>>>>>> 	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>>>>>>> 	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>>>>>>> 	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>>>>>>> 	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>>>>>>> 	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>>>>>>> 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
>>>>>>> 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
>>>>>>> 	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>>>>>>> 	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>>>>>>> 	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>>>>>>> 	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>>>>>>> 	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>>>>>>> 	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>>>>>>> 	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
>>>>>>> 	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
>>>>>>> 	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
>>>>>>> 	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
>>>>>>> 	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
>>>>>>> 	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
>>>>>>> 	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>>>>>>> java.lang.NullPointerException
>>>>>>> 	at org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl.getKeyPair(OpenstackIntfImpl.java:215)
>>>>>>> 	at org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:92)
>>>>>>> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>>> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>>>>>> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>>>> 	at java.lang.reflect.Method.invoke(Method.java:498)
>>>>>>> 	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>>>>>>> 	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>>>>>>> 	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>>>>>>> 	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>>>>>>> 	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>>>>>>> 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
>>>>>>> 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
>>>>>>> 	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>>>>>>> 	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>>>>>>> 	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>>>>>>> 	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>>>>>>> 	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>>>>>>> 	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>>>>>>> 	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
>>>>>>> 	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
>>>>>>> 	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
>>>>>>> 	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
>>>>>>> 	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
>>>>>>> 	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
>>>>>>> 	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>>>>>>> [main] ERROR org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - Failed to retrieve keypair: testKey
>>>>>>> java.lang.NullPointerException
>>>>>>> 	at org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl.createKeyPair(OpenstackIntfImpl.java:197)
>>>>>>> 	at org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:94)
>>>>>>> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>>> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>>>>>> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>>>> 	at java.lang.reflect.Method.invoke(Method.java:498)
>>>>>>> 	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>>>>>>> 	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>>>>>>> 	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>>>>>>> 	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>>>>>>> 	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>>>>>>> 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
>>>>>>> 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
>>>>>>> 	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>>>>>>> 	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>>>>>>> 	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>>>>>>> 	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>>>>>>> 	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>>>>>>> 	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>>>>>>> 	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
>>>>>>> 	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
>>>>>>> 	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
>>>>>>> 	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
>>>>>>> 	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
>>>>>>> 	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
>>>>>>> 	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>>>>>>> [main] ERROR org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - Failed to create keypair: testKey
>>>>>>> java.lang.NullPointerException
>>>>>>> 	at org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:97)
>>>>>>> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>>> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>>>>>> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>>>> 	at java.lang.reflect.Method.invoke(Method.java:498)
>>>>>>> 	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>>>>>>> 	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>>>>>>> 	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>>>>>>> 	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>>>>>>> 	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>>>>>>> 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
>>>>>>> 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
>>>>>>> 	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>>>>>>> 	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>>>>>>> 	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>>>>>>> 	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>>>>>>> 	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>>>>>>> 	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>>>>>>> 	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
>>>>>>> 	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
>>>>>>> 	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
>>>>>>> 	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
>>>>>>> 	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
>>>>>>> 	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
>>>>>>> 	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>>>>>>> Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.913 sec <<< FAILURE! - in org.apache.airavata.cloud.test.CloudIntfTest
>>>>>>> jetstreamCreateDeleteServerTest(org.apache.airavata.cloud.test.CloudIntfTest)  Time elapsed: 0.908 sec  <<< FAILURE!
>>>>>>> java.lang.AssertionError: null
>>>>>>> 	at org.junit.Assert.fail(Assert.java:86)
>>>>>>> 	at org.junit.Assert.fail(Assert.java:95)
>>>>>>> 	at org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:128)
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>> On Wed, Apr 20, 2016 at 3:36 PM, Suresh Marru <smarru@apache.org <ma...@apache.org>> wrote:
>>>>>>> Thats nice. Few suggestions:
>>>>>>> 
>>>>>>> * Eclipse or IDEA are good to write code, but to build and run tests from maven, command line is the best option. 
>>>>>>> * Please use the mailing lists as much as possible so rest of us can also contribute. If even you use hangouts, please take time to explain what the issue is so it engages every one. 
>>>>>>> 
>>>>>>> I am able to run the test cases and am able to program against OpenstackIntfImpl just fine. Can you elaborate on what is the authentication issue you are running into? 
>>>>>>> 
>>>>>>> Suresh
>>>>>>> 
>>>>>>>> On Apr 20, 2016, at 3:30 PM, Pankaj Saha <psaha4@binghamton.edu <ma...@binghamton.edu>> wrote:
>>>>>>>> 
>>>>>>>> Hi Suresh, 
>>>>>>>> 
>>>>>>>> I just had a hangout session with Mangirish regarding the same. It looks like an authentication issue with openstack which he is aware of. He has explained me his code and I am going to retry fixing the problem.
>>>>>>>> 
>>>>>>>> I did not use maven to build his project instead I have export his project as eclipse (mvn eclipse:eclipse) and trying to run the junit test.
>>>>>>>> 
>>>>>>>> Will update you once I find something new.
>>>>>>>> 
>>>>>>>> Thanks
>>>>>>>> Pankaj
>>>>>>>> 
>>>>>>>> 
>>>>>>>> On Wed, Apr 20, 2016 at 3:21 PM, Suresh Marru <smarru@apache.org <ma...@apache.org>> wrote:
>>>>>>>> Hi Pankaj,
>>>>>>>> 
>>>>>>>> Can you please be more clear? What is failing? Did you try to build it using maven within the cloud provisioning directory itself? Did you change the public key file in the test_data.properties? 
>>>>>>>> 
>>>>>>>> Suresh
>>>>>>>> 
>>>>>>>>> On Apr 20, 2016, at 2:56 PM, Pankaj Saha <psaha4@binghamton.edu <ma...@binghamton.edu>> wrote:
>>>>>>>>> 
>>>>>>>>> I am able to get Mangirish's code in the develop branch. After making it an eclipse project, when I am trying to run it as JUnit test, it's failing.
>>>>>>>>> Need help to fix this, possibly some configuration changes in the properties file or similar.
>>>>>>>>> It will be great we can talk over a hangout session or at least a chat session to make it work.
>>>>>>>>> 
>>>>>>>>> On Wed, Apr 20, 2016 at 12:05 PM, Mangirish Wagle <vaglomangirish@gmail.com <ma...@gmail.com>> wrote:
>>>>>>>>> Hi Pankaj,
>>>>>>>>> 
>>>>>>>>> You may find a sample test code for the module in this unit test file:-
>>>>>>>>> 
>>>>>>>>> https://github.com/apache/airavata/blob/develop/modules/cloud/cloud-provisioning/src/test/java/org/apache/airavata/cloud/test/CloudIntfTest.java <https://github.com/apache/airavata/blob/develop/modules/cloud/cloud-provisioning/src/test/java/org/apache/airavata/cloud/test/CloudIntfTest.java>
>>>>>>>>> 
>>>>>>>>> Also, if you want to test run the code, you may please follow this quick README:-
>>>>>>>>> 
>>>>>>>>> https://github.com/apache/airavata/blob/develop/modules/cloud/cloud-provisioning/README <https://github.com/apache/airavata/blob/develop/modules/cloud/cloud-provisioning/README>
>>>>>>>>> 
>>>>>>>>> Please let me know if you need some more info or code walkthrough. Sending you the jetstream openrc credentials separately. 
>>>>>>>>> 
>>>>>>>>> Thanks.
>>>>>>>>> 
>>>>>>>>> Regards,
>>>>>>>>> Mangirish
>>>>>>>>> 
>>>>>>>>> On Wed, Apr 20, 2016 at 11:42 AM, Suresh Marru <smarru@apache.org <ma...@apache.org>> wrote:
>>>>>>>>> Hi Pankaj,
>>>>>>>>> 
>>>>>>>>> Please switch to ‘develop’ branch and look for the cloud provisioning module - https://github.com/apache/airavata/tree/develop/modules/cloud/cloud-provisioning <https://github.com/apache/airavata/tree/develop/modules/cloud/cloud-provisioning>
>>>>>>>>> 
>>>>>>>>> Suresh
>>>>>>>>> 
>>>>>>>>>> On Apr 20, 2016, at 11:37 AM, Pankaj Saha <psaha4@binghamton.edu <ma...@binghamton.edu>> wrote:
>>>>>>>>>> 
>>>>>>>>>> Hello Mangirish,
>>>>>>>>>> I have latest Airavata mater branch installed in my local system. Can you please give us some clue how to start creating the VMs through you application. Please specify where we can find your corresponding java code. Is it through PGA website?
>>>>>>>>>> Please share the required password to me in a separate email.
>>>>>>>>>> 
>>>>>>>>>> Thanks
>>>>>>>>>> Pankaj
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>> 
>>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>> -- 
>>>>>>> Shameera Rathnayaka
>>>>>>> 
>>>>>>> 
>>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>> 
>>> 
>>> 
>>> 
>>> 
>> 
>> 
> 


Re: Jetstream VM creation through Airavata

Posted by Pankaj Saha <ps...@binghamton.edu>.
I need four VMs with public ip as of now.
On Apr 29, 2016 9:22 PM, "Suresh Marru" <sm...@apache.org> wrote:

> How many instances do you need to test? I have about 1200 instances
> running for a stress test and I am exhausting quotes at various levels,
> hence these errors.
>
> If will be releasing all my VM’s wednesday afternoon. So tell me how many
> you need between now and then and I will release some.
>
> Suresh
>
> On Apr 29, 2016, at 9:05 PM, Pankaj Saha <ps...@binghamton.edu> wrote:
>
> Hi Suresh,
> I could ssh to VMs but new VMs are not getting any floating public IP.
>
>
> Thanks
> Pankaj
>
> On Fri, Apr 29, 2016 at 8:51 PM, Suresh Marru <sm...@apache.org> wrote:
>
>> Pankaj,
>>
>> Do you still have the issue?
>>
>> Suresh
>>
>> On Apr 28, 2016, at 5:26 PM, Pankaj Saha <ps...@binghamton.edu> wrote:
>>
>> Details of my VM is as mentioned below:
>>
>> Name: Mesos Agent
>> Floating IPs:149.165.157.247
>> size: m1.medium
>> key: pankaj SSH key
>>
>>
>> On Thu, Apr 28, 2016 at 5:22 PM, Pankaj Saha <ps...@binghamton.edu>
>> wrote:
>>
>>> Hi
>>> I need SSH to get the console access to install required software. I
>>> believe SSH server is not running by default in the ubuntu based servers
>>> and also I can not access its console through the openstack web UI.
>>> Please suggest.
>>>
>>> Thanks
>>> Pankaj
>>>
>>> On Thu, Apr 28, 2016 at 5:00 PM, Pankaj Saha <ps...@binghamton.edu>
>>> wrote:
>>>
>>>> Hi Suresh,
>>>> Yes, it's accessible now. Thanks.
>>>>
>>>> On Thu, Apr 28, 2016 at 4:39 PM, Suresh Marru <sm...@apache.org>
>>>> wrote:
>>>>
>>>>> Pankaj,
>>>>>
>>>>> Try now.
>>>>>
>>>>> Suresh
>>>>>
>>>>> On Apr 28, 2016, at 1:05 PM, Suresh Marru <sm...@apache.org> wrote:
>>>>>
>>>>> Hi Pankaj,
>>>>>
>>>>> By default yes they will be accessible from outside. The firewall’s
>>>>> are controlled by the security policy and currently both ssh and http are
>>>>> accessible widely. There are issues with Open Stack Neutron services and I
>>>>> reported them. I will post when the network is back stable.
>>>>>
>>>>> Suresh
>>>>>
>>>>> On Apr 28, 2016, at 1:02 PM, Pankaj Saha <ps...@binghamton.edu>
>>>>> wrote:
>>>>>
>>>>> Hello Devs,
>>>>> I have created a VM in openstack through cloud-provisioning module.
>>>>> Which returned an VM with floating ip : 149.165.157.215. I was
>>>>> expecting that this VM will be accessible through ssh over public ip
>>>>> assigned to it. I need ssh access to these VMs for including mesos binaries
>>>>> into them so that these images can be used as mesos agents for
>>>>> Gourav's prject.
>>>>>
>>>>> Please let me know if it is blocked by any firewall and whats the
>>>>> process to get access to them.
>>>>>
>>>>> Thanks
>>>>> Pankaj
>>>>>
>>>>> On Fri, Apr 22, 2016 at 4:43 PM, Pankaj Saha <ps...@binghamton.edu>
>>>>> wrote:
>>>>>
>>>>>> Hi Suresh,
>>>>>> Yes, that was the problem. Now it's working.
>>>>>> here is the log:
>>>>>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl -
>>>>>> Keypair created successfully: testKey
>>>>>> [main] INFO org.apache.airavata.cloud.test.CloudIntfTest - Keypair
>>>>>> created/ retrieved: 83:17:5b:2c:f3:31:06:af:99:c1:c8:8b:62:72:36:35
>>>>>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl -
>>>>>> Using network subnet-airavata with ID: ad2552d6-1a02-4d6c-9fa4-ad40d93e5423
>>>>>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl -
>>>>>> New server created with ID: 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>>>>>> [main] INFO org.apache.airavata.cloud.test.CloudIntfTest - Server
>>>>>> Created: 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>>>>>> [main] INFO org.apache.airavata.cloud.test.CloudIntfTest - Waiting
>>>>>> for instance to go ACTIVE...
>>>>>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl -
>>>>>> Server retrieved successfully for ID: 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>>>>>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl -
>>>>>> true:200:null:ActionResponse{success=true, code=200}
>>>>>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl -
>>>>>> Floating IP 149.165.156.142 assigned successfully to server with ID:
>>>>>> 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>>>>>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl -
>>>>>> Server retrieved successfully for ID: 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>>>>>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl -
>>>>>> Server deleted successfully for ID: 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>>>>>> [main] INFO org.apache.airavata.cloud.test.CloudIntfTest - Server
>>>>>> deleted: 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>>>>>> [main] INFO org.apache.airavata.cloud.test.CloudIntfTest - Waiting
>>>>>> for instance to terminate...
>>>>>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl -
>>>>>> Keypair deleted successfully: testKey
>>>>>> [main] INFO org.apache.airavata.cloud.test.CloudIntfTest - Keypair
>>>>>> deleted: testKey
>>>>>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl -
>>>>>> Server retrieved successfully for ID: 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>>>>>>
>>>>>>
>>>>>> Thanks
>>>>>> Pankaj
>>>>>>
>>>>>> On Fri, Apr 22, 2016 at 4:15 PM, Suresh Marru <sm...@apache.org>
>>>>>> wrote:
>>>>>>
>>>>>>> I now noticed that you have used OS_PROJECT_DOMAIN_NAME=tacc instead
>>>>>>> of OS_PROJECT_DOMAIN_NAME=scigap
>>>>>>>
>>>>>>> Suresh
>>>>>>>
>>>>>>> On Apr 22, 2016, at 4:14 PM, Suresh Marru <sm...@apache.org> wrote:
>>>>>>>
>>>>>>> Hi Pankaj, Mangirish,
>>>>>>>
>>>>>>> Is this intermittent or do you consistently get authentication
>>>>>>> issues? I am attaching my openrc file:
>>>>>>>
>>>>>>> OS_PROJECT_DOMAIN_NAME=scigap
>>>>>>> OS_USER_DOMAIN_NAME=tacc
>>>>>>> OS_PROJECT_NAME=scigap
>>>>>>> OS_TENANT_NAME=scigap
>>>>>>> OS_USERNAME=scigap
>>>>>>> OS_PASSWORD=XXXXXXXXXXXXX
>>>>>>> OS_AUTH_URL=https://jblb.jetstream-cloud.org:35357/v3
>>>>>>> OS_IDENTITY_API_VERSION=3
>>>>>>>
>>>>>>> # Network Properties
>>>>>>> OS_FLOATING_IP_POOL=public
>>>>>>> OS_SUBNET_NAME=airavata
>>>>>>>
>>>>>>> To complicate the puzzle, I am consistently able to launch few
>>>>>>> hundred’s of instances within the past day without any issues. I just
>>>>>>> checked the code, I am using it out of the box and no local changes.
>>>>>>>
>>>>>>> Suresh
>>>>>>>
>>>>>>>
>>>>>>> On Apr 22, 2016, at 3:18 PM, Pankaj Saha <ps...@binghamton.edu>
>>>>>>> wrote:
>>>>>>>
>>>>>>> Hello Everyone,
>>>>>>>
>>>>>>> I had a discussion with Mangirish today morning and we could figure
>>>>>>> out through debugging that java code getting authentication exception when
>>>>>>> trying to authenticate the user with openstack.
>>>>>>> NOVA client for openstack did work well and I have also tested with
>>>>>>> credentials to directly login into the portal.
>>>>>>> I have replicated the same in another system in my same lab network
>>>>>>> and the test case still failing for the same status-401, authentication
>>>>>>> error.
>>>>>>>
>>>>>>> I have followed these below steps:
>>>>>>>
>>>>>>>    1. generated rsa key
>>>>>>>    2. downloaded airavata from git, switched it to "develop" branch
>>>>>>>    3. changed the required property values for openstack.
>>>>>>>    4. run : mvn clean install from inside the
>>>>>>>    cloud/cloud-provisioning module.
>>>>>>>
>>>>>>> It's definitely not the firewall issue as its failing in the
>>>>>>> authentication stage. I am attaching my property file for reference, please
>>>>>>> let me know if you find anything wrong in this.
>>>>>>> *test_data.properties*
>>>>>>>
>>>>>>> # Common properties
>>>>>>>> publicKeyFile=/home/psaha4/.ssh/id_rsa.pub
>>>>>>>> # Jetstream properties
>>>>>>>> jetstream_imageId=448636b0-450a-4b49-9bfe-b3135fc443e8
>>>>>>>> jetstream_flavorId=3
>>>>>>>> OS_PROJECT_DOMAIN_NAME=tacc
>>>>>>>> OS_USER_DOMAIN_NAME=tacc
>>>>>>>> OS_PROJECT_NAME=scigap
>>>>>>>> OS_TENANT_NAME=scigap
>>>>>>>> OS_USERNAME=scigap
>>>>>>>> OS_PASSWORD=<not exposing the password here>
>>>>>>>> OS_AUTH_URL=https://jblb.jetstream-cloud.org:35357/v3
>>>>>>>> OS_IDENTITY_API_VERSION=3
>>>>>>>> # Network Properties
>>>>>>>> OS_FLOATING_IP_POOL=public
>>>>>>>> OS_SUBNET_NAME=airavata
>>>>>>>
>>>>>>>
>>>>>>> Can someone send me jetstream_openrc.properties and
>>>>>>> test_data.properties file from a working environment in  a separate
>>>>>>> email so that I can place them and test from my system once.
>>>>>>>
>>>>>>> Thanks
>>>>>>> Pankaj
>>>>>>>
>>>>>>>
>>>>>>> On Thu, Apr 21, 2016 at 11:43 AM, Pankaj Saha <psaha4@binghamton.edu
>>>>>>> > wrote:
>>>>>>>
>>>>>>>> Hi Shameera,
>>>>>>>> I have received the password from Mangirish and I am using the same
>>>>>>>> details as he has provided.
>>>>>>>> Regarding the jetstream keypair, my understanding is, during the
>>>>>>>> test run it fetches the public key from the properties file and send it to
>>>>>>>> the jetstream servers.  Please let me know how I need to configure it
>>>>>>>> separately.
>>>>>>>>
>>>>>>>> Thanks
>>>>>>>> Pankaj
>>>>>>>>
>>>>>>>> On Wed, Apr 20, 2016 at 8:48 PM, Shameera Rathnayaka <
>>>>>>>> shameerainfo@gmail.com> wrote:
>>>>>>>>
>>>>>>>>> Hi Pankaj,
>>>>>>>>>
>>>>>>>>> To work with your ssh keys you need to add them to jetstream
>>>>>>>>> keypair. Have you done that part?
>>>>>>>>>
>>>>>>>>> also you are not providing correct the OS_PASSWORD value
>>>>>>>>> accordding to above deatils.
>>>>>>>>>
>>>>>>>>> Shameera.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On Wed, Apr 20, 2016 at 3:42 PM Pankaj Saha <ps...@binghamton.edu>
>>>>>>>>> wrote:
>>>>>>>>>
>>>>>>>>>> I have just use maven to build the same project. here is
>>>>>>>>>> thedetails
>>>>>>>>>> # Common properties
>>>>>>>>>> publicKeyFile=/home/psaha4/.ssh/id_rsa.pub
>>>>>>>>>>
>>>>>>>>>> # Jetstream properties
>>>>>>>>>> jetstream_imageId=448636b0-450a-4b49-9bfe-b3135fc443e8
>>>>>>>>>> jetstream_flavorId=3
>>>>>>>>>>
>>>>>>>>>> OS_PROJECT_DOMAIN_NAME=tacc
>>>>>>>>>> OS_USER_DOMAIN_NAME=tacc
>>>>>>>>>> OS_PROJECT_NAME=scigap
>>>>>>>>>> OS_TENANT_NAME=scigap
>>>>>>>>>> OS_USERNAME=scigap
>>>>>>>>>> OS_PASSWORD=<not exposing here>
>>>>>>>>>> OS_AUTH_URL=https://jblb.jetstream-cloud.org:35357/v3
>>>>>>>>>> OS_IDENTITY_API_VERSION=3
>>>>>>>>>>
>>>>>>>>>> # Network Properties
>>>>>>>>>> OS_FLOATING_IP_POOL=public
>>>>>>>>>> OS_SUBNET_NAME=airavata
>>>>>>>>>>
>>>>>>>>>> The test case error that I am getting for the Test case is al
>>>>>>>>>> below:
>>>>>>>>>> -------------------------------------------------------
>>>>>>>>>>  T E S T S
>>>>>>>>>> -------------------------------------------------------
>>>>>>>>>> Running org.apache.airavata.cloud.test.CloudIntfTest
>>>>>>>>>> AuthenticationException{message=Unauthorized, status=401}
>>>>>>>>>> at
>>>>>>>>>> org.openstack4j.core.transport.HttpExceptionHandler.mapException(HttpExceptionHandler.java:36)
>>>>>>>>>> at
>>>>>>>>>> org.openstack4j.core.transport.HttpExceptionHandler.mapException(HttpExceptionHandler.java:23)
>>>>>>>>>> at
>>>>>>>>>> org.openstack4j.openstack.internal.OSAuthenticator.authenticateV3(OSAuthenticator.java:161)
>>>>>>>>>> at
>>>>>>>>>> org.openstack4j.openstack.internal.OSAuthenticator.invoke(OSAuthenticator.java:78)
>>>>>>>>>> at
>>>>>>>>>> org.openstack4j.openstack.client.OSClientBuilder$ClientV3.authenticate(OSClientBuilder.java:163)
>>>>>>>>>> at
>>>>>>>>>> org.openstack4j.openstack.client.OSClientBuilder$ClientV3.authenticate(OSClientBuilder.java:127)
>>>>>>>>>> at
>>>>>>>>>> org.apache.airavata.cloud.openstack.OS4JClientProvider.getOSClientV3(OS4JClientProvider.java:86)
>>>>>>>>>> at
>>>>>>>>>> org.apache.airavata.cloud.openstack.OS4JClientProvider.getOSClient(OS4JClientProvider.java:49)
>>>>>>>>>> at
>>>>>>>>>> org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl.<init>(OpenstackIntfImpl.java:78)
>>>>>>>>>> at
>>>>>>>>>> org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:77)
>>>>>>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>>>>>> at
>>>>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>>>>>>>>> at
>>>>>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>>>>>>> at java.lang.reflect.Method.invoke(Method.java:498)
>>>>>>>>>> at
>>>>>>>>>> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>>>>>>>>>> at
>>>>>>>>>> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>>>>>>>>>> at
>>>>>>>>>> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>>>>>>>>>> at
>>>>>>>>>> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>>>>>>>>>> at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>>>>>>>>>> at
>>>>>>>>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
>>>>>>>>>> at
>>>>>>>>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
>>>>>>>>>> at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>>>>>>>>>> at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>>>>>>>>>> at
>>>>>>>>>> org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>>>>>>>>>> at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>>>>>>>>>> at
>>>>>>>>>> org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>>>>>>>>>> at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>>>>>>>>>> at
>>>>>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
>>>>>>>>>> at
>>>>>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
>>>>>>>>>> at
>>>>>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
>>>>>>>>>> at
>>>>>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
>>>>>>>>>> at
>>>>>>>>>> org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
>>>>>>>>>> at
>>>>>>>>>> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
>>>>>>>>>> at
>>>>>>>>>> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>>>>>>>>>> java.lang.NullPointerException
>>>>>>>>>> at
>>>>>>>>>> org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl.getKeyPair(OpenstackIntfImpl.java:215)
>>>>>>>>>> at
>>>>>>>>>> org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:92)
>>>>>>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>>>>>> at
>>>>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>>>>>>>>> at
>>>>>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>>>>>>> at java.lang.reflect.Method.invoke(Method.java:498)
>>>>>>>>>> at
>>>>>>>>>> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>>>>>>>>>> at
>>>>>>>>>> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>>>>>>>>>> at
>>>>>>>>>> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>>>>>>>>>> at
>>>>>>>>>> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>>>>>>>>>> at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>>>>>>>>>> at
>>>>>>>>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
>>>>>>>>>> at
>>>>>>>>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
>>>>>>>>>> at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>>>>>>>>>> at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>>>>>>>>>> at
>>>>>>>>>> org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>>>>>>>>>> at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>>>>>>>>>> at
>>>>>>>>>> org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>>>>>>>>>> at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>>>>>>>>>> at
>>>>>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
>>>>>>>>>> at
>>>>>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
>>>>>>>>>> at
>>>>>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
>>>>>>>>>> at
>>>>>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
>>>>>>>>>> at
>>>>>>>>>> org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
>>>>>>>>>> at
>>>>>>>>>> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
>>>>>>>>>> at
>>>>>>>>>> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>>>>>>>>>> [main] ERROR
>>>>>>>>>> org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - Failed to retrieve
>>>>>>>>>> keypair: testKey
>>>>>>>>>> java.lang.NullPointerException
>>>>>>>>>> at
>>>>>>>>>> org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl.createKeyPair(OpenstackIntfImpl.java:197)
>>>>>>>>>> at
>>>>>>>>>> org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:94)
>>>>>>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>>>>>> at
>>>>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>>>>>>>>> at
>>>>>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>>>>>>> at java.lang.reflect.Method.invoke(Method.java:498)
>>>>>>>>>> at
>>>>>>>>>> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>>>>>>>>>> at
>>>>>>>>>> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>>>>>>>>>> at
>>>>>>>>>> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>>>>>>>>>> at
>>>>>>>>>> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>>>>>>>>>> at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>>>>>>>>>> at
>>>>>>>>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
>>>>>>>>>> at
>>>>>>>>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
>>>>>>>>>> at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>>>>>>>>>> at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>>>>>>>>>> at
>>>>>>>>>> org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>>>>>>>>>> at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>>>>>>>>>> at
>>>>>>>>>> org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>>>>>>>>>> at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>>>>>>>>>> at
>>>>>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
>>>>>>>>>> at
>>>>>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
>>>>>>>>>> at
>>>>>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
>>>>>>>>>> at
>>>>>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
>>>>>>>>>> at
>>>>>>>>>> org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
>>>>>>>>>> at
>>>>>>>>>> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
>>>>>>>>>> at
>>>>>>>>>> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>>>>>>>>>> [main] ERROR
>>>>>>>>>> org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - Failed to create
>>>>>>>>>> keypair: testKey
>>>>>>>>>> java.lang.NullPointerException
>>>>>>>>>> at
>>>>>>>>>> org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:97)
>>>>>>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>>>>>> at
>>>>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>>>>>>>>> at
>>>>>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>>>>>>> at java.lang.reflect.Method.invoke(Method.java:498)
>>>>>>>>>> at
>>>>>>>>>> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>>>>>>>>>> at
>>>>>>>>>> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>>>>>>>>>> at
>>>>>>>>>> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>>>>>>>>>> at
>>>>>>>>>> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>>>>>>>>>> at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>>>>>>>>>> at
>>>>>>>>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
>>>>>>>>>> at
>>>>>>>>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
>>>>>>>>>> at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>>>>>>>>>> at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>>>>>>>>>> at
>>>>>>>>>> org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>>>>>>>>>> at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>>>>>>>>>> at
>>>>>>>>>> org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>>>>>>>>>> at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>>>>>>>>>> at
>>>>>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
>>>>>>>>>> at
>>>>>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
>>>>>>>>>> at
>>>>>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
>>>>>>>>>> at
>>>>>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
>>>>>>>>>> at
>>>>>>>>>> org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
>>>>>>>>>> at
>>>>>>>>>> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
>>>>>>>>>> at
>>>>>>>>>> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>>>>>>>>>> Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed:
>>>>>>>>>> 0.913 sec <<< FAILURE! - in org.apache.airavata.cloud.test.CloudIntfTest
>>>>>>>>>> jetstreamCreateDeleteServerTest(org.apache.airavata.cloud.test.CloudIntfTest)
>>>>>>>>>>  Time elapsed: 0.908 sec  <<< FAILURE!
>>>>>>>>>> java.lang.AssertionError: null
>>>>>>>>>> at org.junit.Assert.fail(Assert.java:86)
>>>>>>>>>> at org.junit.Assert.fail(Assert.java:95)
>>>>>>>>>> at
>>>>>>>>>> org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:128)
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> On Wed, Apr 20, 2016 at 3:36 PM, Suresh Marru <sm...@apache.org>
>>>>>>>>>> wrote:
>>>>>>>>>>
>>>>>>>>>>> Thats nice. Few suggestions:
>>>>>>>>>>>
>>>>>>>>>>> * Eclipse or IDEA are good to write code, but to build and run
>>>>>>>>>>> tests from maven, command line is the best option.
>>>>>>>>>>> * Please use the mailing lists as much as possible so rest of us
>>>>>>>>>>> can also contribute. If even you use hangouts, please take time to explain
>>>>>>>>>>> what the issue is so it engages every one.
>>>>>>>>>>>
>>>>>>>>>>> I am able to run the test cases and am able to program
>>>>>>>>>>> against OpenstackIntfImpl just fine. Can you elaborate on what is the
>>>>>>>>>>> authentication issue you are running into?
>>>>>>>>>>>
>>>>>>>>>>> Suresh
>>>>>>>>>>>
>>>>>>>>>>> On Apr 20, 2016, at 3:30 PM, Pankaj Saha <ps...@binghamton.edu>
>>>>>>>>>>> wrote:
>>>>>>>>>>>
>>>>>>>>>>> Hi Suresh,
>>>>>>>>>>>
>>>>>>>>>>> I just had a hangout session with Mangirish regarding the same.
>>>>>>>>>>> It looks like an authentication issue with openstack which he is aware of.
>>>>>>>>>>> He has explained me his code and I am going to retry fixing the problem.
>>>>>>>>>>>
>>>>>>>>>>> I did not use maven to build his project instead I have export
>>>>>>>>>>> his project as eclipse (mvn eclipse:eclipse) and trying to run the junit
>>>>>>>>>>> test.
>>>>>>>>>>>
>>>>>>>>>>> Will update you once I find something new.
>>>>>>>>>>>
>>>>>>>>>>> Thanks
>>>>>>>>>>> Pankaj
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> On Wed, Apr 20, 2016 at 3:21 PM, Suresh Marru <smarru@apache.org
>>>>>>>>>>> > wrote:
>>>>>>>>>>>
>>>>>>>>>>>> Hi Pankaj,
>>>>>>>>>>>>
>>>>>>>>>>>> Can you please be more clear? What is failing? Did you try to
>>>>>>>>>>>> build it using maven within the cloud provisioning directory itself? Did
>>>>>>>>>>>> you change the public key file in the test_data.properties?
>>>>>>>>>>>>
>>>>>>>>>>>> Suresh
>>>>>>>>>>>>
>>>>>>>>>>>> On Apr 20, 2016, at 2:56 PM, Pankaj Saha <ps...@binghamton.edu>
>>>>>>>>>>>> wrote:
>>>>>>>>>>>>
>>>>>>>>>>>> I am able to get Mangirish's code in the develop branch. After
>>>>>>>>>>>> making it an eclipse project, when I am trying to run it as JUnit test,
>>>>>>>>>>>> it's failing.
>>>>>>>>>>>> Need help to fix this, possibly some configuration changes in
>>>>>>>>>>>> the properties file or similar.
>>>>>>>>>>>> It will be great we can talk over a hangout session or at least
>>>>>>>>>>>> a chat session to make it work.
>>>>>>>>>>>>
>>>>>>>>>>>> On Wed, Apr 20, 2016 at 12:05 PM, Mangirish Wagle <
>>>>>>>>>>>> vaglomangirish@gmail.com> wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>> Hi Pankaj,
>>>>>>>>>>>>>
>>>>>>>>>>>>> You may find a sample test code for the module in this unit
>>>>>>>>>>>>> test file:-
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> https://github.com/apache/airavata/blob/develop/modules/cloud/cloud-provisioning/src/test/java/org/apache/airavata/cloud/test/CloudIntfTest.java
>>>>>>>>>>>>>
>>>>>>>>>>>>> Also, if you want to test run the code, you may please follow
>>>>>>>>>>>>> this quick README:-
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> https://github.com/apache/airavata/blob/develop/modules/cloud/cloud-provisioning/README
>>>>>>>>>>>>>
>>>>>>>>>>>>> Please let me know if you need some more info or code
>>>>>>>>>>>>> walkthrough. Sending you the jetstream openrc credentials separately.
>>>>>>>>>>>>>
>>>>>>>>>>>>> Thanks.
>>>>>>>>>>>>>
>>>>>>>>>>>>> Regards,
>>>>>>>>>>>>> Mangirish
>>>>>>>>>>>>>
>>>>>>>>>>>>> On Wed, Apr 20, 2016 at 11:42 AM, Suresh Marru <
>>>>>>>>>>>>> smarru@apache.org> wrote:
>>>>>>>>>>>>>
>>>>>>>>>>>>>> Hi Pankaj,
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Please switch to ‘develop’ branch and look for the cloud
>>>>>>>>>>>>>> provisioning module -
>>>>>>>>>>>>>> https://github.com/apache/airavata/tree/develop/modules/cloud/cloud-provisioning
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Suresh
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> On Apr 20, 2016, at 11:37 AM, Pankaj Saha <
>>>>>>>>>>>>>> psaha4@binghamton.edu> wrote:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Hello Mangirish,
>>>>>>>>>>>>>> I have latest Airavata mater branch installed in my local
>>>>>>>>>>>>>> system. Can you please give us some clue how to start creating the VMs
>>>>>>>>>>>>>> through you application. Please specify where we can find your
>>>>>>>>>>>>>> corresponding java code. Is it through PGA website?
>>>>>>>>>>>>>> Please share the required password to me in a separate email.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Thanks
>>>>>>>>>>>>>> Pankaj
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>> --
>>>>>>>>> Shameera Rathnayaka
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>
>>
>>
>
>

Re: Jetstream VM creation through Airavata

Posted by Suresh Marru <sm...@apache.org>.
How many instances do you need to test? I have about 1200 instances running for a stress test and I am exhausting quotes at various levels, hence these errors. 

If will be releasing all my VM’s wednesday afternoon. So tell me how many you need between now and then and I will release some. 

Suresh

> On Apr 29, 2016, at 9:05 PM, Pankaj Saha <ps...@binghamton.edu> wrote:
> 
> Hi Suresh,
> I could ssh to VMs but new VMs are not getting any floating public IP.
> 
>  
> Thanks
> Pankaj
> 
> On Fri, Apr 29, 2016 at 8:51 PM, Suresh Marru <smarru@apache.org <ma...@apache.org>> wrote:
> Pankaj,
> 
> Do you still have the issue? 
> 
> Suresh
> 
>> On Apr 28, 2016, at 5:26 PM, Pankaj Saha <psaha4@binghamton.edu <ma...@binghamton.edu>> wrote:
>> 
>> Details of my VM is as mentioned below:
>> 
>> Name: Mesos Agent
>> Floating IPs:149.165.157.247
>> size: m1.medium	
>> key: pankaj SSH key
>> 
>> 
>> On Thu, Apr 28, 2016 at 5:22 PM, Pankaj Saha <psaha4@binghamton.edu <ma...@binghamton.edu>> wrote:
>> Hi 
>> I need SSH to get the console access to install required software. I believe SSH server is not running by default in the ubuntu based servers and also I can not access its console through the openstack web UI.
>> Please suggest.
>> 
>> Thanks
>> Pankaj 
>> 
>> On Thu, Apr 28, 2016 at 5:00 PM, Pankaj Saha <psaha4@binghamton.edu <ma...@binghamton.edu>> wrote:
>> Hi Suresh,
>> Yes, it's accessible now. Thanks.
>> 
>> On Thu, Apr 28, 2016 at 4:39 PM, Suresh Marru <smarru@apache.org <ma...@apache.org>> wrote:
>> Pankaj,
>> 
>> Try now.
>> 
>> Suresh
>> 
>>> On Apr 28, 2016, at 1:05 PM, Suresh Marru <smarru@apache.org <ma...@apache.org>> wrote:
>>> 
>>> Hi Pankaj,
>>> 
>>> By default yes they will be accessible from outside. The firewall’s are controlled by the security policy and currently both ssh and http are accessible widely. There are issues with Open Stack Neutron services and I reported them. I will post when the network is back stable. 
>>> 
>>> Suresh
>>> 
>>>> On Apr 28, 2016, at 1:02 PM, Pankaj Saha <psaha4@binghamton.edu <ma...@binghamton.edu>> wrote:
>>>> 
>>>> Hello Devs,
>>>> I have created a VM in openstack through cloud-provisioning module. Which returned an VM with floating ip : 149.165.157.215. I was expecting that this VM will be accessible through ssh over public ip assigned to it. I need ssh access to these VMs for including mesos binaries into them so that these images can be used as mesos agents for Gourav's prject.
>>>> 
>>>> Please let me know if it is blocked by any firewall and whats the process to get access to them.
>>>> 
>>>> Thanks
>>>> Pankaj
>>>> 
>>>> On Fri, Apr 22, 2016 at 4:43 PM, Pankaj Saha <psaha4@binghamton.edu <ma...@binghamton.edu>> wrote:
>>>> Hi Suresh,
>>>> Yes, that was the problem. Now it's working.
>>>> here is the log:
>>>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - Keypair created successfully: testKey
>>>> [main] INFO org.apache.airavata.cloud.test.CloudIntfTest - Keypair created/ retrieved: 83:17:5b:2c:f3:31:06:af:99:c1:c8:8b:62:72:36:35
>>>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - Using network subnet-airavata with ID: ad2552d6-1a02-4d6c-9fa4-ad40d93e5423
>>>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - New server created with ID: 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>>>> [main] INFO org.apache.airavata.cloud.test.CloudIntfTest - Server Created: 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>>>> [main] INFO org.apache.airavata.cloud.test.CloudIntfTest - Waiting for instance to go ACTIVE...
>>>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - Server retrieved successfully for ID: 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>>>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - true:200:null:ActionResponse{success=true, code=200}
>>>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - Floating IP 149.165.156.142 assigned successfully to server with ID: 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>>>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - Server retrieved successfully for ID: 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>>>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - Server deleted successfully for ID: 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>>>> [main] INFO org.apache.airavata.cloud.test.CloudIntfTest - Server deleted: 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>>>> [main] INFO org.apache.airavata.cloud.test.CloudIntfTest - Waiting for instance to terminate...
>>>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - Keypair deleted successfully: testKey
>>>> [main] INFO org.apache.airavata.cloud.test.CloudIntfTest - Keypair deleted: testKey
>>>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - Server retrieved successfully for ID: 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>>>> 
>>>> 
>>>> Thanks
>>>> Pankaj
>>>> 
>>>> On Fri, Apr 22, 2016 at 4:15 PM, Suresh Marru <smarru@apache.org <ma...@apache.org>> wrote:
>>>> I now noticed that you have used OS_PROJECT_DOMAIN_NAME=tacc instead of OS_PROJECT_DOMAIN_NAME=scigap
>>>> 
>>>> Suresh
>>>> 
>>>>> On Apr 22, 2016, at 4:14 PM, Suresh Marru <smarru@apache.org <ma...@apache.org>> wrote:
>>>>> 
>>>>> Hi Pankaj, Mangirish,
>>>>> 
>>>>> Is this intermittent or do you consistently get authentication issues? I am attaching my openrc file:
>>>>> 
>>>>> OS_PROJECT_DOMAIN_NAME=scigap
>>>>> OS_USER_DOMAIN_NAME=tacc
>>>>> OS_PROJECT_NAME=scigap
>>>>> OS_TENANT_NAME=scigap
>>>>> OS_USERNAME=scigap
>>>>> OS_PASSWORD=XXXXXXXXXXXXX
>>>>> OS_AUTH_URL=https://jblb.jetstream-cloud.org:35357/v3 <https://jblb.jetstream-cloud.org:35357/v3>
>>>>> OS_IDENTITY_API_VERSION=3
>>>>> 
>>>>> # Network Properties
>>>>> OS_FLOATING_IP_POOL=public
>>>>> OS_SUBNET_NAME=airavata
>>>>> 
>>>>> To complicate the puzzle, I am consistently able to launch few hundred’s of instances within the past day without any issues. I just checked the code, I am using it out of the box and no local changes. 
>>>>> 
>>>>> Suresh
>>>>> 
>>>>> 
>>>>>> On Apr 22, 2016, at 3:18 PM, Pankaj Saha <psaha4@binghamton.edu <ma...@binghamton.edu>> wrote:
>>>>>> 
>>>>>> Hello Everyone,
>>>>>> 
>>>>>> I had a discussion with Mangirish today morning and we could figure out through debugging that java code getting authentication exception when trying to authenticate the user with openstack. 
>>>>>> NOVA client for openstack did work well and I have also tested with credentials to directly login into the portal.
>>>>>> I have replicated the same in another system in my same lab network and the test case still failing for the same status-401, authentication error. 
>>>>>> 
>>>>>> I have followed these below steps:
>>>>>> generated rsa key
>>>>>> downloaded airavata from git, switched it to "develop" branch
>>>>>> changed the required property values for openstack.
>>>>>> run : mvn clean install from inside the cloud/cloud-provisioning module.
>>>>>> It's definitely not the firewall issue as its failing in the authentication stage. I am attaching my property file for reference, please let me know if you find anything wrong in this.
>>>>>> test_data.properties
>>>>>> 
>>>>>> # Common properties
>>>>>> publicKeyFile=/home/psaha4/.ssh/id_rsa.pub
>>>>>> # Jetstream properties
>>>>>> jetstream_imageId=448636b0-450a-4b49-9bfe-b3135fc443e8
>>>>>> jetstream_flavorId=3
>>>>>> OS_PROJECT_DOMAIN_NAME=tacc
>>>>>> OS_USER_DOMAIN_NAME=tacc
>>>>>> OS_PROJECT_NAME=scigap
>>>>>> OS_TENANT_NAME=scigap
>>>>>> OS_USERNAME=scigap
>>>>>> OS_PASSWORD=<not exposing the password here>
>>>>>> OS_AUTH_URL=https://jblb.jetstream-cloud.org:35357/v3 <https://jblb.jetstream-cloud.org:35357/v3>
>>>>>> OS_IDENTITY_API_VERSION=3
>>>>>> # Network Properties
>>>>>> OS_FLOATING_IP_POOL=public
>>>>>> OS_SUBNET_NAME=airavata
>>>>>> 
>>>>>> Can someone send me jetstream_openrc.properties and test_data.properties file from a working environment in  a separate email so that I can place them and test from my system once.
>>>>>> 
>>>>>> Thanks
>>>>>> Pankaj
>>>>>> 
>>>>>> 
>>>>>> On Thu, Apr 21, 2016 at 11:43 AM, Pankaj Saha <psaha4@binghamton.edu <ma...@binghamton.edu>> wrote:
>>>>>> Hi Shameera,
>>>>>> I have received the password from Mangirish and I am using the same details as he has provided.
>>>>>> Regarding the jetstream keypair, my understanding is, during the test run it fetches the public key from the properties file and send it to the jetstream servers.  Please let me know how I need to configure it separately.
>>>>>> 
>>>>>> Thanks
>>>>>> Pankaj
>>>>>> 
>>>>>> On Wed, Apr 20, 2016 at 8:48 PM, Shameera Rathnayaka <shameerainfo@gmail.com <ma...@gmail.com>> wrote:
>>>>>> Hi Pankaj,
>>>>>> 
>>>>>> To work with your ssh keys you need to add them to jetstream keypair. Have you done that part? 
>>>>>> 
>>>>>> also you are not providing correct the OS_PASSWORD value accordding to above deatils.
>>>>>> 
>>>>>> Shameera.
>>>>>> 
>>>>>> 
>>>>>> On Wed, Apr 20, 2016 at 3:42 PM Pankaj Saha <psaha4@binghamton.edu <ma...@binghamton.edu>> wrote:
>>>>>> I have just use maven to build the same project. here is thedetails
>>>>>> # Common properties
>>>>>> publicKeyFile=/home/psaha4/.ssh/id_rsa.pub
>>>>>> 
>>>>>> # Jetstream properties
>>>>>> jetstream_imageId=448636b0-450a-4b49-9bfe-b3135fc443e8
>>>>>> jetstream_flavorId=3
>>>>>> 
>>>>>> OS_PROJECT_DOMAIN_NAME=tacc
>>>>>> OS_USER_DOMAIN_NAME=tacc
>>>>>> OS_PROJECT_NAME=scigap
>>>>>> OS_TENANT_NAME=scigap
>>>>>> OS_USERNAME=scigap
>>>>>> OS_PASSWORD=<not exposing here>
>>>>>> OS_AUTH_URL=https://jblb.jetstream-cloud.org:35357/v3 <https://jblb.jetstream-cloud.org:35357/v3>
>>>>>> OS_IDENTITY_API_VERSION=3
>>>>>> 
>>>>>> # Network Properties
>>>>>> OS_FLOATING_IP_POOL=public
>>>>>> OS_SUBNET_NAME=airavata
>>>>>> 
>>>>>> The test case error that I am getting for the Test case is al below:
>>>>>> -------------------------------------------------------
>>>>>>  T E S T S
>>>>>> -------------------------------------------------------
>>>>>> Running org.apache.airavata.cloud.test.CloudIntfTest
>>>>>> AuthenticationException{message=Unauthorized, status=401}
>>>>>> 	at org.openstack4j.core.transport.HttpExceptionHandler.mapException(HttpExceptionHandler.java:36)
>>>>>> 	at org.openstack4j.core.transport.HttpExceptionHandler.mapException(HttpExceptionHandler.java:23)
>>>>>> 	at org.openstack4j.openstack.internal.OSAuthenticator.authenticateV3(OSAuthenticator.java:161)
>>>>>> 	at org.openstack4j.openstack.internal.OSAuthenticator.invoke(OSAuthenticator.java:78)
>>>>>> 	at org.openstack4j.openstack.client.OSClientBuilder$ClientV3.authenticate(OSClientBuilder.java:163)
>>>>>> 	at org.openstack4j.openstack.client.OSClientBuilder$ClientV3.authenticate(OSClientBuilder.java:127)
>>>>>> 	at org.apache.airavata.cloud.openstack.OS4JClientProvider.getOSClientV3(OS4JClientProvider.java:86)
>>>>>> 	at org.apache.airavata.cloud.openstack.OS4JClientProvider.getOSClient(OS4JClientProvider.java:49)
>>>>>> 	at org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl.<init>(OpenstackIntfImpl.java:78)
>>>>>> 	at org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:77)
>>>>>> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>>>>> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>>> 	at java.lang.reflect.Method.invoke(Method.java:498)
>>>>>> 	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>>>>>> 	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>>>>>> 	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>>>>>> 	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>>>>>> 	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>>>>>> 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
>>>>>> 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
>>>>>> 	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>>>>>> 	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>>>>>> 	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>>>>>> 	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>>>>>> 	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>>>>>> 	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>>>>>> 	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
>>>>>> 	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
>>>>>> 	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
>>>>>> 	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
>>>>>> 	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
>>>>>> 	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
>>>>>> 	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>>>>>> java.lang.NullPointerException
>>>>>> 	at org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl.getKeyPair(OpenstackIntfImpl.java:215)
>>>>>> 	at org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:92)
>>>>>> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>>>>> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>>> 	at java.lang.reflect.Method.invoke(Method.java:498)
>>>>>> 	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>>>>>> 	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>>>>>> 	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>>>>>> 	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>>>>>> 	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>>>>>> 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
>>>>>> 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
>>>>>> 	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>>>>>> 	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>>>>>> 	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>>>>>> 	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>>>>>> 	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>>>>>> 	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>>>>>> 	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
>>>>>> 	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
>>>>>> 	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
>>>>>> 	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
>>>>>> 	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
>>>>>> 	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
>>>>>> 	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>>>>>> [main] ERROR org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - Failed to retrieve keypair: testKey
>>>>>> java.lang.NullPointerException
>>>>>> 	at org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl.createKeyPair(OpenstackIntfImpl.java:197)
>>>>>> 	at org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:94)
>>>>>> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>>>>> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>>> 	at java.lang.reflect.Method.invoke(Method.java:498)
>>>>>> 	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>>>>>> 	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>>>>>> 	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>>>>>> 	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>>>>>> 	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>>>>>> 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
>>>>>> 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
>>>>>> 	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>>>>>> 	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>>>>>> 	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>>>>>> 	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>>>>>> 	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>>>>>> 	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>>>>>> 	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
>>>>>> 	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
>>>>>> 	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
>>>>>> 	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
>>>>>> 	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
>>>>>> 	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
>>>>>> 	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>>>>>> [main] ERROR org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - Failed to create keypair: testKey
>>>>>> java.lang.NullPointerException
>>>>>> 	at org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:97)
>>>>>> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>>>>> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>>> 	at java.lang.reflect.Method.invoke(Method.java:498)
>>>>>> 	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>>>>>> 	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>>>>>> 	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>>>>>> 	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>>>>>> 	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>>>>>> 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
>>>>>> 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
>>>>>> 	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>>>>>> 	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>>>>>> 	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>>>>>> 	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>>>>>> 	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>>>>>> 	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>>>>>> 	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
>>>>>> 	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
>>>>>> 	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
>>>>>> 	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
>>>>>> 	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
>>>>>> 	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
>>>>>> 	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>>>>>> Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.913 sec <<< FAILURE! - in org.apache.airavata.cloud.test.CloudIntfTest
>>>>>> jetstreamCreateDeleteServerTest(org.apache.airavata.cloud.test.CloudIntfTest)  Time elapsed: 0.908 sec  <<< FAILURE!
>>>>>> java.lang.AssertionError: null
>>>>>> 	at org.junit.Assert.fail(Assert.java:86)
>>>>>> 	at org.junit.Assert.fail(Assert.java:95)
>>>>>> 	at org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:128)
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> On Wed, Apr 20, 2016 at 3:36 PM, Suresh Marru <smarru@apache.org <ma...@apache.org>> wrote:
>>>>>> Thats nice. Few suggestions:
>>>>>> 
>>>>>> * Eclipse or IDEA are good to write code, but to build and run tests from maven, command line is the best option. 
>>>>>> * Please use the mailing lists as much as possible so rest of us can also contribute. If even you use hangouts, please take time to explain what the issue is so it engages every one. 
>>>>>> 
>>>>>> I am able to run the test cases and am able to program against OpenstackIntfImpl just fine. Can you elaborate on what is the authentication issue you are running into? 
>>>>>> 
>>>>>> Suresh
>>>>>> 
>>>>>>> On Apr 20, 2016, at 3:30 PM, Pankaj Saha <psaha4@binghamton.edu <ma...@binghamton.edu>> wrote:
>>>>>>> 
>>>>>>> Hi Suresh, 
>>>>>>> 
>>>>>>> I just had a hangout session with Mangirish regarding the same. It looks like an authentication issue with openstack which he is aware of. He has explained me his code and I am going to retry fixing the problem.
>>>>>>> 
>>>>>>> I did not use maven to build his project instead I have export his project as eclipse (mvn eclipse:eclipse) and trying to run the junit test.
>>>>>>> 
>>>>>>> Will update you once I find something new.
>>>>>>> 
>>>>>>> Thanks
>>>>>>> Pankaj
>>>>>>> 
>>>>>>> 
>>>>>>> On Wed, Apr 20, 2016 at 3:21 PM, Suresh Marru <smarru@apache.org <ma...@apache.org>> wrote:
>>>>>>> Hi Pankaj,
>>>>>>> 
>>>>>>> Can you please be more clear? What is failing? Did you try to build it using maven within the cloud provisioning directory itself? Did you change the public key file in the test_data.properties? 
>>>>>>> 
>>>>>>> Suresh
>>>>>>> 
>>>>>>>> On Apr 20, 2016, at 2:56 PM, Pankaj Saha <psaha4@binghamton.edu <ma...@binghamton.edu>> wrote:
>>>>>>>> 
>>>>>>>> I am able to get Mangirish's code in the develop branch. After making it an eclipse project, when I am trying to run it as JUnit test, it's failing.
>>>>>>>> Need help to fix this, possibly some configuration changes in the properties file or similar.
>>>>>>>> It will be great we can talk over a hangout session or at least a chat session to make it work.
>>>>>>>> 
>>>>>>>> On Wed, Apr 20, 2016 at 12:05 PM, Mangirish Wagle <vaglomangirish@gmail.com <ma...@gmail.com>> wrote:
>>>>>>>> Hi Pankaj,
>>>>>>>> 
>>>>>>>> You may find a sample test code for the module in this unit test file:-
>>>>>>>> 
>>>>>>>> https://github.com/apache/airavata/blob/develop/modules/cloud/cloud-provisioning/src/test/java/org/apache/airavata/cloud/test/CloudIntfTest.java <https://github.com/apache/airavata/blob/develop/modules/cloud/cloud-provisioning/src/test/java/org/apache/airavata/cloud/test/CloudIntfTest.java>
>>>>>>>> 
>>>>>>>> Also, if you want to test run the code, you may please follow this quick README:-
>>>>>>>> 
>>>>>>>> https://github.com/apache/airavata/blob/develop/modules/cloud/cloud-provisioning/README <https://github.com/apache/airavata/blob/develop/modules/cloud/cloud-provisioning/README>
>>>>>>>> 
>>>>>>>> Please let me know if you need some more info or code walkthrough. Sending you the jetstream openrc credentials separately. 
>>>>>>>> 
>>>>>>>> Thanks.
>>>>>>>> 
>>>>>>>> Regards,
>>>>>>>> Mangirish
>>>>>>>> 
>>>>>>>> On Wed, Apr 20, 2016 at 11:42 AM, Suresh Marru <smarru@apache.org <ma...@apache.org>> wrote:
>>>>>>>> Hi Pankaj,
>>>>>>>> 
>>>>>>>> Please switch to ‘develop’ branch and look for the cloud provisioning module - https://github.com/apache/airavata/tree/develop/modules/cloud/cloud-provisioning <https://github.com/apache/airavata/tree/develop/modules/cloud/cloud-provisioning>
>>>>>>>> 
>>>>>>>> Suresh
>>>>>>>> 
>>>>>>>>> On Apr 20, 2016, at 11:37 AM, Pankaj Saha <psaha4@binghamton.edu <ma...@binghamton.edu>> wrote:
>>>>>>>>> 
>>>>>>>>> Hello Mangirish,
>>>>>>>>> I have latest Airavata mater branch installed in my local system. Can you please give us some clue how to start creating the VMs through you application. Please specify where we can find your corresponding java code. Is it through PGA website?
>>>>>>>>> Please share the required password to me in a separate email.
>>>>>>>>> 
>>>>>>>>> Thanks
>>>>>>>>> Pankaj
>>>>>>>> 
>>>>>>>> 
>>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> -- 
>>>>>> Shameera Rathnayaka
>>>>>> 
>>>>>> 
>>>>> 
>>>> 
>>>> 
>>>> 
>>> 
>> 
>> 
>> 
>> 
> 
> 


Re: Jetstream VM creation through Airavata

Posted by Pankaj Saha <ps...@binghamton.edu>.
in fact, all the instances that we are creating now are getting errored out
in openstack.

On Fri, Apr 29, 2016 at 9:10 PM, Pankaj Saha <ps...@binghamton.edu> wrote:

> i have just created two ubuntu VMs, Mesos Agent ubuntu
> <https://jblb.jetstream-cloud.org/dashboard/project/instances/ea8e758d-c924-4e38-9ee7-432429862c07/>
>  and Mesos Master ubuntu
> <https://jblb.jetstream-cloud.org/dashboard/project/instances/ea8e758d-c924-4e38-9ee7-432429862c07/> both
> does not have any floating IP in openstack.
>
> On Fri, Apr 29, 2016 at 9:08 PM, Suresh Marru <sm...@apache.org> wrote:
>
>> Can u try again now?
>>
>>
>> On Apr 29, 2016, at 9:05 PM, Pankaj Saha <ps...@binghamton.edu> wrote:
>>
>> Hi Suresh,
>> I could ssh to VMs but new VMs are not getting any floating public IP.
>>
>>
>> Thanks
>> Pankaj
>>
>> On Fri, Apr 29, 2016 at 8:51 PM, Suresh Marru <sm...@apache.org> wrote:
>>
>>> Pankaj,
>>>
>>> Do you still have the issue?
>>>
>>> Suresh
>>>
>>> On Apr 28, 2016, at 5:26 PM, Pankaj Saha <ps...@binghamton.edu> wrote:
>>>
>>> Details of my VM is as mentioned below:
>>>
>>> Name: Mesos Agent
>>> Floating IPs:149.165.157.247
>>> size: m1.medium
>>> key: pankaj SSH key
>>>
>>>
>>> On Thu, Apr 28, 2016 at 5:22 PM, Pankaj Saha <ps...@binghamton.edu>
>>> wrote:
>>>
>>>> Hi
>>>> I need SSH to get the console access to install required software. I
>>>> believe SSH server is not running by default in the ubuntu based servers
>>>> and also I can not access its console through the openstack web UI.
>>>> Please suggest.
>>>>
>>>> Thanks
>>>> Pankaj
>>>>
>>>> On Thu, Apr 28, 2016 at 5:00 PM, Pankaj Saha <ps...@binghamton.edu>
>>>> wrote:
>>>>
>>>>> Hi Suresh,
>>>>> Yes, it's accessible now. Thanks.
>>>>>
>>>>> On Thu, Apr 28, 2016 at 4:39 PM, Suresh Marru <sm...@apache.org>
>>>>> wrote:
>>>>>
>>>>>> Pankaj,
>>>>>>
>>>>>> Try now.
>>>>>>
>>>>>> Suresh
>>>>>>
>>>>>> On Apr 28, 2016, at 1:05 PM, Suresh Marru <sm...@apache.org> wrote:
>>>>>>
>>>>>> Hi Pankaj,
>>>>>>
>>>>>> By default yes they will be accessible from outside. The firewall’s
>>>>>> are controlled by the security policy and currently both ssh and http are
>>>>>> accessible widely. There are issues with Open Stack Neutron services and I
>>>>>> reported them. I will post when the network is back stable.
>>>>>>
>>>>>> Suresh
>>>>>>
>>>>>> On Apr 28, 2016, at 1:02 PM, Pankaj Saha <ps...@binghamton.edu>
>>>>>> wrote:
>>>>>>
>>>>>> Hello Devs,
>>>>>> I have created a VM in openstack through cloud-provisioning module.
>>>>>> Which returned an VM with floating ip : 149.165.157.215. I was
>>>>>> expecting that this VM will be accessible through ssh over public ip
>>>>>> assigned to it. I need ssh access to these VMs for including mesos binaries
>>>>>> into them so that these images can be used as mesos agents for
>>>>>> Gourav's prject.
>>>>>>
>>>>>> Please let me know if it is blocked by any firewall and whats the
>>>>>> process to get access to them.
>>>>>>
>>>>>> Thanks
>>>>>> Pankaj
>>>>>>
>>>>>> On Fri, Apr 22, 2016 at 4:43 PM, Pankaj Saha <ps...@binghamton.edu>
>>>>>> wrote:
>>>>>>
>>>>>>> Hi Suresh,
>>>>>>> Yes, that was the problem. Now it's working.
>>>>>>> here is the log:
>>>>>>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl -
>>>>>>> Keypair created successfully: testKey
>>>>>>> [main] INFO org.apache.airavata.cloud.test.CloudIntfTest - Keypair
>>>>>>> created/ retrieved: 83:17:5b:2c:f3:31:06:af:99:c1:c8:8b:62:72:36:35
>>>>>>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl -
>>>>>>> Using network subnet-airavata with ID: ad2552d6-1a02-4d6c-9fa4-ad40d93e5423
>>>>>>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl -
>>>>>>> New server created with ID: 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>>>>>>> [main] INFO org.apache.airavata.cloud.test.CloudIntfTest - Server
>>>>>>> Created: 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>>>>>>> [main] INFO org.apache.airavata.cloud.test.CloudIntfTest - Waiting
>>>>>>> for instance to go ACTIVE...
>>>>>>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl -
>>>>>>> Server retrieved successfully for ID: 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>>>>>>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl -
>>>>>>> true:200:null:ActionResponse{success=true, code=200}
>>>>>>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl -
>>>>>>> Floating IP 149.165.156.142 assigned successfully to server with ID:
>>>>>>> 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>>>>>>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl -
>>>>>>> Server retrieved successfully for ID: 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>>>>>>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl -
>>>>>>> Server deleted successfully for ID: 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>>>>>>> [main] INFO org.apache.airavata.cloud.test.CloudIntfTest - Server
>>>>>>> deleted: 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>>>>>>> [main] INFO org.apache.airavata.cloud.test.CloudIntfTest - Waiting
>>>>>>> for instance to terminate...
>>>>>>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl -
>>>>>>> Keypair deleted successfully: testKey
>>>>>>> [main] INFO org.apache.airavata.cloud.test.CloudIntfTest - Keypair
>>>>>>> deleted: testKey
>>>>>>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl -
>>>>>>> Server retrieved successfully for ID: 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>>>>>>>
>>>>>>>
>>>>>>> Thanks
>>>>>>> Pankaj
>>>>>>>
>>>>>>> On Fri, Apr 22, 2016 at 4:15 PM, Suresh Marru <sm...@apache.org>
>>>>>>> wrote:
>>>>>>>
>>>>>>>> I now noticed that you have used OS_PROJECT_DOMAIN_NAME=tacc
>>>>>>>> instead of OS_PROJECT_DOMAIN_NAME=scigap
>>>>>>>>
>>>>>>>> Suresh
>>>>>>>>
>>>>>>>> On Apr 22, 2016, at 4:14 PM, Suresh Marru <sm...@apache.org>
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>> Hi Pankaj, Mangirish,
>>>>>>>>
>>>>>>>> Is this intermittent or do you consistently get authentication
>>>>>>>> issues? I am attaching my openrc file:
>>>>>>>>
>>>>>>>> OS_PROJECT_DOMAIN_NAME=scigap
>>>>>>>> OS_USER_DOMAIN_NAME=tacc
>>>>>>>> OS_PROJECT_NAME=scigap
>>>>>>>> OS_TENANT_NAME=scigap
>>>>>>>> OS_USERNAME=scigap
>>>>>>>> OS_PASSWORD=XXXXXXXXXXXXX
>>>>>>>> OS_AUTH_URL=https://jblb.jetstream-cloud.org:35357/v3
>>>>>>>> OS_IDENTITY_API_VERSION=3
>>>>>>>>
>>>>>>>> # Network Properties
>>>>>>>> OS_FLOATING_IP_POOL=public
>>>>>>>> OS_SUBNET_NAME=airavata
>>>>>>>>
>>>>>>>> To complicate the puzzle, I am consistently able to launch few
>>>>>>>> hundred’s of instances within the past day without any issues. I just
>>>>>>>> checked the code, I am using it out of the box and no local changes.
>>>>>>>>
>>>>>>>> Suresh
>>>>>>>>
>>>>>>>>
>>>>>>>> On Apr 22, 2016, at 3:18 PM, Pankaj Saha <ps...@binghamton.edu>
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>> Hello Everyone,
>>>>>>>>
>>>>>>>> I had a discussion with Mangirish today morning and we could figure
>>>>>>>> out through debugging that java code getting authentication exception when
>>>>>>>> trying to authenticate the user with openstack.
>>>>>>>> NOVA client for openstack did work well and I have also tested with
>>>>>>>> credentials to directly login into the portal.
>>>>>>>> I have replicated the same in another system in my same lab network
>>>>>>>> and the test case still failing for the same status-401, authentication
>>>>>>>> error.
>>>>>>>>
>>>>>>>> I have followed these below steps:
>>>>>>>>
>>>>>>>>    1. generated rsa key
>>>>>>>>    2. downloaded airavata from git, switched it to "develop" branch
>>>>>>>>    3. changed the required property values for openstack.
>>>>>>>>    4. run : mvn clean install from inside the
>>>>>>>>    cloud/cloud-provisioning module.
>>>>>>>>
>>>>>>>> It's definitely not the firewall issue as its failing in the
>>>>>>>> authentication stage. I am attaching my property file for reference, please
>>>>>>>> let me know if you find anything wrong in this.
>>>>>>>> *test_data.properties*
>>>>>>>>
>>>>>>>> # Common properties
>>>>>>>>> publicKeyFile=/home/psaha4/.ssh/id_rsa.pub
>>>>>>>>> # Jetstream properties
>>>>>>>>> jetstream_imageId=448636b0-450a-4b49-9bfe-b3135fc443e8
>>>>>>>>> jetstream_flavorId=3
>>>>>>>>> OS_PROJECT_DOMAIN_NAME=tacc
>>>>>>>>> OS_USER_DOMAIN_NAME=tacc
>>>>>>>>> OS_PROJECT_NAME=scigap
>>>>>>>>> OS_TENANT_NAME=scigap
>>>>>>>>> OS_USERNAME=scigap
>>>>>>>>> OS_PASSWORD=<not exposing the password here>
>>>>>>>>> OS_AUTH_URL=https://jblb.jetstream-cloud.org:35357/v3
>>>>>>>>> OS_IDENTITY_API_VERSION=3
>>>>>>>>> # Network Properties
>>>>>>>>> OS_FLOATING_IP_POOL=public
>>>>>>>>> OS_SUBNET_NAME=airavata
>>>>>>>>
>>>>>>>>
>>>>>>>> Can someone send me jetstream_openrc.properties and
>>>>>>>> test_data.properties file from a working environment in  a separate
>>>>>>>> email so that I can place them and test from my system once.
>>>>>>>>
>>>>>>>> Thanks
>>>>>>>> Pankaj
>>>>>>>>
>>>>>>>>
>>>>>>>> On Thu, Apr 21, 2016 at 11:43 AM, Pankaj Saha <
>>>>>>>> psaha4@binghamton.edu> wrote:
>>>>>>>>
>>>>>>>>> Hi Shameera,
>>>>>>>>> I have received the password from Mangirish and I am using the
>>>>>>>>> same details as he has provided.
>>>>>>>>> Regarding the jetstream keypair, my understanding is, during the
>>>>>>>>> test run it fetches the public key from the properties file and send it to
>>>>>>>>> the jetstream servers.  Please let me know how I need to configure it
>>>>>>>>> separately.
>>>>>>>>>
>>>>>>>>> Thanks
>>>>>>>>> Pankaj
>>>>>>>>>
>>>>>>>>> On Wed, Apr 20, 2016 at 8:48 PM, Shameera Rathnayaka <
>>>>>>>>> shameerainfo@gmail.com> wrote:
>>>>>>>>>
>>>>>>>>>> Hi Pankaj,
>>>>>>>>>>
>>>>>>>>>> To work with your ssh keys you need to add them to jetstream
>>>>>>>>>> keypair. Have you done that part?
>>>>>>>>>>
>>>>>>>>>> also you are not providing correct the OS_PASSWORD value
>>>>>>>>>> accordding to above deatils.
>>>>>>>>>>
>>>>>>>>>> Shameera.
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> On Wed, Apr 20, 2016 at 3:42 PM Pankaj Saha <
>>>>>>>>>> psaha4@binghamton.edu> wrote:
>>>>>>>>>>
>>>>>>>>>>> I have just use maven to build the same project. here is
>>>>>>>>>>> thedetails
>>>>>>>>>>> # Common properties
>>>>>>>>>>> publicKeyFile=/home/psaha4/.ssh/id_rsa.pub
>>>>>>>>>>>
>>>>>>>>>>> # Jetstream properties
>>>>>>>>>>> jetstream_imageId=448636b0-450a-4b49-9bfe-b3135fc443e8
>>>>>>>>>>> jetstream_flavorId=3
>>>>>>>>>>>
>>>>>>>>>>> OS_PROJECT_DOMAIN_NAME=tacc
>>>>>>>>>>> OS_USER_DOMAIN_NAME=tacc
>>>>>>>>>>> OS_PROJECT_NAME=scigap
>>>>>>>>>>> OS_TENANT_NAME=scigap
>>>>>>>>>>> OS_USERNAME=scigap
>>>>>>>>>>> OS_PASSWORD=<not exposing here>
>>>>>>>>>>> OS_AUTH_URL=https://jblb.jetstream-cloud.org:35357/v3
>>>>>>>>>>> OS_IDENTITY_API_VERSION=3
>>>>>>>>>>>
>>>>>>>>>>> # Network Properties
>>>>>>>>>>> OS_FLOATING_IP_POOL=public
>>>>>>>>>>> OS_SUBNET_NAME=airavata
>>>>>>>>>>>
>>>>>>>>>>> The test case error that I am getting for the Test case is al
>>>>>>>>>>> below:
>>>>>>>>>>> -------------------------------------------------------
>>>>>>>>>>>  T E S T S
>>>>>>>>>>> -------------------------------------------------------
>>>>>>>>>>> Running org.apache.airavata.cloud.test.CloudIntfTest
>>>>>>>>>>> AuthenticationException{message=Unauthorized, status=401}
>>>>>>>>>>> at
>>>>>>>>>>> org.openstack4j.core.transport.HttpExceptionHandler.mapException(HttpExceptionHandler.java:36)
>>>>>>>>>>> at
>>>>>>>>>>> org.openstack4j.core.transport.HttpExceptionHandler.mapException(HttpExceptionHandler.java:23)
>>>>>>>>>>> at
>>>>>>>>>>> org.openstack4j.openstack.internal.OSAuthenticator.authenticateV3(OSAuthenticator.java:161)
>>>>>>>>>>> at
>>>>>>>>>>> org.openstack4j.openstack.internal.OSAuthenticator.invoke(OSAuthenticator.java:78)
>>>>>>>>>>> at
>>>>>>>>>>> org.openstack4j.openstack.client.OSClientBuilder$ClientV3.authenticate(OSClientBuilder.java:163)
>>>>>>>>>>> at
>>>>>>>>>>> org.openstack4j.openstack.client.OSClientBuilder$ClientV3.authenticate(OSClientBuilder.java:127)
>>>>>>>>>>> at
>>>>>>>>>>> org.apache.airavata.cloud.openstack.OS4JClientProvider.getOSClientV3(OS4JClientProvider.java:86)
>>>>>>>>>>> at
>>>>>>>>>>> org.apache.airavata.cloud.openstack.OS4JClientProvider.getOSClient(OS4JClientProvider.java:49)
>>>>>>>>>>> at
>>>>>>>>>>> org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl.<init>(OpenstackIntfImpl.java:78)
>>>>>>>>>>> at
>>>>>>>>>>> org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:77)
>>>>>>>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>>>>>>> at
>>>>>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>>>>>>>>>> at
>>>>>>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>>>>>>>> at java.lang.reflect.Method.invoke(Method.java:498)
>>>>>>>>>>> at
>>>>>>>>>>> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>>>>>>>>>>> at
>>>>>>>>>>> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>>>>>>>>>>> at
>>>>>>>>>>> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>>>>>>>>>>> at
>>>>>>>>>>> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>>>>>>>>>>> at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>>>>>>>>>>> at
>>>>>>>>>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
>>>>>>>>>>> at
>>>>>>>>>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
>>>>>>>>>>> at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>>>>>>>>>>> at
>>>>>>>>>>> org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>>>>>>>>>>> at
>>>>>>>>>>> org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>>>>>>>>>>> at
>>>>>>>>>>> org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>>>>>>>>>>> at
>>>>>>>>>>> org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>>>>>>>>>>> at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>>>>>>>>>>> at
>>>>>>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
>>>>>>>>>>> at
>>>>>>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
>>>>>>>>>>> at
>>>>>>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
>>>>>>>>>>> at
>>>>>>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
>>>>>>>>>>> at
>>>>>>>>>>> org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
>>>>>>>>>>> at
>>>>>>>>>>> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
>>>>>>>>>>> at
>>>>>>>>>>> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>>>>>>>>>>> java.lang.NullPointerException
>>>>>>>>>>> at
>>>>>>>>>>> org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl.getKeyPair(OpenstackIntfImpl.java:215)
>>>>>>>>>>> at
>>>>>>>>>>> org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:92)
>>>>>>>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>>>>>>> at
>>>>>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>>>>>>>>>> at
>>>>>>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>>>>>>>> at java.lang.reflect.Method.invoke(Method.java:498)
>>>>>>>>>>> at
>>>>>>>>>>> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>>>>>>>>>>> at
>>>>>>>>>>> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>>>>>>>>>>> at
>>>>>>>>>>> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>>>>>>>>>>> at
>>>>>>>>>>> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>>>>>>>>>>> at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>>>>>>>>>>> at
>>>>>>>>>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
>>>>>>>>>>> at
>>>>>>>>>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
>>>>>>>>>>> at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>>>>>>>>>>> at
>>>>>>>>>>> org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>>>>>>>>>>> at
>>>>>>>>>>> org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>>>>>>>>>>> at
>>>>>>>>>>> org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>>>>>>>>>>> at
>>>>>>>>>>> org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>>>>>>>>>>> at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>>>>>>>>>>> at
>>>>>>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
>>>>>>>>>>> at
>>>>>>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
>>>>>>>>>>> at
>>>>>>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
>>>>>>>>>>> at
>>>>>>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
>>>>>>>>>>> at
>>>>>>>>>>> org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
>>>>>>>>>>> at
>>>>>>>>>>> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
>>>>>>>>>>> at
>>>>>>>>>>> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>>>>>>>>>>> [main] ERROR
>>>>>>>>>>> org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - Failed to retrieve
>>>>>>>>>>> keypair: testKey
>>>>>>>>>>> java.lang.NullPointerException
>>>>>>>>>>> at
>>>>>>>>>>> org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl.createKeyPair(OpenstackIntfImpl.java:197)
>>>>>>>>>>> at
>>>>>>>>>>> org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:94)
>>>>>>>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>>>>>>> at
>>>>>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>>>>>>>>>> at
>>>>>>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>>>>>>>> at java.lang.reflect.Method.invoke(Method.java:498)
>>>>>>>>>>> at
>>>>>>>>>>> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>>>>>>>>>>> at
>>>>>>>>>>> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>>>>>>>>>>> at
>>>>>>>>>>> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>>>>>>>>>>> at
>>>>>>>>>>> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>>>>>>>>>>> at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>>>>>>>>>>> at
>>>>>>>>>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
>>>>>>>>>>> at
>>>>>>>>>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
>>>>>>>>>>> at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>>>>>>>>>>> at
>>>>>>>>>>> org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>>>>>>>>>>> at
>>>>>>>>>>> org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>>>>>>>>>>> at
>>>>>>>>>>> org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>>>>>>>>>>> at
>>>>>>>>>>> org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>>>>>>>>>>> at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>>>>>>>>>>> at
>>>>>>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
>>>>>>>>>>> at
>>>>>>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
>>>>>>>>>>> at
>>>>>>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
>>>>>>>>>>> at
>>>>>>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
>>>>>>>>>>> at
>>>>>>>>>>> org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
>>>>>>>>>>> at
>>>>>>>>>>> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
>>>>>>>>>>> at
>>>>>>>>>>> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>>>>>>>>>>> [main] ERROR
>>>>>>>>>>> org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - Failed to create
>>>>>>>>>>> keypair: testKey
>>>>>>>>>>> java.lang.NullPointerException
>>>>>>>>>>> at
>>>>>>>>>>> org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:97)
>>>>>>>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>>>>>>> at
>>>>>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>>>>>>>>>> at
>>>>>>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>>>>>>>> at java.lang.reflect.Method.invoke(Method.java:498)
>>>>>>>>>>> at
>>>>>>>>>>> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>>>>>>>>>>> at
>>>>>>>>>>> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>>>>>>>>>>> at
>>>>>>>>>>> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>>>>>>>>>>> at
>>>>>>>>>>> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>>>>>>>>>>> at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>>>>>>>>>>> at
>>>>>>>>>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
>>>>>>>>>>> at
>>>>>>>>>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
>>>>>>>>>>> at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>>>>>>>>>>> at
>>>>>>>>>>> org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>>>>>>>>>>> at
>>>>>>>>>>> org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>>>>>>>>>>> at
>>>>>>>>>>> org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>>>>>>>>>>> at
>>>>>>>>>>> org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>>>>>>>>>>> at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>>>>>>>>>>> at
>>>>>>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
>>>>>>>>>>> at
>>>>>>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
>>>>>>>>>>> at
>>>>>>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
>>>>>>>>>>> at
>>>>>>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
>>>>>>>>>>> at
>>>>>>>>>>> org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
>>>>>>>>>>> at
>>>>>>>>>>> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
>>>>>>>>>>> at
>>>>>>>>>>> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>>>>>>>>>>> Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed:
>>>>>>>>>>> 0.913 sec <<< FAILURE! - in org.apache.airavata.cloud.test.CloudIntfTest
>>>>>>>>>>> jetstreamCreateDeleteServerTest(org.apache.airavata.cloud.test.CloudIntfTest)
>>>>>>>>>>>  Time elapsed: 0.908 sec  <<< FAILURE!
>>>>>>>>>>> java.lang.AssertionError: null
>>>>>>>>>>> at org.junit.Assert.fail(Assert.java:86)
>>>>>>>>>>> at org.junit.Assert.fail(Assert.java:95)
>>>>>>>>>>> at
>>>>>>>>>>> org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:128)
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> On Wed, Apr 20, 2016 at 3:36 PM, Suresh Marru <smarru@apache.org
>>>>>>>>>>> > wrote:
>>>>>>>>>>>
>>>>>>>>>>>> Thats nice. Few suggestions:
>>>>>>>>>>>>
>>>>>>>>>>>> * Eclipse or IDEA are good to write code, but to build and run
>>>>>>>>>>>> tests from maven, command line is the best option.
>>>>>>>>>>>> * Please use the mailing lists as much as possible so rest of
>>>>>>>>>>>> us can also contribute. If even you use hangouts, please take time to
>>>>>>>>>>>> explain what the issue is so it engages every one.
>>>>>>>>>>>>
>>>>>>>>>>>> I am able to run the test cases and am able to program
>>>>>>>>>>>> against OpenstackIntfImpl just fine. Can you elaborate on what is the
>>>>>>>>>>>> authentication issue you are running into?
>>>>>>>>>>>>
>>>>>>>>>>>> Suresh
>>>>>>>>>>>>
>>>>>>>>>>>> On Apr 20, 2016, at 3:30 PM, Pankaj Saha <ps...@binghamton.edu>
>>>>>>>>>>>> wrote:
>>>>>>>>>>>>
>>>>>>>>>>>> Hi Suresh,
>>>>>>>>>>>>
>>>>>>>>>>>> I just had a hangout session with Mangirish regarding the same.
>>>>>>>>>>>> It looks like an authentication issue with openstack which he is aware of.
>>>>>>>>>>>> He has explained me his code and I am going to retry fixing the problem.
>>>>>>>>>>>>
>>>>>>>>>>>> I did not use maven to build his project instead I have export
>>>>>>>>>>>> his project as eclipse (mvn eclipse:eclipse) and trying to run the junit
>>>>>>>>>>>> test.
>>>>>>>>>>>>
>>>>>>>>>>>> Will update you once I find something new.
>>>>>>>>>>>>
>>>>>>>>>>>> Thanks
>>>>>>>>>>>> Pankaj
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> On Wed, Apr 20, 2016 at 3:21 PM, Suresh Marru <
>>>>>>>>>>>> smarru@apache.org> wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>> Hi Pankaj,
>>>>>>>>>>>>>
>>>>>>>>>>>>> Can you please be more clear? What is failing? Did you try to
>>>>>>>>>>>>> build it using maven within the cloud provisioning directory itself? Did
>>>>>>>>>>>>> you change the public key file in the test_data.properties?
>>>>>>>>>>>>>
>>>>>>>>>>>>> Suresh
>>>>>>>>>>>>>
>>>>>>>>>>>>> On Apr 20, 2016, at 2:56 PM, Pankaj Saha <
>>>>>>>>>>>>> psaha4@binghamton.edu> wrote:
>>>>>>>>>>>>>
>>>>>>>>>>>>> I am able to get Mangirish's code in the develop branch. After
>>>>>>>>>>>>> making it an eclipse project, when I am trying to run it as JUnit test,
>>>>>>>>>>>>> it's failing.
>>>>>>>>>>>>> Need help to fix this, possibly some configuration changes in
>>>>>>>>>>>>> the properties file or similar.
>>>>>>>>>>>>> It will be great we can talk over a hangout session or at
>>>>>>>>>>>>> least a chat session to make it work.
>>>>>>>>>>>>>
>>>>>>>>>>>>> On Wed, Apr 20, 2016 at 12:05 PM, Mangirish Wagle <
>>>>>>>>>>>>> vaglomangirish@gmail.com> wrote:
>>>>>>>>>>>>>
>>>>>>>>>>>>>> Hi Pankaj,
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> You may find a sample test code for the module in this unit
>>>>>>>>>>>>>> test file:-
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> https://github.com/apache/airavata/blob/develop/modules/cloud/cloud-provisioning/src/test/java/org/apache/airavata/cloud/test/CloudIntfTest.java
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Also, if you want to test run the code, you may please follow
>>>>>>>>>>>>>> this quick README:-
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> https://github.com/apache/airavata/blob/develop/modules/cloud/cloud-provisioning/README
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Please let me know if you need some more info or code
>>>>>>>>>>>>>> walkthrough. Sending you the jetstream openrc credentials separately.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Thanks.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Regards,
>>>>>>>>>>>>>> Mangirish
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> On Wed, Apr 20, 2016 at 11:42 AM, Suresh Marru <
>>>>>>>>>>>>>> smarru@apache.org> wrote:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Hi Pankaj,
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Please switch to ‘develop’ branch and look for the cloud
>>>>>>>>>>>>>>> provisioning module -
>>>>>>>>>>>>>>> https://github.com/apache/airavata/tree/develop/modules/cloud/cloud-provisioning
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Suresh
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> On Apr 20, 2016, at 11:37 AM, Pankaj Saha <
>>>>>>>>>>>>>>> psaha4@binghamton.edu> wrote:
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Hello Mangirish,
>>>>>>>>>>>>>>> I have latest Airavata mater branch installed in my local
>>>>>>>>>>>>>>> system. Can you please give us some clue how to start creating the VMs
>>>>>>>>>>>>>>> through you application. Please specify where we can find your
>>>>>>>>>>>>>>> corresponding java code. Is it through PGA website?
>>>>>>>>>>>>>>> Please share the required password to me in a separate email.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Thanks
>>>>>>>>>>>>>>> Pankaj
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>> --
>>>>>>>>>> Shameera Rathnayaka
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>>>
>>
>>
>

Re: Jetstream VM creation through Airavata

Posted by Pankaj Saha <ps...@binghamton.edu>.
i have just created two ubuntu VMs, Mesos Agent ubuntu
<https://jblb.jetstream-cloud.org/dashboard/project/instances/ea8e758d-c924-4e38-9ee7-432429862c07/>
 and Mesos Master ubuntu
<https://jblb.jetstream-cloud.org/dashboard/project/instances/ea8e758d-c924-4e38-9ee7-432429862c07/>
both
does not have any floating IP in openstack.

On Fri, Apr 29, 2016 at 9:08 PM, Suresh Marru <sm...@apache.org> wrote:

> Can u try again now?
>
>
> On Apr 29, 2016, at 9:05 PM, Pankaj Saha <ps...@binghamton.edu> wrote:
>
> Hi Suresh,
> I could ssh to VMs but new VMs are not getting any floating public IP.
>
>
> Thanks
> Pankaj
>
> On Fri, Apr 29, 2016 at 8:51 PM, Suresh Marru <sm...@apache.org> wrote:
>
>> Pankaj,
>>
>> Do you still have the issue?
>>
>> Suresh
>>
>> On Apr 28, 2016, at 5:26 PM, Pankaj Saha <ps...@binghamton.edu> wrote:
>>
>> Details of my VM is as mentioned below:
>>
>> Name: Mesos Agent
>> Floating IPs:149.165.157.247
>> size: m1.medium
>> key: pankaj SSH key
>>
>>
>> On Thu, Apr 28, 2016 at 5:22 PM, Pankaj Saha <ps...@binghamton.edu>
>> wrote:
>>
>>> Hi
>>> I need SSH to get the console access to install required software. I
>>> believe SSH server is not running by default in the ubuntu based servers
>>> and also I can not access its console through the openstack web UI.
>>> Please suggest.
>>>
>>> Thanks
>>> Pankaj
>>>
>>> On Thu, Apr 28, 2016 at 5:00 PM, Pankaj Saha <ps...@binghamton.edu>
>>> wrote:
>>>
>>>> Hi Suresh,
>>>> Yes, it's accessible now. Thanks.
>>>>
>>>> On Thu, Apr 28, 2016 at 4:39 PM, Suresh Marru <sm...@apache.org>
>>>> wrote:
>>>>
>>>>> Pankaj,
>>>>>
>>>>> Try now.
>>>>>
>>>>> Suresh
>>>>>
>>>>> On Apr 28, 2016, at 1:05 PM, Suresh Marru <sm...@apache.org> wrote:
>>>>>
>>>>> Hi Pankaj,
>>>>>
>>>>> By default yes they will be accessible from outside. The firewall’s
>>>>> are controlled by the security policy and currently both ssh and http are
>>>>> accessible widely. There are issues with Open Stack Neutron services and I
>>>>> reported them. I will post when the network is back stable.
>>>>>
>>>>> Suresh
>>>>>
>>>>> On Apr 28, 2016, at 1:02 PM, Pankaj Saha <ps...@binghamton.edu>
>>>>> wrote:
>>>>>
>>>>> Hello Devs,
>>>>> I have created a VM in openstack through cloud-provisioning module.
>>>>> Which returned an VM with floating ip : 149.165.157.215. I was
>>>>> expecting that this VM will be accessible through ssh over public ip
>>>>> assigned to it. I need ssh access to these VMs for including mesos binaries
>>>>> into them so that these images can be used as mesos agents for
>>>>> Gourav's prject.
>>>>>
>>>>> Please let me know if it is blocked by any firewall and whats the
>>>>> process to get access to them.
>>>>>
>>>>> Thanks
>>>>> Pankaj
>>>>>
>>>>> On Fri, Apr 22, 2016 at 4:43 PM, Pankaj Saha <ps...@binghamton.edu>
>>>>> wrote:
>>>>>
>>>>>> Hi Suresh,
>>>>>> Yes, that was the problem. Now it's working.
>>>>>> here is the log:
>>>>>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl -
>>>>>> Keypair created successfully: testKey
>>>>>> [main] INFO org.apache.airavata.cloud.test.CloudIntfTest - Keypair
>>>>>> created/ retrieved: 83:17:5b:2c:f3:31:06:af:99:c1:c8:8b:62:72:36:35
>>>>>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl -
>>>>>> Using network subnet-airavata with ID: ad2552d6-1a02-4d6c-9fa4-ad40d93e5423
>>>>>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl -
>>>>>> New server created with ID: 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>>>>>> [main] INFO org.apache.airavata.cloud.test.CloudIntfTest - Server
>>>>>> Created: 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>>>>>> [main] INFO org.apache.airavata.cloud.test.CloudIntfTest - Waiting
>>>>>> for instance to go ACTIVE...
>>>>>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl -
>>>>>> Server retrieved successfully for ID: 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>>>>>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl -
>>>>>> true:200:null:ActionResponse{success=true, code=200}
>>>>>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl -
>>>>>> Floating IP 149.165.156.142 assigned successfully to server with ID:
>>>>>> 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>>>>>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl -
>>>>>> Server retrieved successfully for ID: 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>>>>>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl -
>>>>>> Server deleted successfully for ID: 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>>>>>> [main] INFO org.apache.airavata.cloud.test.CloudIntfTest - Server
>>>>>> deleted: 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>>>>>> [main] INFO org.apache.airavata.cloud.test.CloudIntfTest - Waiting
>>>>>> for instance to terminate...
>>>>>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl -
>>>>>> Keypair deleted successfully: testKey
>>>>>> [main] INFO org.apache.airavata.cloud.test.CloudIntfTest - Keypair
>>>>>> deleted: testKey
>>>>>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl -
>>>>>> Server retrieved successfully for ID: 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>>>>>>
>>>>>>
>>>>>> Thanks
>>>>>> Pankaj
>>>>>>
>>>>>> On Fri, Apr 22, 2016 at 4:15 PM, Suresh Marru <sm...@apache.org>
>>>>>> wrote:
>>>>>>
>>>>>>> I now noticed that you have used OS_PROJECT_DOMAIN_NAME=tacc instead
>>>>>>> of OS_PROJECT_DOMAIN_NAME=scigap
>>>>>>>
>>>>>>> Suresh
>>>>>>>
>>>>>>> On Apr 22, 2016, at 4:14 PM, Suresh Marru <sm...@apache.org> wrote:
>>>>>>>
>>>>>>> Hi Pankaj, Mangirish,
>>>>>>>
>>>>>>> Is this intermittent or do you consistently get authentication
>>>>>>> issues? I am attaching my openrc file:
>>>>>>>
>>>>>>> OS_PROJECT_DOMAIN_NAME=scigap
>>>>>>> OS_USER_DOMAIN_NAME=tacc
>>>>>>> OS_PROJECT_NAME=scigap
>>>>>>> OS_TENANT_NAME=scigap
>>>>>>> OS_USERNAME=scigap
>>>>>>> OS_PASSWORD=XXXXXXXXXXXXX
>>>>>>> OS_AUTH_URL=https://jblb.jetstream-cloud.org:35357/v3
>>>>>>> OS_IDENTITY_API_VERSION=3
>>>>>>>
>>>>>>> # Network Properties
>>>>>>> OS_FLOATING_IP_POOL=public
>>>>>>> OS_SUBNET_NAME=airavata
>>>>>>>
>>>>>>> To complicate the puzzle, I am consistently able to launch few
>>>>>>> hundred’s of instances within the past day without any issues. I just
>>>>>>> checked the code, I am using it out of the box and no local changes.
>>>>>>>
>>>>>>> Suresh
>>>>>>>
>>>>>>>
>>>>>>> On Apr 22, 2016, at 3:18 PM, Pankaj Saha <ps...@binghamton.edu>
>>>>>>> wrote:
>>>>>>>
>>>>>>> Hello Everyone,
>>>>>>>
>>>>>>> I had a discussion with Mangirish today morning and we could figure
>>>>>>> out through debugging that java code getting authentication exception when
>>>>>>> trying to authenticate the user with openstack.
>>>>>>> NOVA client for openstack did work well and I have also tested with
>>>>>>> credentials to directly login into the portal.
>>>>>>> I have replicated the same in another system in my same lab network
>>>>>>> and the test case still failing for the same status-401, authentication
>>>>>>> error.
>>>>>>>
>>>>>>> I have followed these below steps:
>>>>>>>
>>>>>>>    1. generated rsa key
>>>>>>>    2. downloaded airavata from git, switched it to "develop" branch
>>>>>>>    3. changed the required property values for openstack.
>>>>>>>    4. run : mvn clean install from inside the
>>>>>>>    cloud/cloud-provisioning module.
>>>>>>>
>>>>>>> It's definitely not the firewall issue as its failing in the
>>>>>>> authentication stage. I am attaching my property file for reference, please
>>>>>>> let me know if you find anything wrong in this.
>>>>>>> *test_data.properties*
>>>>>>>
>>>>>>> # Common properties
>>>>>>>> publicKeyFile=/home/psaha4/.ssh/id_rsa.pub
>>>>>>>> # Jetstream properties
>>>>>>>> jetstream_imageId=448636b0-450a-4b49-9bfe-b3135fc443e8
>>>>>>>> jetstream_flavorId=3
>>>>>>>> OS_PROJECT_DOMAIN_NAME=tacc
>>>>>>>> OS_USER_DOMAIN_NAME=tacc
>>>>>>>> OS_PROJECT_NAME=scigap
>>>>>>>> OS_TENANT_NAME=scigap
>>>>>>>> OS_USERNAME=scigap
>>>>>>>> OS_PASSWORD=<not exposing the password here>
>>>>>>>> OS_AUTH_URL=https://jblb.jetstream-cloud.org:35357/v3
>>>>>>>> OS_IDENTITY_API_VERSION=3
>>>>>>>> # Network Properties
>>>>>>>> OS_FLOATING_IP_POOL=public
>>>>>>>> OS_SUBNET_NAME=airavata
>>>>>>>
>>>>>>>
>>>>>>> Can someone send me jetstream_openrc.properties and
>>>>>>> test_data.properties file from a working environment in  a separate
>>>>>>> email so that I can place them and test from my system once.
>>>>>>>
>>>>>>> Thanks
>>>>>>> Pankaj
>>>>>>>
>>>>>>>
>>>>>>> On Thu, Apr 21, 2016 at 11:43 AM, Pankaj Saha <psaha4@binghamton.edu
>>>>>>> > wrote:
>>>>>>>
>>>>>>>> Hi Shameera,
>>>>>>>> I have received the password from Mangirish and I am using the same
>>>>>>>> details as he has provided.
>>>>>>>> Regarding the jetstream keypair, my understanding is, during the
>>>>>>>> test run it fetches the public key from the properties file and send it to
>>>>>>>> the jetstream servers.  Please let me know how I need to configure it
>>>>>>>> separately.
>>>>>>>>
>>>>>>>> Thanks
>>>>>>>> Pankaj
>>>>>>>>
>>>>>>>> On Wed, Apr 20, 2016 at 8:48 PM, Shameera Rathnayaka <
>>>>>>>> shameerainfo@gmail.com> wrote:
>>>>>>>>
>>>>>>>>> Hi Pankaj,
>>>>>>>>>
>>>>>>>>> To work with your ssh keys you need to add them to jetstream
>>>>>>>>> keypair. Have you done that part?
>>>>>>>>>
>>>>>>>>> also you are not providing correct the OS_PASSWORD value
>>>>>>>>> accordding to above deatils.
>>>>>>>>>
>>>>>>>>> Shameera.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On Wed, Apr 20, 2016 at 3:42 PM Pankaj Saha <ps...@binghamton.edu>
>>>>>>>>> wrote:
>>>>>>>>>
>>>>>>>>>> I have just use maven to build the same project. here is
>>>>>>>>>> thedetails
>>>>>>>>>> # Common properties
>>>>>>>>>> publicKeyFile=/home/psaha4/.ssh/id_rsa.pub
>>>>>>>>>>
>>>>>>>>>> # Jetstream properties
>>>>>>>>>> jetstream_imageId=448636b0-450a-4b49-9bfe-b3135fc443e8
>>>>>>>>>> jetstream_flavorId=3
>>>>>>>>>>
>>>>>>>>>> OS_PROJECT_DOMAIN_NAME=tacc
>>>>>>>>>> OS_USER_DOMAIN_NAME=tacc
>>>>>>>>>> OS_PROJECT_NAME=scigap
>>>>>>>>>> OS_TENANT_NAME=scigap
>>>>>>>>>> OS_USERNAME=scigap
>>>>>>>>>> OS_PASSWORD=<not exposing here>
>>>>>>>>>> OS_AUTH_URL=https://jblb.jetstream-cloud.org:35357/v3
>>>>>>>>>> OS_IDENTITY_API_VERSION=3
>>>>>>>>>>
>>>>>>>>>> # Network Properties
>>>>>>>>>> OS_FLOATING_IP_POOL=public
>>>>>>>>>> OS_SUBNET_NAME=airavata
>>>>>>>>>>
>>>>>>>>>> The test case error that I am getting for the Test case is al
>>>>>>>>>> below:
>>>>>>>>>> -------------------------------------------------------
>>>>>>>>>>  T E S T S
>>>>>>>>>> -------------------------------------------------------
>>>>>>>>>> Running org.apache.airavata.cloud.test.CloudIntfTest
>>>>>>>>>> AuthenticationException{message=Unauthorized, status=401}
>>>>>>>>>> at
>>>>>>>>>> org.openstack4j.core.transport.HttpExceptionHandler.mapException(HttpExceptionHandler.java:36)
>>>>>>>>>> at
>>>>>>>>>> org.openstack4j.core.transport.HttpExceptionHandler.mapException(HttpExceptionHandler.java:23)
>>>>>>>>>> at
>>>>>>>>>> org.openstack4j.openstack.internal.OSAuthenticator.authenticateV3(OSAuthenticator.java:161)
>>>>>>>>>> at
>>>>>>>>>> org.openstack4j.openstack.internal.OSAuthenticator.invoke(OSAuthenticator.java:78)
>>>>>>>>>> at
>>>>>>>>>> org.openstack4j.openstack.client.OSClientBuilder$ClientV3.authenticate(OSClientBuilder.java:163)
>>>>>>>>>> at
>>>>>>>>>> org.openstack4j.openstack.client.OSClientBuilder$ClientV3.authenticate(OSClientBuilder.java:127)
>>>>>>>>>> at
>>>>>>>>>> org.apache.airavata.cloud.openstack.OS4JClientProvider.getOSClientV3(OS4JClientProvider.java:86)
>>>>>>>>>> at
>>>>>>>>>> org.apache.airavata.cloud.openstack.OS4JClientProvider.getOSClient(OS4JClientProvider.java:49)
>>>>>>>>>> at
>>>>>>>>>> org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl.<init>(OpenstackIntfImpl.java:78)
>>>>>>>>>> at
>>>>>>>>>> org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:77)
>>>>>>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>>>>>> at
>>>>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>>>>>>>>> at
>>>>>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>>>>>>> at java.lang.reflect.Method.invoke(Method.java:498)
>>>>>>>>>> at
>>>>>>>>>> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>>>>>>>>>> at
>>>>>>>>>> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>>>>>>>>>> at
>>>>>>>>>> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>>>>>>>>>> at
>>>>>>>>>> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>>>>>>>>>> at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>>>>>>>>>> at
>>>>>>>>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
>>>>>>>>>> at
>>>>>>>>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
>>>>>>>>>> at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>>>>>>>>>> at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>>>>>>>>>> at
>>>>>>>>>> org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>>>>>>>>>> at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>>>>>>>>>> at
>>>>>>>>>> org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>>>>>>>>>> at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>>>>>>>>>> at
>>>>>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
>>>>>>>>>> at
>>>>>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
>>>>>>>>>> at
>>>>>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
>>>>>>>>>> at
>>>>>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
>>>>>>>>>> at
>>>>>>>>>> org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
>>>>>>>>>> at
>>>>>>>>>> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
>>>>>>>>>> at
>>>>>>>>>> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>>>>>>>>>> java.lang.NullPointerException
>>>>>>>>>> at
>>>>>>>>>> org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl.getKeyPair(OpenstackIntfImpl.java:215)
>>>>>>>>>> at
>>>>>>>>>> org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:92)
>>>>>>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>>>>>> at
>>>>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>>>>>>>>> at
>>>>>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>>>>>>> at java.lang.reflect.Method.invoke(Method.java:498)
>>>>>>>>>> at
>>>>>>>>>> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>>>>>>>>>> at
>>>>>>>>>> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>>>>>>>>>> at
>>>>>>>>>> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>>>>>>>>>> at
>>>>>>>>>> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>>>>>>>>>> at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>>>>>>>>>> at
>>>>>>>>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
>>>>>>>>>> at
>>>>>>>>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
>>>>>>>>>> at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>>>>>>>>>> at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>>>>>>>>>> at
>>>>>>>>>> org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>>>>>>>>>> at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>>>>>>>>>> at
>>>>>>>>>> org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>>>>>>>>>> at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>>>>>>>>>> at
>>>>>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
>>>>>>>>>> at
>>>>>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
>>>>>>>>>> at
>>>>>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
>>>>>>>>>> at
>>>>>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
>>>>>>>>>> at
>>>>>>>>>> org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
>>>>>>>>>> at
>>>>>>>>>> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
>>>>>>>>>> at
>>>>>>>>>> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>>>>>>>>>> [main] ERROR
>>>>>>>>>> org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - Failed to retrieve
>>>>>>>>>> keypair: testKey
>>>>>>>>>> java.lang.NullPointerException
>>>>>>>>>> at
>>>>>>>>>> org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl.createKeyPair(OpenstackIntfImpl.java:197)
>>>>>>>>>> at
>>>>>>>>>> org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:94)
>>>>>>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>>>>>> at
>>>>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>>>>>>>>> at
>>>>>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>>>>>>> at java.lang.reflect.Method.invoke(Method.java:498)
>>>>>>>>>> at
>>>>>>>>>> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>>>>>>>>>> at
>>>>>>>>>> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>>>>>>>>>> at
>>>>>>>>>> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>>>>>>>>>> at
>>>>>>>>>> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>>>>>>>>>> at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>>>>>>>>>> at
>>>>>>>>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
>>>>>>>>>> at
>>>>>>>>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
>>>>>>>>>> at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>>>>>>>>>> at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>>>>>>>>>> at
>>>>>>>>>> org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>>>>>>>>>> at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>>>>>>>>>> at
>>>>>>>>>> org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>>>>>>>>>> at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>>>>>>>>>> at
>>>>>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
>>>>>>>>>> at
>>>>>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
>>>>>>>>>> at
>>>>>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
>>>>>>>>>> at
>>>>>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
>>>>>>>>>> at
>>>>>>>>>> org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
>>>>>>>>>> at
>>>>>>>>>> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
>>>>>>>>>> at
>>>>>>>>>> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>>>>>>>>>> [main] ERROR
>>>>>>>>>> org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - Failed to create
>>>>>>>>>> keypair: testKey
>>>>>>>>>> java.lang.NullPointerException
>>>>>>>>>> at
>>>>>>>>>> org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:97)
>>>>>>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>>>>>> at
>>>>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>>>>>>>>> at
>>>>>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>>>>>>> at java.lang.reflect.Method.invoke(Method.java:498)
>>>>>>>>>> at
>>>>>>>>>> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>>>>>>>>>> at
>>>>>>>>>> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>>>>>>>>>> at
>>>>>>>>>> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>>>>>>>>>> at
>>>>>>>>>> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>>>>>>>>>> at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>>>>>>>>>> at
>>>>>>>>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
>>>>>>>>>> at
>>>>>>>>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
>>>>>>>>>> at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>>>>>>>>>> at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>>>>>>>>>> at
>>>>>>>>>> org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>>>>>>>>>> at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>>>>>>>>>> at
>>>>>>>>>> org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>>>>>>>>>> at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>>>>>>>>>> at
>>>>>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
>>>>>>>>>> at
>>>>>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
>>>>>>>>>> at
>>>>>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
>>>>>>>>>> at
>>>>>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
>>>>>>>>>> at
>>>>>>>>>> org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
>>>>>>>>>> at
>>>>>>>>>> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
>>>>>>>>>> at
>>>>>>>>>> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>>>>>>>>>> Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed:
>>>>>>>>>> 0.913 sec <<< FAILURE! - in org.apache.airavata.cloud.test.CloudIntfTest
>>>>>>>>>> jetstreamCreateDeleteServerTest(org.apache.airavata.cloud.test.CloudIntfTest)
>>>>>>>>>>  Time elapsed: 0.908 sec  <<< FAILURE!
>>>>>>>>>> java.lang.AssertionError: null
>>>>>>>>>> at org.junit.Assert.fail(Assert.java:86)
>>>>>>>>>> at org.junit.Assert.fail(Assert.java:95)
>>>>>>>>>> at
>>>>>>>>>> org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:128)
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> On Wed, Apr 20, 2016 at 3:36 PM, Suresh Marru <sm...@apache.org>
>>>>>>>>>> wrote:
>>>>>>>>>>
>>>>>>>>>>> Thats nice. Few suggestions:
>>>>>>>>>>>
>>>>>>>>>>> * Eclipse or IDEA are good to write code, but to build and run
>>>>>>>>>>> tests from maven, command line is the best option.
>>>>>>>>>>> * Please use the mailing lists as much as possible so rest of us
>>>>>>>>>>> can also contribute. If even you use hangouts, please take time to explain
>>>>>>>>>>> what the issue is so it engages every one.
>>>>>>>>>>>
>>>>>>>>>>> I am able to run the test cases and am able to program
>>>>>>>>>>> against OpenstackIntfImpl just fine. Can you elaborate on what is the
>>>>>>>>>>> authentication issue you are running into?
>>>>>>>>>>>
>>>>>>>>>>> Suresh
>>>>>>>>>>>
>>>>>>>>>>> On Apr 20, 2016, at 3:30 PM, Pankaj Saha <ps...@binghamton.edu>
>>>>>>>>>>> wrote:
>>>>>>>>>>>
>>>>>>>>>>> Hi Suresh,
>>>>>>>>>>>
>>>>>>>>>>> I just had a hangout session with Mangirish regarding the same.
>>>>>>>>>>> It looks like an authentication issue with openstack which he is aware of.
>>>>>>>>>>> He has explained me his code and I am going to retry fixing the problem.
>>>>>>>>>>>
>>>>>>>>>>> I did not use maven to build his project instead I have export
>>>>>>>>>>> his project as eclipse (mvn eclipse:eclipse) and trying to run the junit
>>>>>>>>>>> test.
>>>>>>>>>>>
>>>>>>>>>>> Will update you once I find something new.
>>>>>>>>>>>
>>>>>>>>>>> Thanks
>>>>>>>>>>> Pankaj
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> On Wed, Apr 20, 2016 at 3:21 PM, Suresh Marru <smarru@apache.org
>>>>>>>>>>> > wrote:
>>>>>>>>>>>
>>>>>>>>>>>> Hi Pankaj,
>>>>>>>>>>>>
>>>>>>>>>>>> Can you please be more clear? What is failing? Did you try to
>>>>>>>>>>>> build it using maven within the cloud provisioning directory itself? Did
>>>>>>>>>>>> you change the public key file in the test_data.properties?
>>>>>>>>>>>>
>>>>>>>>>>>> Suresh
>>>>>>>>>>>>
>>>>>>>>>>>> On Apr 20, 2016, at 2:56 PM, Pankaj Saha <ps...@binghamton.edu>
>>>>>>>>>>>> wrote:
>>>>>>>>>>>>
>>>>>>>>>>>> I am able to get Mangirish's code in the develop branch. After
>>>>>>>>>>>> making it an eclipse project, when I am trying to run it as JUnit test,
>>>>>>>>>>>> it's failing.
>>>>>>>>>>>> Need help to fix this, possibly some configuration changes in
>>>>>>>>>>>> the properties file or similar.
>>>>>>>>>>>> It will be great we can talk over a hangout session or at least
>>>>>>>>>>>> a chat session to make it work.
>>>>>>>>>>>>
>>>>>>>>>>>> On Wed, Apr 20, 2016 at 12:05 PM, Mangirish Wagle <
>>>>>>>>>>>> vaglomangirish@gmail.com> wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>> Hi Pankaj,
>>>>>>>>>>>>>
>>>>>>>>>>>>> You may find a sample test code for the module in this unit
>>>>>>>>>>>>> test file:-
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> https://github.com/apache/airavata/blob/develop/modules/cloud/cloud-provisioning/src/test/java/org/apache/airavata/cloud/test/CloudIntfTest.java
>>>>>>>>>>>>>
>>>>>>>>>>>>> Also, if you want to test run the code, you may please follow
>>>>>>>>>>>>> this quick README:-
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> https://github.com/apache/airavata/blob/develop/modules/cloud/cloud-provisioning/README
>>>>>>>>>>>>>
>>>>>>>>>>>>> Please let me know if you need some more info or code
>>>>>>>>>>>>> walkthrough. Sending you the jetstream openrc credentials separately.
>>>>>>>>>>>>>
>>>>>>>>>>>>> Thanks.
>>>>>>>>>>>>>
>>>>>>>>>>>>> Regards,
>>>>>>>>>>>>> Mangirish
>>>>>>>>>>>>>
>>>>>>>>>>>>> On Wed, Apr 20, 2016 at 11:42 AM, Suresh Marru <
>>>>>>>>>>>>> smarru@apache.org> wrote:
>>>>>>>>>>>>>
>>>>>>>>>>>>>> Hi Pankaj,
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Please switch to ‘develop’ branch and look for the cloud
>>>>>>>>>>>>>> provisioning module -
>>>>>>>>>>>>>> https://github.com/apache/airavata/tree/develop/modules/cloud/cloud-provisioning
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Suresh
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> On Apr 20, 2016, at 11:37 AM, Pankaj Saha <
>>>>>>>>>>>>>> psaha4@binghamton.edu> wrote:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Hello Mangirish,
>>>>>>>>>>>>>> I have latest Airavata mater branch installed in my local
>>>>>>>>>>>>>> system. Can you please give us some clue how to start creating the VMs
>>>>>>>>>>>>>> through you application. Please specify where we can find your
>>>>>>>>>>>>>> corresponding java code. Is it through PGA website?
>>>>>>>>>>>>>> Please share the required password to me in a separate email.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Thanks
>>>>>>>>>>>>>> Pankaj
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>> --
>>>>>>>>> Shameera Rathnayaka
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>
>>
>>
>
>

Re: Jetstream VM creation through Airavata

Posted by Suresh Marru <sm...@apache.org>.
Can u try again now?


> On Apr 29, 2016, at 9:05 PM, Pankaj Saha <ps...@binghamton.edu> wrote:
> 
> Hi Suresh,
> I could ssh to VMs but new VMs are not getting any floating public IP.
> 
>  
> Thanks
> Pankaj
> 
> On Fri, Apr 29, 2016 at 8:51 PM, Suresh Marru <smarru@apache.org <ma...@apache.org>> wrote:
> Pankaj,
> 
> Do you still have the issue? 
> 
> Suresh
> 
>> On Apr 28, 2016, at 5:26 PM, Pankaj Saha <psaha4@binghamton.edu <ma...@binghamton.edu>> wrote:
>> 
>> Details of my VM is as mentioned below:
>> 
>> Name: Mesos Agent
>> Floating IPs:149.165.157.247
>> size: m1.medium	
>> key: pankaj SSH key
>> 
>> 
>> On Thu, Apr 28, 2016 at 5:22 PM, Pankaj Saha <psaha4@binghamton.edu <ma...@binghamton.edu>> wrote:
>> Hi 
>> I need SSH to get the console access to install required software. I believe SSH server is not running by default in the ubuntu based servers and also I can not access its console through the openstack web UI.
>> Please suggest.
>> 
>> Thanks
>> Pankaj 
>> 
>> On Thu, Apr 28, 2016 at 5:00 PM, Pankaj Saha <psaha4@binghamton.edu <ma...@binghamton.edu>> wrote:
>> Hi Suresh,
>> Yes, it's accessible now. Thanks.
>> 
>> On Thu, Apr 28, 2016 at 4:39 PM, Suresh Marru <smarru@apache.org <ma...@apache.org>> wrote:
>> Pankaj,
>> 
>> Try now.
>> 
>> Suresh
>> 
>>> On Apr 28, 2016, at 1:05 PM, Suresh Marru <smarru@apache.org <ma...@apache.org>> wrote:
>>> 
>>> Hi Pankaj,
>>> 
>>> By default yes they will be accessible from outside. The firewall’s are controlled by the security policy and currently both ssh and http are accessible widely. There are issues with Open Stack Neutron services and I reported them. I will post when the network is back stable. 
>>> 
>>> Suresh
>>> 
>>>> On Apr 28, 2016, at 1:02 PM, Pankaj Saha <psaha4@binghamton.edu <ma...@binghamton.edu>> wrote:
>>>> 
>>>> Hello Devs,
>>>> I have created a VM in openstack through cloud-provisioning module. Which returned an VM with floating ip : 149.165.157.215. I was expecting that this VM will be accessible through ssh over public ip assigned to it. I need ssh access to these VMs for including mesos binaries into them so that these images can be used as mesos agents for Gourav's prject.
>>>> 
>>>> Please let me know if it is blocked by any firewall and whats the process to get access to them.
>>>> 
>>>> Thanks
>>>> Pankaj
>>>> 
>>>> On Fri, Apr 22, 2016 at 4:43 PM, Pankaj Saha <psaha4@binghamton.edu <ma...@binghamton.edu>> wrote:
>>>> Hi Suresh,
>>>> Yes, that was the problem. Now it's working.
>>>> here is the log:
>>>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - Keypair created successfully: testKey
>>>> [main] INFO org.apache.airavata.cloud.test.CloudIntfTest - Keypair created/ retrieved: 83:17:5b:2c:f3:31:06:af:99:c1:c8:8b:62:72:36:35
>>>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - Using network subnet-airavata with ID: ad2552d6-1a02-4d6c-9fa4-ad40d93e5423
>>>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - New server created with ID: 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>>>> [main] INFO org.apache.airavata.cloud.test.CloudIntfTest - Server Created: 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>>>> [main] INFO org.apache.airavata.cloud.test.CloudIntfTest - Waiting for instance to go ACTIVE...
>>>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - Server retrieved successfully for ID: 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>>>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - true:200:null:ActionResponse{success=true, code=200}
>>>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - Floating IP 149.165.156.142 assigned successfully to server with ID: 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>>>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - Server retrieved successfully for ID: 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>>>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - Server deleted successfully for ID: 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>>>> [main] INFO org.apache.airavata.cloud.test.CloudIntfTest - Server deleted: 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>>>> [main] INFO org.apache.airavata.cloud.test.CloudIntfTest - Waiting for instance to terminate...
>>>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - Keypair deleted successfully: testKey
>>>> [main] INFO org.apache.airavata.cloud.test.CloudIntfTest - Keypair deleted: testKey
>>>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - Server retrieved successfully for ID: 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>>>> 
>>>> 
>>>> Thanks
>>>> Pankaj
>>>> 
>>>> On Fri, Apr 22, 2016 at 4:15 PM, Suresh Marru <smarru@apache.org <ma...@apache.org>> wrote:
>>>> I now noticed that you have used OS_PROJECT_DOMAIN_NAME=tacc instead of OS_PROJECT_DOMAIN_NAME=scigap
>>>> 
>>>> Suresh
>>>> 
>>>>> On Apr 22, 2016, at 4:14 PM, Suresh Marru <smarru@apache.org <ma...@apache.org>> wrote:
>>>>> 
>>>>> Hi Pankaj, Mangirish,
>>>>> 
>>>>> Is this intermittent or do you consistently get authentication issues? I am attaching my openrc file:
>>>>> 
>>>>> OS_PROJECT_DOMAIN_NAME=scigap
>>>>> OS_USER_DOMAIN_NAME=tacc
>>>>> OS_PROJECT_NAME=scigap
>>>>> OS_TENANT_NAME=scigap
>>>>> OS_USERNAME=scigap
>>>>> OS_PASSWORD=XXXXXXXXXXXXX
>>>>> OS_AUTH_URL=https://jblb.jetstream-cloud.org:35357/v3 <https://jblb.jetstream-cloud.org:35357/v3>
>>>>> OS_IDENTITY_API_VERSION=3
>>>>> 
>>>>> # Network Properties
>>>>> OS_FLOATING_IP_POOL=public
>>>>> OS_SUBNET_NAME=airavata
>>>>> 
>>>>> To complicate the puzzle, I am consistently able to launch few hundred’s of instances within the past day without any issues. I just checked the code, I am using it out of the box and no local changes. 
>>>>> 
>>>>> Suresh
>>>>> 
>>>>> 
>>>>>> On Apr 22, 2016, at 3:18 PM, Pankaj Saha <psaha4@binghamton.edu <ma...@binghamton.edu>> wrote:
>>>>>> 
>>>>>> Hello Everyone,
>>>>>> 
>>>>>> I had a discussion with Mangirish today morning and we could figure out through debugging that java code getting authentication exception when trying to authenticate the user with openstack. 
>>>>>> NOVA client for openstack did work well and I have also tested with credentials to directly login into the portal.
>>>>>> I have replicated the same in another system in my same lab network and the test case still failing for the same status-401, authentication error. 
>>>>>> 
>>>>>> I have followed these below steps:
>>>>>> generated rsa key
>>>>>> downloaded airavata from git, switched it to "develop" branch
>>>>>> changed the required property values for openstack.
>>>>>> run : mvn clean install from inside the cloud/cloud-provisioning module.
>>>>>> It's definitely not the firewall issue as its failing in the authentication stage. I am attaching my property file for reference, please let me know if you find anything wrong in this.
>>>>>> test_data.properties
>>>>>> 
>>>>>> # Common properties
>>>>>> publicKeyFile=/home/psaha4/.ssh/id_rsa.pub
>>>>>> # Jetstream properties
>>>>>> jetstream_imageId=448636b0-450a-4b49-9bfe-b3135fc443e8
>>>>>> jetstream_flavorId=3
>>>>>> OS_PROJECT_DOMAIN_NAME=tacc
>>>>>> OS_USER_DOMAIN_NAME=tacc
>>>>>> OS_PROJECT_NAME=scigap
>>>>>> OS_TENANT_NAME=scigap
>>>>>> OS_USERNAME=scigap
>>>>>> OS_PASSWORD=<not exposing the password here>
>>>>>> OS_AUTH_URL=https://jblb.jetstream-cloud.org:35357/v3 <https://jblb.jetstream-cloud.org:35357/v3>
>>>>>> OS_IDENTITY_API_VERSION=3
>>>>>> # Network Properties
>>>>>> OS_FLOATING_IP_POOL=public
>>>>>> OS_SUBNET_NAME=airavata
>>>>>> 
>>>>>> Can someone send me jetstream_openrc.properties and test_data.properties file from a working environment in  a separate email so that I can place them and test from my system once.
>>>>>> 
>>>>>> Thanks
>>>>>> Pankaj
>>>>>> 
>>>>>> 
>>>>>> On Thu, Apr 21, 2016 at 11:43 AM, Pankaj Saha <psaha4@binghamton.edu <ma...@binghamton.edu>> wrote:
>>>>>> Hi Shameera,
>>>>>> I have received the password from Mangirish and I am using the same details as he has provided.
>>>>>> Regarding the jetstream keypair, my understanding is, during the test run it fetches the public key from the properties file and send it to the jetstream servers.  Please let me know how I need to configure it separately.
>>>>>> 
>>>>>> Thanks
>>>>>> Pankaj
>>>>>> 
>>>>>> On Wed, Apr 20, 2016 at 8:48 PM, Shameera Rathnayaka <shameerainfo@gmail.com <ma...@gmail.com>> wrote:
>>>>>> Hi Pankaj,
>>>>>> 
>>>>>> To work with your ssh keys you need to add them to jetstream keypair. Have you done that part? 
>>>>>> 
>>>>>> also you are not providing correct the OS_PASSWORD value accordding to above deatils.
>>>>>> 
>>>>>> Shameera.
>>>>>> 
>>>>>> 
>>>>>> On Wed, Apr 20, 2016 at 3:42 PM Pankaj Saha <psaha4@binghamton.edu <ma...@binghamton.edu>> wrote:
>>>>>> I have just use maven to build the same project. here is thedetails
>>>>>> # Common properties
>>>>>> publicKeyFile=/home/psaha4/.ssh/id_rsa.pub
>>>>>> 
>>>>>> # Jetstream properties
>>>>>> jetstream_imageId=448636b0-450a-4b49-9bfe-b3135fc443e8
>>>>>> jetstream_flavorId=3
>>>>>> 
>>>>>> OS_PROJECT_DOMAIN_NAME=tacc
>>>>>> OS_USER_DOMAIN_NAME=tacc
>>>>>> OS_PROJECT_NAME=scigap
>>>>>> OS_TENANT_NAME=scigap
>>>>>> OS_USERNAME=scigap
>>>>>> OS_PASSWORD=<not exposing here>
>>>>>> OS_AUTH_URL=https://jblb.jetstream-cloud.org:35357/v3 <https://jblb.jetstream-cloud.org:35357/v3>
>>>>>> OS_IDENTITY_API_VERSION=3
>>>>>> 
>>>>>> # Network Properties
>>>>>> OS_FLOATING_IP_POOL=public
>>>>>> OS_SUBNET_NAME=airavata
>>>>>> 
>>>>>> The test case error that I am getting for the Test case is al below:
>>>>>> -------------------------------------------------------
>>>>>>  T E S T S
>>>>>> -------------------------------------------------------
>>>>>> Running org.apache.airavata.cloud.test.CloudIntfTest
>>>>>> AuthenticationException{message=Unauthorized, status=401}
>>>>>> 	at org.openstack4j.core.transport.HttpExceptionHandler.mapException(HttpExceptionHandler.java:36)
>>>>>> 	at org.openstack4j.core.transport.HttpExceptionHandler.mapException(HttpExceptionHandler.java:23)
>>>>>> 	at org.openstack4j.openstack.internal.OSAuthenticator.authenticateV3(OSAuthenticator.java:161)
>>>>>> 	at org.openstack4j.openstack.internal.OSAuthenticator.invoke(OSAuthenticator.java:78)
>>>>>> 	at org.openstack4j.openstack.client.OSClientBuilder$ClientV3.authenticate(OSClientBuilder.java:163)
>>>>>> 	at org.openstack4j.openstack.client.OSClientBuilder$ClientV3.authenticate(OSClientBuilder.java:127)
>>>>>> 	at org.apache.airavata.cloud.openstack.OS4JClientProvider.getOSClientV3(OS4JClientProvider.java:86)
>>>>>> 	at org.apache.airavata.cloud.openstack.OS4JClientProvider.getOSClient(OS4JClientProvider.java:49)
>>>>>> 	at org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl.<init>(OpenstackIntfImpl.java:78)
>>>>>> 	at org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:77)
>>>>>> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>>>>> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>>> 	at java.lang.reflect.Method.invoke(Method.java:498)
>>>>>> 	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>>>>>> 	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>>>>>> 	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>>>>>> 	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>>>>>> 	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>>>>>> 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
>>>>>> 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
>>>>>> 	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>>>>>> 	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>>>>>> 	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>>>>>> 	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>>>>>> 	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>>>>>> 	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>>>>>> 	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
>>>>>> 	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
>>>>>> 	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
>>>>>> 	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
>>>>>> 	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
>>>>>> 	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
>>>>>> 	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>>>>>> java.lang.NullPointerException
>>>>>> 	at org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl.getKeyPair(OpenstackIntfImpl.java:215)
>>>>>> 	at org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:92)
>>>>>> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>>>>> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>>> 	at java.lang.reflect.Method.invoke(Method.java:498)
>>>>>> 	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>>>>>> 	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>>>>>> 	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>>>>>> 	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>>>>>> 	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>>>>>> 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
>>>>>> 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
>>>>>> 	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>>>>>> 	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>>>>>> 	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>>>>>> 	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>>>>>> 	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>>>>>> 	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>>>>>> 	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
>>>>>> 	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
>>>>>> 	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
>>>>>> 	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
>>>>>> 	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
>>>>>> 	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
>>>>>> 	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>>>>>> [main] ERROR org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - Failed to retrieve keypair: testKey
>>>>>> java.lang.NullPointerException
>>>>>> 	at org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl.createKeyPair(OpenstackIntfImpl.java:197)
>>>>>> 	at org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:94)
>>>>>> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>>>>> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>>> 	at java.lang.reflect.Method.invoke(Method.java:498)
>>>>>> 	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>>>>>> 	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>>>>>> 	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>>>>>> 	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>>>>>> 	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>>>>>> 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
>>>>>> 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
>>>>>> 	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>>>>>> 	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>>>>>> 	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>>>>>> 	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>>>>>> 	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>>>>>> 	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>>>>>> 	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
>>>>>> 	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
>>>>>> 	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
>>>>>> 	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
>>>>>> 	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
>>>>>> 	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
>>>>>> 	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>>>>>> [main] ERROR org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - Failed to create keypair: testKey
>>>>>> java.lang.NullPointerException
>>>>>> 	at org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:97)
>>>>>> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>>>>> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>>> 	at java.lang.reflect.Method.invoke(Method.java:498)
>>>>>> 	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>>>>>> 	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>>>>>> 	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>>>>>> 	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>>>>>> 	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>>>>>> 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
>>>>>> 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
>>>>>> 	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>>>>>> 	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>>>>>> 	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>>>>>> 	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>>>>>> 	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>>>>>> 	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>>>>>> 	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
>>>>>> 	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
>>>>>> 	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
>>>>>> 	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
>>>>>> 	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
>>>>>> 	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
>>>>>> 	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>>>>>> Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.913 sec <<< FAILURE! - in org.apache.airavata.cloud.test.CloudIntfTest
>>>>>> jetstreamCreateDeleteServerTest(org.apache.airavata.cloud.test.CloudIntfTest)  Time elapsed: 0.908 sec  <<< FAILURE!
>>>>>> java.lang.AssertionError: null
>>>>>> 	at org.junit.Assert.fail(Assert.java:86)
>>>>>> 	at org.junit.Assert.fail(Assert.java:95)
>>>>>> 	at org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:128)
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> On Wed, Apr 20, 2016 at 3:36 PM, Suresh Marru <smarru@apache.org <ma...@apache.org>> wrote:
>>>>>> Thats nice. Few suggestions:
>>>>>> 
>>>>>> * Eclipse or IDEA are good to write code, but to build and run tests from maven, command line is the best option. 
>>>>>> * Please use the mailing lists as much as possible so rest of us can also contribute. If even you use hangouts, please take time to explain what the issue is so it engages every one. 
>>>>>> 
>>>>>> I am able to run the test cases and am able to program against OpenstackIntfImpl just fine. Can you elaborate on what is the authentication issue you are running into? 
>>>>>> 
>>>>>> Suresh
>>>>>> 
>>>>>>> On Apr 20, 2016, at 3:30 PM, Pankaj Saha <psaha4@binghamton.edu <ma...@binghamton.edu>> wrote:
>>>>>>> 
>>>>>>> Hi Suresh, 
>>>>>>> 
>>>>>>> I just had a hangout session with Mangirish regarding the same. It looks like an authentication issue with openstack which he is aware of. He has explained me his code and I am going to retry fixing the problem.
>>>>>>> 
>>>>>>> I did not use maven to build his project instead I have export his project as eclipse (mvn eclipse:eclipse) and trying to run the junit test.
>>>>>>> 
>>>>>>> Will update you once I find something new.
>>>>>>> 
>>>>>>> Thanks
>>>>>>> Pankaj
>>>>>>> 
>>>>>>> 
>>>>>>> On Wed, Apr 20, 2016 at 3:21 PM, Suresh Marru <smarru@apache.org <ma...@apache.org>> wrote:
>>>>>>> Hi Pankaj,
>>>>>>> 
>>>>>>> Can you please be more clear? What is failing? Did you try to build it using maven within the cloud provisioning directory itself? Did you change the public key file in the test_data.properties? 
>>>>>>> 
>>>>>>> Suresh
>>>>>>> 
>>>>>>>> On Apr 20, 2016, at 2:56 PM, Pankaj Saha <psaha4@binghamton.edu <ma...@binghamton.edu>> wrote:
>>>>>>>> 
>>>>>>>> I am able to get Mangirish's code in the develop branch. After making it an eclipse project, when I am trying to run it as JUnit test, it's failing.
>>>>>>>> Need help to fix this, possibly some configuration changes in the properties file or similar.
>>>>>>>> It will be great we can talk over a hangout session or at least a chat session to make it work.
>>>>>>>> 
>>>>>>>> On Wed, Apr 20, 2016 at 12:05 PM, Mangirish Wagle <vaglomangirish@gmail.com <ma...@gmail.com>> wrote:
>>>>>>>> Hi Pankaj,
>>>>>>>> 
>>>>>>>> You may find a sample test code for the module in this unit test file:-
>>>>>>>> 
>>>>>>>> https://github.com/apache/airavata/blob/develop/modules/cloud/cloud-provisioning/src/test/java/org/apache/airavata/cloud/test/CloudIntfTest.java <https://github.com/apache/airavata/blob/develop/modules/cloud/cloud-provisioning/src/test/java/org/apache/airavata/cloud/test/CloudIntfTest.java>
>>>>>>>> 
>>>>>>>> Also, if you want to test run the code, you may please follow this quick README:-
>>>>>>>> 
>>>>>>>> https://github.com/apache/airavata/blob/develop/modules/cloud/cloud-provisioning/README <https://github.com/apache/airavata/blob/develop/modules/cloud/cloud-provisioning/README>
>>>>>>>> 
>>>>>>>> Please let me know if you need some more info or code walkthrough. Sending you the jetstream openrc credentials separately. 
>>>>>>>> 
>>>>>>>> Thanks.
>>>>>>>> 
>>>>>>>> Regards,
>>>>>>>> Mangirish
>>>>>>>> 
>>>>>>>> On Wed, Apr 20, 2016 at 11:42 AM, Suresh Marru <smarru@apache.org <ma...@apache.org>> wrote:
>>>>>>>> Hi Pankaj,
>>>>>>>> 
>>>>>>>> Please switch to ‘develop’ branch and look for the cloud provisioning module - https://github.com/apache/airavata/tree/develop/modules/cloud/cloud-provisioning <https://github.com/apache/airavata/tree/develop/modules/cloud/cloud-provisioning>
>>>>>>>> 
>>>>>>>> Suresh
>>>>>>>> 
>>>>>>>>> On Apr 20, 2016, at 11:37 AM, Pankaj Saha <psaha4@binghamton.edu <ma...@binghamton.edu>> wrote:
>>>>>>>>> 
>>>>>>>>> Hello Mangirish,
>>>>>>>>> I have latest Airavata mater branch installed in my local system. Can you please give us some clue how to start creating the VMs through you application. Please specify where we can find your corresponding java code. Is it through PGA website?
>>>>>>>>> Please share the required password to me in a separate email.
>>>>>>>>> 
>>>>>>>>> Thanks
>>>>>>>>> Pankaj
>>>>>>>> 
>>>>>>>> 
>>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> -- 
>>>>>> Shameera Rathnayaka
>>>>>> 
>>>>>> 
>>>>> 
>>>> 
>>>> 
>>>> 
>>> 
>> 
>> 
>> 
>> 
> 
> 


Re: Jetstream VM creation through Airavata

Posted by Pankaj Saha <ps...@binghamton.edu>.
Hi Suresh,
I could ssh to VMs but new VMs are not getting any floating public IP.


Thanks
Pankaj

On Fri, Apr 29, 2016 at 8:51 PM, Suresh Marru <sm...@apache.org> wrote:

> Pankaj,
>
> Do you still have the issue?
>
> Suresh
>
> On Apr 28, 2016, at 5:26 PM, Pankaj Saha <ps...@binghamton.edu> wrote:
>
> Details of my VM is as mentioned below:
>
> Name: Mesos Agent
> Floating IPs:149.165.157.247
> size: m1.medium
> key: pankaj SSH key
>
>
> On Thu, Apr 28, 2016 at 5:22 PM, Pankaj Saha <ps...@binghamton.edu>
> wrote:
>
>> Hi
>> I need SSH to get the console access to install required software. I
>> believe SSH server is not running by default in the ubuntu based servers
>> and also I can not access its console through the openstack web UI.
>> Please suggest.
>>
>> Thanks
>> Pankaj
>>
>> On Thu, Apr 28, 2016 at 5:00 PM, Pankaj Saha <ps...@binghamton.edu>
>> wrote:
>>
>>> Hi Suresh,
>>> Yes, it's accessible now. Thanks.
>>>
>>> On Thu, Apr 28, 2016 at 4:39 PM, Suresh Marru <sm...@apache.org> wrote:
>>>
>>>> Pankaj,
>>>>
>>>> Try now.
>>>>
>>>> Suresh
>>>>
>>>> On Apr 28, 2016, at 1:05 PM, Suresh Marru <sm...@apache.org> wrote:
>>>>
>>>> Hi Pankaj,
>>>>
>>>> By default yes they will be accessible from outside. The firewall’s are
>>>> controlled by the security policy and currently both ssh and http are
>>>> accessible widely. There are issues with Open Stack Neutron services and I
>>>> reported them. I will post when the network is back stable.
>>>>
>>>> Suresh
>>>>
>>>> On Apr 28, 2016, at 1:02 PM, Pankaj Saha <ps...@binghamton.edu> wrote:
>>>>
>>>> Hello Devs,
>>>> I have created a VM in openstack through cloud-provisioning module.
>>>> Which returned an VM with floating ip : 149.165.157.215. I was
>>>> expecting that this VM will be accessible through ssh over public ip
>>>> assigned to it. I need ssh access to these VMs for including mesos binaries
>>>> into them so that these images can be used as mesos agents for Gourav's
>>>>  prject.
>>>>
>>>> Please let me know if it is blocked by any firewall and whats the
>>>> process to get access to them.
>>>>
>>>> Thanks
>>>> Pankaj
>>>>
>>>> On Fri, Apr 22, 2016 at 4:43 PM, Pankaj Saha <ps...@binghamton.edu>
>>>> wrote:
>>>>
>>>>> Hi Suresh,
>>>>> Yes, that was the problem. Now it's working.
>>>>> here is the log:
>>>>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl -
>>>>> Keypair created successfully: testKey
>>>>> [main] INFO org.apache.airavata.cloud.test.CloudIntfTest - Keypair
>>>>> created/ retrieved: 83:17:5b:2c:f3:31:06:af:99:c1:c8:8b:62:72:36:35
>>>>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl -
>>>>> Using network subnet-airavata with ID: ad2552d6-1a02-4d6c-9fa4-ad40d93e5423
>>>>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl -
>>>>> New server created with ID: 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>>>>> [main] INFO org.apache.airavata.cloud.test.CloudIntfTest - Server
>>>>> Created: 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>>>>> [main] INFO org.apache.airavata.cloud.test.CloudIntfTest - Waiting for
>>>>> instance to go ACTIVE...
>>>>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl -
>>>>> Server retrieved successfully for ID: 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>>>>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl -
>>>>> true:200:null:ActionResponse{success=true, code=200}
>>>>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl -
>>>>> Floating IP 149.165.156.142 assigned successfully to server with ID:
>>>>> 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>>>>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl -
>>>>> Server retrieved successfully for ID: 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>>>>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl -
>>>>> Server deleted successfully for ID: 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>>>>> [main] INFO org.apache.airavata.cloud.test.CloudIntfTest - Server
>>>>> deleted: 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>>>>> [main] INFO org.apache.airavata.cloud.test.CloudIntfTest - Waiting for
>>>>> instance to terminate...
>>>>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl -
>>>>> Keypair deleted successfully: testKey
>>>>> [main] INFO org.apache.airavata.cloud.test.CloudIntfTest - Keypair
>>>>> deleted: testKey
>>>>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl -
>>>>> Server retrieved successfully for ID: 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>>>>>
>>>>>
>>>>> Thanks
>>>>> Pankaj
>>>>>
>>>>> On Fri, Apr 22, 2016 at 4:15 PM, Suresh Marru <sm...@apache.org>
>>>>> wrote:
>>>>>
>>>>>> I now noticed that you have used OS_PROJECT_DOMAIN_NAME=tacc instead
>>>>>> of OS_PROJECT_DOMAIN_NAME=scigap
>>>>>>
>>>>>> Suresh
>>>>>>
>>>>>> On Apr 22, 2016, at 4:14 PM, Suresh Marru <sm...@apache.org> wrote:
>>>>>>
>>>>>> Hi Pankaj, Mangirish,
>>>>>>
>>>>>> Is this intermittent or do you consistently get authentication
>>>>>> issues? I am attaching my openrc file:
>>>>>>
>>>>>> OS_PROJECT_DOMAIN_NAME=scigap
>>>>>> OS_USER_DOMAIN_NAME=tacc
>>>>>> OS_PROJECT_NAME=scigap
>>>>>> OS_TENANT_NAME=scigap
>>>>>> OS_USERNAME=scigap
>>>>>> OS_PASSWORD=XXXXXXXXXXXXX
>>>>>> OS_AUTH_URL=https://jblb.jetstream-cloud.org:35357/v3
>>>>>> OS_IDENTITY_API_VERSION=3
>>>>>>
>>>>>> # Network Properties
>>>>>> OS_FLOATING_IP_POOL=public
>>>>>> OS_SUBNET_NAME=airavata
>>>>>>
>>>>>> To complicate the puzzle, I am consistently able to launch few
>>>>>> hundred’s of instances within the past day without any issues. I just
>>>>>> checked the code, I am using it out of the box and no local changes.
>>>>>>
>>>>>> Suresh
>>>>>>
>>>>>>
>>>>>> On Apr 22, 2016, at 3:18 PM, Pankaj Saha <ps...@binghamton.edu>
>>>>>> wrote:
>>>>>>
>>>>>> Hello Everyone,
>>>>>>
>>>>>> I had a discussion with Mangirish today morning and we could figure
>>>>>> out through debugging that java code getting authentication exception when
>>>>>> trying to authenticate the user with openstack.
>>>>>> NOVA client for openstack did work well and I have also tested with
>>>>>> credentials to directly login into the portal.
>>>>>> I have replicated the same in another system in my same lab network
>>>>>> and the test case still failing for the same status-401, authentication
>>>>>> error.
>>>>>>
>>>>>> I have followed these below steps:
>>>>>>
>>>>>>    1. generated rsa key
>>>>>>    2. downloaded airavata from git, switched it to "develop" branch
>>>>>>    3. changed the required property values for openstack.
>>>>>>    4. run : mvn clean install from inside the
>>>>>>    cloud/cloud-provisioning module.
>>>>>>
>>>>>> It's definitely not the firewall issue as its failing in the
>>>>>> authentication stage. I am attaching my property file for reference, please
>>>>>> let me know if you find anything wrong in this.
>>>>>> *test_data.properties*
>>>>>>
>>>>>> # Common properties
>>>>>>> publicKeyFile=/home/psaha4/.ssh/id_rsa.pub
>>>>>>> # Jetstream properties
>>>>>>> jetstream_imageId=448636b0-450a-4b49-9bfe-b3135fc443e8
>>>>>>> jetstream_flavorId=3
>>>>>>> OS_PROJECT_DOMAIN_NAME=tacc
>>>>>>> OS_USER_DOMAIN_NAME=tacc
>>>>>>> OS_PROJECT_NAME=scigap
>>>>>>> OS_TENANT_NAME=scigap
>>>>>>> OS_USERNAME=scigap
>>>>>>> OS_PASSWORD=<not exposing the password here>
>>>>>>> OS_AUTH_URL=https://jblb.jetstream-cloud.org:35357/v3
>>>>>>> OS_IDENTITY_API_VERSION=3
>>>>>>> # Network Properties
>>>>>>> OS_FLOATING_IP_POOL=public
>>>>>>> OS_SUBNET_NAME=airavata
>>>>>>
>>>>>>
>>>>>> Can someone send me jetstream_openrc.properties and
>>>>>> test_data.properties file from a working environment in  a separate
>>>>>> email so that I can place them and test from my system once.
>>>>>>
>>>>>> Thanks
>>>>>> Pankaj
>>>>>>
>>>>>>
>>>>>> On Thu, Apr 21, 2016 at 11:43 AM, Pankaj Saha <ps...@binghamton.edu>
>>>>>> wrote:
>>>>>>
>>>>>>> Hi Shameera,
>>>>>>> I have received the password from Mangirish and I am using the same
>>>>>>> details as he has provided.
>>>>>>> Regarding the jetstream keypair, my understanding is, during the
>>>>>>> test run it fetches the public key from the properties file and send it to
>>>>>>> the jetstream servers.  Please let me know how I need to configure it
>>>>>>> separately.
>>>>>>>
>>>>>>> Thanks
>>>>>>> Pankaj
>>>>>>>
>>>>>>> On Wed, Apr 20, 2016 at 8:48 PM, Shameera Rathnayaka <
>>>>>>> shameerainfo@gmail.com> wrote:
>>>>>>>
>>>>>>>> Hi Pankaj,
>>>>>>>>
>>>>>>>> To work with your ssh keys you need to add them to jetstream
>>>>>>>> keypair. Have you done that part?
>>>>>>>>
>>>>>>>> also you are not providing correct the OS_PASSWORD value accordding
>>>>>>>> to above deatils.
>>>>>>>>
>>>>>>>> Shameera.
>>>>>>>>
>>>>>>>>
>>>>>>>> On Wed, Apr 20, 2016 at 3:42 PM Pankaj Saha <ps...@binghamton.edu>
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>>> I have just use maven to build the same project. here is thedetails
>>>>>>>>> # Common properties
>>>>>>>>> publicKeyFile=/home/psaha4/.ssh/id_rsa.pub
>>>>>>>>>
>>>>>>>>> # Jetstream properties
>>>>>>>>> jetstream_imageId=448636b0-450a-4b49-9bfe-b3135fc443e8
>>>>>>>>> jetstream_flavorId=3
>>>>>>>>>
>>>>>>>>> OS_PROJECT_DOMAIN_NAME=tacc
>>>>>>>>> OS_USER_DOMAIN_NAME=tacc
>>>>>>>>> OS_PROJECT_NAME=scigap
>>>>>>>>> OS_TENANT_NAME=scigap
>>>>>>>>> OS_USERNAME=scigap
>>>>>>>>> OS_PASSWORD=<not exposing here>
>>>>>>>>> OS_AUTH_URL=https://jblb.jetstream-cloud.org:35357/v3
>>>>>>>>> OS_IDENTITY_API_VERSION=3
>>>>>>>>>
>>>>>>>>> # Network Properties
>>>>>>>>> OS_FLOATING_IP_POOL=public
>>>>>>>>> OS_SUBNET_NAME=airavata
>>>>>>>>>
>>>>>>>>> The test case error that I am getting for the Test case is al
>>>>>>>>> below:
>>>>>>>>> -------------------------------------------------------
>>>>>>>>>  T E S T S
>>>>>>>>> -------------------------------------------------------
>>>>>>>>> Running org.apache.airavata.cloud.test.CloudIntfTest
>>>>>>>>> AuthenticationException{message=Unauthorized, status=401}
>>>>>>>>> at
>>>>>>>>> org.openstack4j.core.transport.HttpExceptionHandler.mapException(HttpExceptionHandler.java:36)
>>>>>>>>> at
>>>>>>>>> org.openstack4j.core.transport.HttpExceptionHandler.mapException(HttpExceptionHandler.java:23)
>>>>>>>>> at
>>>>>>>>> org.openstack4j.openstack.internal.OSAuthenticator.authenticateV3(OSAuthenticator.java:161)
>>>>>>>>> at
>>>>>>>>> org.openstack4j.openstack.internal.OSAuthenticator.invoke(OSAuthenticator.java:78)
>>>>>>>>> at
>>>>>>>>> org.openstack4j.openstack.client.OSClientBuilder$ClientV3.authenticate(OSClientBuilder.java:163)
>>>>>>>>> at
>>>>>>>>> org.openstack4j.openstack.client.OSClientBuilder$ClientV3.authenticate(OSClientBuilder.java:127)
>>>>>>>>> at
>>>>>>>>> org.apache.airavata.cloud.openstack.OS4JClientProvider.getOSClientV3(OS4JClientProvider.java:86)
>>>>>>>>> at
>>>>>>>>> org.apache.airavata.cloud.openstack.OS4JClientProvider.getOSClient(OS4JClientProvider.java:49)
>>>>>>>>> at
>>>>>>>>> org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl.<init>(OpenstackIntfImpl.java:78)
>>>>>>>>> at
>>>>>>>>> org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:77)
>>>>>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>>>>> at
>>>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>>>>>>>> at
>>>>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>>>>>> at java.lang.reflect.Method.invoke(Method.java:498)
>>>>>>>>> at
>>>>>>>>> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>>>>>>>>> at
>>>>>>>>> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>>>>>>>>> at
>>>>>>>>> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>>>>>>>>> at
>>>>>>>>> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>>>>>>>>> at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>>>>>>>>> at
>>>>>>>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
>>>>>>>>> at
>>>>>>>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
>>>>>>>>> at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>>>>>>>>> at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>>>>>>>>> at
>>>>>>>>> org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>>>>>>>>> at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>>>>>>>>> at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>>>>>>>>> at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>>>>>>>>> at
>>>>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
>>>>>>>>> at
>>>>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
>>>>>>>>> at
>>>>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
>>>>>>>>> at
>>>>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
>>>>>>>>> at
>>>>>>>>> org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
>>>>>>>>> at
>>>>>>>>> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
>>>>>>>>> at
>>>>>>>>> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>>>>>>>>> java.lang.NullPointerException
>>>>>>>>> at
>>>>>>>>> org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl.getKeyPair(OpenstackIntfImpl.java:215)
>>>>>>>>> at
>>>>>>>>> org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:92)
>>>>>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>>>>> at
>>>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>>>>>>>> at
>>>>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>>>>>> at java.lang.reflect.Method.invoke(Method.java:498)
>>>>>>>>> at
>>>>>>>>> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>>>>>>>>> at
>>>>>>>>> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>>>>>>>>> at
>>>>>>>>> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>>>>>>>>> at
>>>>>>>>> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>>>>>>>>> at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>>>>>>>>> at
>>>>>>>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
>>>>>>>>> at
>>>>>>>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
>>>>>>>>> at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>>>>>>>>> at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>>>>>>>>> at
>>>>>>>>> org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>>>>>>>>> at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>>>>>>>>> at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>>>>>>>>> at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>>>>>>>>> at
>>>>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
>>>>>>>>> at
>>>>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
>>>>>>>>> at
>>>>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
>>>>>>>>> at
>>>>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
>>>>>>>>> at
>>>>>>>>> org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
>>>>>>>>> at
>>>>>>>>> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
>>>>>>>>> at
>>>>>>>>> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>>>>>>>>> [main] ERROR org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl
>>>>>>>>> - Failed to retrieve keypair: testKey
>>>>>>>>> java.lang.NullPointerException
>>>>>>>>> at
>>>>>>>>> org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl.createKeyPair(OpenstackIntfImpl.java:197)
>>>>>>>>> at
>>>>>>>>> org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:94)
>>>>>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>>>>> at
>>>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>>>>>>>> at
>>>>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>>>>>> at java.lang.reflect.Method.invoke(Method.java:498)
>>>>>>>>> at
>>>>>>>>> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>>>>>>>>> at
>>>>>>>>> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>>>>>>>>> at
>>>>>>>>> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>>>>>>>>> at
>>>>>>>>> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>>>>>>>>> at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>>>>>>>>> at
>>>>>>>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
>>>>>>>>> at
>>>>>>>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
>>>>>>>>> at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>>>>>>>>> at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>>>>>>>>> at
>>>>>>>>> org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>>>>>>>>> at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>>>>>>>>> at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>>>>>>>>> at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>>>>>>>>> at
>>>>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
>>>>>>>>> at
>>>>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
>>>>>>>>> at
>>>>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
>>>>>>>>> at
>>>>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
>>>>>>>>> at
>>>>>>>>> org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
>>>>>>>>> at
>>>>>>>>> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
>>>>>>>>> at
>>>>>>>>> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>>>>>>>>> [main] ERROR org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl
>>>>>>>>> - Failed to create keypair: testKey
>>>>>>>>> java.lang.NullPointerException
>>>>>>>>> at
>>>>>>>>> org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:97)
>>>>>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>>>>> at
>>>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>>>>>>>> at
>>>>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>>>>>> at java.lang.reflect.Method.invoke(Method.java:498)
>>>>>>>>> at
>>>>>>>>> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>>>>>>>>> at
>>>>>>>>> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>>>>>>>>> at
>>>>>>>>> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>>>>>>>>> at
>>>>>>>>> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>>>>>>>>> at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>>>>>>>>> at
>>>>>>>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
>>>>>>>>> at
>>>>>>>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
>>>>>>>>> at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>>>>>>>>> at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>>>>>>>>> at
>>>>>>>>> org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>>>>>>>>> at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>>>>>>>>> at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>>>>>>>>> at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>>>>>>>>> at
>>>>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
>>>>>>>>> at
>>>>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
>>>>>>>>> at
>>>>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
>>>>>>>>> at
>>>>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
>>>>>>>>> at
>>>>>>>>> org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
>>>>>>>>> at
>>>>>>>>> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
>>>>>>>>> at
>>>>>>>>> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>>>>>>>>> Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed:
>>>>>>>>> 0.913 sec <<< FAILURE! - in org.apache.airavata.cloud.test.CloudIntfTest
>>>>>>>>> jetstreamCreateDeleteServerTest(org.apache.airavata.cloud.test.CloudIntfTest)
>>>>>>>>>  Time elapsed: 0.908 sec  <<< FAILURE!
>>>>>>>>> java.lang.AssertionError: null
>>>>>>>>> at org.junit.Assert.fail(Assert.java:86)
>>>>>>>>> at org.junit.Assert.fail(Assert.java:95)
>>>>>>>>> at
>>>>>>>>> org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:128)
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On Wed, Apr 20, 2016 at 3:36 PM, Suresh Marru <sm...@apache.org>
>>>>>>>>> wrote:
>>>>>>>>>
>>>>>>>>>> Thats nice. Few suggestions:
>>>>>>>>>>
>>>>>>>>>> * Eclipse or IDEA are good to write code, but to build and run
>>>>>>>>>> tests from maven, command line is the best option.
>>>>>>>>>> * Please use the mailing lists as much as possible so rest of us
>>>>>>>>>> can also contribute. If even you use hangouts, please take time to explain
>>>>>>>>>> what the issue is so it engages every one.
>>>>>>>>>>
>>>>>>>>>> I am able to run the test cases and am able to program
>>>>>>>>>> against OpenstackIntfImpl just fine. Can you elaborate on what is the
>>>>>>>>>> authentication issue you are running into?
>>>>>>>>>>
>>>>>>>>>> Suresh
>>>>>>>>>>
>>>>>>>>>> On Apr 20, 2016, at 3:30 PM, Pankaj Saha <ps...@binghamton.edu>
>>>>>>>>>> wrote:
>>>>>>>>>>
>>>>>>>>>> Hi Suresh,
>>>>>>>>>>
>>>>>>>>>> I just had a hangout session with Mangirish regarding the same.
>>>>>>>>>> It looks like an authentication issue with openstack which he is aware of.
>>>>>>>>>> He has explained me his code and I am going to retry fixing the problem.
>>>>>>>>>>
>>>>>>>>>> I did not use maven to build his project instead I have export
>>>>>>>>>> his project as eclipse (mvn eclipse:eclipse) and trying to run the junit
>>>>>>>>>> test.
>>>>>>>>>>
>>>>>>>>>> Will update you once I find something new.
>>>>>>>>>>
>>>>>>>>>> Thanks
>>>>>>>>>> Pankaj
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> On Wed, Apr 20, 2016 at 3:21 PM, Suresh Marru <sm...@apache.org>
>>>>>>>>>> wrote:
>>>>>>>>>>
>>>>>>>>>>> Hi Pankaj,
>>>>>>>>>>>
>>>>>>>>>>> Can you please be more clear? What is failing? Did you try to
>>>>>>>>>>> build it using maven within the cloud provisioning directory itself? Did
>>>>>>>>>>> you change the public key file in the test_data.properties?
>>>>>>>>>>>
>>>>>>>>>>> Suresh
>>>>>>>>>>>
>>>>>>>>>>> On Apr 20, 2016, at 2:56 PM, Pankaj Saha <ps...@binghamton.edu>
>>>>>>>>>>> wrote:
>>>>>>>>>>>
>>>>>>>>>>> I am able to get Mangirish's code in the develop branch. After
>>>>>>>>>>> making it an eclipse project, when I am trying to run it as JUnit test,
>>>>>>>>>>> it's failing.
>>>>>>>>>>> Need help to fix this, possibly some configuration changes in
>>>>>>>>>>> the properties file or similar.
>>>>>>>>>>> It will be great we can talk over a hangout session or at least
>>>>>>>>>>> a chat session to make it work.
>>>>>>>>>>>
>>>>>>>>>>> On Wed, Apr 20, 2016 at 12:05 PM, Mangirish Wagle <
>>>>>>>>>>> vaglomangirish@gmail.com> wrote:
>>>>>>>>>>>
>>>>>>>>>>>> Hi Pankaj,
>>>>>>>>>>>>
>>>>>>>>>>>> You may find a sample test code for the module in this unit
>>>>>>>>>>>> test file:-
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> https://github.com/apache/airavata/blob/develop/modules/cloud/cloud-provisioning/src/test/java/org/apache/airavata/cloud/test/CloudIntfTest.java
>>>>>>>>>>>>
>>>>>>>>>>>> Also, if you want to test run the code, you may please follow
>>>>>>>>>>>> this quick README:-
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> https://github.com/apache/airavata/blob/develop/modules/cloud/cloud-provisioning/README
>>>>>>>>>>>>
>>>>>>>>>>>> Please let me know if you need some more info or code
>>>>>>>>>>>> walkthrough. Sending you the jetstream openrc credentials separately.
>>>>>>>>>>>>
>>>>>>>>>>>> Thanks.
>>>>>>>>>>>>
>>>>>>>>>>>> Regards,
>>>>>>>>>>>> Mangirish
>>>>>>>>>>>>
>>>>>>>>>>>> On Wed, Apr 20, 2016 at 11:42 AM, Suresh Marru <
>>>>>>>>>>>> smarru@apache.org> wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>> Hi Pankaj,
>>>>>>>>>>>>>
>>>>>>>>>>>>> Please switch to ‘develop’ branch and look for the cloud
>>>>>>>>>>>>> provisioning module -
>>>>>>>>>>>>> https://github.com/apache/airavata/tree/develop/modules/cloud/cloud-provisioning
>>>>>>>>>>>>>
>>>>>>>>>>>>> Suresh
>>>>>>>>>>>>>
>>>>>>>>>>>>> On Apr 20, 2016, at 11:37 AM, Pankaj Saha <
>>>>>>>>>>>>> psaha4@binghamton.edu> wrote:
>>>>>>>>>>>>>
>>>>>>>>>>>>> Hello Mangirish,
>>>>>>>>>>>>> I have latest Airavata mater branch installed in my local
>>>>>>>>>>>>> system. Can you please give us some clue how to start creating the VMs
>>>>>>>>>>>>> through you application. Please specify where we can find your
>>>>>>>>>>>>> corresponding java code. Is it through PGA website?
>>>>>>>>>>>>> Please share the required password to me in a separate email.
>>>>>>>>>>>>>
>>>>>>>>>>>>> Thanks
>>>>>>>>>>>>> Pankaj
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>> --
>>>>>>>> Shameera Rathnayaka
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>
>>
>
>

Re: Jetstream VM creation through Airavata

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

Do you still have the issue? 

Suresh
> On Apr 28, 2016, at 5:26 PM, Pankaj Saha <ps...@binghamton.edu> wrote:
> 
> Details of my VM is as mentioned below:
> 
> Name: Mesos Agent
> Floating IPs:149.165.157.247
> size: m1.medium	
> key: pankaj SSH key
> 
> 
> On Thu, Apr 28, 2016 at 5:22 PM, Pankaj Saha <psaha4@binghamton.edu <ma...@binghamton.edu>> wrote:
> Hi 
> I need SSH to get the console access to install required software. I believe SSH server is not running by default in the ubuntu based servers and also I can not access its console through the openstack web UI.
> Please suggest.
> 
> Thanks
> Pankaj 
> 
> On Thu, Apr 28, 2016 at 5:00 PM, Pankaj Saha <psaha4@binghamton.edu <ma...@binghamton.edu>> wrote:
> Hi Suresh,
> Yes, it's accessible now. Thanks.
> 
> On Thu, Apr 28, 2016 at 4:39 PM, Suresh Marru <smarru@apache.org <ma...@apache.org>> wrote:
> Pankaj,
> 
> Try now.
> 
> Suresh
> 
>> On Apr 28, 2016, at 1:05 PM, Suresh Marru <smarru@apache.org <ma...@apache.org>> wrote:
>> 
>> Hi Pankaj,
>> 
>> By default yes they will be accessible from outside. The firewall’s are controlled by the security policy and currently both ssh and http are accessible widely. There are issues with Open Stack Neutron services and I reported them. I will post when the network is back stable. 
>> 
>> Suresh
>> 
>>> On Apr 28, 2016, at 1:02 PM, Pankaj Saha <psaha4@binghamton.edu <ma...@binghamton.edu>> wrote:
>>> 
>>> Hello Devs,
>>> I have created a VM in openstack through cloud-provisioning module. Which returned an VM with floating ip : 149.165.157.215. I was expecting that this VM will be accessible through ssh over public ip assigned to it. I need ssh access to these VMs for including mesos binaries into them so that these images can be used as mesos agents for Gourav's prject.
>>> 
>>> Please let me know if it is blocked by any firewall and whats the process to get access to them.
>>> 
>>> Thanks
>>> Pankaj
>>> 
>>> On Fri, Apr 22, 2016 at 4:43 PM, Pankaj Saha <psaha4@binghamton.edu <ma...@binghamton.edu>> wrote:
>>> Hi Suresh,
>>> Yes, that was the problem. Now it's working.
>>> here is the log:
>>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - Keypair created successfully: testKey
>>> [main] INFO org.apache.airavata.cloud.test.CloudIntfTest - Keypair created/ retrieved: 83:17:5b:2c:f3:31:06:af:99:c1:c8:8b:62:72:36:35
>>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - Using network subnet-airavata with ID: ad2552d6-1a02-4d6c-9fa4-ad40d93e5423
>>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - New server created with ID: 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>>> [main] INFO org.apache.airavata.cloud.test.CloudIntfTest - Server Created: 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>>> [main] INFO org.apache.airavata.cloud.test.CloudIntfTest - Waiting for instance to go ACTIVE...
>>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - Server retrieved successfully for ID: 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - true:200:null:ActionResponse{success=true, code=200}
>>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - Floating IP 149.165.156.142 assigned successfully to server with ID: 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - Server retrieved successfully for ID: 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - Server deleted successfully for ID: 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>>> [main] INFO org.apache.airavata.cloud.test.CloudIntfTest - Server deleted: 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>>> [main] INFO org.apache.airavata.cloud.test.CloudIntfTest - Waiting for instance to terminate...
>>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - Keypair deleted successfully: testKey
>>> [main] INFO org.apache.airavata.cloud.test.CloudIntfTest - Keypair deleted: testKey
>>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - Server retrieved successfully for ID: 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>>> 
>>> 
>>> Thanks
>>> Pankaj
>>> 
>>> On Fri, Apr 22, 2016 at 4:15 PM, Suresh Marru <smarru@apache.org <ma...@apache.org>> wrote:
>>> I now noticed that you have used OS_PROJECT_DOMAIN_NAME=tacc instead of OS_PROJECT_DOMAIN_NAME=scigap
>>> 
>>> Suresh
>>> 
>>>> On Apr 22, 2016, at 4:14 PM, Suresh Marru <smarru@apache.org <ma...@apache.org>> wrote:
>>>> 
>>>> Hi Pankaj, Mangirish,
>>>> 
>>>> Is this intermittent or do you consistently get authentication issues? I am attaching my openrc file:
>>>> 
>>>> OS_PROJECT_DOMAIN_NAME=scigap
>>>> OS_USER_DOMAIN_NAME=tacc
>>>> OS_PROJECT_NAME=scigap
>>>> OS_TENANT_NAME=scigap
>>>> OS_USERNAME=scigap
>>>> OS_PASSWORD=XXXXXXXXXXXXX
>>>> OS_AUTH_URL=https://jblb.jetstream-cloud.org:35357/v3 <https://jblb.jetstream-cloud.org:35357/v3>
>>>> OS_IDENTITY_API_VERSION=3
>>>> 
>>>> # Network Properties
>>>> OS_FLOATING_IP_POOL=public
>>>> OS_SUBNET_NAME=airavata
>>>> 
>>>> To complicate the puzzle, I am consistently able to launch few hundred’s of instances within the past day without any issues. I just checked the code, I am using it out of the box and no local changes. 
>>>> 
>>>> Suresh
>>>> 
>>>> 
>>>>> On Apr 22, 2016, at 3:18 PM, Pankaj Saha <psaha4@binghamton.edu <ma...@binghamton.edu>> wrote:
>>>>> 
>>>>> Hello Everyone,
>>>>> 
>>>>> I had a discussion with Mangirish today morning and we could figure out through debugging that java code getting authentication exception when trying to authenticate the user with openstack. 
>>>>> NOVA client for openstack did work well and I have also tested with credentials to directly login into the portal.
>>>>> I have replicated the same in another system in my same lab network and the test case still failing for the same status-401, authentication error. 
>>>>> 
>>>>> I have followed these below steps:
>>>>> generated rsa key
>>>>> downloaded airavata from git, switched it to "develop" branch
>>>>> changed the required property values for openstack.
>>>>> run : mvn clean install from inside the cloud/cloud-provisioning module.
>>>>> It's definitely not the firewall issue as its failing in the authentication stage. I am attaching my property file for reference, please let me know if you find anything wrong in this.
>>>>> test_data.properties
>>>>> 
>>>>> # Common properties
>>>>> publicKeyFile=/home/psaha4/.ssh/id_rsa.pub
>>>>> # Jetstream properties
>>>>> jetstream_imageId=448636b0-450a-4b49-9bfe-b3135fc443e8
>>>>> jetstream_flavorId=3
>>>>> OS_PROJECT_DOMAIN_NAME=tacc
>>>>> OS_USER_DOMAIN_NAME=tacc
>>>>> OS_PROJECT_NAME=scigap
>>>>> OS_TENANT_NAME=scigap
>>>>> OS_USERNAME=scigap
>>>>> OS_PASSWORD=<not exposing the password here>
>>>>> OS_AUTH_URL=https://jblb.jetstream-cloud.org:35357/v3 <https://jblb.jetstream-cloud.org:35357/v3>
>>>>> OS_IDENTITY_API_VERSION=3
>>>>> # Network Properties
>>>>> OS_FLOATING_IP_POOL=public
>>>>> OS_SUBNET_NAME=airavata
>>>>> 
>>>>> Can someone send me jetstream_openrc.properties and test_data.properties file from a working environment in  a separate email so that I can place them and test from my system once.
>>>>> 
>>>>> Thanks
>>>>> Pankaj
>>>>> 
>>>>> 
>>>>> On Thu, Apr 21, 2016 at 11:43 AM, Pankaj Saha <psaha4@binghamton.edu <ma...@binghamton.edu>> wrote:
>>>>> Hi Shameera,
>>>>> I have received the password from Mangirish and I am using the same details as he has provided.
>>>>> Regarding the jetstream keypair, my understanding is, during the test run it fetches the public key from the properties file and send it to the jetstream servers.  Please let me know how I need to configure it separately.
>>>>> 
>>>>> Thanks
>>>>> Pankaj
>>>>> 
>>>>> On Wed, Apr 20, 2016 at 8:48 PM, Shameera Rathnayaka <shameerainfo@gmail.com <ma...@gmail.com>> wrote:
>>>>> Hi Pankaj,
>>>>> 
>>>>> To work with your ssh keys you need to add them to jetstream keypair. Have you done that part? 
>>>>> 
>>>>> also you are not providing correct the OS_PASSWORD value accordding to above deatils.
>>>>> 
>>>>> Shameera.
>>>>> 
>>>>> 
>>>>> On Wed, Apr 20, 2016 at 3:42 PM Pankaj Saha <psaha4@binghamton.edu <ma...@binghamton.edu>> wrote:
>>>>> I have just use maven to build the same project. here is thedetails
>>>>> # Common properties
>>>>> publicKeyFile=/home/psaha4/.ssh/id_rsa.pub
>>>>> 
>>>>> # Jetstream properties
>>>>> jetstream_imageId=448636b0-450a-4b49-9bfe-b3135fc443e8
>>>>> jetstream_flavorId=3
>>>>> 
>>>>> OS_PROJECT_DOMAIN_NAME=tacc
>>>>> OS_USER_DOMAIN_NAME=tacc
>>>>> OS_PROJECT_NAME=scigap
>>>>> OS_TENANT_NAME=scigap
>>>>> OS_USERNAME=scigap
>>>>> OS_PASSWORD=<not exposing here>
>>>>> OS_AUTH_URL=https://jblb.jetstream-cloud.org:35357/v3 <https://jblb.jetstream-cloud.org:35357/v3>
>>>>> OS_IDENTITY_API_VERSION=3
>>>>> 
>>>>> # Network Properties
>>>>> OS_FLOATING_IP_POOL=public
>>>>> OS_SUBNET_NAME=airavata
>>>>> 
>>>>> The test case error that I am getting for the Test case is al below:
>>>>> -------------------------------------------------------
>>>>>  T E S T S
>>>>> -------------------------------------------------------
>>>>> Running org.apache.airavata.cloud.test.CloudIntfTest
>>>>> AuthenticationException{message=Unauthorized, status=401}
>>>>> 	at org.openstack4j.core.transport.HttpExceptionHandler.mapException(HttpExceptionHandler.java:36)
>>>>> 	at org.openstack4j.core.transport.HttpExceptionHandler.mapException(HttpExceptionHandler.java:23)
>>>>> 	at org.openstack4j.openstack.internal.OSAuthenticator.authenticateV3(OSAuthenticator.java:161)
>>>>> 	at org.openstack4j.openstack.internal.OSAuthenticator.invoke(OSAuthenticator.java:78)
>>>>> 	at org.openstack4j.openstack.client.OSClientBuilder$ClientV3.authenticate(OSClientBuilder.java:163)
>>>>> 	at org.openstack4j.openstack.client.OSClientBuilder$ClientV3.authenticate(OSClientBuilder.java:127)
>>>>> 	at org.apache.airavata.cloud.openstack.OS4JClientProvider.getOSClientV3(OS4JClientProvider.java:86)
>>>>> 	at org.apache.airavata.cloud.openstack.OS4JClientProvider.getOSClient(OS4JClientProvider.java:49)
>>>>> 	at org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl.<init>(OpenstackIntfImpl.java:78)
>>>>> 	at org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:77)
>>>>> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>>>> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>> 	at java.lang.reflect.Method.invoke(Method.java:498)
>>>>> 	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>>>>> 	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>>>>> 	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>>>>> 	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>>>>> 	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>>>>> 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
>>>>> 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
>>>>> 	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>>>>> 	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>>>>> 	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>>>>> 	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>>>>> 	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>>>>> 	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>>>>> 	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
>>>>> 	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
>>>>> 	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
>>>>> 	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
>>>>> 	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
>>>>> 	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
>>>>> 	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>>>>> java.lang.NullPointerException
>>>>> 	at org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl.getKeyPair(OpenstackIntfImpl.java:215)
>>>>> 	at org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:92)
>>>>> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>>>> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>> 	at java.lang.reflect.Method.invoke(Method.java:498)
>>>>> 	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>>>>> 	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>>>>> 	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>>>>> 	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>>>>> 	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>>>>> 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
>>>>> 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
>>>>> 	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>>>>> 	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>>>>> 	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>>>>> 	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>>>>> 	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>>>>> 	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>>>>> 	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
>>>>> 	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
>>>>> 	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
>>>>> 	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
>>>>> 	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
>>>>> 	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
>>>>> 	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>>>>> [main] ERROR org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - Failed to retrieve keypair: testKey
>>>>> java.lang.NullPointerException
>>>>> 	at org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl.createKeyPair(OpenstackIntfImpl.java:197)
>>>>> 	at org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:94)
>>>>> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>>>> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>> 	at java.lang.reflect.Method.invoke(Method.java:498)
>>>>> 	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>>>>> 	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>>>>> 	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>>>>> 	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>>>>> 	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>>>>> 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
>>>>> 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
>>>>> 	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>>>>> 	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>>>>> 	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>>>>> 	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>>>>> 	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>>>>> 	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>>>>> 	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
>>>>> 	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
>>>>> 	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
>>>>> 	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
>>>>> 	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
>>>>> 	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
>>>>> 	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>>>>> [main] ERROR org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - Failed to create keypair: testKey
>>>>> java.lang.NullPointerException
>>>>> 	at org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:97)
>>>>> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>>>> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>> 	at java.lang.reflect.Method.invoke(Method.java:498)
>>>>> 	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>>>>> 	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>>>>> 	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>>>>> 	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>>>>> 	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>>>>> 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
>>>>> 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
>>>>> 	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>>>>> 	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>>>>> 	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>>>>> 	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>>>>> 	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>>>>> 	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>>>>> 	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
>>>>> 	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
>>>>> 	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
>>>>> 	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
>>>>> 	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
>>>>> 	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
>>>>> 	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>>>>> Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.913 sec <<< FAILURE! - in org.apache.airavata.cloud.test.CloudIntfTest
>>>>> jetstreamCreateDeleteServerTest(org.apache.airavata.cloud.test.CloudIntfTest)  Time elapsed: 0.908 sec  <<< FAILURE!
>>>>> java.lang.AssertionError: null
>>>>> 	at org.junit.Assert.fail(Assert.java:86)
>>>>> 	at org.junit.Assert.fail(Assert.java:95)
>>>>> 	at org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:128)
>>>>> 
>>>>> 
>>>>> 
>>>>> On Wed, Apr 20, 2016 at 3:36 PM, Suresh Marru <smarru@apache.org <ma...@apache.org>> wrote:
>>>>> Thats nice. Few suggestions:
>>>>> 
>>>>> * Eclipse or IDEA are good to write code, but to build and run tests from maven, command line is the best option. 
>>>>> * Please use the mailing lists as much as possible so rest of us can also contribute. If even you use hangouts, please take time to explain what the issue is so it engages every one. 
>>>>> 
>>>>> I am able to run the test cases and am able to program against OpenstackIntfImpl just fine. Can you elaborate on what is the authentication issue you are running into? 
>>>>> 
>>>>> Suresh
>>>>> 
>>>>>> On Apr 20, 2016, at 3:30 PM, Pankaj Saha <psaha4@binghamton.edu <ma...@binghamton.edu>> wrote:
>>>>>> 
>>>>>> Hi Suresh, 
>>>>>> 
>>>>>> I just had a hangout session with Mangirish regarding the same. It looks like an authentication issue with openstack which he is aware of. He has explained me his code and I am going to retry fixing the problem.
>>>>>> 
>>>>>> I did not use maven to build his project instead I have export his project as eclipse (mvn eclipse:eclipse) and trying to run the junit test.
>>>>>> 
>>>>>> Will update you once I find something new.
>>>>>> 
>>>>>> Thanks
>>>>>> Pankaj
>>>>>> 
>>>>>> 
>>>>>> On Wed, Apr 20, 2016 at 3:21 PM, Suresh Marru <smarru@apache.org <ma...@apache.org>> wrote:
>>>>>> Hi Pankaj,
>>>>>> 
>>>>>> Can you please be more clear? What is failing? Did you try to build it using maven within the cloud provisioning directory itself? Did you change the public key file in the test_data.properties? 
>>>>>> 
>>>>>> Suresh
>>>>>> 
>>>>>>> On Apr 20, 2016, at 2:56 PM, Pankaj Saha <psaha4@binghamton.edu <ma...@binghamton.edu>> wrote:
>>>>>>> 
>>>>>>> I am able to get Mangirish's code in the develop branch. After making it an eclipse project, when I am trying to run it as JUnit test, it's failing.
>>>>>>> Need help to fix this, possibly some configuration changes in the properties file or similar.
>>>>>>> It will be great we can talk over a hangout session or at least a chat session to make it work.
>>>>>>> 
>>>>>>> On Wed, Apr 20, 2016 at 12:05 PM, Mangirish Wagle <vaglomangirish@gmail.com <ma...@gmail.com>> wrote:
>>>>>>> Hi Pankaj,
>>>>>>> 
>>>>>>> You may find a sample test code for the module in this unit test file:-
>>>>>>> 
>>>>>>> https://github.com/apache/airavata/blob/develop/modules/cloud/cloud-provisioning/src/test/java/org/apache/airavata/cloud/test/CloudIntfTest.java <https://github.com/apache/airavata/blob/develop/modules/cloud/cloud-provisioning/src/test/java/org/apache/airavata/cloud/test/CloudIntfTest.java>
>>>>>>> 
>>>>>>> Also, if you want to test run the code, you may please follow this quick README:-
>>>>>>> 
>>>>>>> https://github.com/apache/airavata/blob/develop/modules/cloud/cloud-provisioning/README <https://github.com/apache/airavata/blob/develop/modules/cloud/cloud-provisioning/README>
>>>>>>> 
>>>>>>> Please let me know if you need some more info or code walkthrough. Sending you the jetstream openrc credentials separately. 
>>>>>>> 
>>>>>>> Thanks.
>>>>>>> 
>>>>>>> Regards,
>>>>>>> Mangirish
>>>>>>> 
>>>>>>> On Wed, Apr 20, 2016 at 11:42 AM, Suresh Marru <smarru@apache.org <ma...@apache.org>> wrote:
>>>>>>> Hi Pankaj,
>>>>>>> 
>>>>>>> Please switch to ‘develop’ branch and look for the cloud provisioning module - https://github.com/apache/airavata/tree/develop/modules/cloud/cloud-provisioning <https://github.com/apache/airavata/tree/develop/modules/cloud/cloud-provisioning>
>>>>>>> 
>>>>>>> Suresh
>>>>>>> 
>>>>>>>> On Apr 20, 2016, at 11:37 AM, Pankaj Saha <psaha4@binghamton.edu <ma...@binghamton.edu>> wrote:
>>>>>>>> 
>>>>>>>> Hello Mangirish,
>>>>>>>> I have latest Airavata mater branch installed in my local system. Can you please give us some clue how to start creating the VMs through you application. Please specify where we can find your corresponding java code. Is it through PGA website?
>>>>>>>> Please share the required password to me in a separate email.
>>>>>>>> 
>>>>>>>> Thanks
>>>>>>>> Pankaj
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>> 
>>>>>> 
>>>>> 
>>>>> 
>>>>> -- 
>>>>> Shameera Rathnayaka
>>>>> 
>>>>> 
>>>> 
>>> 
>>> 
>>> 
>> 
> 
> 
> 
> 


Re: Jetstream VM creation through Airavata

Posted by Pankaj Saha <ps...@binghamton.edu>.
Details of my VM is as mentioned below:

Name: Mesos Agent
Floating IPs:149.165.157.247
size: m1.medium
key: pankaj SSH key


On Thu, Apr 28, 2016 at 5:22 PM, Pankaj Saha <ps...@binghamton.edu> wrote:

> Hi
> I need SSH to get the console access to install required software. I
> believe SSH server is not running by default in the ubuntu based servers
> and also I can not access its console through the openstack web UI.
> Please suggest.
>
> Thanks
> Pankaj
>
> On Thu, Apr 28, 2016 at 5:00 PM, Pankaj Saha <ps...@binghamton.edu>
> wrote:
>
>> Hi Suresh,
>> Yes, it's accessible now. Thanks.
>>
>> On Thu, Apr 28, 2016 at 4:39 PM, Suresh Marru <sm...@apache.org> wrote:
>>
>>> Pankaj,
>>>
>>> Try now.
>>>
>>> Suresh
>>>
>>> On Apr 28, 2016, at 1:05 PM, Suresh Marru <sm...@apache.org> wrote:
>>>
>>> Hi Pankaj,
>>>
>>> By default yes they will be accessible from outside. The firewall’s are
>>> controlled by the security policy and currently both ssh and http are
>>> accessible widely. There are issues with Open Stack Neutron services and I
>>> reported them. I will post when the network is back stable.
>>>
>>> Suresh
>>>
>>> On Apr 28, 2016, at 1:02 PM, Pankaj Saha <ps...@binghamton.edu> wrote:
>>>
>>> Hello Devs,
>>> I have created a VM in openstack through cloud-provisioning module.
>>> Which returned an VM with floating ip : 149.165.157.215. I was
>>> expecting that this VM will be accessible through ssh over public ip
>>> assigned to it. I need ssh access to these VMs for including mesos binaries
>>> into them so that these images can be used as mesos agents for Gourav's
>>>  prject.
>>>
>>> Please let me know if it is blocked by any firewall and whats the
>>> process to get access to them.
>>>
>>> Thanks
>>> Pankaj
>>>
>>> On Fri, Apr 22, 2016 at 4:43 PM, Pankaj Saha <ps...@binghamton.edu>
>>> wrote:
>>>
>>>> Hi Suresh,
>>>> Yes, that was the problem. Now it's working.
>>>> here is the log:
>>>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl -
>>>> Keypair created successfully: testKey
>>>> [main] INFO org.apache.airavata.cloud.test.CloudIntfTest - Keypair
>>>> created/ retrieved: 83:17:5b:2c:f3:31:06:af:99:c1:c8:8b:62:72:36:35
>>>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl -
>>>> Using network subnet-airavata with ID: ad2552d6-1a02-4d6c-9fa4-ad40d93e5423
>>>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - New
>>>> server created with ID: 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>>>> [main] INFO org.apache.airavata.cloud.test.CloudIntfTest - Server
>>>> Created: 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>>>> [main] INFO org.apache.airavata.cloud.test.CloudIntfTest - Waiting for
>>>> instance to go ACTIVE...
>>>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl -
>>>> Server retrieved successfully for ID: 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>>>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl -
>>>> true:200:null:ActionResponse{success=true, code=200}
>>>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl -
>>>> Floating IP 149.165.156.142 assigned successfully to server with ID:
>>>> 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>>>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl -
>>>> Server retrieved successfully for ID: 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>>>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl -
>>>> Server deleted successfully for ID: 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>>>> [main] INFO org.apache.airavata.cloud.test.CloudIntfTest - Server
>>>> deleted: 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>>>> [main] INFO org.apache.airavata.cloud.test.CloudIntfTest - Waiting for
>>>> instance to terminate...
>>>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl -
>>>> Keypair deleted successfully: testKey
>>>> [main] INFO org.apache.airavata.cloud.test.CloudIntfTest - Keypair
>>>> deleted: testKey
>>>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl -
>>>> Server retrieved successfully for ID: 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>>>>
>>>>
>>>> Thanks
>>>> Pankaj
>>>>
>>>> On Fri, Apr 22, 2016 at 4:15 PM, Suresh Marru <sm...@apache.org>
>>>> wrote:
>>>>
>>>>> I now noticed that you have used OS_PROJECT_DOMAIN_NAME=tacc instead
>>>>> of OS_PROJECT_DOMAIN_NAME=scigap
>>>>>
>>>>> Suresh
>>>>>
>>>>> On Apr 22, 2016, at 4:14 PM, Suresh Marru <sm...@apache.org> wrote:
>>>>>
>>>>> Hi Pankaj, Mangirish,
>>>>>
>>>>> Is this intermittent or do you consistently get authentication issues?
>>>>> I am attaching my openrc file:
>>>>>
>>>>> OS_PROJECT_DOMAIN_NAME=scigap
>>>>> OS_USER_DOMAIN_NAME=tacc
>>>>> OS_PROJECT_NAME=scigap
>>>>> OS_TENANT_NAME=scigap
>>>>> OS_USERNAME=scigap
>>>>> OS_PASSWORD=XXXXXXXXXXXXX
>>>>> OS_AUTH_URL=https://jblb.jetstream-cloud.org:35357/v3
>>>>> OS_IDENTITY_API_VERSION=3
>>>>>
>>>>> # Network Properties
>>>>> OS_FLOATING_IP_POOL=public
>>>>> OS_SUBNET_NAME=airavata
>>>>>
>>>>> To complicate the puzzle, I am consistently able to launch few
>>>>> hundred’s of instances within the past day without any issues. I just
>>>>> checked the code, I am using it out of the box and no local changes.
>>>>>
>>>>> Suresh
>>>>>
>>>>>
>>>>> On Apr 22, 2016, at 3:18 PM, Pankaj Saha <ps...@binghamton.edu>
>>>>> wrote:
>>>>>
>>>>> Hello Everyone,
>>>>>
>>>>> I had a discussion with Mangirish today morning and we could figure
>>>>> out through debugging that java code getting authentication exception when
>>>>> trying to authenticate the user with openstack.
>>>>> NOVA client for openstack did work well and I have also tested with
>>>>> credentials to directly login into the portal.
>>>>> I have replicated the same in another system in my same lab network
>>>>> and the test case still failing for the same status-401, authentication
>>>>> error.
>>>>>
>>>>> I have followed these below steps:
>>>>>
>>>>>    1. generated rsa key
>>>>>    2. downloaded airavata from git, switched it to "develop" branch
>>>>>    3. changed the required property values for openstack.
>>>>>    4. run : mvn clean install from inside the
>>>>>    cloud/cloud-provisioning module.
>>>>>
>>>>> It's definitely not the firewall issue as its failing in the
>>>>> authentication stage. I am attaching my property file for reference, please
>>>>> let me know if you find anything wrong in this.
>>>>> *test_data.properties*
>>>>>
>>>>> # Common properties
>>>>>> publicKeyFile=/home/psaha4/.ssh/id_rsa.pub
>>>>>> # Jetstream properties
>>>>>> jetstream_imageId=448636b0-450a-4b49-9bfe-b3135fc443e8
>>>>>> jetstream_flavorId=3
>>>>>> OS_PROJECT_DOMAIN_NAME=tacc
>>>>>> OS_USER_DOMAIN_NAME=tacc
>>>>>> OS_PROJECT_NAME=scigap
>>>>>> OS_TENANT_NAME=scigap
>>>>>> OS_USERNAME=scigap
>>>>>> OS_PASSWORD=<not exposing the password here>
>>>>>> OS_AUTH_URL=https://jblb.jetstream-cloud.org:35357/v3
>>>>>> OS_IDENTITY_API_VERSION=3
>>>>>> # Network Properties
>>>>>> OS_FLOATING_IP_POOL=public
>>>>>> OS_SUBNET_NAME=airavata
>>>>>
>>>>>
>>>>> Can someone send me jetstream_openrc.properties and
>>>>> test_data.properties file from a working environment in  a separate
>>>>> email so that I can place them and test from my system once.
>>>>>
>>>>> Thanks
>>>>> Pankaj
>>>>>
>>>>>
>>>>> On Thu, Apr 21, 2016 at 11:43 AM, Pankaj Saha <ps...@binghamton.edu>
>>>>> wrote:
>>>>>
>>>>>> Hi Shameera,
>>>>>> I have received the password from Mangirish and I am using the same
>>>>>> details as he has provided.
>>>>>> Regarding the jetstream keypair, my understanding is, during the test
>>>>>> run it fetches the public key from the properties file and send it to the
>>>>>> jetstream servers.  Please let me know how I need to configure it
>>>>>> separately.
>>>>>>
>>>>>> Thanks
>>>>>> Pankaj
>>>>>>
>>>>>> On Wed, Apr 20, 2016 at 8:48 PM, Shameera Rathnayaka <
>>>>>> shameerainfo@gmail.com> wrote:
>>>>>>
>>>>>>> Hi Pankaj,
>>>>>>>
>>>>>>> To work with your ssh keys you need to add them to jetstream
>>>>>>> keypair. Have you done that part?
>>>>>>>
>>>>>>> also you are not providing correct the OS_PASSWORD value accordding
>>>>>>> to above deatils.
>>>>>>>
>>>>>>> Shameera.
>>>>>>>
>>>>>>>
>>>>>>> On Wed, Apr 20, 2016 at 3:42 PM Pankaj Saha <ps...@binghamton.edu>
>>>>>>> wrote:
>>>>>>>
>>>>>>>> I have just use maven to build the same project. here is thedetails
>>>>>>>> # Common properties
>>>>>>>> publicKeyFile=/home/psaha4/.ssh/id_rsa.pub
>>>>>>>>
>>>>>>>> # Jetstream properties
>>>>>>>> jetstream_imageId=448636b0-450a-4b49-9bfe-b3135fc443e8
>>>>>>>> jetstream_flavorId=3
>>>>>>>>
>>>>>>>> OS_PROJECT_DOMAIN_NAME=tacc
>>>>>>>> OS_USER_DOMAIN_NAME=tacc
>>>>>>>> OS_PROJECT_NAME=scigap
>>>>>>>> OS_TENANT_NAME=scigap
>>>>>>>> OS_USERNAME=scigap
>>>>>>>> OS_PASSWORD=<not exposing here>
>>>>>>>> OS_AUTH_URL=https://jblb.jetstream-cloud.org:35357/v3
>>>>>>>> OS_IDENTITY_API_VERSION=3
>>>>>>>>
>>>>>>>> # Network Properties
>>>>>>>> OS_FLOATING_IP_POOL=public
>>>>>>>> OS_SUBNET_NAME=airavata
>>>>>>>>
>>>>>>>> The test case error that I am getting for the Test case is al below:
>>>>>>>> -------------------------------------------------------
>>>>>>>>  T E S T S
>>>>>>>> -------------------------------------------------------
>>>>>>>> Running org.apache.airavata.cloud.test.CloudIntfTest
>>>>>>>> AuthenticationException{message=Unauthorized, status=401}
>>>>>>>> at
>>>>>>>> org.openstack4j.core.transport.HttpExceptionHandler.mapException(HttpExceptionHandler.java:36)
>>>>>>>> at
>>>>>>>> org.openstack4j.core.transport.HttpExceptionHandler.mapException(HttpExceptionHandler.java:23)
>>>>>>>> at
>>>>>>>> org.openstack4j.openstack.internal.OSAuthenticator.authenticateV3(OSAuthenticator.java:161)
>>>>>>>> at
>>>>>>>> org.openstack4j.openstack.internal.OSAuthenticator.invoke(OSAuthenticator.java:78)
>>>>>>>> at
>>>>>>>> org.openstack4j.openstack.client.OSClientBuilder$ClientV3.authenticate(OSClientBuilder.java:163)
>>>>>>>> at
>>>>>>>> org.openstack4j.openstack.client.OSClientBuilder$ClientV3.authenticate(OSClientBuilder.java:127)
>>>>>>>> at
>>>>>>>> org.apache.airavata.cloud.openstack.OS4JClientProvider.getOSClientV3(OS4JClientProvider.java:86)
>>>>>>>> at
>>>>>>>> org.apache.airavata.cloud.openstack.OS4JClientProvider.getOSClient(OS4JClientProvider.java:49)
>>>>>>>> at
>>>>>>>> org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl.<init>(OpenstackIntfImpl.java:78)
>>>>>>>> at
>>>>>>>> org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:77)
>>>>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>>>> at
>>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>>>>>>> at
>>>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>>>>> at java.lang.reflect.Method.invoke(Method.java:498)
>>>>>>>> at
>>>>>>>> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>>>>>>>> at
>>>>>>>> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>>>>>>>> at
>>>>>>>> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>>>>>>>> at
>>>>>>>> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>>>>>>>> at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>>>>>>>> at
>>>>>>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
>>>>>>>> at
>>>>>>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
>>>>>>>> at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>>>>>>>> at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>>>>>>>> at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>>>>>>>> at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>>>>>>>> at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>>>>>>>> at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>>>>>>>> at
>>>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
>>>>>>>> at
>>>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
>>>>>>>> at
>>>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
>>>>>>>> at
>>>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
>>>>>>>> at
>>>>>>>> org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
>>>>>>>> at
>>>>>>>> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
>>>>>>>> at
>>>>>>>> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>>>>>>>> java.lang.NullPointerException
>>>>>>>> at
>>>>>>>> org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl.getKeyPair(OpenstackIntfImpl.java:215)
>>>>>>>> at
>>>>>>>> org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:92)
>>>>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>>>> at
>>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>>>>>>> at
>>>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>>>>> at java.lang.reflect.Method.invoke(Method.java:498)
>>>>>>>> at
>>>>>>>> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>>>>>>>> at
>>>>>>>> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>>>>>>>> at
>>>>>>>> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>>>>>>>> at
>>>>>>>> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>>>>>>>> at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>>>>>>>> at
>>>>>>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
>>>>>>>> at
>>>>>>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
>>>>>>>> at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>>>>>>>> at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>>>>>>>> at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>>>>>>>> at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>>>>>>>> at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>>>>>>>> at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>>>>>>>> at
>>>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
>>>>>>>> at
>>>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
>>>>>>>> at
>>>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
>>>>>>>> at
>>>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
>>>>>>>> at
>>>>>>>> org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
>>>>>>>> at
>>>>>>>> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
>>>>>>>> at
>>>>>>>> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>>>>>>>> [main] ERROR org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl
>>>>>>>> - Failed to retrieve keypair: testKey
>>>>>>>> java.lang.NullPointerException
>>>>>>>> at
>>>>>>>> org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl.createKeyPair(OpenstackIntfImpl.java:197)
>>>>>>>> at
>>>>>>>> org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:94)
>>>>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>>>> at
>>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>>>>>>> at
>>>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>>>>> at java.lang.reflect.Method.invoke(Method.java:498)
>>>>>>>> at
>>>>>>>> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>>>>>>>> at
>>>>>>>> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>>>>>>>> at
>>>>>>>> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>>>>>>>> at
>>>>>>>> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>>>>>>>> at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>>>>>>>> at
>>>>>>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
>>>>>>>> at
>>>>>>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
>>>>>>>> at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>>>>>>>> at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>>>>>>>> at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>>>>>>>> at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>>>>>>>> at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>>>>>>>> at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>>>>>>>> at
>>>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
>>>>>>>> at
>>>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
>>>>>>>> at
>>>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
>>>>>>>> at
>>>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
>>>>>>>> at
>>>>>>>> org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
>>>>>>>> at
>>>>>>>> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
>>>>>>>> at
>>>>>>>> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>>>>>>>> [main] ERROR org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl
>>>>>>>> - Failed to create keypair: testKey
>>>>>>>> java.lang.NullPointerException
>>>>>>>> at
>>>>>>>> org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:97)
>>>>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>>>> at
>>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>>>>>>> at
>>>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>>>>> at java.lang.reflect.Method.invoke(Method.java:498)
>>>>>>>> at
>>>>>>>> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>>>>>>>> at
>>>>>>>> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>>>>>>>> at
>>>>>>>> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>>>>>>>> at
>>>>>>>> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>>>>>>>> at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>>>>>>>> at
>>>>>>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
>>>>>>>> at
>>>>>>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
>>>>>>>> at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>>>>>>>> at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>>>>>>>> at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>>>>>>>> at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>>>>>>>> at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>>>>>>>> at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>>>>>>>> at
>>>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
>>>>>>>> at
>>>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
>>>>>>>> at
>>>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
>>>>>>>> at
>>>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
>>>>>>>> at
>>>>>>>> org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
>>>>>>>> at
>>>>>>>> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
>>>>>>>> at
>>>>>>>> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>>>>>>>> Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed:
>>>>>>>> 0.913 sec <<< FAILURE! - in org.apache.airavata.cloud.test.CloudIntfTest
>>>>>>>> jetstreamCreateDeleteServerTest(org.apache.airavata.cloud.test.CloudIntfTest)
>>>>>>>>  Time elapsed: 0.908 sec  <<< FAILURE!
>>>>>>>> java.lang.AssertionError: null
>>>>>>>> at org.junit.Assert.fail(Assert.java:86)
>>>>>>>> at org.junit.Assert.fail(Assert.java:95)
>>>>>>>> at
>>>>>>>> org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:128)
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> On Wed, Apr 20, 2016 at 3:36 PM, Suresh Marru <sm...@apache.org>
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>>> Thats nice. Few suggestions:
>>>>>>>>>
>>>>>>>>> * Eclipse or IDEA are good to write code, but to build and run
>>>>>>>>> tests from maven, command line is the best option.
>>>>>>>>> * Please use the mailing lists as much as possible so rest of us
>>>>>>>>> can also contribute. If even you use hangouts, please take time to explain
>>>>>>>>> what the issue is so it engages every one.
>>>>>>>>>
>>>>>>>>> I am able to run the test cases and am able to program
>>>>>>>>> against OpenstackIntfImpl just fine. Can you elaborate on what is the
>>>>>>>>> authentication issue you are running into?
>>>>>>>>>
>>>>>>>>> Suresh
>>>>>>>>>
>>>>>>>>> On Apr 20, 2016, at 3:30 PM, Pankaj Saha <ps...@binghamton.edu>
>>>>>>>>> wrote:
>>>>>>>>>
>>>>>>>>> Hi Suresh,
>>>>>>>>>
>>>>>>>>> I just had a hangout session with Mangirish regarding the same. It
>>>>>>>>> looks like an authentication issue with openstack which he is aware of. He
>>>>>>>>> has explained me his code and I am going to retry fixing the problem.
>>>>>>>>>
>>>>>>>>> I did not use maven to build his project instead I have export his
>>>>>>>>> project as eclipse (mvn eclipse:eclipse) and trying to run the junit test.
>>>>>>>>>
>>>>>>>>> Will update you once I find something new.
>>>>>>>>>
>>>>>>>>> Thanks
>>>>>>>>> Pankaj
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On Wed, Apr 20, 2016 at 3:21 PM, Suresh Marru <sm...@apache.org>
>>>>>>>>> wrote:
>>>>>>>>>
>>>>>>>>>> Hi Pankaj,
>>>>>>>>>>
>>>>>>>>>> Can you please be more clear? What is failing? Did you try to
>>>>>>>>>> build it using maven within the cloud provisioning directory itself? Did
>>>>>>>>>> you change the public key file in the test_data.properties?
>>>>>>>>>>
>>>>>>>>>> Suresh
>>>>>>>>>>
>>>>>>>>>> On Apr 20, 2016, at 2:56 PM, Pankaj Saha <ps...@binghamton.edu>
>>>>>>>>>> wrote:
>>>>>>>>>>
>>>>>>>>>> I am able to get Mangirish's code in the develop branch. After
>>>>>>>>>> making it an eclipse project, when I am trying to run it as JUnit test,
>>>>>>>>>> it's failing.
>>>>>>>>>> Need help to fix this, possibly some configuration changes in the
>>>>>>>>>> properties file or similar.
>>>>>>>>>> It will be great we can talk over a hangout session or at least a
>>>>>>>>>> chat session to make it work.
>>>>>>>>>>
>>>>>>>>>> On Wed, Apr 20, 2016 at 12:05 PM, Mangirish Wagle <
>>>>>>>>>> vaglomangirish@gmail.com> wrote:
>>>>>>>>>>
>>>>>>>>>>> Hi Pankaj,
>>>>>>>>>>>
>>>>>>>>>>> You may find a sample test code for the module in this unit test
>>>>>>>>>>> file:-
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> https://github.com/apache/airavata/blob/develop/modules/cloud/cloud-provisioning/src/test/java/org/apache/airavata/cloud/test/CloudIntfTest.java
>>>>>>>>>>>
>>>>>>>>>>> Also, if you want to test run the code, you may please follow
>>>>>>>>>>> this quick README:-
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> https://github.com/apache/airavata/blob/develop/modules/cloud/cloud-provisioning/README
>>>>>>>>>>>
>>>>>>>>>>> Please let me know if you need some more info or code
>>>>>>>>>>> walkthrough. Sending you the jetstream openrc credentials separately.
>>>>>>>>>>>
>>>>>>>>>>> Thanks.
>>>>>>>>>>>
>>>>>>>>>>> Regards,
>>>>>>>>>>> Mangirish
>>>>>>>>>>>
>>>>>>>>>>> On Wed, Apr 20, 2016 at 11:42 AM, Suresh Marru <
>>>>>>>>>>> smarru@apache.org> wrote:
>>>>>>>>>>>
>>>>>>>>>>>> Hi Pankaj,
>>>>>>>>>>>>
>>>>>>>>>>>> Please switch to ‘develop’ branch and look for the cloud
>>>>>>>>>>>> provisioning module -
>>>>>>>>>>>> https://github.com/apache/airavata/tree/develop/modules/cloud/cloud-provisioning
>>>>>>>>>>>>
>>>>>>>>>>>> Suresh
>>>>>>>>>>>>
>>>>>>>>>>>> On Apr 20, 2016, at 11:37 AM, Pankaj Saha <
>>>>>>>>>>>> psaha4@binghamton.edu> wrote:
>>>>>>>>>>>>
>>>>>>>>>>>> Hello Mangirish,
>>>>>>>>>>>> I have latest Airavata mater branch installed in my local
>>>>>>>>>>>> system. Can you please give us some clue how to start creating the VMs
>>>>>>>>>>>> through you application. Please specify where we can find your
>>>>>>>>>>>> corresponding java code. Is it through PGA website?
>>>>>>>>>>>> Please share the required password to me in a separate email.
>>>>>>>>>>>>
>>>>>>>>>>>> Thanks
>>>>>>>>>>>> Pankaj
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>> --
>>>>>>> Shameera Rathnayaka
>>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>
>>>
>>>
>>
>

Re: Jetstream VM creation through Airavata

Posted by Pankaj Saha <ps...@binghamton.edu>.
Hi
I need SSH to get the console access to install required software. I
believe SSH server is not running by default in the ubuntu based servers
and also I can not access its console through the openstack web UI.
Please suggest.

Thanks
Pankaj

On Thu, Apr 28, 2016 at 5:00 PM, Pankaj Saha <ps...@binghamton.edu> wrote:

> Hi Suresh,
> Yes, it's accessible now. Thanks.
>
> On Thu, Apr 28, 2016 at 4:39 PM, Suresh Marru <sm...@apache.org> wrote:
>
>> Pankaj,
>>
>> Try now.
>>
>> Suresh
>>
>> On Apr 28, 2016, at 1:05 PM, Suresh Marru <sm...@apache.org> wrote:
>>
>> Hi Pankaj,
>>
>> By default yes they will be accessible from outside. The firewall’s are
>> controlled by the security policy and currently both ssh and http are
>> accessible widely. There are issues with Open Stack Neutron services and I
>> reported them. I will post when the network is back stable.
>>
>> Suresh
>>
>> On Apr 28, 2016, at 1:02 PM, Pankaj Saha <ps...@binghamton.edu> wrote:
>>
>> Hello Devs,
>> I have created a VM in openstack through cloud-provisioning module. Which
>> returned an VM with floating ip : 149.165.157.215. I was expecting that
>> this VM will be accessible through ssh over public ip assigned to it. I
>> need ssh access to these VMs for including mesos binaries into them so
>> that these images can be used as mesos agents for Gourav's prject.
>>
>> Please let me know if it is blocked by any firewall and whats the process
>> to get access to them.
>>
>> Thanks
>> Pankaj
>>
>> On Fri, Apr 22, 2016 at 4:43 PM, Pankaj Saha <ps...@binghamton.edu>
>> wrote:
>>
>>> Hi Suresh,
>>> Yes, that was the problem. Now it's working.
>>> here is the log:
>>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl -
>>> Keypair created successfully: testKey
>>> [main] INFO org.apache.airavata.cloud.test.CloudIntfTest - Keypair
>>> created/ retrieved: 83:17:5b:2c:f3:31:06:af:99:c1:c8:8b:62:72:36:35
>>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl -
>>> Using network subnet-airavata with ID: ad2552d6-1a02-4d6c-9fa4-ad40d93e5423
>>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - New
>>> server created with ID: 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>>> [main] INFO org.apache.airavata.cloud.test.CloudIntfTest - Server
>>> Created: 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>>> [main] INFO org.apache.airavata.cloud.test.CloudIntfTest - Waiting for
>>> instance to go ACTIVE...
>>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl -
>>> Server retrieved successfully for ID: 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl -
>>> true:200:null:ActionResponse{success=true, code=200}
>>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl -
>>> Floating IP 149.165.156.142 assigned successfully to server with ID:
>>> 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl -
>>> Server retrieved successfully for ID: 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl -
>>> Server deleted successfully for ID: 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>>> [main] INFO org.apache.airavata.cloud.test.CloudIntfTest - Server
>>> deleted: 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>>> [main] INFO org.apache.airavata.cloud.test.CloudIntfTest - Waiting for
>>> instance to terminate...
>>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl -
>>> Keypair deleted successfully: testKey
>>> [main] INFO org.apache.airavata.cloud.test.CloudIntfTest - Keypair
>>> deleted: testKey
>>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl -
>>> Server retrieved successfully for ID: 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>>>
>>>
>>> Thanks
>>> Pankaj
>>>
>>> On Fri, Apr 22, 2016 at 4:15 PM, Suresh Marru <sm...@apache.org> wrote:
>>>
>>>> I now noticed that you have used OS_PROJECT_DOMAIN_NAME=tacc instead
>>>> of OS_PROJECT_DOMAIN_NAME=scigap
>>>>
>>>> Suresh
>>>>
>>>> On Apr 22, 2016, at 4:14 PM, Suresh Marru <sm...@apache.org> wrote:
>>>>
>>>> Hi Pankaj, Mangirish,
>>>>
>>>> Is this intermittent or do you consistently get authentication issues?
>>>> I am attaching my openrc file:
>>>>
>>>> OS_PROJECT_DOMAIN_NAME=scigap
>>>> OS_USER_DOMAIN_NAME=tacc
>>>> OS_PROJECT_NAME=scigap
>>>> OS_TENANT_NAME=scigap
>>>> OS_USERNAME=scigap
>>>> OS_PASSWORD=XXXXXXXXXXXXX
>>>> OS_AUTH_URL=https://jblb.jetstream-cloud.org:35357/v3
>>>> OS_IDENTITY_API_VERSION=3
>>>>
>>>> # Network Properties
>>>> OS_FLOATING_IP_POOL=public
>>>> OS_SUBNET_NAME=airavata
>>>>
>>>> To complicate the puzzle, I am consistently able to launch few
>>>> hundred’s of instances within the past day without any issues. I just
>>>> checked the code, I am using it out of the box and no local changes.
>>>>
>>>> Suresh
>>>>
>>>>
>>>> On Apr 22, 2016, at 3:18 PM, Pankaj Saha <ps...@binghamton.edu> wrote:
>>>>
>>>> Hello Everyone,
>>>>
>>>> I had a discussion with Mangirish today morning and we could figure out
>>>> through debugging that java code getting authentication exception when
>>>> trying to authenticate the user with openstack.
>>>> NOVA client for openstack did work well and I have also tested with
>>>> credentials to directly login into the portal.
>>>> I have replicated the same in another system in my same lab network and
>>>> the test case still failing for the same status-401, authentication error.
>>>>
>>>> I have followed these below steps:
>>>>
>>>>    1. generated rsa key
>>>>    2. downloaded airavata from git, switched it to "develop" branch
>>>>    3. changed the required property values for openstack.
>>>>    4. run : mvn clean install from inside the cloud/cloud-provisioning
>>>>    module.
>>>>
>>>> It's definitely not the firewall issue as its failing in the
>>>> authentication stage. I am attaching my property file for reference, please
>>>> let me know if you find anything wrong in this.
>>>> *test_data.properties*
>>>>
>>>> # Common properties
>>>>> publicKeyFile=/home/psaha4/.ssh/id_rsa.pub
>>>>> # Jetstream properties
>>>>> jetstream_imageId=448636b0-450a-4b49-9bfe-b3135fc443e8
>>>>> jetstream_flavorId=3
>>>>> OS_PROJECT_DOMAIN_NAME=tacc
>>>>> OS_USER_DOMAIN_NAME=tacc
>>>>> OS_PROJECT_NAME=scigap
>>>>> OS_TENANT_NAME=scigap
>>>>> OS_USERNAME=scigap
>>>>> OS_PASSWORD=<not exposing the password here>
>>>>> OS_AUTH_URL=https://jblb.jetstream-cloud.org:35357/v3
>>>>> OS_IDENTITY_API_VERSION=3
>>>>> # Network Properties
>>>>> OS_FLOATING_IP_POOL=public
>>>>> OS_SUBNET_NAME=airavata
>>>>
>>>>
>>>> Can someone send me jetstream_openrc.properties and
>>>> test_data.properties file from a working environment in  a separate
>>>> email so that I can place them and test from my system once.
>>>>
>>>> Thanks
>>>> Pankaj
>>>>
>>>>
>>>> On Thu, Apr 21, 2016 at 11:43 AM, Pankaj Saha <ps...@binghamton.edu>
>>>> wrote:
>>>>
>>>>> Hi Shameera,
>>>>> I have received the password from Mangirish and I am using the same
>>>>> details as he has provided.
>>>>> Regarding the jetstream keypair, my understanding is, during the test
>>>>> run it fetches the public key from the properties file and send it to the
>>>>> jetstream servers.  Please let me know how I need to configure it
>>>>> separately.
>>>>>
>>>>> Thanks
>>>>> Pankaj
>>>>>
>>>>> On Wed, Apr 20, 2016 at 8:48 PM, Shameera Rathnayaka <
>>>>> shameerainfo@gmail.com> wrote:
>>>>>
>>>>>> Hi Pankaj,
>>>>>>
>>>>>> To work with your ssh keys you need to add them to jetstream keypair.
>>>>>> Have you done that part?
>>>>>>
>>>>>> also you are not providing correct the OS_PASSWORD value accordding
>>>>>> to above deatils.
>>>>>>
>>>>>> Shameera.
>>>>>>
>>>>>>
>>>>>> On Wed, Apr 20, 2016 at 3:42 PM Pankaj Saha <ps...@binghamton.edu>
>>>>>> wrote:
>>>>>>
>>>>>>> I have just use maven to build the same project. here is thedetails
>>>>>>> # Common properties
>>>>>>> publicKeyFile=/home/psaha4/.ssh/id_rsa.pub
>>>>>>>
>>>>>>> # Jetstream properties
>>>>>>> jetstream_imageId=448636b0-450a-4b49-9bfe-b3135fc443e8
>>>>>>> jetstream_flavorId=3
>>>>>>>
>>>>>>> OS_PROJECT_DOMAIN_NAME=tacc
>>>>>>> OS_USER_DOMAIN_NAME=tacc
>>>>>>> OS_PROJECT_NAME=scigap
>>>>>>> OS_TENANT_NAME=scigap
>>>>>>> OS_USERNAME=scigap
>>>>>>> OS_PASSWORD=<not exposing here>
>>>>>>> OS_AUTH_URL=https://jblb.jetstream-cloud.org:35357/v3
>>>>>>> OS_IDENTITY_API_VERSION=3
>>>>>>>
>>>>>>> # Network Properties
>>>>>>> OS_FLOATING_IP_POOL=public
>>>>>>> OS_SUBNET_NAME=airavata
>>>>>>>
>>>>>>> The test case error that I am getting for the Test case is al below:
>>>>>>> -------------------------------------------------------
>>>>>>>  T E S T S
>>>>>>> -------------------------------------------------------
>>>>>>> Running org.apache.airavata.cloud.test.CloudIntfTest
>>>>>>> AuthenticationException{message=Unauthorized, status=401}
>>>>>>> at
>>>>>>> org.openstack4j.core.transport.HttpExceptionHandler.mapException(HttpExceptionHandler.java:36)
>>>>>>> at
>>>>>>> org.openstack4j.core.transport.HttpExceptionHandler.mapException(HttpExceptionHandler.java:23)
>>>>>>> at
>>>>>>> org.openstack4j.openstack.internal.OSAuthenticator.authenticateV3(OSAuthenticator.java:161)
>>>>>>> at
>>>>>>> org.openstack4j.openstack.internal.OSAuthenticator.invoke(OSAuthenticator.java:78)
>>>>>>> at
>>>>>>> org.openstack4j.openstack.client.OSClientBuilder$ClientV3.authenticate(OSClientBuilder.java:163)
>>>>>>> at
>>>>>>> org.openstack4j.openstack.client.OSClientBuilder$ClientV3.authenticate(OSClientBuilder.java:127)
>>>>>>> at
>>>>>>> org.apache.airavata.cloud.openstack.OS4JClientProvider.getOSClientV3(OS4JClientProvider.java:86)
>>>>>>> at
>>>>>>> org.apache.airavata.cloud.openstack.OS4JClientProvider.getOSClient(OS4JClientProvider.java:49)
>>>>>>> at
>>>>>>> org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl.<init>(OpenstackIntfImpl.java:78)
>>>>>>> at
>>>>>>> org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:77)
>>>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>>> at
>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>>>>>> at
>>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>>>> at java.lang.reflect.Method.invoke(Method.java:498)
>>>>>>> at
>>>>>>> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>>>>>>> at
>>>>>>> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>>>>>>> at
>>>>>>> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>>>>>>> at
>>>>>>> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>>>>>>> at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>>>>>>> at
>>>>>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
>>>>>>> at
>>>>>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
>>>>>>> at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>>>>>>> at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>>>>>>> at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>>>>>>> at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>>>>>>> at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>>>>>>> at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>>>>>>> at
>>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
>>>>>>> at
>>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
>>>>>>> at
>>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
>>>>>>> at
>>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
>>>>>>> at
>>>>>>> org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
>>>>>>> at
>>>>>>> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
>>>>>>> at
>>>>>>> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>>>>>>> java.lang.NullPointerException
>>>>>>> at
>>>>>>> org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl.getKeyPair(OpenstackIntfImpl.java:215)
>>>>>>> at
>>>>>>> org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:92)
>>>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>>> at
>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>>>>>> at
>>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>>>> at java.lang.reflect.Method.invoke(Method.java:498)
>>>>>>> at
>>>>>>> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>>>>>>> at
>>>>>>> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>>>>>>> at
>>>>>>> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>>>>>>> at
>>>>>>> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>>>>>>> at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>>>>>>> at
>>>>>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
>>>>>>> at
>>>>>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
>>>>>>> at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>>>>>>> at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>>>>>>> at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>>>>>>> at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>>>>>>> at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>>>>>>> at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>>>>>>> at
>>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
>>>>>>> at
>>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
>>>>>>> at
>>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
>>>>>>> at
>>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
>>>>>>> at
>>>>>>> org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
>>>>>>> at
>>>>>>> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
>>>>>>> at
>>>>>>> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>>>>>>> [main] ERROR org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl -
>>>>>>> Failed to retrieve keypair: testKey
>>>>>>> java.lang.NullPointerException
>>>>>>> at
>>>>>>> org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl.createKeyPair(OpenstackIntfImpl.java:197)
>>>>>>> at
>>>>>>> org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:94)
>>>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>>> at
>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>>>>>> at
>>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>>>> at java.lang.reflect.Method.invoke(Method.java:498)
>>>>>>> at
>>>>>>> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>>>>>>> at
>>>>>>> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>>>>>>> at
>>>>>>> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>>>>>>> at
>>>>>>> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>>>>>>> at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>>>>>>> at
>>>>>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
>>>>>>> at
>>>>>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
>>>>>>> at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>>>>>>> at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>>>>>>> at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>>>>>>> at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>>>>>>> at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>>>>>>> at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>>>>>>> at
>>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
>>>>>>> at
>>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
>>>>>>> at
>>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
>>>>>>> at
>>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
>>>>>>> at
>>>>>>> org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
>>>>>>> at
>>>>>>> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
>>>>>>> at
>>>>>>> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>>>>>>> [main] ERROR org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl -
>>>>>>> Failed to create keypair: testKey
>>>>>>> java.lang.NullPointerException
>>>>>>> at
>>>>>>> org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:97)
>>>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>>> at
>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>>>>>> at
>>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>>>> at java.lang.reflect.Method.invoke(Method.java:498)
>>>>>>> at
>>>>>>> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>>>>>>> at
>>>>>>> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>>>>>>> at
>>>>>>> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>>>>>>> at
>>>>>>> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>>>>>>> at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>>>>>>> at
>>>>>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
>>>>>>> at
>>>>>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
>>>>>>> at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>>>>>>> at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>>>>>>> at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>>>>>>> at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>>>>>>> at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>>>>>>> at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>>>>>>> at
>>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
>>>>>>> at
>>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
>>>>>>> at
>>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
>>>>>>> at
>>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
>>>>>>> at
>>>>>>> org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
>>>>>>> at
>>>>>>> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
>>>>>>> at
>>>>>>> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>>>>>>> Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed:
>>>>>>> 0.913 sec <<< FAILURE! - in org.apache.airavata.cloud.test.CloudIntfTest
>>>>>>> jetstreamCreateDeleteServerTest(org.apache.airavata.cloud.test.CloudIntfTest)
>>>>>>>  Time elapsed: 0.908 sec  <<< FAILURE!
>>>>>>> java.lang.AssertionError: null
>>>>>>> at org.junit.Assert.fail(Assert.java:86)
>>>>>>> at org.junit.Assert.fail(Assert.java:95)
>>>>>>> at
>>>>>>> org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:128)
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On Wed, Apr 20, 2016 at 3:36 PM, Suresh Marru <sm...@apache.org>
>>>>>>> wrote:
>>>>>>>
>>>>>>>> Thats nice. Few suggestions:
>>>>>>>>
>>>>>>>> * Eclipse or IDEA are good to write code, but to build and run
>>>>>>>> tests from maven, command line is the best option.
>>>>>>>> * Please use the mailing lists as much as possible so rest of us
>>>>>>>> can also contribute. If even you use hangouts, please take time to explain
>>>>>>>> what the issue is so it engages every one.
>>>>>>>>
>>>>>>>> I am able to run the test cases and am able to program
>>>>>>>> against OpenstackIntfImpl just fine. Can you elaborate on what is the
>>>>>>>> authentication issue you are running into?
>>>>>>>>
>>>>>>>> Suresh
>>>>>>>>
>>>>>>>> On Apr 20, 2016, at 3:30 PM, Pankaj Saha <ps...@binghamton.edu>
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>> Hi Suresh,
>>>>>>>>
>>>>>>>> I just had a hangout session with Mangirish regarding the same. It
>>>>>>>> looks like an authentication issue with openstack which he is aware of. He
>>>>>>>> has explained me his code and I am going to retry fixing the problem.
>>>>>>>>
>>>>>>>> I did not use maven to build his project instead I have export his
>>>>>>>> project as eclipse (mvn eclipse:eclipse) and trying to run the junit test.
>>>>>>>>
>>>>>>>> Will update you once I find something new.
>>>>>>>>
>>>>>>>> Thanks
>>>>>>>> Pankaj
>>>>>>>>
>>>>>>>>
>>>>>>>> On Wed, Apr 20, 2016 at 3:21 PM, Suresh Marru <sm...@apache.org>
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>>> Hi Pankaj,
>>>>>>>>>
>>>>>>>>> Can you please be more clear? What is failing? Did you try to
>>>>>>>>> build it using maven within the cloud provisioning directory itself? Did
>>>>>>>>> you change the public key file in the test_data.properties?
>>>>>>>>>
>>>>>>>>> Suresh
>>>>>>>>>
>>>>>>>>> On Apr 20, 2016, at 2:56 PM, Pankaj Saha <ps...@binghamton.edu>
>>>>>>>>> wrote:
>>>>>>>>>
>>>>>>>>> I am able to get Mangirish's code in the develop branch. After
>>>>>>>>> making it an eclipse project, when I am trying to run it as JUnit test,
>>>>>>>>> it's failing.
>>>>>>>>> Need help to fix this, possibly some configuration changes in the
>>>>>>>>> properties file or similar.
>>>>>>>>> It will be great we can talk over a hangout session or at least a
>>>>>>>>> chat session to make it work.
>>>>>>>>>
>>>>>>>>> On Wed, Apr 20, 2016 at 12:05 PM, Mangirish Wagle <
>>>>>>>>> vaglomangirish@gmail.com> wrote:
>>>>>>>>>
>>>>>>>>>> Hi Pankaj,
>>>>>>>>>>
>>>>>>>>>> You may find a sample test code for the module in this unit test
>>>>>>>>>> file:-
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> https://github.com/apache/airavata/blob/develop/modules/cloud/cloud-provisioning/src/test/java/org/apache/airavata/cloud/test/CloudIntfTest.java
>>>>>>>>>>
>>>>>>>>>> Also, if you want to test run the code, you may please follow
>>>>>>>>>> this quick README:-
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> https://github.com/apache/airavata/blob/develop/modules/cloud/cloud-provisioning/README
>>>>>>>>>>
>>>>>>>>>> Please let me know if you need some more info or code
>>>>>>>>>> walkthrough. Sending you the jetstream openrc credentials separately.
>>>>>>>>>>
>>>>>>>>>> Thanks.
>>>>>>>>>>
>>>>>>>>>> Regards,
>>>>>>>>>> Mangirish
>>>>>>>>>>
>>>>>>>>>> On Wed, Apr 20, 2016 at 11:42 AM, Suresh Marru <smarru@apache.org
>>>>>>>>>> > wrote:
>>>>>>>>>>
>>>>>>>>>>> Hi Pankaj,
>>>>>>>>>>>
>>>>>>>>>>> Please switch to ‘develop’ branch and look for the cloud
>>>>>>>>>>> provisioning module -
>>>>>>>>>>> https://github.com/apache/airavata/tree/develop/modules/cloud/cloud-provisioning
>>>>>>>>>>>
>>>>>>>>>>> Suresh
>>>>>>>>>>>
>>>>>>>>>>> On Apr 20, 2016, at 11:37 AM, Pankaj Saha <ps...@binghamton.edu>
>>>>>>>>>>> wrote:
>>>>>>>>>>>
>>>>>>>>>>> Hello Mangirish,
>>>>>>>>>>> I have latest Airavata mater branch installed in my local
>>>>>>>>>>> system. Can you please give us some clue how to start creating the VMs
>>>>>>>>>>> through you application. Please specify where we can find your
>>>>>>>>>>> corresponding java code. Is it through PGA website?
>>>>>>>>>>> Please share the required password to me in a separate email.
>>>>>>>>>>>
>>>>>>>>>>> Thanks
>>>>>>>>>>> Pankaj
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>> --
>>>>>> Shameera Rathnayaka
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>
>>
>>
>>
>

Re: Jetstream VM creation through Airavata

Posted by Pankaj Saha <ps...@binghamton.edu>.
Hi Suresh,
Yes, it's accessible now. Thanks.

On Thu, Apr 28, 2016 at 4:39 PM, Suresh Marru <sm...@apache.org> wrote:

> Pankaj,
>
> Try now.
>
> Suresh
>
> On Apr 28, 2016, at 1:05 PM, Suresh Marru <sm...@apache.org> wrote:
>
> Hi Pankaj,
>
> By default yes they will be accessible from outside. The firewall’s are
> controlled by the security policy and currently both ssh and http are
> accessible widely. There are issues with Open Stack Neutron services and I
> reported them. I will post when the network is back stable.
>
> Suresh
>
> On Apr 28, 2016, at 1:02 PM, Pankaj Saha <ps...@binghamton.edu> wrote:
>
> Hello Devs,
> I have created a VM in openstack through cloud-provisioning module. Which
> returned an VM with floating ip : 149.165.157.215. I was expecting that
> this VM will be accessible through ssh over public ip assigned to it. I
> need ssh access to these VMs for including mesos binaries into them so
> that these images can be used as mesos agents for Gourav's prject.
>
> Please let me know if it is blocked by any firewall and whats the process
> to get access to them.
>
> Thanks
> Pankaj
>
> On Fri, Apr 22, 2016 at 4:43 PM, Pankaj Saha <ps...@binghamton.edu>
> wrote:
>
>> Hi Suresh,
>> Yes, that was the problem. Now it's working.
>> here is the log:
>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl -
>> Keypair created successfully: testKey
>> [main] INFO org.apache.airavata.cloud.test.CloudIntfTest - Keypair
>> created/ retrieved: 83:17:5b:2c:f3:31:06:af:99:c1:c8:8b:62:72:36:35
>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - Using
>> network subnet-airavata with ID: ad2552d6-1a02-4d6c-9fa4-ad40d93e5423
>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - New
>> server created with ID: 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>> [main] INFO org.apache.airavata.cloud.test.CloudIntfTest - Server
>> Created: 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>> [main] INFO org.apache.airavata.cloud.test.CloudIntfTest - Waiting for
>> instance to go ACTIVE...
>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl -
>> Server retrieved successfully for ID: 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl -
>> true:200:null:ActionResponse{success=true, code=200}
>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl -
>> Floating IP 149.165.156.142 assigned successfully to server with ID:
>> 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl -
>> Server retrieved successfully for ID: 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl -
>> Server deleted successfully for ID: 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>> [main] INFO org.apache.airavata.cloud.test.CloudIntfTest - Server
>> deleted: 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>> [main] INFO org.apache.airavata.cloud.test.CloudIntfTest - Waiting for
>> instance to terminate...
>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl -
>> Keypair deleted successfully: testKey
>> [main] INFO org.apache.airavata.cloud.test.CloudIntfTest - Keypair
>> deleted: testKey
>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl -
>> Server retrieved successfully for ID: 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>>
>>
>> Thanks
>> Pankaj
>>
>> On Fri, Apr 22, 2016 at 4:15 PM, Suresh Marru <sm...@apache.org> wrote:
>>
>>> I now noticed that you have used OS_PROJECT_DOMAIN_NAME=tacc instead
>>> of OS_PROJECT_DOMAIN_NAME=scigap
>>>
>>> Suresh
>>>
>>> On Apr 22, 2016, at 4:14 PM, Suresh Marru <sm...@apache.org> wrote:
>>>
>>> Hi Pankaj, Mangirish,
>>>
>>> Is this intermittent or do you consistently get authentication issues? I
>>> am attaching my openrc file:
>>>
>>> OS_PROJECT_DOMAIN_NAME=scigap
>>> OS_USER_DOMAIN_NAME=tacc
>>> OS_PROJECT_NAME=scigap
>>> OS_TENANT_NAME=scigap
>>> OS_USERNAME=scigap
>>> OS_PASSWORD=XXXXXXXXXXXXX
>>> OS_AUTH_URL=https://jblb.jetstream-cloud.org:35357/v3
>>> OS_IDENTITY_API_VERSION=3
>>>
>>> # Network Properties
>>> OS_FLOATING_IP_POOL=public
>>> OS_SUBNET_NAME=airavata
>>>
>>> To complicate the puzzle, I am consistently able to launch few hundred’s
>>> of instances within the past day without any issues. I just checked the
>>> code, I am using it out of the box and no local changes.
>>>
>>> Suresh
>>>
>>>
>>> On Apr 22, 2016, at 3:18 PM, Pankaj Saha <ps...@binghamton.edu> wrote:
>>>
>>> Hello Everyone,
>>>
>>> I had a discussion with Mangirish today morning and we could figure out
>>> through debugging that java code getting authentication exception when
>>> trying to authenticate the user with openstack.
>>> NOVA client for openstack did work well and I have also tested with
>>> credentials to directly login into the portal.
>>> I have replicated the same in another system in my same lab network and
>>> the test case still failing for the same status-401, authentication error.
>>>
>>> I have followed these below steps:
>>>
>>>    1. generated rsa key
>>>    2. downloaded airavata from git, switched it to "develop" branch
>>>    3. changed the required property values for openstack.
>>>    4. run : mvn clean install from inside the cloud/cloud-provisioning
>>>    module.
>>>
>>> It's definitely not the firewall issue as its failing in the
>>> authentication stage. I am attaching my property file for reference, please
>>> let me know if you find anything wrong in this.
>>> *test_data.properties*
>>>
>>> # Common properties
>>>> publicKeyFile=/home/psaha4/.ssh/id_rsa.pub
>>>> # Jetstream properties
>>>> jetstream_imageId=448636b0-450a-4b49-9bfe-b3135fc443e8
>>>> jetstream_flavorId=3
>>>> OS_PROJECT_DOMAIN_NAME=tacc
>>>> OS_USER_DOMAIN_NAME=tacc
>>>> OS_PROJECT_NAME=scigap
>>>> OS_TENANT_NAME=scigap
>>>> OS_USERNAME=scigap
>>>> OS_PASSWORD=<not exposing the password here>
>>>> OS_AUTH_URL=https://jblb.jetstream-cloud.org:35357/v3
>>>> OS_IDENTITY_API_VERSION=3
>>>> # Network Properties
>>>> OS_FLOATING_IP_POOL=public
>>>> OS_SUBNET_NAME=airavata
>>>
>>>
>>> Can someone send me jetstream_openrc.properties and test_data.properties
>>> file from a working environment in  a separate email so that I can place
>>> them and test from my system once.
>>>
>>> Thanks
>>> Pankaj
>>>
>>>
>>> On Thu, Apr 21, 2016 at 11:43 AM, Pankaj Saha <ps...@binghamton.edu>
>>> wrote:
>>>
>>>> Hi Shameera,
>>>> I have received the password from Mangirish and I am using the same
>>>> details as he has provided.
>>>> Regarding the jetstream keypair, my understanding is, during the test
>>>> run it fetches the public key from the properties file and send it to the
>>>> jetstream servers.  Please let me know how I need to configure it
>>>> separately.
>>>>
>>>> Thanks
>>>> Pankaj
>>>>
>>>> On Wed, Apr 20, 2016 at 8:48 PM, Shameera Rathnayaka <
>>>> shameerainfo@gmail.com> wrote:
>>>>
>>>>> Hi Pankaj,
>>>>>
>>>>> To work with your ssh keys you need to add them to jetstream keypair.
>>>>> Have you done that part?
>>>>>
>>>>> also you are not providing correct the OS_PASSWORD value accordding to
>>>>> above deatils.
>>>>>
>>>>> Shameera.
>>>>>
>>>>>
>>>>> On Wed, Apr 20, 2016 at 3:42 PM Pankaj Saha <ps...@binghamton.edu>
>>>>> wrote:
>>>>>
>>>>>> I have just use maven to build the same project. here is thedetails
>>>>>> # Common properties
>>>>>> publicKeyFile=/home/psaha4/.ssh/id_rsa.pub
>>>>>>
>>>>>> # Jetstream properties
>>>>>> jetstream_imageId=448636b0-450a-4b49-9bfe-b3135fc443e8
>>>>>> jetstream_flavorId=3
>>>>>>
>>>>>> OS_PROJECT_DOMAIN_NAME=tacc
>>>>>> OS_USER_DOMAIN_NAME=tacc
>>>>>> OS_PROJECT_NAME=scigap
>>>>>> OS_TENANT_NAME=scigap
>>>>>> OS_USERNAME=scigap
>>>>>> OS_PASSWORD=<not exposing here>
>>>>>> OS_AUTH_URL=https://jblb.jetstream-cloud.org:35357/v3
>>>>>> OS_IDENTITY_API_VERSION=3
>>>>>>
>>>>>> # Network Properties
>>>>>> OS_FLOATING_IP_POOL=public
>>>>>> OS_SUBNET_NAME=airavata
>>>>>>
>>>>>> The test case error that I am getting for the Test case is al below:
>>>>>> -------------------------------------------------------
>>>>>>  T E S T S
>>>>>> -------------------------------------------------------
>>>>>> Running org.apache.airavata.cloud.test.CloudIntfTest
>>>>>> AuthenticationException{message=Unauthorized, status=401}
>>>>>> at
>>>>>> org.openstack4j.core.transport.HttpExceptionHandler.mapException(HttpExceptionHandler.java:36)
>>>>>> at
>>>>>> org.openstack4j.core.transport.HttpExceptionHandler.mapException(HttpExceptionHandler.java:23)
>>>>>> at
>>>>>> org.openstack4j.openstack.internal.OSAuthenticator.authenticateV3(OSAuthenticator.java:161)
>>>>>> at
>>>>>> org.openstack4j.openstack.internal.OSAuthenticator.invoke(OSAuthenticator.java:78)
>>>>>> at
>>>>>> org.openstack4j.openstack.client.OSClientBuilder$ClientV3.authenticate(OSClientBuilder.java:163)
>>>>>> at
>>>>>> org.openstack4j.openstack.client.OSClientBuilder$ClientV3.authenticate(OSClientBuilder.java:127)
>>>>>> at
>>>>>> org.apache.airavata.cloud.openstack.OS4JClientProvider.getOSClientV3(OS4JClientProvider.java:86)
>>>>>> at
>>>>>> org.apache.airavata.cloud.openstack.OS4JClientProvider.getOSClient(OS4JClientProvider.java:49)
>>>>>> at
>>>>>> org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl.<init>(OpenstackIntfImpl.java:78)
>>>>>> at
>>>>>> org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:77)
>>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>> at
>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>>>>> at
>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>>> at java.lang.reflect.Method.invoke(Method.java:498)
>>>>>> at
>>>>>> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>>>>>> at
>>>>>> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>>>>>> at
>>>>>> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>>>>>> at
>>>>>> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>>>>>> at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>>>>>> at
>>>>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
>>>>>> at
>>>>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
>>>>>> at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>>>>>> at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>>>>>> at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>>>>>> at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>>>>>> at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>>>>>> at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>>>>>> at
>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
>>>>>> at
>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
>>>>>> at
>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
>>>>>> at
>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
>>>>>> at
>>>>>> org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
>>>>>> at
>>>>>> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
>>>>>> at
>>>>>> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>>>>>> java.lang.NullPointerException
>>>>>> at
>>>>>> org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl.getKeyPair(OpenstackIntfImpl.java:215)
>>>>>> at
>>>>>> org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:92)
>>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>> at
>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>>>>> at
>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>>> at java.lang.reflect.Method.invoke(Method.java:498)
>>>>>> at
>>>>>> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>>>>>> at
>>>>>> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>>>>>> at
>>>>>> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>>>>>> at
>>>>>> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>>>>>> at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>>>>>> at
>>>>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
>>>>>> at
>>>>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
>>>>>> at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>>>>>> at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>>>>>> at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>>>>>> at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>>>>>> at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>>>>>> at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>>>>>> at
>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
>>>>>> at
>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
>>>>>> at
>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
>>>>>> at
>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
>>>>>> at
>>>>>> org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
>>>>>> at
>>>>>> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
>>>>>> at
>>>>>> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>>>>>> [main] ERROR org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl -
>>>>>> Failed to retrieve keypair: testKey
>>>>>> java.lang.NullPointerException
>>>>>> at
>>>>>> org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl.createKeyPair(OpenstackIntfImpl.java:197)
>>>>>> at
>>>>>> org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:94)
>>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>> at
>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>>>>> at
>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>>> at java.lang.reflect.Method.invoke(Method.java:498)
>>>>>> at
>>>>>> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>>>>>> at
>>>>>> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>>>>>> at
>>>>>> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>>>>>> at
>>>>>> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>>>>>> at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>>>>>> at
>>>>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
>>>>>> at
>>>>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
>>>>>> at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>>>>>> at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>>>>>> at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>>>>>> at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>>>>>> at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>>>>>> at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>>>>>> at
>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
>>>>>> at
>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
>>>>>> at
>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
>>>>>> at
>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
>>>>>> at
>>>>>> org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
>>>>>> at
>>>>>> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
>>>>>> at
>>>>>> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>>>>>> [main] ERROR org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl -
>>>>>> Failed to create keypair: testKey
>>>>>> java.lang.NullPointerException
>>>>>> at
>>>>>> org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:97)
>>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>> at
>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>>>>> at
>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>>> at java.lang.reflect.Method.invoke(Method.java:498)
>>>>>> at
>>>>>> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>>>>>> at
>>>>>> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>>>>>> at
>>>>>> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>>>>>> at
>>>>>> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>>>>>> at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>>>>>> at
>>>>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
>>>>>> at
>>>>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
>>>>>> at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>>>>>> at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>>>>>> at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>>>>>> at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>>>>>> at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>>>>>> at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>>>>>> at
>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
>>>>>> at
>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
>>>>>> at
>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
>>>>>> at
>>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
>>>>>> at
>>>>>> org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
>>>>>> at
>>>>>> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
>>>>>> at
>>>>>> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>>>>>> Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.913
>>>>>> sec <<< FAILURE! - in org.apache.airavata.cloud.test.CloudIntfTest
>>>>>> jetstreamCreateDeleteServerTest(org.apache.airavata.cloud.test.CloudIntfTest)
>>>>>>  Time elapsed: 0.908 sec  <<< FAILURE!
>>>>>> java.lang.AssertionError: null
>>>>>> at org.junit.Assert.fail(Assert.java:86)
>>>>>> at org.junit.Assert.fail(Assert.java:95)
>>>>>> at
>>>>>> org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:128)
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Wed, Apr 20, 2016 at 3:36 PM, Suresh Marru <sm...@apache.org>
>>>>>> wrote:
>>>>>>
>>>>>>> Thats nice. Few suggestions:
>>>>>>>
>>>>>>> * Eclipse or IDEA are good to write code, but to build and run tests
>>>>>>> from maven, command line is the best option.
>>>>>>> * Please use the mailing lists as much as possible so rest of us can
>>>>>>> also contribute. If even you use hangouts, please take time to explain what
>>>>>>> the issue is so it engages every one.
>>>>>>>
>>>>>>> I am able to run the test cases and am able to program
>>>>>>> against OpenstackIntfImpl just fine. Can you elaborate on what is the
>>>>>>> authentication issue you are running into?
>>>>>>>
>>>>>>> Suresh
>>>>>>>
>>>>>>> On Apr 20, 2016, at 3:30 PM, Pankaj Saha <ps...@binghamton.edu>
>>>>>>> wrote:
>>>>>>>
>>>>>>> Hi Suresh,
>>>>>>>
>>>>>>> I just had a hangout session with Mangirish regarding the same. It
>>>>>>> looks like an authentication issue with openstack which he is aware of. He
>>>>>>> has explained me his code and I am going to retry fixing the problem.
>>>>>>>
>>>>>>> I did not use maven to build his project instead I have export his
>>>>>>> project as eclipse (mvn eclipse:eclipse) and trying to run the junit test.
>>>>>>>
>>>>>>> Will update you once I find something new.
>>>>>>>
>>>>>>> Thanks
>>>>>>> Pankaj
>>>>>>>
>>>>>>>
>>>>>>> On Wed, Apr 20, 2016 at 3:21 PM, Suresh Marru <sm...@apache.org>
>>>>>>> wrote:
>>>>>>>
>>>>>>>> Hi Pankaj,
>>>>>>>>
>>>>>>>> Can you please be more clear? What is failing? Did you try to build
>>>>>>>> it using maven within the cloud provisioning directory itself? Did you
>>>>>>>> change the public key file in the test_data.properties?
>>>>>>>>
>>>>>>>> Suresh
>>>>>>>>
>>>>>>>> On Apr 20, 2016, at 2:56 PM, Pankaj Saha <ps...@binghamton.edu>
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>> I am able to get Mangirish's code in the develop branch. After
>>>>>>>> making it an eclipse project, when I am trying to run it as JUnit test,
>>>>>>>> it's failing.
>>>>>>>> Need help to fix this, possibly some configuration changes in the
>>>>>>>> properties file or similar.
>>>>>>>> It will be great we can talk over a hangout session or at least a
>>>>>>>> chat session to make it work.
>>>>>>>>
>>>>>>>> On Wed, Apr 20, 2016 at 12:05 PM, Mangirish Wagle <
>>>>>>>> vaglomangirish@gmail.com> wrote:
>>>>>>>>
>>>>>>>>> Hi Pankaj,
>>>>>>>>>
>>>>>>>>> You may find a sample test code for the module in this unit test
>>>>>>>>> file:-
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> https://github.com/apache/airavata/blob/develop/modules/cloud/cloud-provisioning/src/test/java/org/apache/airavata/cloud/test/CloudIntfTest.java
>>>>>>>>>
>>>>>>>>> Also, if you want to test run the code, you may please follow this
>>>>>>>>> quick README:-
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> https://github.com/apache/airavata/blob/develop/modules/cloud/cloud-provisioning/README
>>>>>>>>>
>>>>>>>>> Please let me know if you need some more info or code walkthrough.
>>>>>>>>> Sending you the jetstream openrc credentials separately.
>>>>>>>>>
>>>>>>>>> Thanks.
>>>>>>>>>
>>>>>>>>> Regards,
>>>>>>>>> Mangirish
>>>>>>>>>
>>>>>>>>> On Wed, Apr 20, 2016 at 11:42 AM, Suresh Marru <sm...@apache.org>
>>>>>>>>> wrote:
>>>>>>>>>
>>>>>>>>>> Hi Pankaj,
>>>>>>>>>>
>>>>>>>>>> Please switch to ‘develop’ branch and look for the cloud
>>>>>>>>>> provisioning module -
>>>>>>>>>> https://github.com/apache/airavata/tree/develop/modules/cloud/cloud-provisioning
>>>>>>>>>>
>>>>>>>>>> Suresh
>>>>>>>>>>
>>>>>>>>>> On Apr 20, 2016, at 11:37 AM, Pankaj Saha <ps...@binghamton.edu>
>>>>>>>>>> wrote:
>>>>>>>>>>
>>>>>>>>>> Hello Mangirish,
>>>>>>>>>> I have latest Airavata mater branch installed in my local system.
>>>>>>>>>> Can you please give us some clue how to start creating the VMs through you
>>>>>>>>>> application. Please specify where we can find your corresponding java code.
>>>>>>>>>> Is it through PGA website?
>>>>>>>>>> Please share the required password to me in a separate email.
>>>>>>>>>>
>>>>>>>>>> Thanks
>>>>>>>>>> Pankaj
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>> --
>>>>> Shameera Rathnayaka
>>>>>
>>>>
>>>>
>>>
>>>
>>>
>>
>
>
>

Re: Jetstream VM creation through Airavata

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

Try now.

Suresh

> On Apr 28, 2016, at 1:05 PM, Suresh Marru <sm...@apache.org> wrote:
> 
> Hi Pankaj,
> 
> By default yes they will be accessible from outside. The firewall’s are controlled by the security policy and currently both ssh and http are accessible widely. There are issues with Open Stack Neutron services and I reported them. I will post when the network is back stable. 
> 
> Suresh
> 
>> On Apr 28, 2016, at 1:02 PM, Pankaj Saha <psaha4@binghamton.edu <ma...@binghamton.edu>> wrote:
>> 
>> Hello Devs,
>> I have created a VM in openstack through cloud-provisioning module. Which returned an VM with floating ip : 149.165.157.215. I was expecting that this VM will be accessible through ssh over public ip assigned to it. I need ssh access to these VMs for including mesos binaries into them so that these images can be used as mesos agents for Gourav's prject.
>> 
>> Please let me know if it is blocked by any firewall and whats the process to get access to them.
>> 
>> Thanks
>> Pankaj
>> 
>> On Fri, Apr 22, 2016 at 4:43 PM, Pankaj Saha <psaha4@binghamton.edu <ma...@binghamton.edu>> wrote:
>> Hi Suresh,
>> Yes, that was the problem. Now it's working.
>> here is the log:
>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - Keypair created successfully: testKey
>> [main] INFO org.apache.airavata.cloud.test.CloudIntfTest - Keypair created/ retrieved: 83:17:5b:2c:f3:31:06:af:99:c1:c8:8b:62:72:36:35
>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - Using network subnet-airavata with ID: ad2552d6-1a02-4d6c-9fa4-ad40d93e5423
>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - New server created with ID: 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>> [main] INFO org.apache.airavata.cloud.test.CloudIntfTest - Server Created: 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>> [main] INFO org.apache.airavata.cloud.test.CloudIntfTest - Waiting for instance to go ACTIVE...
>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - Server retrieved successfully for ID: 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - true:200:null:ActionResponse{success=true, code=200}
>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - Floating IP 149.165.156.142 assigned successfully to server with ID: 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - Server retrieved successfully for ID: 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - Server deleted successfully for ID: 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>> [main] INFO org.apache.airavata.cloud.test.CloudIntfTest - Server deleted: 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>> [main] INFO org.apache.airavata.cloud.test.CloudIntfTest - Waiting for instance to terminate...
>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - Keypair deleted successfully: testKey
>> [main] INFO org.apache.airavata.cloud.test.CloudIntfTest - Keypair deleted: testKey
>> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - Server retrieved successfully for ID: 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>> 
>> 
>> Thanks
>> Pankaj
>> 
>> On Fri, Apr 22, 2016 at 4:15 PM, Suresh Marru <smarru@apache.org <ma...@apache.org>> wrote:
>> I now noticed that you have used OS_PROJECT_DOMAIN_NAME=tacc instead of OS_PROJECT_DOMAIN_NAME=scigap
>> 
>> Suresh
>> 
>>> On Apr 22, 2016, at 4:14 PM, Suresh Marru <smarru@apache.org <ma...@apache.org>> wrote:
>>> 
>>> Hi Pankaj, Mangirish,
>>> 
>>> Is this intermittent or do you consistently get authentication issues? I am attaching my openrc file:
>>> 
>>> OS_PROJECT_DOMAIN_NAME=scigap
>>> OS_USER_DOMAIN_NAME=tacc
>>> OS_PROJECT_NAME=scigap
>>> OS_TENANT_NAME=scigap
>>> OS_USERNAME=scigap
>>> OS_PASSWORD=XXXXXXXXXXXXX
>>> OS_AUTH_URL=https://jblb.jetstream-cloud.org:35357/v3 <https://jblb.jetstream-cloud.org:35357/v3>
>>> OS_IDENTITY_API_VERSION=3
>>> 
>>> # Network Properties
>>> OS_FLOATING_IP_POOL=public
>>> OS_SUBNET_NAME=airavata
>>> 
>>> To complicate the puzzle, I am consistently able to launch few hundred’s of instances within the past day without any issues. I just checked the code, I am using it out of the box and no local changes. 
>>> 
>>> Suresh
>>> 
>>> 
>>>> On Apr 22, 2016, at 3:18 PM, Pankaj Saha <psaha4@binghamton.edu <ma...@binghamton.edu>> wrote:
>>>> 
>>>> Hello Everyone,
>>>> 
>>>> I had a discussion with Mangirish today morning and we could figure out through debugging that java code getting authentication exception when trying to authenticate the user with openstack. 
>>>> NOVA client for openstack did work well and I have also tested with credentials to directly login into the portal.
>>>> I have replicated the same in another system in my same lab network and the test case still failing for the same status-401, authentication error. 
>>>> 
>>>> I have followed these below steps:
>>>> generated rsa key
>>>> downloaded airavata from git, switched it to "develop" branch
>>>> changed the required property values for openstack.
>>>> run : mvn clean install from inside the cloud/cloud-provisioning module.
>>>> It's definitely not the firewall issue as its failing in the authentication stage. I am attaching my property file for reference, please let me know if you find anything wrong in this.
>>>> test_data.properties
>>>> 
>>>> # Common properties
>>>> publicKeyFile=/home/psaha4/.ssh/id_rsa.pub
>>>> # Jetstream properties
>>>> jetstream_imageId=448636b0-450a-4b49-9bfe-b3135fc443e8
>>>> jetstream_flavorId=3
>>>> OS_PROJECT_DOMAIN_NAME=tacc
>>>> OS_USER_DOMAIN_NAME=tacc
>>>> OS_PROJECT_NAME=scigap
>>>> OS_TENANT_NAME=scigap
>>>> OS_USERNAME=scigap
>>>> OS_PASSWORD=<not exposing the password here>
>>>> OS_AUTH_URL=https://jblb.jetstream-cloud.org:35357/v3 <https://jblb.jetstream-cloud.org:35357/v3>
>>>> OS_IDENTITY_API_VERSION=3
>>>> # Network Properties
>>>> OS_FLOATING_IP_POOL=public
>>>> OS_SUBNET_NAME=airavata
>>>> 
>>>> Can someone send me jetstream_openrc.properties and test_data.properties file from a working environment in  a separate email so that I can place them and test from my system once.
>>>> 
>>>> Thanks
>>>> Pankaj
>>>> 
>>>> 
>>>> On Thu, Apr 21, 2016 at 11:43 AM, Pankaj Saha <psaha4@binghamton.edu <ma...@binghamton.edu>> wrote:
>>>> Hi Shameera,
>>>> I have received the password from Mangirish and I am using the same details as he has provided.
>>>> Regarding the jetstream keypair, my understanding is, during the test run it fetches the public key from the properties file and send it to the jetstream servers.  Please let me know how I need to configure it separately.
>>>> 
>>>> Thanks
>>>> Pankaj
>>>> 
>>>> On Wed, Apr 20, 2016 at 8:48 PM, Shameera Rathnayaka <shameerainfo@gmail.com <ma...@gmail.com>> wrote:
>>>> Hi Pankaj,
>>>> 
>>>> To work with your ssh keys you need to add them to jetstream keypair. Have you done that part? 
>>>> 
>>>> also you are not providing correct the OS_PASSWORD value accordding to above deatils.
>>>> 
>>>> Shameera.
>>>> 
>>>> 
>>>> On Wed, Apr 20, 2016 at 3:42 PM Pankaj Saha <psaha4@binghamton.edu <ma...@binghamton.edu>> wrote:
>>>> I have just use maven to build the same project. here is thedetails
>>>> # Common properties
>>>> publicKeyFile=/home/psaha4/.ssh/id_rsa.pub
>>>> 
>>>> # Jetstream properties
>>>> jetstream_imageId=448636b0-450a-4b49-9bfe-b3135fc443e8
>>>> jetstream_flavorId=3
>>>> 
>>>> OS_PROJECT_DOMAIN_NAME=tacc
>>>> OS_USER_DOMAIN_NAME=tacc
>>>> OS_PROJECT_NAME=scigap
>>>> OS_TENANT_NAME=scigap
>>>> OS_USERNAME=scigap
>>>> OS_PASSWORD=<not exposing here>
>>>> OS_AUTH_URL=https://jblb.jetstream-cloud.org:35357/v3 <https://jblb.jetstream-cloud.org:35357/v3>
>>>> OS_IDENTITY_API_VERSION=3
>>>> 
>>>> # Network Properties
>>>> OS_FLOATING_IP_POOL=public
>>>> OS_SUBNET_NAME=airavata
>>>> 
>>>> The test case error that I am getting for the Test case is al below:
>>>> -------------------------------------------------------
>>>>  T E S T S
>>>> -------------------------------------------------------
>>>> Running org.apache.airavata.cloud.test.CloudIntfTest
>>>> AuthenticationException{message=Unauthorized, status=401}
>>>> 	at org.openstack4j.core.transport.HttpExceptionHandler.mapException(HttpExceptionHandler.java:36)
>>>> 	at org.openstack4j.core.transport.HttpExceptionHandler.mapException(HttpExceptionHandler.java:23)
>>>> 	at org.openstack4j.openstack.internal.OSAuthenticator.authenticateV3(OSAuthenticator.java:161)
>>>> 	at org.openstack4j.openstack.internal.OSAuthenticator.invoke(OSAuthenticator.java:78)
>>>> 	at org.openstack4j.openstack.client.OSClientBuilder$ClientV3.authenticate(OSClientBuilder.java:163)
>>>> 	at org.openstack4j.openstack.client.OSClientBuilder$ClientV3.authenticate(OSClientBuilder.java:127)
>>>> 	at org.apache.airavata.cloud.openstack.OS4JClientProvider.getOSClientV3(OS4JClientProvider.java:86)
>>>> 	at org.apache.airavata.cloud.openstack.OS4JClientProvider.getOSClient(OS4JClientProvider.java:49)
>>>> 	at org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl.<init>(OpenstackIntfImpl.java:78)
>>>> 	at org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:77)
>>>> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>>> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>> 	at java.lang.reflect.Method.invoke(Method.java:498)
>>>> 	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>>>> 	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>>>> 	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>>>> 	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>>>> 	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>>>> 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
>>>> 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
>>>> 	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>>>> 	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>>>> 	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>>>> 	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>>>> 	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>>>> 	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>>>> 	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
>>>> 	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
>>>> 	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
>>>> 	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
>>>> 	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
>>>> 	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
>>>> 	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>>>> java.lang.NullPointerException
>>>> 	at org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl.getKeyPair(OpenstackIntfImpl.java:215)
>>>> 	at org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:92)
>>>> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>>> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>> 	at java.lang.reflect.Method.invoke(Method.java:498)
>>>> 	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>>>> 	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>>>> 	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>>>> 	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>>>> 	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>>>> 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
>>>> 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
>>>> 	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>>>> 	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>>>> 	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>>>> 	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>>>> 	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>>>> 	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>>>> 	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
>>>> 	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
>>>> 	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
>>>> 	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
>>>> 	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
>>>> 	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
>>>> 	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>>>> [main] ERROR org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - Failed to retrieve keypair: testKey
>>>> java.lang.NullPointerException
>>>> 	at org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl.createKeyPair(OpenstackIntfImpl.java:197)
>>>> 	at org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:94)
>>>> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>>> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>> 	at java.lang.reflect.Method.invoke(Method.java:498)
>>>> 	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>>>> 	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>>>> 	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>>>> 	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>>>> 	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>>>> 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
>>>> 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
>>>> 	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>>>> 	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>>>> 	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>>>> 	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>>>> 	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>>>> 	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>>>> 	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
>>>> 	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
>>>> 	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
>>>> 	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
>>>> 	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
>>>> 	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
>>>> 	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>>>> [main] ERROR org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - Failed to create keypair: testKey
>>>> java.lang.NullPointerException
>>>> 	at org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:97)
>>>> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>>> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>> 	at java.lang.reflect.Method.invoke(Method.java:498)
>>>> 	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>>>> 	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>>>> 	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>>>> 	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>>>> 	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>>>> 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
>>>> 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
>>>> 	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>>>> 	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>>>> 	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>>>> 	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>>>> 	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>>>> 	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>>>> 	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
>>>> 	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
>>>> 	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
>>>> 	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
>>>> 	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
>>>> 	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
>>>> 	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>>>> Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.913 sec <<< FAILURE! - in org.apache.airavata.cloud.test.CloudIntfTest
>>>> jetstreamCreateDeleteServerTest(org.apache.airavata.cloud.test.CloudIntfTest)  Time elapsed: 0.908 sec  <<< FAILURE!
>>>> java.lang.AssertionError: null
>>>> 	at org.junit.Assert.fail(Assert.java:86)
>>>> 	at org.junit.Assert.fail(Assert.java:95)
>>>> 	at org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:128)
>>>> 
>>>> 
>>>> 
>>>> On Wed, Apr 20, 2016 at 3:36 PM, Suresh Marru <smarru@apache.org <ma...@apache.org>> wrote:
>>>> Thats nice. Few suggestions:
>>>> 
>>>> * Eclipse or IDEA are good to write code, but to build and run tests from maven, command line is the best option. 
>>>> * Please use the mailing lists as much as possible so rest of us can also contribute. If even you use hangouts, please take time to explain what the issue is so it engages every one. 
>>>> 
>>>> I am able to run the test cases and am able to program against OpenstackIntfImpl just fine. Can you elaborate on what is the authentication issue you are running into? 
>>>> 
>>>> Suresh
>>>> 
>>>>> On Apr 20, 2016, at 3:30 PM, Pankaj Saha <psaha4@binghamton.edu <ma...@binghamton.edu>> wrote:
>>>>> 
>>>>> Hi Suresh, 
>>>>> 
>>>>> I just had a hangout session with Mangirish regarding the same. It looks like an authentication issue with openstack which he is aware of. He has explained me his code and I am going to retry fixing the problem.
>>>>> 
>>>>> I did not use maven to build his project instead I have export his project as eclipse (mvn eclipse:eclipse) and trying to run the junit test.
>>>>> 
>>>>> Will update you once I find something new.
>>>>> 
>>>>> Thanks
>>>>> Pankaj
>>>>> 
>>>>> 
>>>>> On Wed, Apr 20, 2016 at 3:21 PM, Suresh Marru <smarru@apache.org <ma...@apache.org>> wrote:
>>>>> Hi Pankaj,
>>>>> 
>>>>> Can you please be more clear? What is failing? Did you try to build it using maven within the cloud provisioning directory itself? Did you change the public key file in the test_data.properties? 
>>>>> 
>>>>> Suresh
>>>>> 
>>>>>> On Apr 20, 2016, at 2:56 PM, Pankaj Saha <psaha4@binghamton.edu <ma...@binghamton.edu>> wrote:
>>>>>> 
>>>>>> I am able to get Mangirish's code in the develop branch. After making it an eclipse project, when I am trying to run it as JUnit test, it's failing.
>>>>>> Need help to fix this, possibly some configuration changes in the properties file or similar.
>>>>>> It will be great we can talk over a hangout session or at least a chat session to make it work.
>>>>>> 
>>>>>> On Wed, Apr 20, 2016 at 12:05 PM, Mangirish Wagle <vaglomangirish@gmail.com <ma...@gmail.com>> wrote:
>>>>>> Hi Pankaj,
>>>>>> 
>>>>>> You may find a sample test code for the module in this unit test file:-
>>>>>> 
>>>>>> https://github.com/apache/airavata/blob/develop/modules/cloud/cloud-provisioning/src/test/java/org/apache/airavata/cloud/test/CloudIntfTest.java <https://github.com/apache/airavata/blob/develop/modules/cloud/cloud-provisioning/src/test/java/org/apache/airavata/cloud/test/CloudIntfTest.java>
>>>>>> 
>>>>>> Also, if you want to test run the code, you may please follow this quick README:-
>>>>>> 
>>>>>> https://github.com/apache/airavata/blob/develop/modules/cloud/cloud-provisioning/README <https://github.com/apache/airavata/blob/develop/modules/cloud/cloud-provisioning/README>
>>>>>> 
>>>>>> Please let me know if you need some more info or code walkthrough. Sending you the jetstream openrc credentials separately. 
>>>>>> 
>>>>>> Thanks.
>>>>>> 
>>>>>> Regards,
>>>>>> Mangirish
>>>>>> 
>>>>>> On Wed, Apr 20, 2016 at 11:42 AM, Suresh Marru <smarru@apache.org <ma...@apache.org>> wrote:
>>>>>> Hi Pankaj,
>>>>>> 
>>>>>> Please switch to ‘develop’ branch and look for the cloud provisioning module - https://github.com/apache/airavata/tree/develop/modules/cloud/cloud-provisioning <https://github.com/apache/airavata/tree/develop/modules/cloud/cloud-provisioning>
>>>>>> 
>>>>>> Suresh
>>>>>> 
>>>>>>> On Apr 20, 2016, at 11:37 AM, Pankaj Saha <psaha4@binghamton.edu <ma...@binghamton.edu>> wrote:
>>>>>>> 
>>>>>>> Hello Mangirish,
>>>>>>> I have latest Airavata mater branch installed in my local system. Can you please give us some clue how to start creating the VMs through you application. Please specify where we can find your corresponding java code. Is it through PGA website?
>>>>>>> Please share the required password to me in a separate email.
>>>>>>> 
>>>>>>> Thanks
>>>>>>> Pankaj
>>>>>> 
>>>>>> 
>>>>>> 
>>>>> 
>>>>> 
>>>> 
>>>> 
>>>> -- 
>>>> Shameera Rathnayaka
>>>> 
>>>> 
>>> 
>> 
>> 
>> 
> 


Re: Jetstream VM creation through Airavata

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

By default yes they will be accessible from outside. The firewall’s are controlled by the security policy and currently both ssh and http are accessible widely. There are issues with Open Stack Neutron services and I reported them. I will post when the network is back stable. 

Suresh

> On Apr 28, 2016, at 1:02 PM, Pankaj Saha <ps...@binghamton.edu> wrote:
> 
> Hello Devs,
> I have created a VM in openstack through cloud-provisioning module. Which returned an VM with floating ip : 149.165.157.215. I was expecting that this VM will be accessible through ssh over public ip assigned to it. I need ssh access to these VMs for including mesos binaries into them so that these images can be used as mesos agents for Gourav's prject.
> 
> Please let me know if it is blocked by any firewall and whats the process to get access to them.
> 
> Thanks
> Pankaj
> 
> On Fri, Apr 22, 2016 at 4:43 PM, Pankaj Saha <psaha4@binghamton.edu <ma...@binghamton.edu>> wrote:
> Hi Suresh,
> Yes, that was the problem. Now it's working.
> here is the log:
> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - Keypair created successfully: testKey
> [main] INFO org.apache.airavata.cloud.test.CloudIntfTest - Keypair created/ retrieved: 83:17:5b:2c:f3:31:06:af:99:c1:c8:8b:62:72:36:35
> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - Using network subnet-airavata with ID: ad2552d6-1a02-4d6c-9fa4-ad40d93e5423
> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - New server created with ID: 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
> [main] INFO org.apache.airavata.cloud.test.CloudIntfTest - Server Created: 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
> [main] INFO org.apache.airavata.cloud.test.CloudIntfTest - Waiting for instance to go ACTIVE...
> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - Server retrieved successfully for ID: 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - true:200:null:ActionResponse{success=true, code=200}
> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - Floating IP 149.165.156.142 assigned successfully to server with ID: 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - Server retrieved successfully for ID: 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - Server deleted successfully for ID: 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
> [main] INFO org.apache.airavata.cloud.test.CloudIntfTest - Server deleted: 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
> [main] INFO org.apache.airavata.cloud.test.CloudIntfTest - Waiting for instance to terminate...
> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - Keypair deleted successfully: testKey
> [main] INFO org.apache.airavata.cloud.test.CloudIntfTest - Keypair deleted: testKey
> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - Server retrieved successfully for ID: 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
> 
> 
> Thanks
> Pankaj
> 
> On Fri, Apr 22, 2016 at 4:15 PM, Suresh Marru <smarru@apache.org <ma...@apache.org>> wrote:
> I now noticed that you have used OS_PROJECT_DOMAIN_NAME=tacc instead of OS_PROJECT_DOMAIN_NAME=scigap
> 
> Suresh
> 
>> On Apr 22, 2016, at 4:14 PM, Suresh Marru <smarru@apache.org <ma...@apache.org>> wrote:
>> 
>> Hi Pankaj, Mangirish,
>> 
>> Is this intermittent or do you consistently get authentication issues? I am attaching my openrc file:
>> 
>> OS_PROJECT_DOMAIN_NAME=scigap
>> OS_USER_DOMAIN_NAME=tacc
>> OS_PROJECT_NAME=scigap
>> OS_TENANT_NAME=scigap
>> OS_USERNAME=scigap
>> OS_PASSWORD=XXXXXXXXXXXXX
>> OS_AUTH_URL=https://jblb.jetstream-cloud.org:35357/v3 <https://jblb.jetstream-cloud.org:35357/v3>
>> OS_IDENTITY_API_VERSION=3
>> 
>> # Network Properties
>> OS_FLOATING_IP_POOL=public
>> OS_SUBNET_NAME=airavata
>> 
>> To complicate the puzzle, I am consistently able to launch few hundred’s of instances within the past day without any issues. I just checked the code, I am using it out of the box and no local changes. 
>> 
>> Suresh
>> 
>> 
>>> On Apr 22, 2016, at 3:18 PM, Pankaj Saha <psaha4@binghamton.edu <ma...@binghamton.edu>> wrote:
>>> 
>>> Hello Everyone,
>>> 
>>> I had a discussion with Mangirish today morning and we could figure out through debugging that java code getting authentication exception when trying to authenticate the user with openstack. 
>>> NOVA client for openstack did work well and I have also tested with credentials to directly login into the portal.
>>> I have replicated the same in another system in my same lab network and the test case still failing for the same status-401, authentication error. 
>>> 
>>> I have followed these below steps:
>>> generated rsa key
>>> downloaded airavata from git, switched it to "develop" branch
>>> changed the required property values for openstack.
>>> run : mvn clean install from inside the cloud/cloud-provisioning module.
>>> It's definitely not the firewall issue as its failing in the authentication stage. I am attaching my property file for reference, please let me know if you find anything wrong in this.
>>> test_data.properties
>>> 
>>> # Common properties
>>> publicKeyFile=/home/psaha4/.ssh/id_rsa.pub
>>> # Jetstream properties
>>> jetstream_imageId=448636b0-450a-4b49-9bfe-b3135fc443e8
>>> jetstream_flavorId=3
>>> OS_PROJECT_DOMAIN_NAME=tacc
>>> OS_USER_DOMAIN_NAME=tacc
>>> OS_PROJECT_NAME=scigap
>>> OS_TENANT_NAME=scigap
>>> OS_USERNAME=scigap
>>> OS_PASSWORD=<not exposing the password here>
>>> OS_AUTH_URL=https://jblb.jetstream-cloud.org:35357/v3 <https://jblb.jetstream-cloud.org:35357/v3>
>>> OS_IDENTITY_API_VERSION=3
>>> # Network Properties
>>> OS_FLOATING_IP_POOL=public
>>> OS_SUBNET_NAME=airavata
>>> 
>>> Can someone send me jetstream_openrc.properties and test_data.properties file from a working environment in  a separate email so that I can place them and test from my system once.
>>> 
>>> Thanks
>>> Pankaj
>>> 
>>> 
>>> On Thu, Apr 21, 2016 at 11:43 AM, Pankaj Saha <psaha4@binghamton.edu <ma...@binghamton.edu>> wrote:
>>> Hi Shameera,
>>> I have received the password from Mangirish and I am using the same details as he has provided.
>>> Regarding the jetstream keypair, my understanding is, during the test run it fetches the public key from the properties file and send it to the jetstream servers.  Please let me know how I need to configure it separately.
>>> 
>>> Thanks
>>> Pankaj
>>> 
>>> On Wed, Apr 20, 2016 at 8:48 PM, Shameera Rathnayaka <shameerainfo@gmail.com <ma...@gmail.com>> wrote:
>>> Hi Pankaj,
>>> 
>>> To work with your ssh keys you need to add them to jetstream keypair. Have you done that part? 
>>> 
>>> also you are not providing correct the OS_PASSWORD value accordding to above deatils.
>>> 
>>> Shameera.
>>> 
>>> 
>>> On Wed, Apr 20, 2016 at 3:42 PM Pankaj Saha <psaha4@binghamton.edu <ma...@binghamton.edu>> wrote:
>>> I have just use maven to build the same project. here is thedetails
>>> # Common properties
>>> publicKeyFile=/home/psaha4/.ssh/id_rsa.pub
>>> 
>>> # Jetstream properties
>>> jetstream_imageId=448636b0-450a-4b49-9bfe-b3135fc443e8
>>> jetstream_flavorId=3
>>> 
>>> OS_PROJECT_DOMAIN_NAME=tacc
>>> OS_USER_DOMAIN_NAME=tacc
>>> OS_PROJECT_NAME=scigap
>>> OS_TENANT_NAME=scigap
>>> OS_USERNAME=scigap
>>> OS_PASSWORD=<not exposing here>
>>> OS_AUTH_URL=https://jblb.jetstream-cloud.org:35357/v3 <https://jblb.jetstream-cloud.org:35357/v3>
>>> OS_IDENTITY_API_VERSION=3
>>> 
>>> # Network Properties
>>> OS_FLOATING_IP_POOL=public
>>> OS_SUBNET_NAME=airavata
>>> 
>>> The test case error that I am getting for the Test case is al below:
>>> -------------------------------------------------------
>>>  T E S T S
>>> -------------------------------------------------------
>>> Running org.apache.airavata.cloud.test.CloudIntfTest
>>> AuthenticationException{message=Unauthorized, status=401}
>>> 	at org.openstack4j.core.transport.HttpExceptionHandler.mapException(HttpExceptionHandler.java:36)
>>> 	at org.openstack4j.core.transport.HttpExceptionHandler.mapException(HttpExceptionHandler.java:23)
>>> 	at org.openstack4j.openstack.internal.OSAuthenticator.authenticateV3(OSAuthenticator.java:161)
>>> 	at org.openstack4j.openstack.internal.OSAuthenticator.invoke(OSAuthenticator.java:78)
>>> 	at org.openstack4j.openstack.client.OSClientBuilder$ClientV3.authenticate(OSClientBuilder.java:163)
>>> 	at org.openstack4j.openstack.client.OSClientBuilder$ClientV3.authenticate(OSClientBuilder.java:127)
>>> 	at org.apache.airavata.cloud.openstack.OS4JClientProvider.getOSClientV3(OS4JClientProvider.java:86)
>>> 	at org.apache.airavata.cloud.openstack.OS4JClientProvider.getOSClient(OS4JClientProvider.java:49)
>>> 	at org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl.<init>(OpenstackIntfImpl.java:78)
>>> 	at org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:77)
>>> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>> 	at java.lang.reflect.Method.invoke(Method.java:498)
>>> 	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>>> 	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>>> 	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>>> 	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>>> 	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>>> 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
>>> 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
>>> 	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>>> 	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>>> 	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>>> 	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>>> 	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>>> 	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>>> 	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
>>> 	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
>>> 	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
>>> 	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
>>> 	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
>>> 	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
>>> 	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>>> java.lang.NullPointerException
>>> 	at org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl.getKeyPair(OpenstackIntfImpl.java:215)
>>> 	at org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:92)
>>> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>> 	at java.lang.reflect.Method.invoke(Method.java:498)
>>> 	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>>> 	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>>> 	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>>> 	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>>> 	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>>> 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
>>> 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
>>> 	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>>> 	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>>> 	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>>> 	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>>> 	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>>> 	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>>> 	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
>>> 	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
>>> 	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
>>> 	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
>>> 	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
>>> 	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
>>> 	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>>> [main] ERROR org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - Failed to retrieve keypair: testKey
>>> java.lang.NullPointerException
>>> 	at org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl.createKeyPair(OpenstackIntfImpl.java:197)
>>> 	at org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:94)
>>> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>> 	at java.lang.reflect.Method.invoke(Method.java:498)
>>> 	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>>> 	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>>> 	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>>> 	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>>> 	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>>> 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
>>> 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
>>> 	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>>> 	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>>> 	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>>> 	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>>> 	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>>> 	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>>> 	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
>>> 	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
>>> 	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
>>> 	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
>>> 	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
>>> 	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
>>> 	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>>> [main] ERROR org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - Failed to create keypair: testKey
>>> java.lang.NullPointerException
>>> 	at org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:97)
>>> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>> 	at java.lang.reflect.Method.invoke(Method.java:498)
>>> 	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>>> 	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>>> 	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>>> 	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>>> 	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>>> 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
>>> 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
>>> 	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>>> 	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>>> 	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>>> 	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>>> 	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>>> 	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>>> 	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
>>> 	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
>>> 	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
>>> 	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
>>> 	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
>>> 	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
>>> 	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>>> Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.913 sec <<< FAILURE! - in org.apache.airavata.cloud.test.CloudIntfTest
>>> jetstreamCreateDeleteServerTest(org.apache.airavata.cloud.test.CloudIntfTest)  Time elapsed: 0.908 sec  <<< FAILURE!
>>> java.lang.AssertionError: null
>>> 	at org.junit.Assert.fail(Assert.java:86)
>>> 	at org.junit.Assert.fail(Assert.java:95)
>>> 	at org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:128)
>>> 
>>> 
>>> 
>>> On Wed, Apr 20, 2016 at 3:36 PM, Suresh Marru <smarru@apache.org <ma...@apache.org>> wrote:
>>> Thats nice. Few suggestions:
>>> 
>>> * Eclipse or IDEA are good to write code, but to build and run tests from maven, command line is the best option. 
>>> * Please use the mailing lists as much as possible so rest of us can also contribute. If even you use hangouts, please take time to explain what the issue is so it engages every one. 
>>> 
>>> I am able to run the test cases and am able to program against OpenstackIntfImpl just fine. Can you elaborate on what is the authentication issue you are running into? 
>>> 
>>> Suresh
>>> 
>>>> On Apr 20, 2016, at 3:30 PM, Pankaj Saha <psaha4@binghamton.edu <ma...@binghamton.edu>> wrote:
>>>> 
>>>> Hi Suresh, 
>>>> 
>>>> I just had a hangout session with Mangirish regarding the same. It looks like an authentication issue with openstack which he is aware of. He has explained me his code and I am going to retry fixing the problem.
>>>> 
>>>> I did not use maven to build his project instead I have export his project as eclipse (mvn eclipse:eclipse) and trying to run the junit test.
>>>> 
>>>> Will update you once I find something new.
>>>> 
>>>> Thanks
>>>> Pankaj
>>>> 
>>>> 
>>>> On Wed, Apr 20, 2016 at 3:21 PM, Suresh Marru <smarru@apache.org <ma...@apache.org>> wrote:
>>>> Hi Pankaj,
>>>> 
>>>> Can you please be more clear? What is failing? Did you try to build it using maven within the cloud provisioning directory itself? Did you change the public key file in the test_data.properties? 
>>>> 
>>>> Suresh
>>>> 
>>>>> On Apr 20, 2016, at 2:56 PM, Pankaj Saha <psaha4@binghamton.edu <ma...@binghamton.edu>> wrote:
>>>>> 
>>>>> I am able to get Mangirish's code in the develop branch. After making it an eclipse project, when I am trying to run it as JUnit test, it's failing.
>>>>> Need help to fix this, possibly some configuration changes in the properties file or similar.
>>>>> It will be great we can talk over a hangout session or at least a chat session to make it work.
>>>>> 
>>>>> On Wed, Apr 20, 2016 at 12:05 PM, Mangirish Wagle <vaglomangirish@gmail.com <ma...@gmail.com>> wrote:
>>>>> Hi Pankaj,
>>>>> 
>>>>> You may find a sample test code for the module in this unit test file:-
>>>>> 
>>>>> https://github.com/apache/airavata/blob/develop/modules/cloud/cloud-provisioning/src/test/java/org/apache/airavata/cloud/test/CloudIntfTest.java <https://github.com/apache/airavata/blob/develop/modules/cloud/cloud-provisioning/src/test/java/org/apache/airavata/cloud/test/CloudIntfTest.java>
>>>>> 
>>>>> Also, if you want to test run the code, you may please follow this quick README:-
>>>>> 
>>>>> https://github.com/apache/airavata/blob/develop/modules/cloud/cloud-provisioning/README <https://github.com/apache/airavata/blob/develop/modules/cloud/cloud-provisioning/README>
>>>>> 
>>>>> Please let me know if you need some more info or code walkthrough. Sending you the jetstream openrc credentials separately. 
>>>>> 
>>>>> Thanks.
>>>>> 
>>>>> Regards,
>>>>> Mangirish
>>>>> 
>>>>> On Wed, Apr 20, 2016 at 11:42 AM, Suresh Marru <smarru@apache.org <ma...@apache.org>> wrote:
>>>>> Hi Pankaj,
>>>>> 
>>>>> Please switch to ‘develop’ branch and look for the cloud provisioning module - https://github.com/apache/airavata/tree/develop/modules/cloud/cloud-provisioning <https://github.com/apache/airavata/tree/develop/modules/cloud/cloud-provisioning>
>>>>> 
>>>>> Suresh
>>>>> 
>>>>>> On Apr 20, 2016, at 11:37 AM, Pankaj Saha <psaha4@binghamton.edu <ma...@binghamton.edu>> wrote:
>>>>>> 
>>>>>> Hello Mangirish,
>>>>>> I have latest Airavata mater branch installed in my local system. Can you please give us some clue how to start creating the VMs through you application. Please specify where we can find your corresponding java code. Is it through PGA website?
>>>>>> Please share the required password to me in a separate email.
>>>>>> 
>>>>>> Thanks
>>>>>> Pankaj
>>>>> 
>>>>> 
>>>>> 
>>>> 
>>>> 
>>> 
>>> 
>>> -- 
>>> Shameera Rathnayaka
>>> 
>>> 
>> 
> 
> 
> 


Re: Jetstream VM creation through Airavata

Posted by Pankaj Saha <ps...@binghamton.edu>.
Hello Devs,
I have created a VM in openstack through cloud-provisioning module. Which
returned an VM with floating ip : 149.165.157.215. I was expecting that
this VM will be accessible through ssh over public ip assigned to it. I
need ssh access to these VMs for including mesos binaries into them so that
these images can be used as mesos agents for Gourav's prject.

Please let me know if it is blocked by any firewall and whats the process
to get access to them.

Thanks
Pankaj

On Fri, Apr 22, 2016 at 4:43 PM, Pankaj Saha <ps...@binghamton.edu> wrote:

> Hi Suresh,
> Yes, that was the problem. Now it's working.
> here is the log:
> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl -
> Keypair created successfully: testKey
> [main] INFO org.apache.airavata.cloud.test.CloudIntfTest - Keypair
> created/ retrieved: 83:17:5b:2c:f3:31:06:af:99:c1:c8:8b:62:72:36:35
> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - Using
> network subnet-airavata with ID: ad2552d6-1a02-4d6c-9fa4-ad40d93e5423
> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - New
> server created with ID: 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
> [main] INFO org.apache.airavata.cloud.test.CloudIntfTest - Server Created:
> 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
> [main] INFO org.apache.airavata.cloud.test.CloudIntfTest - Waiting for
> instance to go ACTIVE...
> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - Server
> retrieved successfully for ID: 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl -
> true:200:null:ActionResponse{success=true, code=200}
> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl -
> Floating IP 149.165.156.142 assigned successfully to server with ID:
> 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - Server
> retrieved successfully for ID: 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - Server
> deleted successfully for ID: 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
> [main] INFO org.apache.airavata.cloud.test.CloudIntfTest - Server deleted:
> 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
> [main] INFO org.apache.airavata.cloud.test.CloudIntfTest - Waiting for
> instance to terminate...
> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl -
> Keypair deleted successfully: testKey
> [main] INFO org.apache.airavata.cloud.test.CloudIntfTest - Keypair
> deleted: testKey
> [main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - Server
> retrieved successfully for ID: 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
>
>
> Thanks
> Pankaj
>
> On Fri, Apr 22, 2016 at 4:15 PM, Suresh Marru <sm...@apache.org> wrote:
>
>> I now noticed that you have used OS_PROJECT_DOMAIN_NAME=tacc instead
>> of OS_PROJECT_DOMAIN_NAME=scigap
>>
>> Suresh
>>
>> On Apr 22, 2016, at 4:14 PM, Suresh Marru <sm...@apache.org> wrote:
>>
>> Hi Pankaj, Mangirish,
>>
>> Is this intermittent or do you consistently get authentication issues? I
>> am attaching my openrc file:
>>
>> OS_PROJECT_DOMAIN_NAME=scigap
>> OS_USER_DOMAIN_NAME=tacc
>> OS_PROJECT_NAME=scigap
>> OS_TENANT_NAME=scigap
>> OS_USERNAME=scigap
>> OS_PASSWORD=XXXXXXXXXXXXX
>> OS_AUTH_URL=https://jblb.jetstream-cloud.org:35357/v3
>> OS_IDENTITY_API_VERSION=3
>>
>> # Network Properties
>> OS_FLOATING_IP_POOL=public
>> OS_SUBNET_NAME=airavata
>>
>> To complicate the puzzle, I am consistently able to launch few hundred’s
>> of instances within the past day without any issues. I just checked the
>> code, I am using it out of the box and no local changes.
>>
>> Suresh
>>
>>
>> On Apr 22, 2016, at 3:18 PM, Pankaj Saha <ps...@binghamton.edu> wrote:
>>
>> Hello Everyone,
>>
>> I had a discussion with Mangirish today morning and we could figure out
>> through debugging that java code getting authentication exception when
>> trying to authenticate the user with openstack.
>> NOVA client for openstack did work well and I have also tested with
>> credentials to directly login into the portal.
>> I have replicated the same in another system in my same lab network and
>> the test case still failing for the same status-401, authentication error.
>>
>> I have followed these below steps:
>>
>>    1. generated rsa key
>>    2. downloaded airavata from git, switched it to "develop" branch
>>    3. changed the required property values for openstack.
>>    4. run : mvn clean install from inside the cloud/cloud-provisioning
>>    module.
>>
>> It's definitely not the firewall issue as its failing in the
>> authentication stage. I am attaching my property file for reference, please
>> let me know if you find anything wrong in this.
>> *test_data.properties*
>>
>> # Common properties
>>> publicKeyFile=/home/psaha4/.ssh/id_rsa.pub
>>> # Jetstream properties
>>> jetstream_imageId=448636b0-450a-4b49-9bfe-b3135fc443e8
>>> jetstream_flavorId=3
>>> OS_PROJECT_DOMAIN_NAME=tacc
>>> OS_USER_DOMAIN_NAME=tacc
>>> OS_PROJECT_NAME=scigap
>>> OS_TENANT_NAME=scigap
>>> OS_USERNAME=scigap
>>> OS_PASSWORD=<not exposing the password here>
>>> OS_AUTH_URL=https://jblb.jetstream-cloud.org:35357/v3
>>> OS_IDENTITY_API_VERSION=3
>>> # Network Properties
>>> OS_FLOATING_IP_POOL=public
>>> OS_SUBNET_NAME=airavata
>>
>>
>> Can someone send me jetstream_openrc.properties and test_data.properties
>> file from a working environment in  a separate email so that I can place
>> them and test from my system once.
>>
>> Thanks
>> Pankaj
>>
>>
>> On Thu, Apr 21, 2016 at 11:43 AM, Pankaj Saha <ps...@binghamton.edu>
>> wrote:
>>
>>> Hi Shameera,
>>> I have received the password from Mangirish and I am using the same
>>> details as he has provided.
>>> Regarding the jetstream keypair, my understanding is, during the test
>>> run it fetches the public key from the properties file and send it to the
>>> jetstream servers.  Please let me know how I need to configure it
>>> separately.
>>>
>>> Thanks
>>> Pankaj
>>>
>>> On Wed, Apr 20, 2016 at 8:48 PM, Shameera Rathnayaka <
>>> shameerainfo@gmail.com> wrote:
>>>
>>>> Hi Pankaj,
>>>>
>>>> To work with your ssh keys you need to add them to jetstream keypair.
>>>> Have you done that part?
>>>>
>>>> also you are not providing correct the OS_PASSWORD value accordding to
>>>> above deatils.
>>>>
>>>> Shameera.
>>>>
>>>>
>>>> On Wed, Apr 20, 2016 at 3:42 PM Pankaj Saha <ps...@binghamton.edu>
>>>> wrote:
>>>>
>>>>> I have just use maven to build the same project. here is thedetails
>>>>> # Common properties
>>>>> publicKeyFile=/home/psaha4/.ssh/id_rsa.pub
>>>>>
>>>>> # Jetstream properties
>>>>> jetstream_imageId=448636b0-450a-4b49-9bfe-b3135fc443e8
>>>>> jetstream_flavorId=3
>>>>>
>>>>> OS_PROJECT_DOMAIN_NAME=tacc
>>>>> OS_USER_DOMAIN_NAME=tacc
>>>>> OS_PROJECT_NAME=scigap
>>>>> OS_TENANT_NAME=scigap
>>>>> OS_USERNAME=scigap
>>>>> OS_PASSWORD=<not exposing here>
>>>>> OS_AUTH_URL=https://jblb.jetstream-cloud.org:35357/v3
>>>>> OS_IDENTITY_API_VERSION=3
>>>>>
>>>>> # Network Properties
>>>>> OS_FLOATING_IP_POOL=public
>>>>> OS_SUBNET_NAME=airavata
>>>>>
>>>>> The test case error that I am getting for the Test case is al below:
>>>>> -------------------------------------------------------
>>>>>  T E S T S
>>>>> -------------------------------------------------------
>>>>> Running org.apache.airavata.cloud.test.CloudIntfTest
>>>>> AuthenticationException{message=Unauthorized, status=401}
>>>>> at
>>>>> org.openstack4j.core.transport.HttpExceptionHandler.mapException(HttpExceptionHandler.java:36)
>>>>> at
>>>>> org.openstack4j.core.transport.HttpExceptionHandler.mapException(HttpExceptionHandler.java:23)
>>>>> at
>>>>> org.openstack4j.openstack.internal.OSAuthenticator.authenticateV3(OSAuthenticator.java:161)
>>>>> at
>>>>> org.openstack4j.openstack.internal.OSAuthenticator.invoke(OSAuthenticator.java:78)
>>>>> at
>>>>> org.openstack4j.openstack.client.OSClientBuilder$ClientV3.authenticate(OSClientBuilder.java:163)
>>>>> at
>>>>> org.openstack4j.openstack.client.OSClientBuilder$ClientV3.authenticate(OSClientBuilder.java:127)
>>>>> at
>>>>> org.apache.airavata.cloud.openstack.OS4JClientProvider.getOSClientV3(OS4JClientProvider.java:86)
>>>>> at
>>>>> org.apache.airavata.cloud.openstack.OS4JClientProvider.getOSClient(OS4JClientProvider.java:49)
>>>>> at
>>>>> org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl.<init>(OpenstackIntfImpl.java:78)
>>>>> at
>>>>> org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:77)
>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>> at
>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>>>> at
>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>> at java.lang.reflect.Method.invoke(Method.java:498)
>>>>> at
>>>>> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>>>>> at
>>>>> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>>>>> at
>>>>> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>>>>> at
>>>>> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>>>>> at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>>>>> at
>>>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
>>>>> at
>>>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
>>>>> at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>>>>> at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>>>>> at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>>>>> at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>>>>> at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>>>>> at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>>>>> at
>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
>>>>> at
>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
>>>>> at
>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
>>>>> at
>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
>>>>> at
>>>>> org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
>>>>> at
>>>>> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
>>>>> at
>>>>> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>>>>> java.lang.NullPointerException
>>>>> at
>>>>> org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl.getKeyPair(OpenstackIntfImpl.java:215)
>>>>> at
>>>>> org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:92)
>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>> at
>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>>>> at
>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>> at java.lang.reflect.Method.invoke(Method.java:498)
>>>>> at
>>>>> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>>>>> at
>>>>> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>>>>> at
>>>>> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>>>>> at
>>>>> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>>>>> at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>>>>> at
>>>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
>>>>> at
>>>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
>>>>> at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>>>>> at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>>>>> at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>>>>> at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>>>>> at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>>>>> at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>>>>> at
>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
>>>>> at
>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
>>>>> at
>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
>>>>> at
>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
>>>>> at
>>>>> org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
>>>>> at
>>>>> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
>>>>> at
>>>>> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>>>>> [main] ERROR org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl -
>>>>> Failed to retrieve keypair: testKey
>>>>> java.lang.NullPointerException
>>>>> at
>>>>> org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl.createKeyPair(OpenstackIntfImpl.java:197)
>>>>> at
>>>>> org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:94)
>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>> at
>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>>>> at
>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>> at java.lang.reflect.Method.invoke(Method.java:498)
>>>>> at
>>>>> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>>>>> at
>>>>> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>>>>> at
>>>>> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>>>>> at
>>>>> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>>>>> at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>>>>> at
>>>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
>>>>> at
>>>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
>>>>> at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>>>>> at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>>>>> at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>>>>> at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>>>>> at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>>>>> at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>>>>> at
>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
>>>>> at
>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
>>>>> at
>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
>>>>> at
>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
>>>>> at
>>>>> org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
>>>>> at
>>>>> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
>>>>> at
>>>>> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>>>>> [main] ERROR org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl -
>>>>> Failed to create keypair: testKey
>>>>> java.lang.NullPointerException
>>>>> at
>>>>> org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:97)
>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>> at
>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>>>> at
>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>> at java.lang.reflect.Method.invoke(Method.java:498)
>>>>> at
>>>>> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>>>>> at
>>>>> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>>>>> at
>>>>> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>>>>> at
>>>>> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>>>>> at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>>>>> at
>>>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
>>>>> at
>>>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
>>>>> at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>>>>> at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>>>>> at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>>>>> at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>>>>> at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>>>>> at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>>>>> at
>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
>>>>> at
>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
>>>>> at
>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
>>>>> at
>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
>>>>> at
>>>>> org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
>>>>> at
>>>>> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
>>>>> at
>>>>> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>>>>> Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.913
>>>>> sec <<< FAILURE! - in org.apache.airavata.cloud.test.CloudIntfTest
>>>>> jetstreamCreateDeleteServerTest(org.apache.airavata.cloud.test.CloudIntfTest)
>>>>>  Time elapsed: 0.908 sec  <<< FAILURE!
>>>>> java.lang.AssertionError: null
>>>>> at org.junit.Assert.fail(Assert.java:86)
>>>>> at org.junit.Assert.fail(Assert.java:95)
>>>>> at
>>>>> org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:128)
>>>>>
>>>>>
>>>>>
>>>>> On Wed, Apr 20, 2016 at 3:36 PM, Suresh Marru <sm...@apache.org>
>>>>> wrote:
>>>>>
>>>>>> Thats nice. Few suggestions:
>>>>>>
>>>>>> * Eclipse or IDEA are good to write code, but to build and run tests
>>>>>> from maven, command line is the best option.
>>>>>> * Please use the mailing lists as much as possible so rest of us can
>>>>>> also contribute. If even you use hangouts, please take time to explain what
>>>>>> the issue is so it engages every one.
>>>>>>
>>>>>> I am able to run the test cases and am able to program
>>>>>> against OpenstackIntfImpl just fine. Can you elaborate on what is the
>>>>>> authentication issue you are running into?
>>>>>>
>>>>>> Suresh
>>>>>>
>>>>>> On Apr 20, 2016, at 3:30 PM, Pankaj Saha <ps...@binghamton.edu>
>>>>>> wrote:
>>>>>>
>>>>>> Hi Suresh,
>>>>>>
>>>>>> I just had a hangout session with Mangirish regarding the same. It
>>>>>> looks like an authentication issue with openstack which he is aware of. He
>>>>>> has explained me his code and I am going to retry fixing the problem.
>>>>>>
>>>>>> I did not use maven to build his project instead I have export his
>>>>>> project as eclipse (mvn eclipse:eclipse) and trying to run the junit test.
>>>>>>
>>>>>> Will update you once I find something new.
>>>>>>
>>>>>> Thanks
>>>>>> Pankaj
>>>>>>
>>>>>>
>>>>>> On Wed, Apr 20, 2016 at 3:21 PM, Suresh Marru <sm...@apache.org>
>>>>>> wrote:
>>>>>>
>>>>>>> Hi Pankaj,
>>>>>>>
>>>>>>> Can you please be more clear? What is failing? Did you try to build
>>>>>>> it using maven within the cloud provisioning directory itself? Did you
>>>>>>> change the public key file in the test_data.properties?
>>>>>>>
>>>>>>> Suresh
>>>>>>>
>>>>>>> On Apr 20, 2016, at 2:56 PM, Pankaj Saha <ps...@binghamton.edu>
>>>>>>> wrote:
>>>>>>>
>>>>>>> I am able to get Mangirish's code in the develop branch. After
>>>>>>> making it an eclipse project, when I am trying to run it as JUnit test,
>>>>>>> it's failing.
>>>>>>> Need help to fix this, possibly some configuration changes in the
>>>>>>> properties file or similar.
>>>>>>> It will be great we can talk over a hangout session or at least a
>>>>>>> chat session to make it work.
>>>>>>>
>>>>>>> On Wed, Apr 20, 2016 at 12:05 PM, Mangirish Wagle <
>>>>>>> vaglomangirish@gmail.com> wrote:
>>>>>>>
>>>>>>>> Hi Pankaj,
>>>>>>>>
>>>>>>>> You may find a sample test code for the module in this unit test
>>>>>>>> file:-
>>>>>>>>
>>>>>>>>
>>>>>>>> https://github.com/apache/airavata/blob/develop/modules/cloud/cloud-provisioning/src/test/java/org/apache/airavata/cloud/test/CloudIntfTest.java
>>>>>>>>
>>>>>>>> Also, if you want to test run the code, you may please follow this
>>>>>>>> quick README:-
>>>>>>>>
>>>>>>>>
>>>>>>>> https://github.com/apache/airavata/blob/develop/modules/cloud/cloud-provisioning/README
>>>>>>>>
>>>>>>>> Please let me know if you need some more info or code walkthrough.
>>>>>>>> Sending you the jetstream openrc credentials separately.
>>>>>>>>
>>>>>>>> Thanks.
>>>>>>>>
>>>>>>>> Regards,
>>>>>>>> Mangirish
>>>>>>>>
>>>>>>>> On Wed, Apr 20, 2016 at 11:42 AM, Suresh Marru <sm...@apache.org>
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>>> Hi Pankaj,
>>>>>>>>>
>>>>>>>>> Please switch to ‘develop’ branch and look for the cloud
>>>>>>>>> provisioning module -
>>>>>>>>> https://github.com/apache/airavata/tree/develop/modules/cloud/cloud-provisioning
>>>>>>>>>
>>>>>>>>> Suresh
>>>>>>>>>
>>>>>>>>> On Apr 20, 2016, at 11:37 AM, Pankaj Saha <ps...@binghamton.edu>
>>>>>>>>> wrote:
>>>>>>>>>
>>>>>>>>> Hello Mangirish,
>>>>>>>>> I have latest Airavata mater branch installed in my local system.
>>>>>>>>> Can you please give us some clue how to start creating the VMs through you
>>>>>>>>> application. Please specify where we can find your corresponding java code.
>>>>>>>>> Is it through PGA website?
>>>>>>>>> Please share the required password to me in a separate email.
>>>>>>>>>
>>>>>>>>> Thanks
>>>>>>>>> Pankaj
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>> --
>>>> Shameera Rathnayaka
>>>>
>>>
>>>
>>
>>
>>
>

Re: Jetstream VM creation through Airavata

Posted by Pankaj Saha <ps...@binghamton.edu>.
Hi Suresh,
Yes, that was the problem. Now it's working.
here is the log:
[main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - Keypair
created successfully: testKey
[main] INFO org.apache.airavata.cloud.test.CloudIntfTest - Keypair created/
retrieved: 83:17:5b:2c:f3:31:06:af:99:c1:c8:8b:62:72:36:35
[main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - Using
network subnet-airavata with ID: ad2552d6-1a02-4d6c-9fa4-ad40d93e5423
[main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - New
server created with ID: 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
[main] INFO org.apache.airavata.cloud.test.CloudIntfTest - Server Created:
2dc71a1d-b735-47cb-83ea-0e9f40b4da06
[main] INFO org.apache.airavata.cloud.test.CloudIntfTest - Waiting for
instance to go ACTIVE...
[main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - Server
retrieved successfully for ID: 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
[main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl -
true:200:null:ActionResponse{success=true, code=200}
[main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl -
Floating IP 149.165.156.142 assigned successfully to server with ID:
2dc71a1d-b735-47cb-83ea-0e9f40b4da06
[main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - Server
retrieved successfully for ID: 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
[main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - Server
deleted successfully for ID: 2dc71a1d-b735-47cb-83ea-0e9f40b4da06
[main] INFO org.apache.airavata.cloud.test.CloudIntfTest - Server deleted:
2dc71a1d-b735-47cb-83ea-0e9f40b4da06
[main] INFO org.apache.airavata.cloud.test.CloudIntfTest - Waiting for
instance to terminate...
[main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - Keypair
deleted successfully: testKey
[main] INFO org.apache.airavata.cloud.test.CloudIntfTest - Keypair deleted:
testKey
[main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - Server
retrieved successfully for ID: 2dc71a1d-b735-47cb-83ea-0e9f40b4da06


Thanks
Pankaj

On Fri, Apr 22, 2016 at 4:15 PM, Suresh Marru <sm...@apache.org> wrote:

> I now noticed that you have used OS_PROJECT_DOMAIN_NAME=tacc instead
> of OS_PROJECT_DOMAIN_NAME=scigap
>
> Suresh
>
> On Apr 22, 2016, at 4:14 PM, Suresh Marru <sm...@apache.org> wrote:
>
> Hi Pankaj, Mangirish,
>
> Is this intermittent or do you consistently get authentication issues? I
> am attaching my openrc file:
>
> OS_PROJECT_DOMAIN_NAME=scigap
> OS_USER_DOMAIN_NAME=tacc
> OS_PROJECT_NAME=scigap
> OS_TENANT_NAME=scigap
> OS_USERNAME=scigap
> OS_PASSWORD=XXXXXXXXXXXXX
> OS_AUTH_URL=https://jblb.jetstream-cloud.org:35357/v3
> OS_IDENTITY_API_VERSION=3
>
> # Network Properties
> OS_FLOATING_IP_POOL=public
> OS_SUBNET_NAME=airavata
>
> To complicate the puzzle, I am consistently able to launch few hundred’s
> of instances within the past day without any issues. I just checked the
> code, I am using it out of the box and no local changes.
>
> Suresh
>
>
> On Apr 22, 2016, at 3:18 PM, Pankaj Saha <ps...@binghamton.edu> wrote:
>
> Hello Everyone,
>
> I had a discussion with Mangirish today morning and we could figure out
> through debugging that java code getting authentication exception when
> trying to authenticate the user with openstack.
> NOVA client for openstack did work well and I have also tested with
> credentials to directly login into the portal.
> I have replicated the same in another system in my same lab network and
> the test case still failing for the same status-401, authentication error.
>
> I have followed these below steps:
>
>    1. generated rsa key
>    2. downloaded airavata from git, switched it to "develop" branch
>    3. changed the required property values for openstack.
>    4. run : mvn clean install from inside the cloud/cloud-provisioning
>    module.
>
> It's definitely not the firewall issue as its failing in the
> authentication stage. I am attaching my property file for reference, please
> let me know if you find anything wrong in this.
> *test_data.properties*
>
> # Common properties
>> publicKeyFile=/home/psaha4/.ssh/id_rsa.pub
>> # Jetstream properties
>> jetstream_imageId=448636b0-450a-4b49-9bfe-b3135fc443e8
>> jetstream_flavorId=3
>> OS_PROJECT_DOMAIN_NAME=tacc
>> OS_USER_DOMAIN_NAME=tacc
>> OS_PROJECT_NAME=scigap
>> OS_TENANT_NAME=scigap
>> OS_USERNAME=scigap
>> OS_PASSWORD=<not exposing the password here>
>> OS_AUTH_URL=https://jblb.jetstream-cloud.org:35357/v3
>> OS_IDENTITY_API_VERSION=3
>> # Network Properties
>> OS_FLOATING_IP_POOL=public
>> OS_SUBNET_NAME=airavata
>
>
> Can someone send me jetstream_openrc.properties and test_data.properties
> file from a working environment in  a separate email so that I can place
> them and test from my system once.
>
> Thanks
> Pankaj
>
>
> On Thu, Apr 21, 2016 at 11:43 AM, Pankaj Saha <ps...@binghamton.edu>
> wrote:
>
>> Hi Shameera,
>> I have received the password from Mangirish and I am using the same
>> details as he has provided.
>> Regarding the jetstream keypair, my understanding is, during the test run
>> it fetches the public key from the properties file and send it to the
>> jetstream servers.  Please let me know how I need to configure it
>> separately.
>>
>> Thanks
>> Pankaj
>>
>> On Wed, Apr 20, 2016 at 8:48 PM, Shameera Rathnayaka <
>> shameerainfo@gmail.com> wrote:
>>
>>> Hi Pankaj,
>>>
>>> To work with your ssh keys you need to add them to jetstream keypair.
>>> Have you done that part?
>>>
>>> also you are not providing correct the OS_PASSWORD value accordding to
>>> above deatils.
>>>
>>> Shameera.
>>>
>>>
>>> On Wed, Apr 20, 2016 at 3:42 PM Pankaj Saha <ps...@binghamton.edu>
>>> wrote:
>>>
>>>> I have just use maven to build the same project. here is thedetails
>>>> # Common properties
>>>> publicKeyFile=/home/psaha4/.ssh/id_rsa.pub
>>>>
>>>> # Jetstream properties
>>>> jetstream_imageId=448636b0-450a-4b49-9bfe-b3135fc443e8
>>>> jetstream_flavorId=3
>>>>
>>>> OS_PROJECT_DOMAIN_NAME=tacc
>>>> OS_USER_DOMAIN_NAME=tacc
>>>> OS_PROJECT_NAME=scigap
>>>> OS_TENANT_NAME=scigap
>>>> OS_USERNAME=scigap
>>>> OS_PASSWORD=<not exposing here>
>>>> OS_AUTH_URL=https://jblb.jetstream-cloud.org:35357/v3
>>>> OS_IDENTITY_API_VERSION=3
>>>>
>>>> # Network Properties
>>>> OS_FLOATING_IP_POOL=public
>>>> OS_SUBNET_NAME=airavata
>>>>
>>>> The test case error that I am getting for the Test case is al below:
>>>> -------------------------------------------------------
>>>>  T E S T S
>>>> -------------------------------------------------------
>>>> Running org.apache.airavata.cloud.test.CloudIntfTest
>>>> AuthenticationException{message=Unauthorized, status=401}
>>>> at
>>>> org.openstack4j.core.transport.HttpExceptionHandler.mapException(HttpExceptionHandler.java:36)
>>>> at
>>>> org.openstack4j.core.transport.HttpExceptionHandler.mapException(HttpExceptionHandler.java:23)
>>>> at
>>>> org.openstack4j.openstack.internal.OSAuthenticator.authenticateV3(OSAuthenticator.java:161)
>>>> at
>>>> org.openstack4j.openstack.internal.OSAuthenticator.invoke(OSAuthenticator.java:78)
>>>> at
>>>> org.openstack4j.openstack.client.OSClientBuilder$ClientV3.authenticate(OSClientBuilder.java:163)
>>>> at
>>>> org.openstack4j.openstack.client.OSClientBuilder$ClientV3.authenticate(OSClientBuilder.java:127)
>>>> at
>>>> org.apache.airavata.cloud.openstack.OS4JClientProvider.getOSClientV3(OS4JClientProvider.java:86)
>>>> at
>>>> org.apache.airavata.cloud.openstack.OS4JClientProvider.getOSClient(OS4JClientProvider.java:49)
>>>> at
>>>> org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl.<init>(OpenstackIntfImpl.java:78)
>>>> at
>>>> org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:77)
>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>> at
>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>>> at
>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>> at java.lang.reflect.Method.invoke(Method.java:498)
>>>> at
>>>> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>>>> at
>>>> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>>>> at
>>>> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>>>> at
>>>> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>>>> at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>>>> at
>>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
>>>> at
>>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
>>>> at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>>>> at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>>>> at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>>>> at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>>>> at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>>>> at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>>>> at
>>>> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
>>>> at
>>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
>>>> at
>>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
>>>> at
>>>> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
>>>> at
>>>> org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
>>>> at
>>>> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
>>>> at
>>>> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>>>> java.lang.NullPointerException
>>>> at
>>>> org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl.getKeyPair(OpenstackIntfImpl.java:215)
>>>> at
>>>> org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:92)
>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>> at
>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>>> at
>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>> at java.lang.reflect.Method.invoke(Method.java:498)
>>>> at
>>>> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>>>> at
>>>> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>>>> at
>>>> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>>>> at
>>>> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>>>> at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>>>> at
>>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
>>>> at
>>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
>>>> at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>>>> at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>>>> at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>>>> at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>>>> at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>>>> at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>>>> at
>>>> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
>>>> at
>>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
>>>> at
>>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
>>>> at
>>>> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
>>>> at
>>>> org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
>>>> at
>>>> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
>>>> at
>>>> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>>>> [main] ERROR org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl -
>>>> Failed to retrieve keypair: testKey
>>>> java.lang.NullPointerException
>>>> at
>>>> org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl.createKeyPair(OpenstackIntfImpl.java:197)
>>>> at
>>>> org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:94)
>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>> at
>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>>> at
>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>> at java.lang.reflect.Method.invoke(Method.java:498)
>>>> at
>>>> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>>>> at
>>>> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>>>> at
>>>> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>>>> at
>>>> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>>>> at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>>>> at
>>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
>>>> at
>>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
>>>> at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>>>> at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>>>> at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>>>> at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>>>> at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>>>> at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>>>> at
>>>> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
>>>> at
>>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
>>>> at
>>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
>>>> at
>>>> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
>>>> at
>>>> org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
>>>> at
>>>> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
>>>> at
>>>> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>>>> [main] ERROR org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl -
>>>> Failed to create keypair: testKey
>>>> java.lang.NullPointerException
>>>> at
>>>> org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:97)
>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>> at
>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>>> at
>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>> at java.lang.reflect.Method.invoke(Method.java:498)
>>>> at
>>>> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>>>> at
>>>> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>>>> at
>>>> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>>>> at
>>>> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>>>> at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>>>> at
>>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
>>>> at
>>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
>>>> at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>>>> at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>>>> at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>>>> at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>>>> at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>>>> at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>>>> at
>>>> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
>>>> at
>>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
>>>> at
>>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
>>>> at
>>>> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
>>>> at
>>>> org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
>>>> at
>>>> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
>>>> at
>>>> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>>>> Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.913
>>>> sec <<< FAILURE! - in org.apache.airavata.cloud.test.CloudIntfTest
>>>> jetstreamCreateDeleteServerTest(org.apache.airavata.cloud.test.CloudIntfTest)
>>>>  Time elapsed: 0.908 sec  <<< FAILURE!
>>>> java.lang.AssertionError: null
>>>> at org.junit.Assert.fail(Assert.java:86)
>>>> at org.junit.Assert.fail(Assert.java:95)
>>>> at
>>>> org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:128)
>>>>
>>>>
>>>>
>>>> On Wed, Apr 20, 2016 at 3:36 PM, Suresh Marru <sm...@apache.org>
>>>> wrote:
>>>>
>>>>> Thats nice. Few suggestions:
>>>>>
>>>>> * Eclipse or IDEA are good to write code, but to build and run tests
>>>>> from maven, command line is the best option.
>>>>> * Please use the mailing lists as much as possible so rest of us can
>>>>> also contribute. If even you use hangouts, please take time to explain what
>>>>> the issue is so it engages every one.
>>>>>
>>>>> I am able to run the test cases and am able to program
>>>>> against OpenstackIntfImpl just fine. Can you elaborate on what is the
>>>>> authentication issue you are running into?
>>>>>
>>>>> Suresh
>>>>>
>>>>> On Apr 20, 2016, at 3:30 PM, Pankaj Saha <ps...@binghamton.edu>
>>>>> wrote:
>>>>>
>>>>> Hi Suresh,
>>>>>
>>>>> I just had a hangout session with Mangirish regarding the same. It
>>>>> looks like an authentication issue with openstack which he is aware of. He
>>>>> has explained me his code and I am going to retry fixing the problem.
>>>>>
>>>>> I did not use maven to build his project instead I have export his
>>>>> project as eclipse (mvn eclipse:eclipse) and trying to run the junit test.
>>>>>
>>>>> Will update you once I find something new.
>>>>>
>>>>> Thanks
>>>>> Pankaj
>>>>>
>>>>>
>>>>> On Wed, Apr 20, 2016 at 3:21 PM, Suresh Marru <sm...@apache.org>
>>>>> wrote:
>>>>>
>>>>>> Hi Pankaj,
>>>>>>
>>>>>> Can you please be more clear? What is failing? Did you try to build
>>>>>> it using maven within the cloud provisioning directory itself? Did you
>>>>>> change the public key file in the test_data.properties?
>>>>>>
>>>>>> Suresh
>>>>>>
>>>>>> On Apr 20, 2016, at 2:56 PM, Pankaj Saha <ps...@binghamton.edu>
>>>>>> wrote:
>>>>>>
>>>>>> I am able to get Mangirish's code in the develop branch. After making
>>>>>> it an eclipse project, when I am trying to run it as JUnit test, it's
>>>>>> failing.
>>>>>> Need help to fix this, possibly some configuration changes in the
>>>>>> properties file or similar.
>>>>>> It will be great we can talk over a hangout session or at least a
>>>>>> chat session to make it work.
>>>>>>
>>>>>> On Wed, Apr 20, 2016 at 12:05 PM, Mangirish Wagle <
>>>>>> vaglomangirish@gmail.com> wrote:
>>>>>>
>>>>>>> Hi Pankaj,
>>>>>>>
>>>>>>> You may find a sample test code for the module in this unit test
>>>>>>> file:-
>>>>>>>
>>>>>>>
>>>>>>> https://github.com/apache/airavata/blob/develop/modules/cloud/cloud-provisioning/src/test/java/org/apache/airavata/cloud/test/CloudIntfTest.java
>>>>>>>
>>>>>>> Also, if you want to test run the code, you may please follow this
>>>>>>> quick README:-
>>>>>>>
>>>>>>>
>>>>>>> https://github.com/apache/airavata/blob/develop/modules/cloud/cloud-provisioning/README
>>>>>>>
>>>>>>> Please let me know if you need some more info or code walkthrough.
>>>>>>> Sending you the jetstream openrc credentials separately.
>>>>>>>
>>>>>>> Thanks.
>>>>>>>
>>>>>>> Regards,
>>>>>>> Mangirish
>>>>>>>
>>>>>>> On Wed, Apr 20, 2016 at 11:42 AM, Suresh Marru <sm...@apache.org>
>>>>>>> wrote:
>>>>>>>
>>>>>>>> Hi Pankaj,
>>>>>>>>
>>>>>>>> Please switch to ‘develop’ branch and look for the cloud
>>>>>>>> provisioning module -
>>>>>>>> https://github.com/apache/airavata/tree/develop/modules/cloud/cloud-provisioning
>>>>>>>>
>>>>>>>> Suresh
>>>>>>>>
>>>>>>>> On Apr 20, 2016, at 11:37 AM, Pankaj Saha <ps...@binghamton.edu>
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>> Hello Mangirish,
>>>>>>>> I have latest Airavata mater branch installed in my local system.
>>>>>>>> Can you please give us some clue how to start creating the VMs through you
>>>>>>>> application. Please specify where we can find your corresponding java code.
>>>>>>>> Is it through PGA website?
>>>>>>>> Please share the required password to me in a separate email.
>>>>>>>>
>>>>>>>> Thanks
>>>>>>>> Pankaj
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>> --
>>> Shameera Rathnayaka
>>>
>>
>>
>
>
>

Re: Jetstream VM creation through Airavata

Posted by Suresh Marru <sm...@apache.org>.
I now noticed that you have used OS_PROJECT_DOMAIN_NAME=tacc instead of OS_PROJECT_DOMAIN_NAME=scigap

Suresh

> On Apr 22, 2016, at 4:14 PM, Suresh Marru <sm...@apache.org> wrote:
> 
> Hi Pankaj, Mangirish,
> 
> Is this intermittent or do you consistently get authentication issues? I am attaching my openrc file:
> 
> OS_PROJECT_DOMAIN_NAME=scigap
> OS_USER_DOMAIN_NAME=tacc
> OS_PROJECT_NAME=scigap
> OS_TENANT_NAME=scigap
> OS_USERNAME=scigap
> OS_PASSWORD=XXXXXXXXXXXXX
> OS_AUTH_URL=https://jblb.jetstream-cloud.org:35357/v3 <https://jblb.jetstream-cloud.org:35357/v3>
> OS_IDENTITY_API_VERSION=3
> 
> # Network Properties
> OS_FLOATING_IP_POOL=public
> OS_SUBNET_NAME=airavata
> 
> To complicate the puzzle, I am consistently able to launch few hundred’s of instances within the past day without any issues. I just checked the code, I am using it out of the box and no local changes. 
> 
> Suresh
> 
> 
>> On Apr 22, 2016, at 3:18 PM, Pankaj Saha <psaha4@binghamton.edu <ma...@binghamton.edu>> wrote:
>> 
>> Hello Everyone,
>> 
>> I had a discussion with Mangirish today morning and we could figure out through debugging that java code getting authentication exception when trying to authenticate the user with openstack. 
>> NOVA client for openstack did work well and I have also tested with credentials to directly login into the portal.
>> I have replicated the same in another system in my same lab network and the test case still failing for the same status-401, authentication error. 
>> 
>> I have followed these below steps:
>> generated rsa key
>> downloaded airavata from git, switched it to "develop" branch
>> changed the required property values for openstack.
>> run : mvn clean install from inside the cloud/cloud-provisioning module.
>> It's definitely not the firewall issue as its failing in the authentication stage. I am attaching my property file for reference, please let me know if you find anything wrong in this.
>> test_data.properties
>> 
>> # Common properties
>> publicKeyFile=/home/psaha4/.ssh/id_rsa.pub
>> # Jetstream properties
>> jetstream_imageId=448636b0-450a-4b49-9bfe-b3135fc443e8
>> jetstream_flavorId=3
>> OS_PROJECT_DOMAIN_NAME=tacc
>> OS_USER_DOMAIN_NAME=tacc
>> OS_PROJECT_NAME=scigap
>> OS_TENANT_NAME=scigap
>> OS_USERNAME=scigap
>> OS_PASSWORD=<not exposing the password here>
>> OS_AUTH_URL=https://jblb.jetstream-cloud.org:35357/v3 <https://jblb.jetstream-cloud.org:35357/v3>
>> OS_IDENTITY_API_VERSION=3
>> # Network Properties
>> OS_FLOATING_IP_POOL=public
>> OS_SUBNET_NAME=airavata
>> 
>> Can someone send me jetstream_openrc.properties and test_data.properties file from a working environment in  a separate email so that I can place them and test from my system once.
>> 
>> Thanks
>> Pankaj
>> 
>> 
>> On Thu, Apr 21, 2016 at 11:43 AM, Pankaj Saha <psaha4@binghamton.edu <ma...@binghamton.edu>> wrote:
>> Hi Shameera,
>> I have received the password from Mangirish and I am using the same details as he has provided.
>> Regarding the jetstream keypair, my understanding is, during the test run it fetches the public key from the properties file and send it to the jetstream servers.  Please let me know how I need to configure it separately.
>> 
>> Thanks
>> Pankaj
>> 
>> On Wed, Apr 20, 2016 at 8:48 PM, Shameera Rathnayaka <shameerainfo@gmail.com <ma...@gmail.com>> wrote:
>> Hi Pankaj,
>> 
>> To work with your ssh keys you need to add them to jetstream keypair. Have you done that part? 
>> 
>> also you are not providing correct the OS_PASSWORD value accordding to above deatils.
>> 
>> Shameera.
>> 
>> 
>> On Wed, Apr 20, 2016 at 3:42 PM Pankaj Saha <psaha4@binghamton.edu <ma...@binghamton.edu>> wrote:
>> I have just use maven to build the same project. here is thedetails
>> # Common properties
>> publicKeyFile=/home/psaha4/.ssh/id_rsa.pub
>> 
>> # Jetstream properties
>> jetstream_imageId=448636b0-450a-4b49-9bfe-b3135fc443e8
>> jetstream_flavorId=3
>> 
>> OS_PROJECT_DOMAIN_NAME=tacc
>> OS_USER_DOMAIN_NAME=tacc
>> OS_PROJECT_NAME=scigap
>> OS_TENANT_NAME=scigap
>> OS_USERNAME=scigap
>> OS_PASSWORD=<not exposing here>
>> OS_AUTH_URL=https://jblb.jetstream-cloud.org:35357/v3 <https://jblb.jetstream-cloud.org:35357/v3>
>> OS_IDENTITY_API_VERSION=3
>> 
>> # Network Properties
>> OS_FLOATING_IP_POOL=public
>> OS_SUBNET_NAME=airavata
>> 
>> The test case error that I am getting for the Test case is al below:
>> -------------------------------------------------------
>>  T E S T S
>> -------------------------------------------------------
>> Running org.apache.airavata.cloud.test.CloudIntfTest
>> AuthenticationException{message=Unauthorized, status=401}
>> 	at org.openstack4j.core.transport.HttpExceptionHandler.mapException(HttpExceptionHandler.java:36)
>> 	at org.openstack4j.core.transport.HttpExceptionHandler.mapException(HttpExceptionHandler.java:23)
>> 	at org.openstack4j.openstack.internal.OSAuthenticator.authenticateV3(OSAuthenticator.java:161)
>> 	at org.openstack4j.openstack.internal.OSAuthenticator.invoke(OSAuthenticator.java:78)
>> 	at org.openstack4j.openstack.client.OSClientBuilder$ClientV3.authenticate(OSClientBuilder.java:163)
>> 	at org.openstack4j.openstack.client.OSClientBuilder$ClientV3.authenticate(OSClientBuilder.java:127)
>> 	at org.apache.airavata.cloud.openstack.OS4JClientProvider.getOSClientV3(OS4JClientProvider.java:86)
>> 	at org.apache.airavata.cloud.openstack.OS4JClientProvider.getOSClient(OS4JClientProvider.java:49)
>> 	at org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl.<init>(OpenstackIntfImpl.java:78)
>> 	at org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:77)
>> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> 	at java.lang.reflect.Method.invoke(Method.java:498)
>> 	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>> 	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>> 	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>> 	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>> 	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>> 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
>> 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
>> 	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>> 	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>> 	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>> 	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>> 	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>> 	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>> 	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
>> 	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
>> 	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
>> 	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
>> 	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
>> 	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
>> 	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>> java.lang.NullPointerException
>> 	at org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl.getKeyPair(OpenstackIntfImpl.java:215)
>> 	at org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:92)
>> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> 	at java.lang.reflect.Method.invoke(Method.java:498)
>> 	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>> 	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>> 	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>> 	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>> 	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>> 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
>> 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
>> 	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>> 	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>> 	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>> 	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>> 	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>> 	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>> 	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
>> 	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
>> 	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
>> 	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
>> 	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
>> 	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
>> 	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>> [main] ERROR org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - Failed to retrieve keypair: testKey
>> java.lang.NullPointerException
>> 	at org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl.createKeyPair(OpenstackIntfImpl.java:197)
>> 	at org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:94)
>> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> 	at java.lang.reflect.Method.invoke(Method.java:498)
>> 	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>> 	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>> 	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>> 	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>> 	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>> 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
>> 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
>> 	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>> 	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>> 	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>> 	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>> 	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>> 	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>> 	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
>> 	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
>> 	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
>> 	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
>> 	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
>> 	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
>> 	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>> [main] ERROR org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - Failed to create keypair: testKey
>> java.lang.NullPointerException
>> 	at org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:97)
>> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> 	at java.lang.reflect.Method.invoke(Method.java:498)
>> 	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>> 	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>> 	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>> 	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>> 	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>> 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
>> 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
>> 	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>> 	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>> 	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>> 	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>> 	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>> 	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>> 	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
>> 	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
>> 	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
>> 	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
>> 	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
>> 	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
>> 	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>> Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.913 sec <<< FAILURE! - in org.apache.airavata.cloud.test.CloudIntfTest
>> jetstreamCreateDeleteServerTest(org.apache.airavata.cloud.test.CloudIntfTest)  Time elapsed: 0.908 sec  <<< FAILURE!
>> java.lang.AssertionError: null
>> 	at org.junit.Assert.fail(Assert.java:86)
>> 	at org.junit.Assert.fail(Assert.java:95)
>> 	at org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:128)
>> 
>> 
>> 
>> On Wed, Apr 20, 2016 at 3:36 PM, Suresh Marru <smarru@apache.org <ma...@apache.org>> wrote:
>> Thats nice. Few suggestions:
>> 
>> * Eclipse or IDEA are good to write code, but to build and run tests from maven, command line is the best option. 
>> * Please use the mailing lists as much as possible so rest of us can also contribute. If even you use hangouts, please take time to explain what the issue is so it engages every one. 
>> 
>> I am able to run the test cases and am able to program against OpenstackIntfImpl just fine. Can you elaborate on what is the authentication issue you are running into? 
>> 
>> Suresh
>> 
>>> On Apr 20, 2016, at 3:30 PM, Pankaj Saha <psaha4@binghamton.edu <ma...@binghamton.edu>> wrote:
>>> 
>>> Hi Suresh, 
>>> 
>>> I just had a hangout session with Mangirish regarding the same. It looks like an authentication issue with openstack which he is aware of. He has explained me his code and I am going to retry fixing the problem.
>>> 
>>> I did not use maven to build his project instead I have export his project as eclipse (mvn eclipse:eclipse) and trying to run the junit test.
>>> 
>>> Will update you once I find something new.
>>> 
>>> Thanks
>>> Pankaj
>>> 
>>> 
>>> On Wed, Apr 20, 2016 at 3:21 PM, Suresh Marru <smarru@apache.org <ma...@apache.org>> wrote:
>>> Hi Pankaj,
>>> 
>>> Can you please be more clear? What is failing? Did you try to build it using maven within the cloud provisioning directory itself? Did you change the public key file in the test_data.properties? 
>>> 
>>> Suresh
>>> 
>>>> On Apr 20, 2016, at 2:56 PM, Pankaj Saha <psaha4@binghamton.edu <ma...@binghamton.edu>> wrote:
>>>> 
>>>> I am able to get Mangirish's code in the develop branch. After making it an eclipse project, when I am trying to run it as JUnit test, it's failing.
>>>> Need help to fix this, possibly some configuration changes in the properties file or similar.
>>>> It will be great we can talk over a hangout session or at least a chat session to make it work.
>>>> 
>>>> On Wed, Apr 20, 2016 at 12:05 PM, Mangirish Wagle <vaglomangirish@gmail.com <ma...@gmail.com>> wrote:
>>>> Hi Pankaj,
>>>> 
>>>> You may find a sample test code for the module in this unit test file:-
>>>> 
>>>> https://github.com/apache/airavata/blob/develop/modules/cloud/cloud-provisioning/src/test/java/org/apache/airavata/cloud/test/CloudIntfTest.java <https://github.com/apache/airavata/blob/develop/modules/cloud/cloud-provisioning/src/test/java/org/apache/airavata/cloud/test/CloudIntfTest.java>
>>>> 
>>>> Also, if you want to test run the code, you may please follow this quick README:-
>>>> 
>>>> https://github.com/apache/airavata/blob/develop/modules/cloud/cloud-provisioning/README <https://github.com/apache/airavata/blob/develop/modules/cloud/cloud-provisioning/README>
>>>> 
>>>> Please let me know if you need some more info or code walkthrough. Sending you the jetstream openrc credentials separately. 
>>>> 
>>>> Thanks.
>>>> 
>>>> Regards,
>>>> Mangirish
>>>> 
>>>> On Wed, Apr 20, 2016 at 11:42 AM, Suresh Marru <smarru@apache.org <ma...@apache.org>> wrote:
>>>> Hi Pankaj,
>>>> 
>>>> Please switch to ‘develop’ branch and look for the cloud provisioning module - https://github.com/apache/airavata/tree/develop/modules/cloud/cloud-provisioning <https://github.com/apache/airavata/tree/develop/modules/cloud/cloud-provisioning>
>>>> 
>>>> Suresh
>>>> 
>>>>> On Apr 20, 2016, at 11:37 AM, Pankaj Saha <psaha4@binghamton.edu <ma...@binghamton.edu>> wrote:
>>>>> 
>>>>> Hello Mangirish,
>>>>> I have latest Airavata mater branch installed in my local system. Can you please give us some clue how to start creating the VMs through you application. Please specify where we can find your corresponding java code. Is it through PGA website?
>>>>> Please share the required password to me in a separate email.
>>>>> 
>>>>> Thanks
>>>>> Pankaj
>>>> 
>>>> 
>>>> 
>>> 
>>> 
>> 
>> 
>> -- 
>> Shameera Rathnayaka
>> 
>> 
> 


Re: Jetstream VM creation through Airavata

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

Is this intermittent or do you consistently get authentication issues? I am attaching my openrc file:

OS_PROJECT_DOMAIN_NAME=scigap
OS_USER_DOMAIN_NAME=tacc
OS_PROJECT_NAME=scigap
OS_TENANT_NAME=scigap
OS_USERNAME=scigap
OS_PASSWORD=XXXXXXXXXXXXX
OS_AUTH_URL=https://jblb.jetstream-cloud.org:35357/v3
OS_IDENTITY_API_VERSION=3

# Network Properties
OS_FLOATING_IP_POOL=public
OS_SUBNET_NAME=airavata

To complicate the puzzle, I am consistently able to launch few hundred’s of instances within the past day without any issues. I just checked the code, I am using it out of the box and no local changes. 

Suresh


> On Apr 22, 2016, at 3:18 PM, Pankaj Saha <ps...@binghamton.edu> wrote:
> 
> Hello Everyone,
> 
> I had a discussion with Mangirish today morning and we could figure out through debugging that java code getting authentication exception when trying to authenticate the user with openstack. 
> NOVA client for openstack did work well and I have also tested with credentials to directly login into the portal.
> I have replicated the same in another system in my same lab network and the test case still failing for the same status-401, authentication error. 
> 
> I have followed these below steps:
> generated rsa key
> downloaded airavata from git, switched it to "develop" branch
> changed the required property values for openstack.
> run : mvn clean install from inside the cloud/cloud-provisioning module.
> It's definitely not the firewall issue as its failing in the authentication stage. I am attaching my property file for reference, please let me know if you find anything wrong in this.
> test_data.properties
> 
> # Common properties
> publicKeyFile=/home/psaha4/.ssh/id_rsa.pub
> # Jetstream properties
> jetstream_imageId=448636b0-450a-4b49-9bfe-b3135fc443e8
> jetstream_flavorId=3
> OS_PROJECT_DOMAIN_NAME=tacc
> OS_USER_DOMAIN_NAME=tacc
> OS_PROJECT_NAME=scigap
> OS_TENANT_NAME=scigap
> OS_USERNAME=scigap
> OS_PASSWORD=<not exposing the password here>
> OS_AUTH_URL=https://jblb.jetstream-cloud.org:35357/v3 <https://jblb.jetstream-cloud.org:35357/v3>
> OS_IDENTITY_API_VERSION=3
> # Network Properties
> OS_FLOATING_IP_POOL=public
> OS_SUBNET_NAME=airavata
> 
> Can someone send me jetstream_openrc.properties and test_data.properties file from a working environment in  a separate email so that I can place them and test from my system once.
> 
> Thanks
> Pankaj
> 
> 
> On Thu, Apr 21, 2016 at 11:43 AM, Pankaj Saha <psaha4@binghamton.edu <ma...@binghamton.edu>> wrote:
> Hi Shameera,
> I have received the password from Mangirish and I am using the same details as he has provided.
> Regarding the jetstream keypair, my understanding is, during the test run it fetches the public key from the properties file and send it to the jetstream servers.  Please let me know how I need to configure it separately.
> 
> Thanks
> Pankaj
> 
> On Wed, Apr 20, 2016 at 8:48 PM, Shameera Rathnayaka <shameerainfo@gmail.com <ma...@gmail.com>> wrote:
> Hi Pankaj,
> 
> To work with your ssh keys you need to add them to jetstream keypair. Have you done that part? 
> 
> also you are not providing correct the OS_PASSWORD value accordding to above deatils.
> 
> Shameera.
> 
> 
> On Wed, Apr 20, 2016 at 3:42 PM Pankaj Saha <psaha4@binghamton.edu <ma...@binghamton.edu>> wrote:
> I have just use maven to build the same project. here is thedetails
> # Common properties
> publicKeyFile=/home/psaha4/.ssh/id_rsa.pub
> 
> # Jetstream properties
> jetstream_imageId=448636b0-450a-4b49-9bfe-b3135fc443e8
> jetstream_flavorId=3
> 
> OS_PROJECT_DOMAIN_NAME=tacc
> OS_USER_DOMAIN_NAME=tacc
> OS_PROJECT_NAME=scigap
> OS_TENANT_NAME=scigap
> OS_USERNAME=scigap
> OS_PASSWORD=<not exposing here>
> OS_AUTH_URL=https://jblb.jetstream-cloud.org:35357/v3 <https://jblb.jetstream-cloud.org:35357/v3>
> OS_IDENTITY_API_VERSION=3
> 
> # Network Properties
> OS_FLOATING_IP_POOL=public
> OS_SUBNET_NAME=airavata
> 
> The test case error that I am getting for the Test case is al below:
> -------------------------------------------------------
>  T E S T S
> -------------------------------------------------------
> Running org.apache.airavata.cloud.test.CloudIntfTest
> AuthenticationException{message=Unauthorized, status=401}
> 	at org.openstack4j.core.transport.HttpExceptionHandler.mapException(HttpExceptionHandler.java:36)
> 	at org.openstack4j.core.transport.HttpExceptionHandler.mapException(HttpExceptionHandler.java:23)
> 	at org.openstack4j.openstack.internal.OSAuthenticator.authenticateV3(OSAuthenticator.java:161)
> 	at org.openstack4j.openstack.internal.OSAuthenticator.invoke(OSAuthenticator.java:78)
> 	at org.openstack4j.openstack.client.OSClientBuilder$ClientV3.authenticate(OSClientBuilder.java:163)
> 	at org.openstack4j.openstack.client.OSClientBuilder$ClientV3.authenticate(OSClientBuilder.java:127)
> 	at org.apache.airavata.cloud.openstack.OS4JClientProvider.getOSClientV3(OS4JClientProvider.java:86)
> 	at org.apache.airavata.cloud.openstack.OS4JClientProvider.getOSClient(OS4JClientProvider.java:49)
> 	at org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl.<init>(OpenstackIntfImpl.java:78)
> 	at org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:77)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:498)
> 	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
> 	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
> 	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
> 	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
> 	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
> 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
> 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
> 	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
> 	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
> 	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
> 	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
> 	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
> 	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
> 	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
> 	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
> 	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
> 	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
> 	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
> 	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
> 	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
> java.lang.NullPointerException
> 	at org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl.getKeyPair(OpenstackIntfImpl.java:215)
> 	at org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:92)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:498)
> 	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
> 	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
> 	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
> 	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
> 	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
> 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
> 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
> 	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
> 	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
> 	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
> 	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
> 	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
> 	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
> 	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
> 	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
> 	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
> 	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
> 	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
> 	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
> 	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
> [main] ERROR org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - Failed to retrieve keypair: testKey
> java.lang.NullPointerException
> 	at org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl.createKeyPair(OpenstackIntfImpl.java:197)
> 	at org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:94)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:498)
> 	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
> 	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
> 	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
> 	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
> 	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
> 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
> 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
> 	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
> 	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
> 	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
> 	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
> 	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
> 	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
> 	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
> 	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
> 	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
> 	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
> 	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
> 	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
> 	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
> [main] ERROR org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - Failed to create keypair: testKey
> java.lang.NullPointerException
> 	at org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:97)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:498)
> 	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
> 	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
> 	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
> 	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
> 	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
> 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
> 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
> 	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
> 	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
> 	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
> 	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
> 	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
> 	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
> 	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
> 	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
> 	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
> 	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
> 	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
> 	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
> 	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
> Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.913 sec <<< FAILURE! - in org.apache.airavata.cloud.test.CloudIntfTest
> jetstreamCreateDeleteServerTest(org.apache.airavata.cloud.test.CloudIntfTest)  Time elapsed: 0.908 sec  <<< FAILURE!
> java.lang.AssertionError: null
> 	at org.junit.Assert.fail(Assert.java:86)
> 	at org.junit.Assert.fail(Assert.java:95)
> 	at org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:128)
> 
> 
> 
> On Wed, Apr 20, 2016 at 3:36 PM, Suresh Marru <smarru@apache.org <ma...@apache.org>> wrote:
> Thats nice. Few suggestions:
> 
> * Eclipse or IDEA are good to write code, but to build and run tests from maven, command line is the best option. 
> * Please use the mailing lists as much as possible so rest of us can also contribute. If even you use hangouts, please take time to explain what the issue is so it engages every one. 
> 
> I am able to run the test cases and am able to program against OpenstackIntfImpl just fine. Can you elaborate on what is the authentication issue you are running into? 
> 
> Suresh
> 
>> On Apr 20, 2016, at 3:30 PM, Pankaj Saha <psaha4@binghamton.edu <ma...@binghamton.edu>> wrote:
>> 
>> Hi Suresh, 
>> 
>> I just had a hangout session with Mangirish regarding the same. It looks like an authentication issue with openstack which he is aware of. He has explained me his code and I am going to retry fixing the problem.
>> 
>> I did not use maven to build his project instead I have export his project as eclipse (mvn eclipse:eclipse) and trying to run the junit test.
>> 
>> Will update you once I find something new.
>> 
>> Thanks
>> Pankaj
>> 
>> 
>> On Wed, Apr 20, 2016 at 3:21 PM, Suresh Marru <smarru@apache.org <ma...@apache.org>> wrote:
>> Hi Pankaj,
>> 
>> Can you please be more clear? What is failing? Did you try to build it using maven within the cloud provisioning directory itself? Did you change the public key file in the test_data.properties? 
>> 
>> Suresh
>> 
>>> On Apr 20, 2016, at 2:56 PM, Pankaj Saha <psaha4@binghamton.edu <ma...@binghamton.edu>> wrote:
>>> 
>>> I am able to get Mangirish's code in the develop branch. After making it an eclipse project, when I am trying to run it as JUnit test, it's failing.
>>> Need help to fix this, possibly some configuration changes in the properties file or similar.
>>> It will be great we can talk over a hangout session or at least a chat session to make it work.
>>> 
>>> On Wed, Apr 20, 2016 at 12:05 PM, Mangirish Wagle <vaglomangirish@gmail.com <ma...@gmail.com>> wrote:
>>> Hi Pankaj,
>>> 
>>> You may find a sample test code for the module in this unit test file:-
>>> 
>>> https://github.com/apache/airavata/blob/develop/modules/cloud/cloud-provisioning/src/test/java/org/apache/airavata/cloud/test/CloudIntfTest.java <https://github.com/apache/airavata/blob/develop/modules/cloud/cloud-provisioning/src/test/java/org/apache/airavata/cloud/test/CloudIntfTest.java>
>>> 
>>> Also, if you want to test run the code, you may please follow this quick README:-
>>> 
>>> https://github.com/apache/airavata/blob/develop/modules/cloud/cloud-provisioning/README <https://github.com/apache/airavata/blob/develop/modules/cloud/cloud-provisioning/README>
>>> 
>>> Please let me know if you need some more info or code walkthrough. Sending you the jetstream openrc credentials separately. 
>>> 
>>> Thanks.
>>> 
>>> Regards,
>>> Mangirish
>>> 
>>> On Wed, Apr 20, 2016 at 11:42 AM, Suresh Marru <smarru@apache.org <ma...@apache.org>> wrote:
>>> Hi Pankaj,
>>> 
>>> Please switch to ‘develop’ branch and look for the cloud provisioning module - https://github.com/apache/airavata/tree/develop/modules/cloud/cloud-provisioning <https://github.com/apache/airavata/tree/develop/modules/cloud/cloud-provisioning>
>>> 
>>> Suresh
>>> 
>>>> On Apr 20, 2016, at 11:37 AM, Pankaj Saha <psaha4@binghamton.edu <ma...@binghamton.edu>> wrote:
>>>> 
>>>> Hello Mangirish,
>>>> I have latest Airavata mater branch installed in my local system. Can you please give us some clue how to start creating the VMs through you application. Please specify where we can find your corresponding java code. Is it through PGA website?
>>>> Please share the required password to me in a separate email.
>>>> 
>>>> Thanks
>>>> Pankaj
>>> 
>>> 
>>> 
>> 
>> 
> 
> 
> -- 
> Shameera Rathnayaka
> 
> 


Re: Jetstream VM creation through Airavata

Posted by Pankaj Saha <ps...@binghamton.edu>.
Hello Everyone,

I had a discussion with Mangirish today morning and we could figure out
through debugging that java code getting authentication exception when
trying to authenticate the user with openstack.
NOVA client for openstack did work well and I have also tested with
credentials to directly login into the portal.
I have replicated the same in another system in my same lab network and the
test case still failing for the same status-401, authentication error.

I have followed these below steps:

   1. generated rsa key
   2. downloaded airavata from git, switched it to "develop" branch
   3. changed the required property values for openstack.
   4. run : mvn clean install from inside the cloud/cloud-provisioning
   module.

It's definitely not the firewall issue as its failing in the authentication
stage. I am attaching my property file for reference, please let me know if
you find anything wrong in this.
*test_data.properties*

# Common properties
> publicKeyFile=/home/psaha4/.ssh/id_rsa.pub
> # Jetstream properties
> jetstream_imageId=448636b0-450a-4b49-9bfe-b3135fc443e8
> jetstream_flavorId=3
> OS_PROJECT_DOMAIN_NAME=tacc
> OS_USER_DOMAIN_NAME=tacc
> OS_PROJECT_NAME=scigap
> OS_TENANT_NAME=scigap
> OS_USERNAME=scigap
> OS_PASSWORD=<not exposing the password here>
> OS_AUTH_URL=https://jblb.jetstream-cloud.org:35357/v3
> OS_IDENTITY_API_VERSION=3
> # Network Properties
> OS_FLOATING_IP_POOL=public
> OS_SUBNET_NAME=airavata


Can someone send me jetstream_openrc.properties and test_data.properties
file from a working environment in  a separate email so that I can place
them and test from my system once.

Thanks
Pankaj


On Thu, Apr 21, 2016 at 11:43 AM, Pankaj Saha <ps...@binghamton.edu> wrote:

> Hi Shameera,
> I have received the password from Mangirish and I am using the same
> details as he has provided.
> Regarding the jetstream keypair, my understanding is, during the test run
> it fetches the public key from the properties file and send it to the
> jetstream servers.  Please let me know how I need to configure it
> separately.
>
> Thanks
> Pankaj
>
> On Wed, Apr 20, 2016 at 8:48 PM, Shameera Rathnayaka <
> shameerainfo@gmail.com> wrote:
>
>> Hi Pankaj,
>>
>> To work with your ssh keys you need to add them to jetstream keypair.
>> Have you done that part?
>>
>> also you are not providing correct the OS_PASSWORD value accordding to
>> above deatils.
>>
>> Shameera.
>>
>>
>> On Wed, Apr 20, 2016 at 3:42 PM Pankaj Saha <ps...@binghamton.edu>
>> wrote:
>>
>>> I have just use maven to build the same project. here is thedetails
>>> # Common properties
>>> publicKeyFile=/home/psaha4/.ssh/id_rsa.pub
>>>
>>> # Jetstream properties
>>> jetstream_imageId=448636b0-450a-4b49-9bfe-b3135fc443e8
>>> jetstream_flavorId=3
>>>
>>> OS_PROJECT_DOMAIN_NAME=tacc
>>> OS_USER_DOMAIN_NAME=tacc
>>> OS_PROJECT_NAME=scigap
>>> OS_TENANT_NAME=scigap
>>> OS_USERNAME=scigap
>>> OS_PASSWORD=<not exposing here>
>>> OS_AUTH_URL=https://jblb.jetstream-cloud.org:35357/v3
>>> OS_IDENTITY_API_VERSION=3
>>>
>>> # Network Properties
>>> OS_FLOATING_IP_POOL=public
>>> OS_SUBNET_NAME=airavata
>>>
>>> The test case error that I am getting for the Test case is al below:
>>> -------------------------------------------------------
>>>  T E S T S
>>> -------------------------------------------------------
>>> Running org.apache.airavata.cloud.test.CloudIntfTest
>>> AuthenticationException{message=Unauthorized, status=401}
>>> at
>>> org.openstack4j.core.transport.HttpExceptionHandler.mapException(HttpExceptionHandler.java:36)
>>> at
>>> org.openstack4j.core.transport.HttpExceptionHandler.mapException(HttpExceptionHandler.java:23)
>>> at
>>> org.openstack4j.openstack.internal.OSAuthenticator.authenticateV3(OSAuthenticator.java:161)
>>> at
>>> org.openstack4j.openstack.internal.OSAuthenticator.invoke(OSAuthenticator.java:78)
>>> at
>>> org.openstack4j.openstack.client.OSClientBuilder$ClientV3.authenticate(OSClientBuilder.java:163)
>>> at
>>> org.openstack4j.openstack.client.OSClientBuilder$ClientV3.authenticate(OSClientBuilder.java:127)
>>> at
>>> org.apache.airavata.cloud.openstack.OS4JClientProvider.getOSClientV3(OS4JClientProvider.java:86)
>>> at
>>> org.apache.airavata.cloud.openstack.OS4JClientProvider.getOSClient(OS4JClientProvider.java:49)
>>> at
>>> org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl.<init>(OpenstackIntfImpl.java:78)
>>> at
>>> org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:77)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> at
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>> at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>> at java.lang.reflect.Method.invoke(Method.java:498)
>>> at
>>> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>>> at
>>> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>>> at
>>> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>>> at
>>> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>>> at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>>> at
>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
>>> at
>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
>>> at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>>> at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>>> at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>>> at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>>> at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>>> at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>>> at
>>> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
>>> at
>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
>>> at
>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
>>> at
>>> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
>>> at
>>> org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
>>> at
>>> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
>>> at
>>> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>>> java.lang.NullPointerException
>>> at
>>> org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl.getKeyPair(OpenstackIntfImpl.java:215)
>>> at
>>> org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:92)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> at
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>> at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>> at java.lang.reflect.Method.invoke(Method.java:498)
>>> at
>>> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>>> at
>>> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>>> at
>>> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>>> at
>>> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>>> at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>>> at
>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
>>> at
>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
>>> at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>>> at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>>> at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>>> at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>>> at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>>> at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>>> at
>>> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
>>> at
>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
>>> at
>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
>>> at
>>> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
>>> at
>>> org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
>>> at
>>> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
>>> at
>>> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>>> [main] ERROR org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl -
>>> Failed to retrieve keypair: testKey
>>> java.lang.NullPointerException
>>> at
>>> org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl.createKeyPair(OpenstackIntfImpl.java:197)
>>> at
>>> org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:94)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> at
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>> at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>> at java.lang.reflect.Method.invoke(Method.java:498)
>>> at
>>> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>>> at
>>> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>>> at
>>> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>>> at
>>> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>>> at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>>> at
>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
>>> at
>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
>>> at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>>> at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>>> at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>>> at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>>> at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>>> at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>>> at
>>> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
>>> at
>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
>>> at
>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
>>> at
>>> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
>>> at
>>> org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
>>> at
>>> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
>>> at
>>> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>>> [main] ERROR org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl -
>>> Failed to create keypair: testKey
>>> java.lang.NullPointerException
>>> at
>>> org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:97)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> at
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>> at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>> at java.lang.reflect.Method.invoke(Method.java:498)
>>> at
>>> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>>> at
>>> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>>> at
>>> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>>> at
>>> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>>> at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>>> at
>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
>>> at
>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
>>> at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>>> at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>>> at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>>> at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>>> at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>>> at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>>> at
>>> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
>>> at
>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
>>> at
>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
>>> at
>>> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
>>> at
>>> org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
>>> at
>>> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
>>> at
>>> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>>> Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.913
>>> sec <<< FAILURE! - in org.apache.airavata.cloud.test.CloudIntfTest
>>> jetstreamCreateDeleteServerTest(org.apache.airavata.cloud.test.CloudIntfTest)
>>>  Time elapsed: 0.908 sec  <<< FAILURE!
>>> java.lang.AssertionError: null
>>> at org.junit.Assert.fail(Assert.java:86)
>>> at org.junit.Assert.fail(Assert.java:95)
>>> at
>>> org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:128)
>>>
>>>
>>>
>>> On Wed, Apr 20, 2016 at 3:36 PM, Suresh Marru <sm...@apache.org> wrote:
>>>
>>>> Thats nice. Few suggestions:
>>>>
>>>> * Eclipse or IDEA are good to write code, but to build and run tests
>>>> from maven, command line is the best option.
>>>> * Please use the mailing lists as much as possible so rest of us can
>>>> also contribute. If even you use hangouts, please take time to explain what
>>>> the issue is so it engages every one.
>>>>
>>>> I am able to run the test cases and am able to program
>>>> against OpenstackIntfImpl just fine. Can you elaborate on what is the
>>>> authentication issue you are running into?
>>>>
>>>> Suresh
>>>>
>>>> On Apr 20, 2016, at 3:30 PM, Pankaj Saha <ps...@binghamton.edu> wrote:
>>>>
>>>> Hi Suresh,
>>>>
>>>> I just had a hangout session with Mangirish regarding the same. It
>>>> looks like an authentication issue with openstack which he is aware of. He
>>>> has explained me his code and I am going to retry fixing the problem.
>>>>
>>>> I did not use maven to build his project instead I have export his
>>>> project as eclipse (mvn eclipse:eclipse) and trying to run the junit test.
>>>>
>>>> Will update you once I find something new.
>>>>
>>>> Thanks
>>>> Pankaj
>>>>
>>>>
>>>> On Wed, Apr 20, 2016 at 3:21 PM, Suresh Marru <sm...@apache.org>
>>>> wrote:
>>>>
>>>>> Hi Pankaj,
>>>>>
>>>>> Can you please be more clear? What is failing? Did you try to build it
>>>>> using maven within the cloud provisioning directory itself? Did you change
>>>>> the public key file in the test_data.properties?
>>>>>
>>>>> Suresh
>>>>>
>>>>> On Apr 20, 2016, at 2:56 PM, Pankaj Saha <ps...@binghamton.edu>
>>>>> wrote:
>>>>>
>>>>> I am able to get Mangirish's code in the develop branch. After making
>>>>> it an eclipse project, when I am trying to run it as JUnit test, it's
>>>>> failing.
>>>>> Need help to fix this, possibly some configuration changes in the
>>>>> properties file or similar.
>>>>> It will be great we can talk over a hangout session or at least a chat
>>>>> session to make it work.
>>>>>
>>>>> On Wed, Apr 20, 2016 at 12:05 PM, Mangirish Wagle <
>>>>> vaglomangirish@gmail.com> wrote:
>>>>>
>>>>>> Hi Pankaj,
>>>>>>
>>>>>> You may find a sample test code for the module in this unit test
>>>>>> file:-
>>>>>>
>>>>>>
>>>>>> https://github.com/apache/airavata/blob/develop/modules/cloud/cloud-provisioning/src/test/java/org/apache/airavata/cloud/test/CloudIntfTest.java
>>>>>>
>>>>>> Also, if you want to test run the code, you may please follow this
>>>>>> quick README:-
>>>>>>
>>>>>>
>>>>>> https://github.com/apache/airavata/blob/develop/modules/cloud/cloud-provisioning/README
>>>>>>
>>>>>> Please let me know if you need some more info or code walkthrough.
>>>>>> Sending you the jetstream openrc credentials separately.
>>>>>>
>>>>>> Thanks.
>>>>>>
>>>>>> Regards,
>>>>>> Mangirish
>>>>>>
>>>>>> On Wed, Apr 20, 2016 at 11:42 AM, Suresh Marru <sm...@apache.org>
>>>>>> wrote:
>>>>>>
>>>>>>> Hi Pankaj,
>>>>>>>
>>>>>>> Please switch to ‘develop’ branch and look for the cloud
>>>>>>> provisioning module -
>>>>>>> https://github.com/apache/airavata/tree/develop/modules/cloud/cloud-provisioning
>>>>>>>
>>>>>>> Suresh
>>>>>>>
>>>>>>> On Apr 20, 2016, at 11:37 AM, Pankaj Saha <ps...@binghamton.edu>
>>>>>>> wrote:
>>>>>>>
>>>>>>> Hello Mangirish,
>>>>>>> I have latest Airavata mater branch installed in my local system.
>>>>>>> Can you please give us some clue how to start creating the VMs through you
>>>>>>> application. Please specify where we can find your corresponding java code.
>>>>>>> Is it through PGA website?
>>>>>>> Please share the required password to me in a separate email.
>>>>>>>
>>>>>>> Thanks
>>>>>>> Pankaj
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>> --
>> Shameera Rathnayaka
>>
>
>

Re: Jetstream VM creation through Airavata

Posted by Pankaj Saha <ps...@binghamton.edu>.
Hi Shameera,
I have received the password from Mangirish and I am using the same details
as he has provided.
Regarding the jetstream keypair, my understanding is, during the test run
it fetches the public key from the properties file and send it to the
jetstream servers.  Please let me know how I need to configure it
separately.

Thanks
Pankaj

On Wed, Apr 20, 2016 at 8:48 PM, Shameera Rathnayaka <shameerainfo@gmail.com
> wrote:

> Hi Pankaj,
>
> To work with your ssh keys you need to add them to jetstream keypair. Have
> you done that part?
>
> also you are not providing correct the OS_PASSWORD value accordding to
> above deatils.
>
> Shameera.
>
>
> On Wed, Apr 20, 2016 at 3:42 PM Pankaj Saha <ps...@binghamton.edu> wrote:
>
>> I have just use maven to build the same project. here is thedetails
>> # Common properties
>> publicKeyFile=/home/psaha4/.ssh/id_rsa.pub
>>
>> # Jetstream properties
>> jetstream_imageId=448636b0-450a-4b49-9bfe-b3135fc443e8
>> jetstream_flavorId=3
>>
>> OS_PROJECT_DOMAIN_NAME=tacc
>> OS_USER_DOMAIN_NAME=tacc
>> OS_PROJECT_NAME=scigap
>> OS_TENANT_NAME=scigap
>> OS_USERNAME=scigap
>> OS_PASSWORD=<not exposing here>
>> OS_AUTH_URL=https://jblb.jetstream-cloud.org:35357/v3
>> OS_IDENTITY_API_VERSION=3
>>
>> # Network Properties
>> OS_FLOATING_IP_POOL=public
>> OS_SUBNET_NAME=airavata
>>
>> The test case error that I am getting for the Test case is al below:
>> -------------------------------------------------------
>>  T E S T S
>> -------------------------------------------------------
>> Running org.apache.airavata.cloud.test.CloudIntfTest
>> AuthenticationException{message=Unauthorized, status=401}
>> at
>> org.openstack4j.core.transport.HttpExceptionHandler.mapException(HttpExceptionHandler.java:36)
>> at
>> org.openstack4j.core.transport.HttpExceptionHandler.mapException(HttpExceptionHandler.java:23)
>> at
>> org.openstack4j.openstack.internal.OSAuthenticator.authenticateV3(OSAuthenticator.java:161)
>> at
>> org.openstack4j.openstack.internal.OSAuthenticator.invoke(OSAuthenticator.java:78)
>> at
>> org.openstack4j.openstack.client.OSClientBuilder$ClientV3.authenticate(OSClientBuilder.java:163)
>> at
>> org.openstack4j.openstack.client.OSClientBuilder$ClientV3.authenticate(OSClientBuilder.java:127)
>> at
>> org.apache.airavata.cloud.openstack.OS4JClientProvider.getOSClientV3(OS4JClientProvider.java:86)
>> at
>> org.apache.airavata.cloud.openstack.OS4JClientProvider.getOSClient(OS4JClientProvider.java:49)
>> at
>> org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl.<init>(OpenstackIntfImpl.java:78)
>> at
>> org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:77)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:498)
>> at
>> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>> at
>> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>> at
>> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>> at
>> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>> at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>> at
>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
>> at
>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
>> at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>> at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>> at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>> at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>> at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>> at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>> at
>> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
>> at
>> org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
>> at
>> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
>> at
>> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
>> at
>> org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
>> at
>> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
>> at
>> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>> java.lang.NullPointerException
>> at
>> org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl.getKeyPair(OpenstackIntfImpl.java:215)
>> at
>> org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:92)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:498)
>> at
>> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>> at
>> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>> at
>> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>> at
>> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>> at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>> at
>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
>> at
>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
>> at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>> at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>> at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>> at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>> at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>> at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>> at
>> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
>> at
>> org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
>> at
>> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
>> at
>> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
>> at
>> org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
>> at
>> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
>> at
>> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>> [main] ERROR org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl -
>> Failed to retrieve keypair: testKey
>> java.lang.NullPointerException
>> at
>> org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl.createKeyPair(OpenstackIntfImpl.java:197)
>> at
>> org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:94)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:498)
>> at
>> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>> at
>> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>> at
>> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>> at
>> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>> at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>> at
>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
>> at
>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
>> at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>> at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>> at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>> at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>> at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>> at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>> at
>> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
>> at
>> org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
>> at
>> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
>> at
>> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
>> at
>> org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
>> at
>> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
>> at
>> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>> [main] ERROR org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl -
>> Failed to create keypair: testKey
>> java.lang.NullPointerException
>> at
>> org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:97)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:498)
>> at
>> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>> at
>> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>> at
>> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>> at
>> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>> at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>> at
>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
>> at
>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
>> at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>> at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>> at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>> at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>> at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>> at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>> at
>> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
>> at
>> org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
>> at
>> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
>> at
>> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
>> at
>> org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
>> at
>> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
>> at
>> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>> Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.913 sec
>> <<< FAILURE! - in org.apache.airavata.cloud.test.CloudIntfTest
>> jetstreamCreateDeleteServerTest(org.apache.airavata.cloud.test.CloudIntfTest)
>>  Time elapsed: 0.908 sec  <<< FAILURE!
>> java.lang.AssertionError: null
>> at org.junit.Assert.fail(Assert.java:86)
>> at org.junit.Assert.fail(Assert.java:95)
>> at
>> org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:128)
>>
>>
>>
>> On Wed, Apr 20, 2016 at 3:36 PM, Suresh Marru <sm...@apache.org> wrote:
>>
>>> Thats nice. Few suggestions:
>>>
>>> * Eclipse or IDEA are good to write code, but to build and run tests
>>> from maven, command line is the best option.
>>> * Please use the mailing lists as much as possible so rest of us can
>>> also contribute. If even you use hangouts, please take time to explain what
>>> the issue is so it engages every one.
>>>
>>> I am able to run the test cases and am able to program
>>> against OpenstackIntfImpl just fine. Can you elaborate on what is the
>>> authentication issue you are running into?
>>>
>>> Suresh
>>>
>>> On Apr 20, 2016, at 3:30 PM, Pankaj Saha <ps...@binghamton.edu> wrote:
>>>
>>> Hi Suresh,
>>>
>>> I just had a hangout session with Mangirish regarding the same. It looks
>>> like an authentication issue with openstack which he is aware of. He has
>>> explained me his code and I am going to retry fixing the problem.
>>>
>>> I did not use maven to build his project instead I have export his
>>> project as eclipse (mvn eclipse:eclipse) and trying to run the junit test.
>>>
>>> Will update you once I find something new.
>>>
>>> Thanks
>>> Pankaj
>>>
>>>
>>> On Wed, Apr 20, 2016 at 3:21 PM, Suresh Marru <sm...@apache.org> wrote:
>>>
>>>> Hi Pankaj,
>>>>
>>>> Can you please be more clear? What is failing? Did you try to build it
>>>> using maven within the cloud provisioning directory itself? Did you change
>>>> the public key file in the test_data.properties?
>>>>
>>>> Suresh
>>>>
>>>> On Apr 20, 2016, at 2:56 PM, Pankaj Saha <ps...@binghamton.edu> wrote:
>>>>
>>>> I am able to get Mangirish's code in the develop branch. After making
>>>> it an eclipse project, when I am trying to run it as JUnit test, it's
>>>> failing.
>>>> Need help to fix this, possibly some configuration changes in the
>>>> properties file or similar.
>>>> It will be great we can talk over a hangout session or at least a chat
>>>> session to make it work.
>>>>
>>>> On Wed, Apr 20, 2016 at 12:05 PM, Mangirish Wagle <
>>>> vaglomangirish@gmail.com> wrote:
>>>>
>>>>> Hi Pankaj,
>>>>>
>>>>> You may find a sample test code for the module in this unit test file:-
>>>>>
>>>>>
>>>>> https://github.com/apache/airavata/blob/develop/modules/cloud/cloud-provisioning/src/test/java/org/apache/airavata/cloud/test/CloudIntfTest.java
>>>>>
>>>>> Also, if you want to test run the code, you may please follow this
>>>>> quick README:-
>>>>>
>>>>>
>>>>> https://github.com/apache/airavata/blob/develop/modules/cloud/cloud-provisioning/README
>>>>>
>>>>> Please let me know if you need some more info or code walkthrough.
>>>>> Sending you the jetstream openrc credentials separately.
>>>>>
>>>>> Thanks.
>>>>>
>>>>> Regards,
>>>>> Mangirish
>>>>>
>>>>> On Wed, Apr 20, 2016 at 11:42 AM, Suresh Marru <sm...@apache.org>
>>>>> wrote:
>>>>>
>>>>>> Hi Pankaj,
>>>>>>
>>>>>> Please switch to ‘develop’ branch and look for the cloud provisioning
>>>>>> module -
>>>>>> https://github.com/apache/airavata/tree/develop/modules/cloud/cloud-provisioning
>>>>>>
>>>>>> Suresh
>>>>>>
>>>>>> On Apr 20, 2016, at 11:37 AM, Pankaj Saha <ps...@binghamton.edu>
>>>>>> wrote:
>>>>>>
>>>>>> Hello Mangirish,
>>>>>> I have latest Airavata mater branch installed in my local system. Can
>>>>>> you please give us some clue how to start creating the VMs through you
>>>>>> application. Please specify where we can find your corresponding java code.
>>>>>> Is it through PGA website?
>>>>>> Please share the required password to me in a separate email.
>>>>>>
>>>>>> Thanks
>>>>>> Pankaj
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>> --
> Shameera Rathnayaka
>

Re: Jetstream VM creation through Airavata

Posted by Shameera Rathnayaka <sh...@gmail.com>.
Hi Pankaj,

To work with your ssh keys you need to add them to jetstream keypair. Have
you done that part?

also you are not providing correct the OS_PASSWORD value accordding to
above deatils.

Shameera.

On Wed, Apr 20, 2016 at 3:42 PM Pankaj Saha <ps...@binghamton.edu> wrote:

> I have just use maven to build the same project. here is thedetails
> # Common properties
> publicKeyFile=/home/psaha4/.ssh/id_rsa.pub
>
> # Jetstream properties
> jetstream_imageId=448636b0-450a-4b49-9bfe-b3135fc443e8
> jetstream_flavorId=3
>
> OS_PROJECT_DOMAIN_NAME=tacc
> OS_USER_DOMAIN_NAME=tacc
> OS_PROJECT_NAME=scigap
> OS_TENANT_NAME=scigap
> OS_USERNAME=scigap
> OS_PASSWORD=<not exposing here>
> OS_AUTH_URL=https://jblb.jetstream-cloud.org:35357/v3
> OS_IDENTITY_API_VERSION=3
>
> # Network Properties
> OS_FLOATING_IP_POOL=public
> OS_SUBNET_NAME=airavata
>
> The test case error that I am getting for the Test case is al below:
> -------------------------------------------------------
>  T E S T S
> -------------------------------------------------------
> Running org.apache.airavata.cloud.test.CloudIntfTest
> AuthenticationException{message=Unauthorized, status=401}
> at
> org.openstack4j.core.transport.HttpExceptionHandler.mapException(HttpExceptionHandler.java:36)
> at
> org.openstack4j.core.transport.HttpExceptionHandler.mapException(HttpExceptionHandler.java:23)
> at
> org.openstack4j.openstack.internal.OSAuthenticator.authenticateV3(OSAuthenticator.java:161)
> at
> org.openstack4j.openstack.internal.OSAuthenticator.invoke(OSAuthenticator.java:78)
> at
> org.openstack4j.openstack.client.OSClientBuilder$ClientV3.authenticate(OSClientBuilder.java:163)
> at
> org.openstack4j.openstack.client.OSClientBuilder$ClientV3.authenticate(OSClientBuilder.java:127)
> at
> org.apache.airavata.cloud.openstack.OS4JClientProvider.getOSClientV3(OS4JClientProvider.java:86)
> at
> org.apache.airavata.cloud.openstack.OS4JClientProvider.getOSClient(OS4JClientProvider.java:49)
> at
> org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl.<init>(OpenstackIntfImpl.java:78)
> at
> org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:77)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at
> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
> at
> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
> at
> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
> at
> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
> at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
> at
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
> at
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
> at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
> at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
> at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
> at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
> at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
> at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
> at
> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
> at
> org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
> at
> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
> at
> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
> at
> org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
> at
> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
> at
> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
> java.lang.NullPointerException
> at
> org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl.getKeyPair(OpenstackIntfImpl.java:215)
> at
> org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:92)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at
> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
> at
> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
> at
> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
> at
> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
> at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
> at
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
> at
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
> at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
> at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
> at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
> at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
> at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
> at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
> at
> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
> at
> org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
> at
> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
> at
> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
> at
> org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
> at
> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
> at
> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
> [main] ERROR org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl -
> Failed to retrieve keypair: testKey
> java.lang.NullPointerException
> at
> org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl.createKeyPair(OpenstackIntfImpl.java:197)
> at
> org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:94)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at
> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
> at
> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
> at
> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
> at
> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
> at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
> at
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
> at
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
> at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
> at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
> at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
> at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
> at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
> at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
> at
> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
> at
> org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
> at
> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
> at
> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
> at
> org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
> at
> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
> at
> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
> [main] ERROR org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl -
> Failed to create keypair: testKey
> java.lang.NullPointerException
> at
> org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:97)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at
> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
> at
> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
> at
> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
> at
> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
> at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
> at
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
> at
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
> at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
> at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
> at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
> at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
> at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
> at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
> at
> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
> at
> org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
> at
> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
> at
> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
> at
> org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
> at
> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
> at
> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
> Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.913 sec
> <<< FAILURE! - in org.apache.airavata.cloud.test.CloudIntfTest
> jetstreamCreateDeleteServerTest(org.apache.airavata.cloud.test.CloudIntfTest)
>  Time elapsed: 0.908 sec  <<< FAILURE!
> java.lang.AssertionError: null
> at org.junit.Assert.fail(Assert.java:86)
> at org.junit.Assert.fail(Assert.java:95)
> at
> org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:128)
>
>
>
> On Wed, Apr 20, 2016 at 3:36 PM, Suresh Marru <sm...@apache.org> wrote:
>
>> Thats nice. Few suggestions:
>>
>> * Eclipse or IDEA are good to write code, but to build and run tests from
>> maven, command line is the best option.
>> * Please use the mailing lists as much as possible so rest of us can also
>> contribute. If even you use hangouts, please take time to explain what the
>> issue is so it engages every one.
>>
>> I am able to run the test cases and am able to program
>> against OpenstackIntfImpl just fine. Can you elaborate on what is the
>> authentication issue you are running into?
>>
>> Suresh
>>
>> On Apr 20, 2016, at 3:30 PM, Pankaj Saha <ps...@binghamton.edu> wrote:
>>
>> Hi Suresh,
>>
>> I just had a hangout session with Mangirish regarding the same. It looks
>> like an authentication issue with openstack which he is aware of. He has
>> explained me his code and I am going to retry fixing the problem.
>>
>> I did not use maven to build his project instead I have export his
>> project as eclipse (mvn eclipse:eclipse) and trying to run the junit test.
>>
>> Will update you once I find something new.
>>
>> Thanks
>> Pankaj
>>
>>
>> On Wed, Apr 20, 2016 at 3:21 PM, Suresh Marru <sm...@apache.org> wrote:
>>
>>> Hi Pankaj,
>>>
>>> Can you please be more clear? What is failing? Did you try to build it
>>> using maven within the cloud provisioning directory itself? Did you change
>>> the public key file in the test_data.properties?
>>>
>>> Suresh
>>>
>>> On Apr 20, 2016, at 2:56 PM, Pankaj Saha <ps...@binghamton.edu> wrote:
>>>
>>> I am able to get Mangirish's code in the develop branch. After making it
>>> an eclipse project, when I am trying to run it as JUnit test, it's failing.
>>> Need help to fix this, possibly some configuration changes in the
>>> properties file or similar.
>>> It will be great we can talk over a hangout session or at least a chat
>>> session to make it work.
>>>
>>> On Wed, Apr 20, 2016 at 12:05 PM, Mangirish Wagle <
>>> vaglomangirish@gmail.com> wrote:
>>>
>>>> Hi Pankaj,
>>>>
>>>> You may find a sample test code for the module in this unit test file:-
>>>>
>>>>
>>>> https://github.com/apache/airavata/blob/develop/modules/cloud/cloud-provisioning/src/test/java/org/apache/airavata/cloud/test/CloudIntfTest.java
>>>>
>>>> Also, if you want to test run the code, you may please follow this
>>>> quick README:-
>>>>
>>>>
>>>> https://github.com/apache/airavata/blob/develop/modules/cloud/cloud-provisioning/README
>>>>
>>>> Please let me know if you need some more info or code walkthrough.
>>>> Sending you the jetstream openrc credentials separately.
>>>>
>>>> Thanks.
>>>>
>>>> Regards,
>>>> Mangirish
>>>>
>>>> On Wed, Apr 20, 2016 at 11:42 AM, Suresh Marru <sm...@apache.org>
>>>> wrote:
>>>>
>>>>> Hi Pankaj,
>>>>>
>>>>> Please switch to ‘develop’ branch and look for the cloud provisioning
>>>>> module -
>>>>> https://github.com/apache/airavata/tree/develop/modules/cloud/cloud-provisioning
>>>>>
>>>>> Suresh
>>>>>
>>>>> On Apr 20, 2016, at 11:37 AM, Pankaj Saha <ps...@binghamton.edu>
>>>>> wrote:
>>>>>
>>>>> Hello Mangirish,
>>>>> I have latest Airavata mater branch installed in my local system. Can
>>>>> you please give us some clue how to start creating the VMs through you
>>>>> application. Please specify where we can find your corresponding java code.
>>>>> Is it through PGA website?
>>>>> Please share the required password to me in a separate email.
>>>>>
>>>>> Thanks
>>>>> Pankaj
>>>>>
>>>>>
>>>>>
>>>>
>>>
>>>
>>
>>
> --
Shameera Rathnayaka

Re: Jetstream VM creation through Airavata

Posted by "Pierce, Marlon" <ma...@iu.edu>.
Hi Emre,

The current case is the first: manage VMs to run jobs for Airavata, coupled with an Apache Mesos-based scheduling of jobs within the VMs.

We have a Jetstream VM with the PGA and Airavata installed there also.  


Marlon

On 4/20/16, 6:34 PM, "Emre Brookes" <em...@biochem.uthscsa.edu> wrote:

>Or are you working on creating dynamic VM's to run jobs via Airavata ?
>both that and getting an Airavata server VM or docker version running 
>there would be of benefit.
>
>-e.
>
>
>Emre Brookes wrote:
>> Hi Suresh,
>>
>> Just FYI - Glad to hear you are getting Airavata easy to deploy on 
>> Jetstream.
>> I am currently working on getting GenApp easy to deploy on the 
>> standard Ubuntu & CentOS images there.
>> I should be ready in the next month or two to revisit Airavata with a 
>> focus on Jetstream  ...
>>
>> Cheers,
>> Emre
>>
>>
>> Suresh Marru wrote:
>>> Pankaj,
>>>
>>> We need to fix this NPE. Meanwhile, I just created a testKey on the 
>>> keystone. Can you try again?
>>>
>>> Suresh
>>>
>>>> On Apr 20, 2016, at 3:42 PM, Pankaj Saha <psaha4@binghamton.edu 
>>>> <ma...@binghamton.edu>> wrote:
>>>>
>>>> I have just use maven to build the same project. here is thedetails
>>>> # Common properties
>>>> publicKeyFile=/home/psaha4/.ssh/id_rsa.pub
>>>>
>>>> # Jetstream properties
>>>> jetstream_imageId=448636b0-450a-4b49-9bfe-b3135fc443e8
>>>> jetstream_flavorId=3
>>>>
>>>> OS_PROJECT_DOMAIN_NAME=tacc
>>>> OS_USER_DOMAIN_NAME=tacc
>>>> OS_PROJECT_NAME=scigap
>>>> OS_TENANT_NAME=scigap
>>>> OS_USERNAME=scigap
>>>> OS_PASSWORD=<not exposing here>
>>>> OS_AUTH_URL=https://jblb.jetstream-cloud.org:35357/v3
>>>> OS_IDENTITY_API_VERSION=3
>>>>
>>>> # Network Properties
>>>> OS_FLOATING_IP_POOL=public
>>>> OS_SUBNET_NAME=airavata
>>>>
>>>> The test case error that I am getting for the Test case is al below:
>>>> -------------------------------------------------------
>>>>  T E S T S
>>>> -------------------------------------------------------
>>>> Running org.apache.airavata.cloud.test.CloudIntfTest
>>>> AuthenticationException{message=Unauthorized, status=401}
>>>> at 
>>>> org.openstack4j.core.transport.HttpExceptionHandler.mapException(HttpExceptionHandler.java:36)
>>>> at 
>>>> org.openstack4j.core.transport.HttpExceptionHandler.mapException(HttpExceptionHandler.java:23)
>>>> at 
>>>> org.openstack4j.openstack.internal.OSAuthenticator.authenticateV3(OSAuthenticator.java:161)
>>>> at 
>>>> org.openstack4j.openstack.internal.OSAuthenticator.invoke(OSAuthenticator.java:78)
>>>> at 
>>>> org.openstack4j.openstack.client.OSClientBuilder$ClientV3.authenticate(OSClientBuilder.java:163)
>>>> at 
>>>> org.openstack4j.openstack.client.OSClientBuilder$ClientV3.authenticate(OSClientBuilder.java:127)
>>>> at 
>>>> org.apache.airavata.cloud.openstack.OS4JClientProvider.getOSClientV3(OS4JClientProvider.java:86)
>>>> at 
>>>> org.apache.airavata.cloud.openstack.OS4JClientProvider.getOSClient(OS4JClientProvider.java:49)
>>>> at 
>>>> org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl.<init>(OpenstackIntfImpl.java:78)
>>>> at 
>>>> org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:77)
>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>> at 
>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>>> at 
>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>> at java.lang.reflect.Method.invoke(Method.java:498)
>>>> at 
>>>> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>>>> at 
>>>> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>>>> at 
>>>> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>>>> at 
>>>> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>>>> at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>>>> at 
>>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
>>>> at 
>>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
>>>> at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>>>> at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>>>> at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>>>> at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>>>> at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>>>> at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>>>> at 
>>>> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
>>>> at 
>>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
>>>> at 
>>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
>>>> at 
>>>> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
>>>> at 
>>>> org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
>>>> at 
>>>> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
>>>> at 
>>>> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>>>> java.lang.NullPointerException
>>>> at 
>>>> org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl.getKeyPair(OpenstackIntfImpl.java:215)
>>>> at 
>>>> org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:92)
>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>> at 
>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>>> at 
>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>> at java.lang.reflect.Method.invoke(Method.java:498)
>>>> at 
>>>> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>>>> at 
>>>> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>>>> at 
>>>> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>>>> at 
>>>> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>>>> at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>>>> at 
>>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
>>>> at 
>>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
>>>> at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>>>> at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>>>> at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>>>> at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>>>> at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>>>> at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>>>> at 
>>>> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
>>>> at 
>>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
>>>> at 
>>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
>>>> at 
>>>> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
>>>> at 
>>>> org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
>>>> at 
>>>> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
>>>> at 
>>>> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>>>> [main] ERROR org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - 
>>>> Failed to retrieve keypair: testKey
>>>> java.lang.NullPointerException
>>>> at 
>>>> org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl.createKeyPair(OpenstackIntfImpl.java:197)
>>>> at 
>>>> org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:94)
>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>> at 
>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>>> at 
>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>> at java.lang.reflect.Method.invoke(Method.java:498)
>>>> at 
>>>> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>>>> at 
>>>> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>>>> at 
>>>> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>>>> at 
>>>> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>>>> at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>>>> at 
>>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
>>>> at 
>>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
>>>> at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>>>> at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>>>> at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>>>> at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>>>> at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>>>> at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>>>> at 
>>>> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
>>>> at 
>>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
>>>> at 
>>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
>>>> at 
>>>> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
>>>> at 
>>>> org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
>>>> at 
>>>> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
>>>> at 
>>>> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>>>> [main] ERROR org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - 
>>>> Failed to create keypair: testKey
>>>> java.lang.NullPointerException
>>>> at 
>>>> org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:97)
>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>> at 
>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>>> at 
>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>> at java.lang.reflect.Method.invoke(Method.java:498)
>>>> at 
>>>> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>>>> at 
>>>> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>>>> at 
>>>> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>>>> at 
>>>> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>>>> at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>>>> at 
>>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
>>>> at 
>>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
>>>> at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>>>> at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>>>> at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>>>> at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>>>> at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>>>> at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>>>> at 
>>>> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
>>>> at 
>>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
>>>> at 
>>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
>>>> at 
>>>> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
>>>> at 
>>>> org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
>>>> at 
>>>> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
>>>> at 
>>>> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>>>> Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 
>>>> 0.913 sec <<< FAILURE! - in 
>>>> org.apache.airavata.cloud.test.CloudIntfTest
>>>> jetstreamCreateDeleteServerTest(org.apache.airavata.cloud.test.CloudIntfTest) 
>>>>  Time elapsed: 0.908 sec  <<< FAILURE!
>>>> java.lang.AssertionError: null
>>>> at org.junit.Assert.fail(Assert.java:86)
>>>> at org.junit.Assert.fail(Assert.java:95)
>>>> at 
>>>> org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:128)
>>>>
>>>>
>>>>
>>>> On Wed, Apr 20, 2016 at 3:36 PM, Suresh Marru <smarru@apache.org 
>>>> <ma...@apache.org>> wrote:
>>>>
>>>>     Thats nice. Few suggestions:
>>>>
>>>>     * Eclipse or IDEA are good to write code, but to build and run
>>>>     tests from maven, command line is the best option.
>>>>     * Please use the mailing lists as much as possible so rest of us
>>>>     can also contribute. If even you use hangouts, please take time
>>>>     to explain what the issue is so it engages every one.
>>>>
>>>>     I am able to run the test cases and am able to program
>>>>     against OpenstackIntfImpl just fine. Can you elaborate on what is
>>>>     the authentication issue you are running into?
>>>>
>>>>     Suresh
>>>>
>>>>>     On Apr 20, 2016, at 3:30 PM, Pankaj Saha <psaha4@binghamton.edu
>>>>>     <ma...@binghamton.edu>> wrote:
>>>>>
>>>>>     Hi Suresh,
>>>>>
>>>>>     I just had a hangout session with Mangirish regarding the same.
>>>>>     It looks like an authentication issue with openstack which he is
>>>>>     aware of. He has explained me his code and I am going to retry
>>>>>     fixing the problem.
>>>>>
>>>>>     I did not use maven to build his project instead I have export
>>>>>     his project as eclipse (mvn eclipse:eclipse) and trying to run
>>>>>     the junit test.
>>>>>
>>>>>     Will update you once I find something new.
>>>>>
>>>>>     Thanks
>>>>>     Pankaj
>>>>>
>>>>>
>>>>>     On Wed, Apr 20, 2016 at 3:21 PM, Suresh Marru <smarru@apache.org
>>>>>     <ma...@apache.org>> wrote:
>>>>>
>>>>>         Hi Pankaj,
>>>>>
>>>>>         Can you please be more clear? What is failing? Did you try
>>>>>         to build it using maven within the cloud provisioning
>>>>>         directory itself? Did you change the public key file in the
>>>>>         test_data.properties?
>>>>>
>>>>>         Suresh
>>>>>
>>>>>>         On Apr 20, 2016, at 2:56 PM, Pankaj Saha
>>>>>>         <psaha4@binghamton.edu <ma...@binghamton.edu>> wrote:
>>>>>>
>>>>>>         I am able to get Mangirish's code in the develop branch.
>>>>>>         After making it an eclipse project, when I am trying to run
>>>>>>         it as JUnit test, it's failing.
>>>>>>         Need help to fix this, possibly some configuration changes
>>>>>>         in the properties file or similar.
>>>>>>         It will be great we can talk over a hangout session or at
>>>>>>         least a chat session to make it work.
>>>>>>
>>>>>>         On Wed, Apr 20, 2016 at 12:05 PM, Mangirish Wagle
>>>>>>         <vaglomangirish@gmail.com
>>>>>>         <ma...@gmail.com>> wrote:
>>>>>>
>>>>>>             Hi Pankaj,
>>>>>>
>>>>>>             You may find a sample test code for the module in this
>>>>>>             unit test file:-
>>>>>>
>>>>>> https://github.com/apache/airavata/blob/develop/modules/cloud/cloud-provisioning/src/test/java/org/apache/airavata/cloud/test/CloudIntfTest.java
>>>>>>
>>>>>>             Also, if you want to test run the code, you may please
>>>>>>             follow this quick README:-
>>>>>>
>>>>>> https://github.com/apache/airavata/blob/develop/modules/cloud/cloud-provisioning/README
>>>>>>
>>>>>>             Please let me know if you need some more info or code
>>>>>>             walkthrough. Sending you the jetstream openrc
>>>>>>             credentials separately.
>>>>>>
>>>>>>             Thanks.
>>>>>>
>>>>>>             Regards,
>>>>>>             Mangirish
>>>>>>
>>>>>>             On Wed, Apr 20, 2016 at 11:42 AM, Suresh Marru
>>>>>>             <smarru@apache.org <ma...@apache.org>> wrote:
>>>>>>
>>>>>>                 Hi Pankaj,
>>>>>>
>>>>>>                 Please switch to ‘develop’ branch and look for the
>>>>>>                 cloud provisioning module -
>>>>>> https://github.com/apache/airavata/tree/develop/modules/cloud/cloud-provisioning
>>>>>>
>>>>>>                 Suresh
>>>>>>
>>>>>>>                 On Apr 20, 2016, at 11:37 AM, Pankaj Saha
>>>>>>>                 <psaha4@binghamton.edu
>>>>>>>                 <ma...@binghamton.edu>> wrote:
>>>>>>>
>>>>>>>                 Hello Mangirish,
>>>>>>>                 I have latest Airavata mater branch installed in
>>>>>>>                 my local system. Can you please give us some clue
>>>>>>>                 how to start creating the VMs through you
>>>>>>>                 application. Please specify where we can find your
>>>>>>>                 corresponding java code. Is it through PGA website?
>>>>>>>                 Please share the required password to me in a
>>>>>>>                 separate email.
>>>>>>>
>>>>>>>                 Thanks
>>>>>>>                 Pankaj
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>
>

Re: Jetstream VM creation through Airavata

Posted by Emre Brookes <em...@biochem.uthscsa.edu>.
Or are you working on creating dynamic VM's to run jobs via Airavata ?
both that and getting an Airavata server VM or docker version running 
there would be of benefit.

-e.


Emre Brookes wrote:
> Hi Suresh,
>
> Just FYI - Glad to hear you are getting Airavata easy to deploy on 
> Jetstream.
> I am currently working on getting GenApp easy to deploy on the 
> standard Ubuntu & CentOS images there.
> I should be ready in the next month or two to revisit Airavata with a 
> focus on Jetstream  ...
>
> Cheers,
> Emre
>
>
> Suresh Marru wrote:
>> Pankaj,
>>
>> We need to fix this NPE. Meanwhile, I just created a testKey on the 
>> keystone. Can you try again?
>>
>> Suresh
>>
>>> On Apr 20, 2016, at 3:42 PM, Pankaj Saha <psaha4@binghamton.edu 
>>> <ma...@binghamton.edu>> wrote:
>>>
>>> I have just use maven to build the same project. here is thedetails
>>> # Common properties
>>> publicKeyFile=/home/psaha4/.ssh/id_rsa.pub
>>>
>>> # Jetstream properties
>>> jetstream_imageId=448636b0-450a-4b49-9bfe-b3135fc443e8
>>> jetstream_flavorId=3
>>>
>>> OS_PROJECT_DOMAIN_NAME=tacc
>>> OS_USER_DOMAIN_NAME=tacc
>>> OS_PROJECT_NAME=scigap
>>> OS_TENANT_NAME=scigap
>>> OS_USERNAME=scigap
>>> OS_PASSWORD=<not exposing here>
>>> OS_AUTH_URL=https://jblb.jetstream-cloud.org:35357/v3
>>> OS_IDENTITY_API_VERSION=3
>>>
>>> # Network Properties
>>> OS_FLOATING_IP_POOL=public
>>> OS_SUBNET_NAME=airavata
>>>
>>> The test case error that I am getting for the Test case is al below:
>>> -------------------------------------------------------
>>>  T E S T S
>>> -------------------------------------------------------
>>> Running org.apache.airavata.cloud.test.CloudIntfTest
>>> AuthenticationException{message=Unauthorized, status=401}
>>> at 
>>> org.openstack4j.core.transport.HttpExceptionHandler.mapException(HttpExceptionHandler.java:36)
>>> at 
>>> org.openstack4j.core.transport.HttpExceptionHandler.mapException(HttpExceptionHandler.java:23)
>>> at 
>>> org.openstack4j.openstack.internal.OSAuthenticator.authenticateV3(OSAuthenticator.java:161)
>>> at 
>>> org.openstack4j.openstack.internal.OSAuthenticator.invoke(OSAuthenticator.java:78)
>>> at 
>>> org.openstack4j.openstack.client.OSClientBuilder$ClientV3.authenticate(OSClientBuilder.java:163)
>>> at 
>>> org.openstack4j.openstack.client.OSClientBuilder$ClientV3.authenticate(OSClientBuilder.java:127)
>>> at 
>>> org.apache.airavata.cloud.openstack.OS4JClientProvider.getOSClientV3(OS4JClientProvider.java:86)
>>> at 
>>> org.apache.airavata.cloud.openstack.OS4JClientProvider.getOSClient(OS4JClientProvider.java:49)
>>> at 
>>> org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl.<init>(OpenstackIntfImpl.java:78)
>>> at 
>>> org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:77)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> at 
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>> at 
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>> at java.lang.reflect.Method.invoke(Method.java:498)
>>> at 
>>> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>>> at 
>>> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>>> at 
>>> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>>> at 
>>> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>>> at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>>> at 
>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
>>> at 
>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
>>> at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>>> at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>>> at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>>> at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>>> at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>>> at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>>> at 
>>> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
>>> at 
>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
>>> at 
>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
>>> at 
>>> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
>>> at 
>>> org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
>>> at 
>>> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
>>> at 
>>> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>>> java.lang.NullPointerException
>>> at 
>>> org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl.getKeyPair(OpenstackIntfImpl.java:215)
>>> at 
>>> org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:92)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> at 
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>> at 
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>> at java.lang.reflect.Method.invoke(Method.java:498)
>>> at 
>>> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>>> at 
>>> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>>> at 
>>> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>>> at 
>>> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>>> at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>>> at 
>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
>>> at 
>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
>>> at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>>> at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>>> at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>>> at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>>> at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>>> at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>>> at 
>>> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
>>> at 
>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
>>> at 
>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
>>> at 
>>> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
>>> at 
>>> org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
>>> at 
>>> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
>>> at 
>>> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>>> [main] ERROR org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - 
>>> Failed to retrieve keypair: testKey
>>> java.lang.NullPointerException
>>> at 
>>> org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl.createKeyPair(OpenstackIntfImpl.java:197)
>>> at 
>>> org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:94)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> at 
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>> at 
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>> at java.lang.reflect.Method.invoke(Method.java:498)
>>> at 
>>> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>>> at 
>>> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>>> at 
>>> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>>> at 
>>> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>>> at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>>> at 
>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
>>> at 
>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
>>> at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>>> at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>>> at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>>> at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>>> at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>>> at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>>> at 
>>> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
>>> at 
>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
>>> at 
>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
>>> at 
>>> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
>>> at 
>>> org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
>>> at 
>>> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
>>> at 
>>> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>>> [main] ERROR org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - 
>>> Failed to create keypair: testKey
>>> java.lang.NullPointerException
>>> at 
>>> org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:97)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> at 
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>> at 
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>> at java.lang.reflect.Method.invoke(Method.java:498)
>>> at 
>>> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>>> at 
>>> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>>> at 
>>> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>>> at 
>>> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>>> at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>>> at 
>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
>>> at 
>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
>>> at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>>> at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>>> at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>>> at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>>> at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>>> at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>>> at 
>>> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
>>> at 
>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
>>> at 
>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
>>> at 
>>> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
>>> at 
>>> org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
>>> at 
>>> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
>>> at 
>>> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>>> Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 
>>> 0.913 sec <<< FAILURE! - in 
>>> org.apache.airavata.cloud.test.CloudIntfTest
>>> jetstreamCreateDeleteServerTest(org.apache.airavata.cloud.test.CloudIntfTest) 
>>>  Time elapsed: 0.908 sec  <<< FAILURE!
>>> java.lang.AssertionError: null
>>> at org.junit.Assert.fail(Assert.java:86)
>>> at org.junit.Assert.fail(Assert.java:95)
>>> at 
>>> org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:128)
>>>
>>>
>>>
>>> On Wed, Apr 20, 2016 at 3:36 PM, Suresh Marru <smarru@apache.org 
>>> <ma...@apache.org>> wrote:
>>>
>>>     Thats nice. Few suggestions:
>>>
>>>     * Eclipse or IDEA are good to write code, but to build and run
>>>     tests from maven, command line is the best option.
>>>     * Please use the mailing lists as much as possible so rest of us
>>>     can also contribute. If even you use hangouts, please take time
>>>     to explain what the issue is so it engages every one.
>>>
>>>     I am able to run the test cases and am able to program
>>>     against OpenstackIntfImpl just fine. Can you elaborate on what is
>>>     the authentication issue you are running into?
>>>
>>>     Suresh
>>>
>>>>     On Apr 20, 2016, at 3:30 PM, Pankaj Saha <psaha4@binghamton.edu
>>>>     <ma...@binghamton.edu>> wrote:
>>>>
>>>>     Hi Suresh,
>>>>
>>>>     I just had a hangout session with Mangirish regarding the same.
>>>>     It looks like an authentication issue with openstack which he is
>>>>     aware of. He has explained me his code and I am going to retry
>>>>     fixing the problem.
>>>>
>>>>     I did not use maven to build his project instead I have export
>>>>     his project as eclipse (mvn eclipse:eclipse) and trying to run
>>>>     the junit test.
>>>>
>>>>     Will update you once I find something new.
>>>>
>>>>     Thanks
>>>>     Pankaj
>>>>
>>>>
>>>>     On Wed, Apr 20, 2016 at 3:21 PM, Suresh Marru <smarru@apache.org
>>>>     <ma...@apache.org>> wrote:
>>>>
>>>>         Hi Pankaj,
>>>>
>>>>         Can you please be more clear? What is failing? Did you try
>>>>         to build it using maven within the cloud provisioning
>>>>         directory itself? Did you change the public key file in the
>>>>         test_data.properties?
>>>>
>>>>         Suresh
>>>>
>>>>>         On Apr 20, 2016, at 2:56 PM, Pankaj Saha
>>>>>         <psaha4@binghamton.edu <ma...@binghamton.edu>> wrote:
>>>>>
>>>>>         I am able to get Mangirish's code in the develop branch.
>>>>>         After making it an eclipse project, when I am trying to run
>>>>>         it as JUnit test, it's failing.
>>>>>         Need help to fix this, possibly some configuration changes
>>>>>         in the properties file or similar.
>>>>>         It will be great we can talk over a hangout session or at
>>>>>         least a chat session to make it work.
>>>>>
>>>>>         On Wed, Apr 20, 2016 at 12:05 PM, Mangirish Wagle
>>>>>         <vaglomangirish@gmail.com
>>>>>         <ma...@gmail.com>> wrote:
>>>>>
>>>>>             Hi Pankaj,
>>>>>
>>>>>             You may find a sample test code for the module in this
>>>>>             unit test file:-
>>>>>
>>>>> https://github.com/apache/airavata/blob/develop/modules/cloud/cloud-provisioning/src/test/java/org/apache/airavata/cloud/test/CloudIntfTest.java
>>>>>
>>>>>             Also, if you want to test run the code, you may please
>>>>>             follow this quick README:-
>>>>>
>>>>> https://github.com/apache/airavata/blob/develop/modules/cloud/cloud-provisioning/README
>>>>>
>>>>>             Please let me know if you need some more info or code
>>>>>             walkthrough. Sending you the jetstream openrc
>>>>>             credentials separately.
>>>>>
>>>>>             Thanks.
>>>>>
>>>>>             Regards,
>>>>>             Mangirish
>>>>>
>>>>>             On Wed, Apr 20, 2016 at 11:42 AM, Suresh Marru
>>>>>             <smarru@apache.org <ma...@apache.org>> wrote:
>>>>>
>>>>>                 Hi Pankaj,
>>>>>
>>>>>                 Please switch to ‘develop’ branch and look for the
>>>>>                 cloud provisioning module -
>>>>> https://github.com/apache/airavata/tree/develop/modules/cloud/cloud-provisioning
>>>>>
>>>>>                 Suresh
>>>>>
>>>>>>                 On Apr 20, 2016, at 11:37 AM, Pankaj Saha
>>>>>>                 <psaha4@binghamton.edu
>>>>>>                 <ma...@binghamton.edu>> wrote:
>>>>>>
>>>>>>                 Hello Mangirish,
>>>>>>                 I have latest Airavata mater branch installed in
>>>>>>                 my local system. Can you please give us some clue
>>>>>>                 how to start creating the VMs through you
>>>>>>                 application. Please specify where we can find your
>>>>>>                 corresponding java code. Is it through PGA website?
>>>>>>                 Please share the required password to me in a
>>>>>>                 separate email.
>>>>>>
>>>>>>                 Thanks
>>>>>>                 Pankaj
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>
>


Re: Jetstream VM creation through Airavata

Posted by Emre Brookes <em...@biochem.uthscsa.edu>.
Hi Suresh,

Just FYI - Glad to hear you are getting Airavata easy to deploy on 
Jetstream.
I am currently working on getting GenApp easy to deploy on the standard 
Ubuntu & CentOS images there.
I should be ready in the next month or two to revisit Airavata with a 
focus on Jestream  ...

Cheers,
Emre


Suresh Marru wrote:
> Pankaj,
>
> We need to fix this NPE. Meanwhile, I just created a testKey on the 
> keystone. Can you try again?
>
> Suresh
>
>> On Apr 20, 2016, at 3:42 PM, Pankaj Saha <psaha4@binghamton.edu 
>> <ma...@binghamton.edu>> wrote:
>>
>> I have just use maven to build the same project. here is thedetails
>> # Common properties
>> publicKeyFile=/home/psaha4/.ssh/id_rsa.pub
>>
>> # Jetstream properties
>> jetstream_imageId=448636b0-450a-4b49-9bfe-b3135fc443e8
>> jetstream_flavorId=3
>>
>> OS_PROJECT_DOMAIN_NAME=tacc
>> OS_USER_DOMAIN_NAME=tacc
>> OS_PROJECT_NAME=scigap
>> OS_TENANT_NAME=scigap
>> OS_USERNAME=scigap
>> OS_PASSWORD=<not exposing here>
>> OS_AUTH_URL=https://jblb.jetstream-cloud.org:35357/v3
>> OS_IDENTITY_API_VERSION=3
>>
>> # Network Properties
>> OS_FLOATING_IP_POOL=public
>> OS_SUBNET_NAME=airavata
>>
>> The test case error that I am getting for the Test case is al below:
>> -------------------------------------------------------
>>  T E S T S
>> -------------------------------------------------------
>> Running org.apache.airavata.cloud.test.CloudIntfTest
>> AuthenticationException{message=Unauthorized, status=401}
>> at 
>> org.openstack4j.core.transport.HttpExceptionHandler.mapException(HttpExceptionHandler.java:36)
>> at 
>> org.openstack4j.core.transport.HttpExceptionHandler.mapException(HttpExceptionHandler.java:23)
>> at 
>> org.openstack4j.openstack.internal.OSAuthenticator.authenticateV3(OSAuthenticator.java:161)
>> at 
>> org.openstack4j.openstack.internal.OSAuthenticator.invoke(OSAuthenticator.java:78)
>> at 
>> org.openstack4j.openstack.client.OSClientBuilder$ClientV3.authenticate(OSClientBuilder.java:163)
>> at 
>> org.openstack4j.openstack.client.OSClientBuilder$ClientV3.authenticate(OSClientBuilder.java:127)
>> at 
>> org.apache.airavata.cloud.openstack.OS4JClientProvider.getOSClientV3(OS4JClientProvider.java:86)
>> at 
>> org.apache.airavata.cloud.openstack.OS4JClientProvider.getOSClient(OS4JClientProvider.java:49)
>> at 
>> org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl.<init>(OpenstackIntfImpl.java:78)
>> at 
>> org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:77)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at 
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>> at 
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:498)
>> at 
>> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>> at 
>> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>> at 
>> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>> at 
>> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>> at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>> at 
>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
>> at 
>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
>> at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>> at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>> at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>> at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>> at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>> at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>> at 
>> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
>> at 
>> org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
>> at 
>> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
>> at 
>> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
>> at 
>> org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
>> at 
>> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
>> at 
>> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>> java.lang.NullPointerException
>> at 
>> org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl.getKeyPair(OpenstackIntfImpl.java:215)
>> at 
>> org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:92)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at 
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>> at 
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:498)
>> at 
>> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>> at 
>> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>> at 
>> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>> at 
>> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>> at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>> at 
>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
>> at 
>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
>> at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>> at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>> at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>> at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>> at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>> at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>> at 
>> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
>> at 
>> org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
>> at 
>> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
>> at 
>> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
>> at 
>> org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
>> at 
>> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
>> at 
>> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>> [main] ERROR org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - 
>> Failed to retrieve keypair: testKey
>> java.lang.NullPointerException
>> at 
>> org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl.createKeyPair(OpenstackIntfImpl.java:197)
>> at 
>> org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:94)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at 
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>> at 
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:498)
>> at 
>> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>> at 
>> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>> at 
>> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>> at 
>> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>> at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>> at 
>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
>> at 
>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
>> at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>> at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>> at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>> at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>> at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>> at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>> at 
>> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
>> at 
>> org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
>> at 
>> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
>> at 
>> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
>> at 
>> org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
>> at 
>> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
>> at 
>> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>> [main] ERROR org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - 
>> Failed to create keypair: testKey
>> java.lang.NullPointerException
>> at 
>> org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:97)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at 
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>> at 
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:498)
>> at 
>> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>> at 
>> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>> at 
>> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>> at 
>> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>> at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>> at 
>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
>> at 
>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
>> at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>> at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>> at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>> at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>> at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>> at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>> at 
>> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
>> at 
>> org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
>> at 
>> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
>> at 
>> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
>> at 
>> org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
>> at 
>> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
>> at 
>> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>> Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.913 
>> sec <<< FAILURE! - in org.apache.airavata.cloud.test.CloudIntfTest
>> jetstreamCreateDeleteServerTest(org.apache.airavata.cloud.test.CloudIntfTest) 
>>  Time elapsed: 0.908 sec  <<< FAILURE!
>> java.lang.AssertionError: null
>> at org.junit.Assert.fail(Assert.java:86)
>> at org.junit.Assert.fail(Assert.java:95)
>> at 
>> org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:128)
>>
>>
>>
>> On Wed, Apr 20, 2016 at 3:36 PM, Suresh Marru <smarru@apache.org 
>> <ma...@apache.org>> wrote:
>>
>>     Thats nice. Few suggestions:
>>
>>     * Eclipse or IDEA are good to write code, but to build and run
>>     tests from maven, command line is the best option.
>>     * Please use the mailing lists as much as possible so rest of us
>>     can also contribute. If even you use hangouts, please take time
>>     to explain what the issue is so it engages every one.
>>
>>     I am able to run the test cases and am able to program
>>     against OpenstackIntfImpl just fine. Can you elaborate on what is
>>     the authentication issue you are running into?
>>
>>     Suresh
>>
>>>     On Apr 20, 2016, at 3:30 PM, Pankaj Saha <psaha4@binghamton.edu
>>>     <ma...@binghamton.edu>> wrote:
>>>
>>>     Hi Suresh,
>>>
>>>     I just had a hangout session with Mangirish regarding the same.
>>>     It looks like an authentication issue with openstack which he is
>>>     aware of. He has explained me his code and I am going to retry
>>>     fixing the problem.
>>>
>>>     I did not use maven to build his project instead I have export
>>>     his project as eclipse (mvn eclipse:eclipse) and trying to run
>>>     the junit test.
>>>
>>>     Will update you once I find something new.
>>>
>>>     Thanks
>>>     Pankaj
>>>
>>>
>>>     On Wed, Apr 20, 2016 at 3:21 PM, Suresh Marru <smarru@apache.org
>>>     <ma...@apache.org>> wrote:
>>>
>>>         Hi Pankaj,
>>>
>>>         Can you please be more clear? What is failing? Did you try
>>>         to build it using maven within the cloud provisioning
>>>         directory itself? Did you change the public key file in the
>>>         test_data.properties?
>>>
>>>         Suresh
>>>
>>>>         On Apr 20, 2016, at 2:56 PM, Pankaj Saha
>>>>         <psaha4@binghamton.edu <ma...@binghamton.edu>> wrote:
>>>>
>>>>         I am able to get Mangirish's code in the develop branch.
>>>>         After making it an eclipse project, when I am trying to run
>>>>         it as JUnit test, it's failing.
>>>>         Need help to fix this, possibly some configuration changes
>>>>         in the properties file or similar.
>>>>         It will be great we can talk over a hangout session or at
>>>>         least a chat session to make it work.
>>>>
>>>>         On Wed, Apr 20, 2016 at 12:05 PM, Mangirish Wagle
>>>>         <vaglomangirish@gmail.com
>>>>         <ma...@gmail.com>> wrote:
>>>>
>>>>             Hi Pankaj,
>>>>
>>>>             You may find a sample test code for the module in this
>>>>             unit test file:-
>>>>
>>>>             https://github.com/apache/airavata/blob/develop/modules/cloud/cloud-provisioning/src/test/java/org/apache/airavata/cloud/test/CloudIntfTest.java
>>>>
>>>>             Also, if you want to test run the code, you may please
>>>>             follow this quick README:-
>>>>
>>>>             https://github.com/apache/airavata/blob/develop/modules/cloud/cloud-provisioning/README
>>>>
>>>>             Please let me know if you need some more info or code
>>>>             walkthrough. Sending you the jetstream openrc
>>>>             credentials separately.
>>>>
>>>>             Thanks.
>>>>
>>>>             Regards,
>>>>             Mangirish
>>>>
>>>>             On Wed, Apr 20, 2016 at 11:42 AM, Suresh Marru
>>>>             <smarru@apache.org <ma...@apache.org>> wrote:
>>>>
>>>>                 Hi Pankaj,
>>>>
>>>>                 Please switch to ‘develop’ branch and look for the
>>>>                 cloud provisioning module -
>>>>                 https://github.com/apache/airavata/tree/develop/modules/cloud/cloud-provisioning
>>>>
>>>>                 Suresh
>>>>
>>>>>                 On Apr 20, 2016, at 11:37 AM, Pankaj Saha
>>>>>                 <psaha4@binghamton.edu
>>>>>                 <ma...@binghamton.edu>> wrote:
>>>>>
>>>>>                 Hello Mangirish,
>>>>>                 I have latest Airavata mater branch installed in
>>>>>                 my local system. Can you please give us some clue
>>>>>                 how to start creating the VMs through you
>>>>>                 application. Please specify where we can find your
>>>>>                 corresponding java code. Is it through PGA website?
>>>>>                 Please share the required password to me in a
>>>>>                 separate email.
>>>>>
>>>>>                 Thanks
>>>>>                 Pankaj
>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>


Re: Jetstream VM creation through Airavata

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

We need to fix this NPE. Meanwhile, I just created a testKey on the keystone. Can you try again?

Suresh

> On Apr 20, 2016, at 3:42 PM, Pankaj Saha <ps...@binghamton.edu> wrote:
> 
> I have just use maven to build the same project. here is thedetails
> # Common properties
> publicKeyFile=/home/psaha4/.ssh/id_rsa.pub
> 
> # Jetstream properties
> jetstream_imageId=448636b0-450a-4b49-9bfe-b3135fc443e8
> jetstream_flavorId=3
> 
> OS_PROJECT_DOMAIN_NAME=tacc
> OS_USER_DOMAIN_NAME=tacc
> OS_PROJECT_NAME=scigap
> OS_TENANT_NAME=scigap
> OS_USERNAME=scigap
> OS_PASSWORD=<not exposing here>
> OS_AUTH_URL=https://jblb.jetstream-cloud.org:35357/v3 <https://jblb.jetstream-cloud.org:35357/v3>
> OS_IDENTITY_API_VERSION=3
> 
> # Network Properties
> OS_FLOATING_IP_POOL=public
> OS_SUBNET_NAME=airavata
> 
> The test case error that I am getting for the Test case is al below:
> -------------------------------------------------------
>  T E S T S
> -------------------------------------------------------
> Running org.apache.airavata.cloud.test.CloudIntfTest
> AuthenticationException{message=Unauthorized, status=401}
> 	at org.openstack4j.core.transport.HttpExceptionHandler.mapException(HttpExceptionHandler.java:36)
> 	at org.openstack4j.core.transport.HttpExceptionHandler.mapException(HttpExceptionHandler.java:23)
> 	at org.openstack4j.openstack.internal.OSAuthenticator.authenticateV3(OSAuthenticator.java:161)
> 	at org.openstack4j.openstack.internal.OSAuthenticator.invoke(OSAuthenticator.java:78)
> 	at org.openstack4j.openstack.client.OSClientBuilder$ClientV3.authenticate(OSClientBuilder.java:163)
> 	at org.openstack4j.openstack.client.OSClientBuilder$ClientV3.authenticate(OSClientBuilder.java:127)
> 	at org.apache.airavata.cloud.openstack.OS4JClientProvider.getOSClientV3(OS4JClientProvider.java:86)
> 	at org.apache.airavata.cloud.openstack.OS4JClientProvider.getOSClient(OS4JClientProvider.java:49)
> 	at org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl.<init>(OpenstackIntfImpl.java:78)
> 	at org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:77)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:498)
> 	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
> 	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
> 	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
> 	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
> 	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
> 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
> 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
> 	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
> 	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
> 	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
> 	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
> 	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
> 	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
> 	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
> 	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
> 	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
> 	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
> 	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
> 	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
> 	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
> java.lang.NullPointerException
> 	at org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl.getKeyPair(OpenstackIntfImpl.java:215)
> 	at org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:92)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:498)
> 	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
> 	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
> 	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
> 	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
> 	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
> 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
> 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
> 	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
> 	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
> 	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
> 	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
> 	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
> 	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
> 	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
> 	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
> 	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
> 	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
> 	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
> 	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
> 	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
> [main] ERROR org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - Failed to retrieve keypair: testKey
> java.lang.NullPointerException
> 	at org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl.createKeyPair(OpenstackIntfImpl.java:197)
> 	at org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:94)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:498)
> 	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
> 	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
> 	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
> 	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
> 	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
> 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
> 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
> 	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
> 	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
> 	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
> 	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
> 	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
> 	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
> 	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
> 	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
> 	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
> 	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
> 	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
> 	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
> 	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
> [main] ERROR org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - Failed to create keypair: testKey
> java.lang.NullPointerException
> 	at org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:97)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:498)
> 	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
> 	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
> 	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
> 	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
> 	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
> 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
> 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
> 	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
> 	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
> 	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
> 	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
> 	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
> 	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
> 	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
> 	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
> 	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
> 	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
> 	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
> 	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
> 	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
> Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.913 sec <<< FAILURE! - in org.apache.airavata.cloud.test.CloudIntfTest
> jetstreamCreateDeleteServerTest(org.apache.airavata.cloud.test.CloudIntfTest)  Time elapsed: 0.908 sec  <<< FAILURE!
> java.lang.AssertionError: null
> 	at org.junit.Assert.fail(Assert.java:86)
> 	at org.junit.Assert.fail(Assert.java:95)
> 	at org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:128)
> 
> 
> 
> On Wed, Apr 20, 2016 at 3:36 PM, Suresh Marru <smarru@apache.org <ma...@apache.org>> wrote:
> Thats nice. Few suggestions:
> 
> * Eclipse or IDEA are good to write code, but to build and run tests from maven, command line is the best option. 
> * Please use the mailing lists as much as possible so rest of us can also contribute. If even you use hangouts, please take time to explain what the issue is so it engages every one. 
> 
> I am able to run the test cases and am able to program against OpenstackIntfImpl just fine. Can you elaborate on what is the authentication issue you are running into? 
> 
> Suresh
> 
>> On Apr 20, 2016, at 3:30 PM, Pankaj Saha <psaha4@binghamton.edu <ma...@binghamton.edu>> wrote:
>> 
>> Hi Suresh, 
>> 
>> I just had a hangout session with Mangirish regarding the same. It looks like an authentication issue with openstack which he is aware of. He has explained me his code and I am going to retry fixing the problem.
>> 
>> I did not use maven to build his project instead I have export his project as eclipse (mvn eclipse:eclipse) and trying to run the junit test.
>> 
>> Will update you once I find something new.
>> 
>> Thanks
>> Pankaj
>> 
>> 
>> On Wed, Apr 20, 2016 at 3:21 PM, Suresh Marru <smarru@apache.org <ma...@apache.org>> wrote:
>> Hi Pankaj,
>> 
>> Can you please be more clear? What is failing? Did you try to build it using maven within the cloud provisioning directory itself? Did you change the public key file in the test_data.properties? 
>> 
>> Suresh
>> 
>>> On Apr 20, 2016, at 2:56 PM, Pankaj Saha <psaha4@binghamton.edu <ma...@binghamton.edu>> wrote:
>>> 
>>> I am able to get Mangirish's code in the develop branch. After making it an eclipse project, when I am trying to run it as JUnit test, it's failing.
>>> Need help to fix this, possibly some configuration changes in the properties file or similar.
>>> It will be great we can talk over a hangout session or at least a chat session to make it work.
>>> 
>>> On Wed, Apr 20, 2016 at 12:05 PM, Mangirish Wagle <vaglomangirish@gmail.com <ma...@gmail.com>> wrote:
>>> Hi Pankaj,
>>> 
>>> You may find a sample test code for the module in this unit test file:-
>>> 
>>> https://github.com/apache/airavata/blob/develop/modules/cloud/cloud-provisioning/src/test/java/org/apache/airavata/cloud/test/CloudIntfTest.java <https://github.com/apache/airavata/blob/develop/modules/cloud/cloud-provisioning/src/test/java/org/apache/airavata/cloud/test/CloudIntfTest.java>
>>> 
>>> Also, if you want to test run the code, you may please follow this quick README:-
>>> 
>>> https://github.com/apache/airavata/blob/develop/modules/cloud/cloud-provisioning/README <https://github.com/apache/airavata/blob/develop/modules/cloud/cloud-provisioning/README>
>>> 
>>> Please let me know if you need some more info or code walkthrough. Sending you the jetstream openrc credentials separately. 
>>> 
>>> Thanks.
>>> 
>>> Regards,
>>> Mangirish
>>> 
>>> On Wed, Apr 20, 2016 at 11:42 AM, Suresh Marru <smarru@apache.org <ma...@apache.org>> wrote:
>>> Hi Pankaj,
>>> 
>>> Please switch to ‘develop’ branch and look for the cloud provisioning module - https://github.com/apache/airavata/tree/develop/modules/cloud/cloud-provisioning <https://github.com/apache/airavata/tree/develop/modules/cloud/cloud-provisioning>
>>> 
>>> Suresh
>>> 
>>>> On Apr 20, 2016, at 11:37 AM, Pankaj Saha <psaha4@binghamton.edu <ma...@binghamton.edu>> wrote:
>>>> 
>>>> Hello Mangirish,
>>>> I have latest Airavata mater branch installed in my local system. Can you please give us some clue how to start creating the VMs through you application. Please specify where we can find your corresponding java code. Is it through PGA website?
>>>> Please share the required password to me in a separate email.
>>>> 
>>>> Thanks
>>>> Pankaj
>>> 
>>> 
>>> 
>> 
>> 
> 
> 


Re: Jetstream VM creation through Airavata

Posted by Pankaj Saha <ps...@binghamton.edu>.
I have just use maven to build the same project. here is thedetails
# Common properties
publicKeyFile=/home/psaha4/.ssh/id_rsa.pub

# Jetstream properties
jetstream_imageId=448636b0-450a-4b49-9bfe-b3135fc443e8
jetstream_flavorId=3

OS_PROJECT_DOMAIN_NAME=tacc
OS_USER_DOMAIN_NAME=tacc
OS_PROJECT_NAME=scigap
OS_TENANT_NAME=scigap
OS_USERNAME=scigap
OS_PASSWORD=<not exposing here>
OS_AUTH_URL=https://jblb.jetstream-cloud.org:35357/v3
OS_IDENTITY_API_VERSION=3

# Network Properties
OS_FLOATING_IP_POOL=public
OS_SUBNET_NAME=airavata

The test case error that I am getting for the Test case is al below:
-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running org.apache.airavata.cloud.test.CloudIntfTest
AuthenticationException{message=Unauthorized, status=401}
at
org.openstack4j.core.transport.HttpExceptionHandler.mapException(HttpExceptionHandler.java:36)
at
org.openstack4j.core.transport.HttpExceptionHandler.mapException(HttpExceptionHandler.java:23)
at
org.openstack4j.openstack.internal.OSAuthenticator.authenticateV3(OSAuthenticator.java:161)
at
org.openstack4j.openstack.internal.OSAuthenticator.invoke(OSAuthenticator.java:78)
at
org.openstack4j.openstack.client.OSClientBuilder$ClientV3.authenticate(OSClientBuilder.java:163)
at
org.openstack4j.openstack.client.OSClientBuilder$ClientV3.authenticate(OSClientBuilder.java:127)
at
org.apache.airavata.cloud.openstack.OS4JClientProvider.getOSClientV3(OS4JClientProvider.java:86)
at
org.apache.airavata.cloud.openstack.OS4JClientProvider.getOSClient(OS4JClientProvider.java:49)
at
org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl.<init>(OpenstackIntfImpl.java:78)
at
org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:77)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
at
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
at
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
at
org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
at
org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
at
org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
at
org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
at
org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
at
org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
java.lang.NullPointerException
at
org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl.getKeyPair(OpenstackIntfImpl.java:215)
at
org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:92)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
at
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
at
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
at
org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
at
org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
at
org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
at
org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
at
org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
at
org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
[main] ERROR org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - Failed
to retrieve keypair: testKey
java.lang.NullPointerException
at
org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl.createKeyPair(OpenstackIntfImpl.java:197)
at
org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:94)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
at
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
at
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
at
org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
at
org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
at
org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
at
org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
at
org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
at
org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
[main] ERROR org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - Failed
to create keypair: testKey
java.lang.NullPointerException
at
org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:97)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
at
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
at
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
at
org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
at
org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
at
org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
at
org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
at
org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
at
org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.913 sec
<<< FAILURE! - in org.apache.airavata.cloud.test.CloudIntfTest
jetstreamCreateDeleteServerTest(org.apache.airavata.cloud.test.CloudIntfTest)
 Time elapsed: 0.908 sec  <<< FAILURE!
java.lang.AssertionError: null
at org.junit.Assert.fail(Assert.java:86)
at org.junit.Assert.fail(Assert.java:95)
at
org.apache.airavata.cloud.test.CloudIntfTest.jetstreamCreateDeleteServerTest(CloudIntfTest.java:128)



On Wed, Apr 20, 2016 at 3:36 PM, Suresh Marru <sm...@apache.org> wrote:

> Thats nice. Few suggestions:
>
> * Eclipse or IDEA are good to write code, but to build and run tests from
> maven, command line is the best option.
> * Please use the mailing lists as much as possible so rest of us can also
> contribute. If even you use hangouts, please take time to explain what the
> issue is so it engages every one.
>
> I am able to run the test cases and am able to program
> against OpenstackIntfImpl just fine. Can you elaborate on what is the
> authentication issue you are running into?
>
> Suresh
>
> On Apr 20, 2016, at 3:30 PM, Pankaj Saha <ps...@binghamton.edu> wrote:
>
> Hi Suresh,
>
> I just had a hangout session with Mangirish regarding the same. It looks
> like an authentication issue with openstack which he is aware of. He has
> explained me his code and I am going to retry fixing the problem.
>
> I did not use maven to build his project instead I have export his project
> as eclipse (mvn eclipse:eclipse) and trying to run the junit test.
>
> Will update you once I find something new.
>
> Thanks
> Pankaj
>
>
> On Wed, Apr 20, 2016 at 3:21 PM, Suresh Marru <sm...@apache.org> wrote:
>
>> Hi Pankaj,
>>
>> Can you please be more clear? What is failing? Did you try to build it
>> using maven within the cloud provisioning directory itself? Did you change
>> the public key file in the test_data.properties?
>>
>> Suresh
>>
>> On Apr 20, 2016, at 2:56 PM, Pankaj Saha <ps...@binghamton.edu> wrote:
>>
>> I am able to get Mangirish's code in the develop branch. After making it
>> an eclipse project, when I am trying to run it as JUnit test, it's failing.
>> Need help to fix this, possibly some configuration changes in the
>> properties file or similar.
>> It will be great we can talk over a hangout session or at least a chat
>> session to make it work.
>>
>> On Wed, Apr 20, 2016 at 12:05 PM, Mangirish Wagle <
>> vaglomangirish@gmail.com> wrote:
>>
>>> Hi Pankaj,
>>>
>>> You may find a sample test code for the module in this unit test file:-
>>>
>>>
>>> https://github.com/apache/airavata/blob/develop/modules/cloud/cloud-provisioning/src/test/java/org/apache/airavata/cloud/test/CloudIntfTest.java
>>>
>>> Also, if you want to test run the code, you may please follow this quick
>>> README:-
>>>
>>>
>>> https://github.com/apache/airavata/blob/develop/modules/cloud/cloud-provisioning/README
>>>
>>> Please let me know if you need some more info or code walkthrough.
>>> Sending you the jetstream openrc credentials separately.
>>>
>>> Thanks.
>>>
>>> Regards,
>>> Mangirish
>>>
>>> On Wed, Apr 20, 2016 at 11:42 AM, Suresh Marru <sm...@apache.org>
>>> wrote:
>>>
>>>> Hi Pankaj,
>>>>
>>>> Please switch to ‘develop’ branch and look for the cloud provisioning
>>>> module -
>>>> https://github.com/apache/airavata/tree/develop/modules/cloud/cloud-provisioning
>>>>
>>>> Suresh
>>>>
>>>> On Apr 20, 2016, at 11:37 AM, Pankaj Saha <ps...@binghamton.edu>
>>>> wrote:
>>>>
>>>> Hello Mangirish,
>>>> I have latest Airavata mater branch installed in my local system. Can
>>>> you please give us some clue how to start creating the VMs through you
>>>> application. Please specify where we can find your corresponding java code.
>>>> Is it through PGA website?
>>>> Please share the required password to me in a separate email.
>>>>
>>>> Thanks
>>>> Pankaj
>>>>
>>>>
>>>>
>>>
>>
>>
>
>

Re: Jetstream VM creation through Airavata

Posted by Suresh Marru <sm...@apache.org>.
Thats nice. Few suggestions:

* Eclipse or IDEA are good to write code, but to build and run tests from maven, command line is the best option. 
* Please use the mailing lists as much as possible so rest of us can also contribute. If even you use hangouts, please take time to explain what the issue is so it engages every one. 

I am able to run the test cases and am able to program against OpenstackIntfImpl just fine. Can you elaborate on what is the authentication issue you are running into? 

Suresh

> On Apr 20, 2016, at 3:30 PM, Pankaj Saha <ps...@binghamton.edu> wrote:
> 
> Hi Suresh, 
> 
> I just had a hangout session with Mangirish regarding the same. It looks like an authentication issue with openstack which he is aware of. He has explained me his code and I am going to retry fixing the problem.
> 
> I did not use maven to build his project instead I have export his project as eclipse (mvn eclipse:eclipse) and trying to run the junit test.
> 
> Will update you once I find something new.
> 
> Thanks
> Pankaj
> 
> 
> On Wed, Apr 20, 2016 at 3:21 PM, Suresh Marru <smarru@apache.org <ma...@apache.org>> wrote:
> Hi Pankaj,
> 
> Can you please be more clear? What is failing? Did you try to build it using maven within the cloud provisioning directory itself? Did you change the public key file in the test_data.properties? 
> 
> Suresh
> 
>> On Apr 20, 2016, at 2:56 PM, Pankaj Saha <psaha4@binghamton.edu <ma...@binghamton.edu>> wrote:
>> 
>> I am able to get Mangirish's code in the develop branch. After making it an eclipse project, when I am trying to run it as JUnit test, it's failing.
>> Need help to fix this, possibly some configuration changes in the properties file or similar.
>> It will be great we can talk over a hangout session or at least a chat session to make it work.
>> 
>> On Wed, Apr 20, 2016 at 12:05 PM, Mangirish Wagle <vaglomangirish@gmail.com <ma...@gmail.com>> wrote:
>> Hi Pankaj,
>> 
>> You may find a sample test code for the module in this unit test file:-
>> 
>> https://github.com/apache/airavata/blob/develop/modules/cloud/cloud-provisioning/src/test/java/org/apache/airavata/cloud/test/CloudIntfTest.java <https://github.com/apache/airavata/blob/develop/modules/cloud/cloud-provisioning/src/test/java/org/apache/airavata/cloud/test/CloudIntfTest.java>
>> 
>> Also, if you want to test run the code, you may please follow this quick README:-
>> 
>> https://github.com/apache/airavata/blob/develop/modules/cloud/cloud-provisioning/README <https://github.com/apache/airavata/blob/develop/modules/cloud/cloud-provisioning/README>
>> 
>> Please let me know if you need some more info or code walkthrough. Sending you the jetstream openrc credentials separately. 
>> 
>> Thanks.
>> 
>> Regards,
>> Mangirish
>> 
>> On Wed, Apr 20, 2016 at 11:42 AM, Suresh Marru <smarru@apache.org <ma...@apache.org>> wrote:
>> Hi Pankaj,
>> 
>> Please switch to ‘develop’ branch and look for the cloud provisioning module - https://github.com/apache/airavata/tree/develop/modules/cloud/cloud-provisioning <https://github.com/apache/airavata/tree/develop/modules/cloud/cloud-provisioning>
>> 
>> Suresh
>> 
>>> On Apr 20, 2016, at 11:37 AM, Pankaj Saha <psaha4@binghamton.edu <ma...@binghamton.edu>> wrote:
>>> 
>>> Hello Mangirish,
>>> I have latest Airavata mater branch installed in my local system. Can you please give us some clue how to start creating the VMs through you application. Please specify where we can find your corresponding java code. Is it through PGA website?
>>> Please share the required password to me in a separate email.
>>> 
>>> Thanks
>>> Pankaj
>> 
>> 
>> 
> 
> 


Re: Jetstream VM creation through Airavata

Posted by Pankaj Saha <ps...@binghamton.edu>.
Hi Suresh,

I just had a hangout session with Mangirish regarding the same. It looks
like an authentication issue with openstack which he is aware of. He has
explained me his code and I am going to retry fixing the problem.

I did not use maven to build his project instead I have export his project
as eclipse (mvn eclipse:eclipse) and trying to run the junit test.

Will update you once I find something new.

Thanks
Pankaj


On Wed, Apr 20, 2016 at 3:21 PM, Suresh Marru <sm...@apache.org> wrote:

> Hi Pankaj,
>
> Can you please be more clear? What is failing? Did you try to build it
> using maven within the cloud provisioning directory itself? Did you change
> the public key file in the test_data.properties?
>
> Suresh
>
> On Apr 20, 2016, at 2:56 PM, Pankaj Saha <ps...@binghamton.edu> wrote:
>
> I am able to get Mangirish's code in the develop branch. After making it
> an eclipse project, when I am trying to run it as JUnit test, it's failing.
> Need help to fix this, possibly some configuration changes in the
> properties file or similar.
> It will be great we can talk over a hangout session or at least a chat
> session to make it work.
>
> On Wed, Apr 20, 2016 at 12:05 PM, Mangirish Wagle <
> vaglomangirish@gmail.com> wrote:
>
>> Hi Pankaj,
>>
>> You may find a sample test code for the module in this unit test file:-
>>
>>
>> https://github.com/apache/airavata/blob/develop/modules/cloud/cloud-provisioning/src/test/java/org/apache/airavata/cloud/test/CloudIntfTest.java
>>
>> Also, if you want to test run the code, you may please follow this quick
>> README:-
>>
>>
>> https://github.com/apache/airavata/blob/develop/modules/cloud/cloud-provisioning/README
>>
>> Please let me know if you need some more info or code walkthrough.
>> Sending you the jetstream openrc credentials separately.
>>
>> Thanks.
>>
>> Regards,
>> Mangirish
>>
>> On Wed, Apr 20, 2016 at 11:42 AM, Suresh Marru <sm...@apache.org> wrote:
>>
>>> Hi Pankaj,
>>>
>>> Please switch to ‘develop’ branch and look for the cloud provisioning
>>> module -
>>> https://github.com/apache/airavata/tree/develop/modules/cloud/cloud-provisioning
>>>
>>> Suresh
>>>
>>> On Apr 20, 2016, at 11:37 AM, Pankaj Saha <ps...@binghamton.edu> wrote:
>>>
>>> Hello Mangirish,
>>> I have latest Airavata mater branch installed in my local system. Can
>>> you please give us some clue how to start creating the VMs through you
>>> application. Please specify where we can find your corresponding java code.
>>> Is it through PGA website?
>>> Please share the required password to me in a separate email.
>>>
>>> Thanks
>>> Pankaj
>>>
>>>
>>>
>>
>
>

Re: Jetstream VM creation through Airavata

Posted by Suresh Marru <sm...@apache.org>.
I just ran a test to make sure we are not hitting any resource oddities, but everything seems to be fine:

[INFO] --- maven-surefire-plugin:2.18.1:test (default-test) @ cloud-provisioning ---
[INFO] Surefire report directory: /Users/smarru/repo/airavata-develop/modules/cloud/cloud-provisioning/target/surefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running org.apache.airavata.cloud.test.CloudIntfTest
[main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - Keypair retrieved successfully: testKey
[main] INFO org.apache.airavata.cloud.test.CloudIntfTest - Keypair created/ retrieved: 5e:46:91:ad:8a:1c:26:4b:76:ea:08:08:ac:10:67:bf
[main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - Using network subnet-airavata with ID: ad2552d6-1a02-4d6c-9fa4-ad40d93e5423
[main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - New server created with ID: a6566417-3176-4c50-b35f-ccf800952ace
[main] INFO org.apache.airavata.cloud.test.CloudIntfTest - Server Created: a6566417-3176-4c50-b35f-ccf800952ace
[main] INFO org.apache.airavata.cloud.test.CloudIntfTest - Waiting for instance to go ACTIVE...
[main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - Server retrieved successfully for ID: a6566417-3176-4c50-b35f-ccf800952ace
[main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - true:200:null:ActionResponse{success=true, code=200}
[main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - Floating IP 149.165.172.245 assigned successfully to server with ID: a6566417-3176-4c50-b35f-ccf800952ace
[main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - Server retrieved successfully for ID: a6566417-3176-4c50-b35f-ccf800952ace
[main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - Server deleted successfully for ID: a6566417-3176-4c50-b35f-ccf800952ace
[main] INFO org.apache.airavata.cloud.test.CloudIntfTest - Server deleted: a6566417-3176-4c50-b35f-ccf800952ace
[main] INFO org.apache.airavata.cloud.test.CloudIntfTest - Waiting for instance to terminate...
[main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - Keypair deleted successfully: testKey
[main] INFO org.apache.airavata.cloud.test.CloudIntfTest - Keypair deleted: testKey
[main] INFO org.apache.airavata.cloud.intf.impl.OpenstackIntfImpl - Server retrieved successfully for ID: a6566417-3176-4c50-b35f-ccf800952ace
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 65.672 sec - in org.apache.airavata.cloud.test.CloudIntfTest

Results :

Tests run: 1, Failures: 0, Errors: 0, Skipped: 0

[INFO]
[INFO] --- maven-jar-plugin:2.5:jar (default-jar) @ cloud-provisioning ---
[INFO] Building jar: /Users/smarru/repo/airavata-develop/modules/cloud/cloud-provisioning/target/cloud-provisioning-0.16-SNAPSHOT.jar
[INFO]
[INFO] --- maven-site-plugin:3.4:attach-descriptor (attach-descriptor) @ cloud-provisioning ---
[INFO]
[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ cloud-provisioning ---
[INFO] Installing /Users/smarru/repo/airavata-develop/modules/cloud/cloud-provisioning/target/cloud-provisioning-0.16-SNAPSHOT.jar to /Users/smarru/.m2/repository/org/apache/airavata/cloud-provisioning/0.16-SNAPSHOT/cloud-provisioning-0.16-SNAPSHOT.jar
[INFO] Installing /Users/smarru/repo/airavata-develop/modules/cloud/cloud-provisioning/pom.xml to /Users/smarru/.m2/repository/org/apache/airavata/cloud-provisioning/0.16-SNAPSHOT/cloud-provisioning-0.16-SNAPSHOT.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------

Suresh

> On Apr 20, 2016, at 3:21 PM, Suresh Marru <sm...@apache.org> wrote:
> 
> Hi Pankaj,
> 
> Can you please be more clear? What is failing? Did you try to build it using maven within the cloud provisioning directory itself? Did you change the public key file in the test_data.properties? 
> 
> Suresh
> 
>> On Apr 20, 2016, at 2:56 PM, Pankaj Saha <psaha4@binghamton.edu <ma...@binghamton.edu>> wrote:
>> 
>> I am able to get Mangirish's code in the develop branch. After making it an eclipse project, when I am trying to run it as JUnit test, it's failing.
>> Need help to fix this, possibly some configuration changes in the properties file or similar.
>> It will be great we can talk over a hangout session or at least a chat session to make it work.
>> 
>> On Wed, Apr 20, 2016 at 12:05 PM, Mangirish Wagle <vaglomangirish@gmail.com <ma...@gmail.com>> wrote:
>> Hi Pankaj,
>> 
>> You may find a sample test code for the module in this unit test file:-
>> 
>> https://github.com/apache/airavata/blob/develop/modules/cloud/cloud-provisioning/src/test/java/org/apache/airavata/cloud/test/CloudIntfTest.java <https://github.com/apache/airavata/blob/develop/modules/cloud/cloud-provisioning/src/test/java/org/apache/airavata/cloud/test/CloudIntfTest.java>
>> 
>> Also, if you want to test run the code, you may please follow this quick README:-
>> 
>> https://github.com/apache/airavata/blob/develop/modules/cloud/cloud-provisioning/README <https://github.com/apache/airavata/blob/develop/modules/cloud/cloud-provisioning/README>
>> 
>> Please let me know if you need some more info or code walkthrough. Sending you the jetstream openrc credentials separately. 
>> 
>> Thanks.
>> 
>> Regards,
>> Mangirish
>> 
>> On Wed, Apr 20, 2016 at 11:42 AM, Suresh Marru <smarru@apache.org <ma...@apache.org>> wrote:
>> Hi Pankaj,
>> 
>> Please switch to ‘develop’ branch and look for the cloud provisioning module - https://github.com/apache/airavata/tree/develop/modules/cloud/cloud-provisioning <https://github.com/apache/airavata/tree/develop/modules/cloud/cloud-provisioning>
>> 
>> Suresh
>> 
>>> On Apr 20, 2016, at 11:37 AM, Pankaj Saha <psaha4@binghamton.edu <ma...@binghamton.edu>> wrote:
>>> 
>>> Hello Mangirish,
>>> I have latest Airavata mater branch installed in my local system. Can you please give us some clue how to start creating the VMs through you application. Please specify where we can find your corresponding java code. Is it through PGA website?
>>> Please share the required password to me in a separate email.
>>> 
>>> Thanks
>>> Pankaj
>> 
>> 
>> 
> 


Re: Jetstream VM creation through Airavata

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

Can you please be more clear? What is failing? Did you try to build it using maven within the cloud provisioning directory itself? Did you change the public key file in the test_data.properties? 

Suresh

> On Apr 20, 2016, at 2:56 PM, Pankaj Saha <ps...@binghamton.edu> wrote:
> 
> I am able to get Mangirish's code in the develop branch. After making it an eclipse project, when I am trying to run it as JUnit test, it's failing.
> Need help to fix this, possibly some configuration changes in the properties file or similar.
> It will be great we can talk over a hangout session or at least a chat session to make it work.
> 
> On Wed, Apr 20, 2016 at 12:05 PM, Mangirish Wagle <vaglomangirish@gmail.com <ma...@gmail.com>> wrote:
> Hi Pankaj,
> 
> You may find a sample test code for the module in this unit test file:-
> 
> https://github.com/apache/airavata/blob/develop/modules/cloud/cloud-provisioning/src/test/java/org/apache/airavata/cloud/test/CloudIntfTest.java <https://github.com/apache/airavata/blob/develop/modules/cloud/cloud-provisioning/src/test/java/org/apache/airavata/cloud/test/CloudIntfTest.java>
> 
> Also, if you want to test run the code, you may please follow this quick README:-
> 
> https://github.com/apache/airavata/blob/develop/modules/cloud/cloud-provisioning/README <https://github.com/apache/airavata/blob/develop/modules/cloud/cloud-provisioning/README>
> 
> Please let me know if you need some more info or code walkthrough. Sending you the jetstream openrc credentials separately. 
> 
> Thanks.
> 
> Regards,
> Mangirish
> 
> On Wed, Apr 20, 2016 at 11:42 AM, Suresh Marru <smarru@apache.org <ma...@apache.org>> wrote:
> Hi Pankaj,
> 
> Please switch to ‘develop’ branch and look for the cloud provisioning module - https://github.com/apache/airavata/tree/develop/modules/cloud/cloud-provisioning <https://github.com/apache/airavata/tree/develop/modules/cloud/cloud-provisioning>
> 
> Suresh
> 
>> On Apr 20, 2016, at 11:37 AM, Pankaj Saha <psaha4@binghamton.edu <ma...@binghamton.edu>> wrote:
>> 
>> Hello Mangirish,
>> I have latest Airavata mater branch installed in my local system. Can you please give us some clue how to start creating the VMs through you application. Please specify where we can find your corresponding java code. Is it through PGA website?
>> Please share the required password to me in a separate email.
>> 
>> Thanks
>> Pankaj
> 
> 
> 


Re: Jetstream VM creation through Airavata

Posted by Pankaj Saha <ps...@binghamton.edu>.
I am able to get Mangirish's code in the develop branch. After making it an
eclipse project, when I am trying to run it as JUnit test, it's failing.
Need help to fix this, possibly some configuration changes in the
properties file or similar.
It will be great we can talk over a hangout session or at least a chat
session to make it work.

On Wed, Apr 20, 2016 at 12:05 PM, Mangirish Wagle <va...@gmail.com>
wrote:

> Hi Pankaj,
>
> You may find a sample test code for the module in this unit test file:-
>
>
> https://github.com/apache/airavata/blob/develop/modules/cloud/cloud-provisioning/src/test/java/org/apache/airavata/cloud/test/CloudIntfTest.java
>
> Also, if you want to test run the code, you may please follow this quick
> README:-
>
>
> https://github.com/apache/airavata/blob/develop/modules/cloud/cloud-provisioning/README
>
> Please let me know if you need some more info or code walkthrough. Sending
> you the jetstream openrc credentials separately.
>
> Thanks.
>
> Regards,
> Mangirish
>
> On Wed, Apr 20, 2016 at 11:42 AM, Suresh Marru <sm...@apache.org> wrote:
>
>> Hi Pankaj,
>>
>> Please switch to ‘develop’ branch and look for the cloud provisioning
>> module -
>> https://github.com/apache/airavata/tree/develop/modules/cloud/cloud-provisioning
>>
>> Suresh
>>
>> On Apr 20, 2016, at 11:37 AM, Pankaj Saha <ps...@binghamton.edu> wrote:
>>
>> Hello Mangirish,
>> I have latest Airavata mater branch installed in my local system. Can you
>> please give us some clue how to start creating the VMs through you
>> application. Please specify where we can find your corresponding java code.
>> Is it through PGA website?
>> Please share the required password to me in a separate email.
>>
>> Thanks
>> Pankaj
>>
>>
>>
>

Re: Jetstream VM creation through Airavata

Posted by Mangirish Wagle <va...@gmail.com>.
Hi Pankaj,

You may find a sample test code for the module in this unit test file:-

https://github.com/apache/airavata/blob/develop/modules/cloud/cloud-provisioning/src/test/java/org/apache/airavata/cloud/test/CloudIntfTest.java

Also, if you want to test run the code, you may please follow this quick
README:-

https://github.com/apache/airavata/blob/develop/modules/cloud/cloud-provisioning/README

Please let me know if you need some more info or code walkthrough. Sending
you the jetstream openrc credentials separately.

Thanks.

Regards,
Mangirish

On Wed, Apr 20, 2016 at 11:42 AM, Suresh Marru <sm...@apache.org> wrote:

> Hi Pankaj,
>
> Please switch to ‘develop’ branch and look for the cloud provisioning
> module -
> https://github.com/apache/airavata/tree/develop/modules/cloud/cloud-provisioning
>
> Suresh
>
> On Apr 20, 2016, at 11:37 AM, Pankaj Saha <ps...@binghamton.edu> wrote:
>
> Hello Mangirish,
> I have latest Airavata mater branch installed in my local system. Can you
> please give us some clue how to start creating the VMs through you
> application. Please specify where we can find your corresponding java code.
> Is it through PGA website?
> Please share the required password to me in a separate email.
>
> Thanks
> Pankaj
>
>
>

Re: Jetstream VM creation through Airavata

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

Please switch to ‘develop’ branch and look for the cloud provisioning module - https://github.com/apache/airavata/tree/develop/modules/cloud/cloud-provisioning <https://github.com/apache/airavata/tree/develop/modules/cloud/cloud-provisioning>

Suresh

> On Apr 20, 2016, at 11:37 AM, Pankaj Saha <ps...@binghamton.edu> wrote:
> 
> Hello Mangirish,
> I have latest Airavata mater branch installed in my local system. Can you please give us some clue how to start creating the VMs through you application. Please specify where we can find your corresponding java code. Is it through PGA website?
> Please share the required password to me in a separate email.
> 
> Thanks
> Pankaj