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" <run...@gmail.com> wrote: >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 <min.c...@citrix.com> wrote: >> >> 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" <run...@gmail.com> wrote: >>> >>> 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 <koushik....@citrix.com> >>>>wrote: >>>> >>>> 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"; >>>> 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. >>>> >>>> -----Original Message----- >>>> From: Sebastien Goasguen [mailto: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 'cloudtouseobjectstore' api with cloudmonkey. >>>> >>>> I tried with: >>>> >>>>> update cloudtouseobjectstore url=http://localhost:9081/riak-cs >>>>> name=riak provider=riakcs >>>>> >>>>>details[0].key=accesskey&details[0].value=STU6Z-ZMK1TPMDAXL9I1&details >>>>>[1 >>>>> >>>>>].key=secretkey&details[1].value=8OuY3mHDXihu0Tdb2aVJ4vuYZLBAl5Z7NiWKs >>>>>g= >>>>> = >>>> 530: Failed to add data store: DataCenter id is null, and simulator >>>> image store has to be associated with a data center >>>> >>>> I am not sure if the arguments are right, has anyone done this before >>>>? >>>> >>>> thanks, >>>> >>>> -sebastien >>