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
l String S3_IMAGE = "S3"; >>>> static final String SWIFT_IMAGE = "Swift"; >>>> static final String SAMPLE_IMAGE = "Sample"; >>>> static final String SMB = "NFS"; >>>> static final String DEFAULT_PRIMARY =

Re: S3 use with simulator

2014-06-20 Thread Sebastien Goasguen
gt; static final String SWIFT_IMAGE = "Swift"; >>> static final String SAMPLE_IMAGE = "Sample"; >>> static final String SMB = "NFS"; >>> static final String DEFAULT_PRIMARY = "DefaultPrimary"; >>> >>> Try passi

Re: S3 use with simulator

2014-06-20 Thread Min Chen
final String SAMPLE_IMAGE = "Sample"; >>static final String SMB = "NFS"; >>static final String DEFAULT_PRIMARY = "DefaultPrimary"; >> >> Try passing S3 in the provider. >> BTW when you setup simulator the image provider is NFS. &

Re: S3 use with simulator

2014-06-20 Thread Sebastien Goasguen
tic final String SMB = "NFS"; >static final String DEFAULT_PRIMARY = "DefaultPrimary"; > > Try passing S3 in the provider. > BTW when you setup simulator the image provider is NFS. > > -Original Message- > From: Sebastien Goasguen [mailto:run...@gmai

RE: S3 use with simulator

2014-06-20 Thread Koushik Das
o:run...@gmail.com] Sent: Thursday, 19 June 2014 5:08 PM To: dev@cloudstack.apache.org Subject: S3 use with simulator 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 'clou

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

S3 use with simulator

2014-06-19 Thread Sebastien Goasguen
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 cloudtouseobjectstore url=http://localhost:9081/riak-cs name=riak > provider=