Return-Path: X-Original-To: apmail-stratos-dev-archive@minotaur.apache.org Delivered-To: apmail-stratos-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1D03317393 for ; Fri, 20 Mar 2015 16:58:39 +0000 (UTC) Received: (qmail 22471 invoked by uid 500); 20 Mar 2015 16:58:32 -0000 Delivered-To: apmail-stratos-dev-archive@stratos.apache.org Received: (qmail 22417 invoked by uid 500); 20 Mar 2015 16:58:32 -0000 Mailing-List: contact dev-help@stratos.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@stratos.apache.org Delivered-To: mailing list dev@stratos.apache.org Received: (qmail 22407 invoked by uid 99); 20 Mar 2015 16:58:32 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Mar 2015 16:58:32 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of udara@wso2.com designates 209.85.192.169 as permitted sender) Received: from [209.85.192.169] (HELO mail-pd0-f169.google.com) (209.85.192.169) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Mar 2015 16:58:07 +0000 Received: by pdnc3 with SMTP id c3so113887018pdn.0 for ; Fri, 20 Mar 2015 09:58:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wso2.com; s=google; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=ive/F+Q4GtKPDK2cjRbRqy625H/GVYD9dF3PgLC2rLE=; b=Gx0cIAvOUc5yV7BhvEMCJn+bgytOnqwBd5OVXjslKYu/VyxxiF0T3G1hleKswj3cgd kK1kj1eot+OoqmYqBt/VgHirKJ9jKk5HL27vxGyk43X5kKnAl5brsoFeolIo1q2dArdi OEaELA+Dfir6KYFqGlt7teuKBDcAHotfxRXsI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=ive/F+Q4GtKPDK2cjRbRqy625H/GVYD9dF3PgLC2rLE=; b=gGx/6tMslp0xSlOwJz0LBQdOY2tQVBx9fvzw27OMTuLN2n0zhDQ64WpVBtcoSAdqBw UmxqT5TkrmkySS4rYbNCk4ELGYcuO6Hn52yrUHPp6SfjwWrZH6IVznbkEXtkXj8Yx5l1 P7f/Q5QA5R2udg9K8jW+BZTXUJZrdbyNV891LGUqbZjS/K9ET/zEyTP7vXrkYYZkZtpP uzJJpUSkKHk74SAT3VinzjkAXAD+FltXwWu/Nsbwf9EVaNADqE442ZkNSNHxiGLywQx5 n0y05czNuFjRKz7DGTeoweY9+gLswiz5WcnSCWABL0OadIppde588hjv0ZV2g3bEM2kq qZTA== X-Gm-Message-State: ALoCoQk29tPjBulJkuwRfWO2wpUIwqxKZ6f7PbV2iCcR9uqjqvvHpXFscvC23hnGyLTyz4Gol3g9 MIME-Version: 1.0 X-Received: by 10.70.88.16 with SMTP id bc16mr79789385pdb.140.1426870684741; Fri, 20 Mar 2015 09:58:04 -0700 (PDT) Received: by 10.70.8.131 with HTTP; Fri, 20 Mar 2015 09:58:04 -0700 (PDT) Received: by 10.70.8.131 with HTTP; Fri, 20 Mar 2015 09:58:04 -0700 (PDT) In-Reply-To: References: Date: Fri, 20 Mar 2015 22:28:04 +0530 Message-ID: Subject: Re: Persistence Volume Mapping support From: Udara Liyanage To: dev Content-Type: multipart/alternative; boundary=001a11c2a2824e0ab90511bb38ed X-Virus-Checked: Checked by ClamAV on apache.org --001a11c2a2824e0ab90511bb38ed Content-Type: text/plain; charset=UTF-8 Hi Lahiru, There is an option to attach an already created volume. You can provide a known volume I'd and check weather it get attached. On 20 Mar 2015 21:49, "Lahiru Sandaruwan" wrote: > Hi, > > I have completed subscribable info support, and now it passes the > persistence information to instance creation step correctly. > > But it failed to attach the volume to the instance after creating a volume > successfully. Our code pass the instanceId and volumeId correctly for the > volume attaching call, as per my debug session. > > It seems the value that is passed as volumeId doesn't get the correct > value and send the same value always. > > Their rest API is, > > http://:/v2/** > /servers//os-volume_attachments > > Error was, > > Caused by: org.jclouds.http.HttpResponseException: command: POST > http://192.168.16.99:8774/v2/*cc9383d8a04f40988f2fcf8aab397551*/servers/RegionOne/33b5057b-7095-4cfc-9e2a-d811cf25051e/os-volume_attachments > HTTP/1.1 failed with response: HTTP/1.1 404 Not Found > > Looking into it. Full error at [1]. > > Thanks. > [1] > > TID: [0] [STRATOS] [2015-03-20 16:05:52,325] ERROR > {org.apache.stratos.cloud.controller.services.impl.InstanceCreator} - > Could not attache volume, [instance] > RegionOne/33b5057b-7095-4cfc-9e2a-d811cf25051e [volume] Persistence > Required: , Size: 1, device: /dev/vdb mapping path : null remove on > termination true SnaphotId null > org.jclouds.rest.ResourceNotFoundException: 404 Not Found > > The resource could not be found. > > > at > org.jclouds.openstack.nova.v2_0.handlers.NovaErrorHandler.handleError(NovaErrorHandler.java:97) > at > org.jclouds.http.handlers.DelegatingErrorHandler.handleError(DelegatingErrorHandler.java:65) > at > org.jclouds.http.internal.BaseHttpCommandExecutorService.shouldContinue(BaseHttpCommandExecutorService.java:128) > at > org.jclouds.http.internal.BaseHttpCommandExecutorService.invoke(BaseHttpCommandExecutorService.java:98) > at > org.jclouds.rest.internal.InvokeHttpMethod.invoke(InvokeHttpMethod.java:90) > at > org.jclouds.rest.internal.InvokeHttpMethod.apply(InvokeHttpMethod.java:73) > at > org.jclouds.rest.internal.InvokeHttpMethod.apply(InvokeHttpMethod.java:44) > at > org.jclouds.reflect.FunctionalReflection$FunctionalInvocationHandler.handleInvocation(FunctionalReflection.java:117) > at > com.google.common.reflect.AbstractInvocationHandler.invoke(AbstractInvocationHandler.java:87) > at com.sun.proxy.$Proxy146.attachVolumeToServerAsDevice(Unknown Source) > at > org.apache.stratos.cloud.controller.iaases.openstack.OpenstackIaas.attachVolume(OpenstackIaas.java:476) > at > org.apache.stratos.cloud.controller.services.impl.InstanceCreator.attachVolumes(InstanceCreator.java:132) > at > org.apache.stratos.cloud.controller.services.impl.InstanceCreator.run(InstanceCreator.java:73) > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) > at java.lang.Thread.run(Thread.java:745) > Caused by: org.jclouds.http.HttpResponseException: command: POST > http://192.168.16.99:8774/v2/cc9383d8a04f40988f2fcf8aab397551/servers/RegionOne/33b5057b-7095-4cfc-9e2a-d811cf25051e/os-volume_attachments > HTTP/1.1 failed with response: HTTP/1.1 404 Not Found; content: [404 Not > Found > > The resource could not be found. > > ] > at > org.jclouds.openstack.nova.v2_0.handlers.NovaErrorHandler.handleError(NovaErrorHandler.java:78) > ... 15 more > > On Wed, Mar 18, 2015 at 8:55 AM, Udara Liyanage wrote: > >> Hi Lashiru, >> >> CC backend supports persistence volume. We need to add this to >> application subscribable info. >> >> On Wed, Mar 18, 2015 at 7:57 AM, Lahiru Sandaruwan >> wrote: >> >>> Hi devs, >>> >>> I'm working on $subject. We have had this feature in 4.0.0 version in >>> cartridge definition and later moved to subscription section. But we have >>> missed this feature when we moving subscription parameters to Application >>> in new model. >>> >>> I will update this thread as i progress. >>> >>> Thanks. >>> >>> >>> -- >>> -- >>> Lahiru Sandaruwan >>> Committer and PMC member, Apache Stratos, >>> Senior Software Engineer, >>> WSO2 Inc., http://wso2.com >>> lean.enterprise.middleware >>> >>> phone: +94773325954 >>> email: lahirus@wso2.com blog: http://lahiruwrites.blogspot.com/ >>> linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146 >>> >>> >> >> >> -- >> >> Udara Liyanage >> Software Engineer >> WSO2, Inc.: http://wso2.com >> lean. enterprise. middleware >> >> web: http://udaraliyanage.wordpress.com >> phone: +94 71 443 6897 >> > > > > -- > -- > Lahiru Sandaruwan > Committer and PMC member, Apache Stratos, > Senior Software Engineer, > WSO2 Inc., http://wso2.com > lean.enterprise.middleware > > phone: +94773325954 > email: lahirus@wso2.com blog: http://lahiruwrites.blogspot.com/ > linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146 > > --001a11c2a2824e0ab90511bb38ed Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

