Re: S3 use with simulator

2014-06-24 Thread sebgoa
ame = url; >>> } >>>... >>> >>> if (dcId == null) { >>> throw new InvalidParameterValueException("DataCenter id is null, >>> and simulator image store has to be associated with a data center"); >>> } >>>

Re: S3 use with simulator

2014-06-23 Thread sebgoa
... >> >>if (dcId == null) { >>throw new InvalidParameterValueException("DataCenter id is null, >> and simulator image store has to be associated with a data center"); >>} >> >> So my non Java expertise te

Re: S3 use with simulator

2014-06-23 Thread Prasanna Santhanam
There is an s3.cfg under setup/dev that might do the job for you: commit c79b8270a8eeda0c2f594cc84736f62df79d52c1 Author: Prasanna Santhanam Date: Tue Jul 16 22:53:29 2013 +0530 Adding a sample configuration for the s3 enabled store This sample marvin configuration can be used to add

Re: S3 use with simulator

2014-06-23 Thread Prasanna Santhanam
ator image store has to be associated with a data center"); > } > > So my non Java expertise tells me that dcId is null because zoneId is not set > ??? > > > > > > > > -Original Message- > > From: Sebastien Goasguen [mailto:run...@gmail.com] >

Re: S3 use with simulator

2014-06-23 Thread sebgoa
me that dcId is null because zoneId is not set ??? > > > -Original Message- > From: Sebastien Goasguen [mailto:run...@gmail.com] > Sent: Monday, 23 June 2014 5:47 PM > To: dev@cloudstack.apache.org > Subject: Re: S3 use with simulator > > > On Jun 23

RE: S3 use with simulator

2014-06-23 Thread Koushik Das
] Sent: Monday, 23 June 2014 5:47 PM To: dev@cloudstack.apache.org Subject: Re: S3 use with simulator On Jun 23, 2014, at 7:14 AM, Koushik Das wrote: > This is the request > > http://localhost:8096/api?command=updateCloudToUseObjectStore&url=http > ://localhost:1234/test&n

Re: S3 use with simulator

2014-06-23 Thread Sebastien Goasguen
etkey&details[1].value=dummy Any chance you can try with a signed api request ? It looks like it's not finding a zoneId …hence dcId is null…. > > > -Original Message- > From: sebgoa [mailto:run...@gmail.com] > Sent: Monday, 23 June 2014 4:40 PM > To: dev@cloudstac

RE: S3 use with simulator

2014-06-23 Thread Koushik Das
goa [mailto:run...@gmail.com] Sent: Monday, 23 June 2014 4:40 PM To: dev@cloudstack.apache.org Subject: Re: S3 use with simulator On Jun 23, 2014, at 12:51 PM, Koushik Das wrote: > inline > > On 23-Jun-2014, at 4:05 PM, Sebastien Goasguen wrote: > >> Hi Koushik, thanks fo

Re: S3 use with simulator

2014-06-23 Thread sebgoa
c7bd 100644 >>> --- >>> a/plugins/hypervisors/simulator/src/org/apache/cloudstack/storage/datastore/lifecycle/SimulatorImageStoreLifeCycleImpl.java >>> +++ >>> b/plugins/hypervisors/simulator/src/org/apache/cloudstack/storage/datastore/lifecycle/SimulatorImageSto

Re: S3 use with simulator

2014-06-23 Thread Koushik Das
; +++ >> b/plugins/hypervisors/simulator/src/org/apache/cloudstack/storage/datastore/lifecycle/SimulatorImageStoreLifeCycleImpl.java >> @@ -133,7 +133,7 @@ public class SimulatorImageStoreLifeCycleImpl implements >> ImageStoreLifeCycle { >> */ >>@Override >>

Re: S3 use with simulator

2014-06-23 Thread Sebastien Goasguen
; } > > -Original Message----- > From: Min Chen [mailto:min.c...@citrix.com] > Sent: Saturday, 21 June 2014 3:44 AM > To: dev@cloudstack.apache.org > Subject: Re: S3 use with simulator > > Got it. The error seems from simulator, maybe Koushik has better idea on &g