Hi Lahiru,

There is an option to attach an already created volume. You = can provide a known volume I'd and check weather it get attached.

On 20 Mar 2015 21:49, "Lahiru Sandaruwan&qu= ot; <lahirus@wso2.com> wrote:=
Hi= ,

I have completed subscribable info support, and now it= passes the persistence information to instance creation step correctly.=C2= =A0

But it failed to attach the volume to the inst= ance after creating a volume successfully. Our code pass the instanceId and= volumeId correctly for the volume attaching call, as per my debug session.= =C2=A0

It seems the value that is passed as volume= Id doesn't get the correct value and send the same value always.
<= div>
Their rest API is,=C2=A0

http:/= /<host>:<port>/v2/<volumeId>/servers/<instanceI= d>/os-volume_attachments

Error was,

Caused by: org.jclouds.http.HttpResponseException: comman= d: POST http://= 192.168.16.99:8774/v2/cc9383d8a04f40988f2fcf8aab397551/servers/R= egionOne/33b5057b-7095-4cfc-9e2a-d811cf25051e/os-volume_attachments HTTP/1.= 1 failed with response: HTTP/1.1 404 Not Found

Looking into it. Full error at [1].

Thanks.
=
[1] =C2=A0

TID: [0] [STRATOS] [2015-03-20 16:= 05:52,325] ERROR {org.apache.stratos.cloud.controller.services.impl.Instanc= eCreator} - =C2=A0Could not attache volume, [instance] RegionOne/33b5057b-7= 095-4cfc-9e2a-d811cf25051e [volume] Persistence Required: , Size: 1, device= : /dev/vdb mapping path : null remove on termination true SnaphotId null
org.jclouds.rest.ResourceNotFoundException: 404 Not Found

The resource could not be found.

<= br>
at org.jclouds.o= penstack.nova.v2_0.handlers.NovaErrorHandler.handleError(NovaErrorHandler.j= ava:97)
at org.jclou= ds.http.handlers.DelegatingErrorHandler.handleError(DelegatingErrorHandler.= java:65)
at org.jclo= uds.http.internal.BaseHttpCommandExecutorService.shouldContinue(BaseHttpCom= mandExecutorService.java:128)
at org.jclouds.http.internal.BaseHttpCommandExecutorService.invok= e(BaseHttpCommandExecutorService.java:98)
at org.jclouds.rest.internal.InvokeHttpMethod.invoke(= InvokeHttpMethod.java:90)
<= /span>at org.jclouds.rest.internal.InvokeHttpMethod.apply(InvokeHttpMethod.= java:73)
at org.jclo= uds.rest.internal.InvokeHttpMethod.apply(InvokeHttpMethod.java:44)
at org.jclouds.reflect.Funct= ionalReflection$FunctionalInvocationHandler.handleInvocation(FunctionalRefl= ection.java:117)
at = com.google.common.reflect.AbstractInvocationHandler.invoke(AbstractInvocati= onHandler.java:87)
a= t com.sun.proxy.$Proxy146.attachVolumeToServerAsDevice(Unknown Source)
at org.apache.stratos.cl= oud.controller.iaases.openstack.OpenstackIaas.attachVolume(OpenstackIaas.ja= va:476)
at org.apach= e.stratos.cloud.controller.services.impl.InstanceCreator.attachVolumes(Inst= anceCreator.java:132)
at org.apache.stratos.cloud.controller.services.impl.InstanceCreator.run(= InstanceCreator.java:73)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecuto= r.java:1145)
at java= .util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)=
at java.lang.Thread= .run(Thread.java:745)
Caused by: org.jclouds.http.HttpResponseExc= eption: command: POST http://192.168.16.99:8774/v2/cc938= 3d8a04f40988f2fcf8aab397551/servers/RegionOne/33b5057b-7095-4cfc-9e2a-d811c= f25051e/os-volume_attachments HTTP/1.1 failed with response: HTTP/1.1 4= 04 Not Found; content: [404 Not Found

The resource= could not be found.

=C2=A0 =C2=A0]
at org.jclouds.openstack.nova.v2_0= .handlers.NovaErrorHandler.handleError(NovaErrorHandler.java:78)
= ... 15 more

On Wed, Mar 18, 2015 at = 8:55 AM, Udara Liyanage <udara@wso2.com> wrote:
Hi Lashiru,

CC backe= nd supports persistence volume. We need to add this to application subscrib= able info.

On Wed, Mar 18, 2015 at 7:57 AM, Lahiru Sandaruwan <lahiru= s@wso2.com> wrote:
Hi devs,

I'm working on $subject. We have h= ad this feature in 4.0.0 version in cartridge definition and later moved to= subscription section. But we have missed this feature when we moving subsc= ription parameters to Application in new model.

I = will update this thread as i progress.

Thanks.


--
--
Lahiru Sandaruwan



<= font color=3D"#888888">--

Udara Liyanage
Software Engineer
WSO2, Inc.:=C2=A0http://wso2.com=
lean. enterprise. middleware
<= br>
phone:= =C2=A0+94 71 443 6= 897



--
--
Lahiru Sandaruwan
Committ= er and PMC member, Apache Stratos,
Senior=C2=A0Software Engineer,
WSO= 2 Inc., http://wso2.com
--001a11c2a2824e0ab90511bb38ed--