RE: S3 use with simulator

2014-06-23 Thread Koushik Das
che.org Subject: Re: S3 use with simulator Got it. The error seems from simulator, maybe Koushik has better idea on that. I didn't use that on simulator env though. Thanks -min On 6/20/14 11:05 AM, "Sebastien Goasguen" wrote: >I already have an Nsf secondary storage. I un

Re: S3 use with simulator

2014-06-20 Thread Min Chen
Got it. The error seems from simulator, maybe Koushik has better idea on that. I didn't use that on simulator env though. Thanks -min On 6/20/14 11:05 AM, "Sebastien Goasguen" wrote: >I already have an Nsf secondary storage. I understood that i could not >add a second secondary storage that is

Re: S3 use with simulator

2014-06-20 Thread Sebastien Goasguen
I already have an Nsf secondary storage. I understood that i could not add a second secondary storage that is s3 based, and that the only way was to use the updatecloud Api -Sebastien > On 20 Jun 2014, at 18:49, Min Chen wrote: > > Hi Sebastien, > >I am curious why you are using upda

Re: S3 use with simulator

2014-06-20 Thread Min Chen
Hi Sebastien, I am curious why you are using updateCloudToUseObjectStore api to add S3 as a secondary store in your data center? To set up a data center using S3, you need to use addImageStore api. Thanks -min On 6/20/14 7:47 AM, "Sebastien Goasguen" wrote: >I switch to

Re: S3 use with simulator

2014-06-20 Thread Sebastien Goasguen
I switch to provider=S3 but I get: > 530: Failed to add data store: DataCenter id is null, and simulator image > store has to be associated with a data center On Jun 20, 2014, at 7:07 AM, Koushik Das wrote: > As per the code the following are the supported image store provider types > >/

RE: S3 use with simulator

2014-06-20 Thread Koushik Das
As per the code the following are the supported image store provider types // constants for provider names static final String NFS_IMAGE = "NFS"; static final String S3_IMAGE = "S3"; static final String SWIFT_IMAGE = "Swift"; static final String SAMPLE_IMAGE = "Sample"; sta

Re: S3 use with simulator

2014-06-20 Thread Rohit Yadav
On Fri, Jun 20, 2014 at 3:33 PM, Sebastien Goasguen wrote: > > > Thanks Rohit, > > looks like cloudmonkey is doing its job: > > 2014-06-20 06:00:45,030 - requester.py:41 - [DEBUG] START Request > > 2014-06-20 06:00:45,032 - requester.py:41 - [DEBUG] Requesting > command=updateClo

Re: S3 use with simulator

2014-06-20 Thread Sebastien Goasguen
On Jun 20, 2014, at 5:59 AM, Rohit Yadav wrote: > On Thu, Jun 19, 2014 at 5:07 PM, Sebastien Goasguen > wrote: > >> Hi, >> >> I am using the simulator and started a basic zone. >> I have an S3 object store locally (riakCS), and I am trying to add it to >> the infra using the 'cloudtouseobject

Re: S3 use with simulator

2014-06-20 Thread Rohit Yadav
On Thu, Jun 19, 2014 at 5:07 PM, Sebastien Goasguen wrote: > Hi, > > I am using the simulator and started a basic zone. > I have an S3 object store locally (riakCS), and I am trying to add it to > the infra using the 'cloudtouseobjectstore' api with cloudmonkey. > > I tried with: > > > update clo

Re: S3 use with simulator

2014-06-20 Thread Rohit Yadav
Hi Sebastien, If you see the help doc's example it suggests how you pass in the URL. So, you replace & with space and you run the following for any API that needs to receive map arguments: clodumonkey update cloudtouseobjectstore details[0].key=accesskey details[0].value=valuex details[1].key=key

Re: S3 use with simulator

2014-06-20 Thread Sebastien Goasguen
Adding Min, @Min, it looks like you wrote: https://cwiki.apache.org/confluence/display/CLOUDSTACK/Migration+of+NFS+Secondary+Storage+to+Object+Store Can you confirm that this api (updateCloudToObjectStore) can be tested using the simulator and an external S3 store ? Should this work on basic zon