Re: Riak CS : 405 (Method Not Allowed) when creating a bucket

2014-03-14 Thread Alex Moore
Hi Mikhail,

 Look like a single point of failure.
 In current version situation is same?

Yes, this is a possible single point of failure, but Stanchion is only needed 
for the creation of buckets and user accounts. Object access is unaffected if 
Stanchion isn’t running.
If stanchion did die, the system would run at partial feature availability 
until you get it running again.  If the node irrecoverably died, you could just 
point all the RiakCS instances to a new stanchion node.

One of Riak 2.0’s features is strong consistency, so we plan on using that in 
the future instead of stanchion. For Riak 1.4.8 (current version), stanchion is 
required. 

Thanks,
Alex


On Mar 14, 2014, at 12:44 AM, ten ten@gmail.com wrote:

 Hello,
 
 Bucket creation is one of the operations handled by 'stanchion'.  So,
 make sure you've install stanchion installed on only one node and that
 all riak-cs nodes are pointing at that one stanchion node.
 
 Look like a single point of failure.
 In current version situation is same?
 
 Regards,
 Mikhail.
 
 ___
 riak-users mailing list
 riak-users@lists.basho.com
 http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com


___
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com


Riak CS : 405 (Method Not Allowed) when creating a bucket

2014-03-13 Thread ten
Hello,

Bucket creation is one of the operations handled by 'stanchion'.  So,
make sure you've install stanchion installed on only one node and that
all riak-cs nodes are pointing at that one stanchion node.

Look like a single point of failure.
In current version situation is same?

Regards,
Mikhail.

___
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com


Re: Riak CS : 405 (Method Not Allowed) when creating a bucket

2013-03-28 Thread Jean-Baptiste Barth
No problem, that's even more simpler. You can safely drop my PR to the docs
(it was somewhat hard to explain what to do in a consistent way with other
steps anyway). I will test the procedure from the beginning with the
one-command branch this week-end, but it seems it's even better now (and it
might solve an other problem I had with gems not detected by vagrant, I had
to manually add some paths to the Vagrantfile... I'll tell you).

Thanks for your support!


2013/3/27 Tyler Hannan ty...@basho.com

 Jean-Baptiste,

 Sorry for the delay in reply on this…and thanks for your PR to the docs.

 You actually caught us in the middle of an update to the vagrant project
 that impacts the docs as well.  The goal/intent is to simplify the process
 even further and prepare it for being able to spin up a virtual cluster
 simply.

 All that to say, the app.config that is being populated by the cookbook
 should now match a default s3cmd host_base  _bucket and prevent the issue
 you saw.

 Take a gander at the one-command branch of the vagrant project if you
 would like to test it (I have it running but am going to give it another
 run this evening)[0].  Just a reminder that, if you clone the repo and want
 to test on that branch in advance of the PR being accepted, you should
 ensure you make your local branch track the origin…something like:

 git checkout --track origin/one-command

 Feel free to shout with any more questions…and thanks for helping us make
 the virtual fast track even simpler.

 [0] - https://github.com/hectcastro/vagrant-riak-cs-cluster/pull/4

 Cheers,

 --
 *Tyler Hannan  |  Director, Technical Marketing*
 Basho Technologies
 -
 t: @tylerhannan
 c: 720-280-9216


 On Fri, Mar 22, 2013 at 1:38 AM, Jean-Baptiste Barth 
 jeanbaptiste.ba...@gmail.com wrote:

 2013/3/22 Dan Reverri d...@basho.com

 Hi Jean-Baptiste,

 Can you try updating the host_base and host_bucket in s3cfg to use
 riakcs.dev which is the cs_root_host configured in your Riak CS
 app.config?

 host_base = riakcs.dev
 host_bucket = %(bucket)s.riakcs.dev


 Yes, it worked!

 % s3cmd --debug mb s3://zbucket
 ...
 DEBUG: Sending request method_string='PUT', uri='
 http://zbucket.riakcs.dev/', headers={'content-length': '0',
 'Authorization': 'AWS X2GOEX5TVL8FAYMQIIYC:lHt5vDLqHzsvnOBGnHRxaPNakrI=',
 'x-amz-date': 'Fri, 22 Mar 2013 07:35:39 +'}, body=(0 bytes)
 DEBUG: Response: {'status': 200, 'headers': {'date': 'Fri, 22 Mar 2013
 07:33:49 GMT', 'content-length': '0', 'content-type': 'application/xml',
 'server': 'Riak CS'}, 'reason': 'OK', 'data': ''}
 Bucket 's3://zbucket/' created

 I guess having set the proxy host and port was not enough, I'm right ? If
 so I can prepare a pull request for the docs before tomorrow to add this
 step.

 Thanks,

 Jean-Baptiste

 ___
 riak-users mailing list
 riak-users@lists.basho.com
 http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com



___
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com


Re: Riak CS : 405 (Method Not Allowed) when creating a bucket

2013-03-27 Thread Tyler Hannan
Jean-Baptiste,

Sorry for the delay in reply on this…and thanks for your PR to the docs.

You actually caught us in the middle of an update to the vagrant project
that impacts the docs as well.  The goal/intent is to simplify the process
even further and prepare it for being able to spin up a virtual cluster
simply.

All that to say, the app.config that is being populated by the cookbook
should now match a default s3cmd host_base  _bucket and prevent the issue
you saw.

Take a gander at the one-command branch of the vagrant project if you would
like to test it (I have it running but am going to give it another run this
evening)[0].  Just a reminder that, if you clone the repo and want to test
on that branch in advance of the PR being accepted, you should ensure you
make your local branch track the origin…something like:

git checkout --track origin/one-command

Feel free to shout with any more questions…and thanks for helping us make
the virtual fast track even simpler.

[0] - https://github.com/hectcastro/vagrant-riak-cs-cluster/pull/4

Cheers,

--
*Tyler Hannan  |  Director, Technical Marketing*
Basho Technologies
-
t: @tylerhannan
c: 720-280-9216


On Fri, Mar 22, 2013 at 1:38 AM, Jean-Baptiste Barth 
jeanbaptiste.ba...@gmail.com wrote:

 2013/3/22 Dan Reverri d...@basho.com

 Hi Jean-Baptiste,

 Can you try updating the host_base and host_bucket in s3cfg to use
 riakcs.dev which is the cs_root_host configured in your Riak CS
 app.config?

 host_base = riakcs.dev
 host_bucket = %(bucket)s.riakcs.dev


 Yes, it worked!

 % s3cmd --debug mb s3://zbucket
 ...
 DEBUG: Sending request method_string='PUT', uri='
 http://zbucket.riakcs.dev/', headers={'content-length': '0',
 'Authorization': 'AWS X2GOEX5TVL8FAYMQIIYC:lHt5vDLqHzsvnOBGnHRxaPNakrI=',
 'x-amz-date': 'Fri, 22 Mar 2013 07:35:39 +'}, body=(0 bytes)
 DEBUG: Response: {'status': 200, 'headers': {'date': 'Fri, 22 Mar 2013
 07:33:49 GMT', 'content-length': '0', 'content-type': 'application/xml',
 'server': 'Riak CS'}, 'reason': 'OK', 'data': ''}
 Bucket 's3://zbucket/' created

 I guess having set the proxy host and port was not enough, I'm right ? If
 so I can prepare a pull request for the docs before tomorrow to add this
 step.

 Thanks,

 Jean-Baptiste

 ___
 riak-users mailing list
 riak-users@lists.basho.com
 http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com


___
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com


Re: Riak CS : 405 (Method Not Allowed) when creating a bucket

2013-03-22 Thread Jean-Baptiste Barth
2013/3/22 Kelly McLaughlin ke...@basho.com

 Jean-Baptiste,

 It seems like something is not properly configured, but I am not really
 able to spot anything obvious that is wrong from the gist you provided.
 What operating system are you testing on and are you using packages or have
 you built from source? Could you also gist your riak_cs app.config?


As Tyler guessed I used the tutorial here:
http://docs.basho.com/riakcs/latest/tutorials/fast-track/Building-a-Virtual-Test-Environment/so
I confirm I used
https://github.com/hectcastro/vagrant-riak-cs-cluster and left the
Vagrantfile nearly untouched, with Ubuntu 12.04 by default. I just added
some paths at the top of the file because I use RVM for my ruby
environments and Vagrant was unable to find berkshelf, but I'm pretty sure
it has nothing to do with the actual problem.

Here's a gist of my config files (untouched until you asked me if my
credentials were valid, they were deployed by the chef recipe or in the
vagrant template I guess) : https://gist.github.com/jbbarth/5219485

I can try the install with CentOS tomorrow if you want. Also it would be
great if one of you can gist the output of a successful s3cmd --debug mb
s3://test-bucket so I can dig into the issue myself a bit more.

Thanks for your time, much appreciated :)

Cheers,

Jean-Baptiste
___
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com


Re: Riak CS : 405 (Method Not Allowed) when creating a bucket

2013-03-22 Thread Jean-Baptiste Barth
2013/3/22 Dan Reverri d...@basho.com

 Hi Jean-Baptiste,

 Can you try updating the host_base and host_bucket in s3cfg to use
 riakcs.dev which is the cs_root_host configured in your Riak CS
 app.config?

 host_base = riakcs.dev
 host_bucket = %(bucket)s.riakcs.dev


Yes, it worked!

% s3cmd --debug mb s3://zbucket
...
DEBUG: Sending request method_string='PUT', uri='http://zbucket.riakcs.dev/',
headers={'content-length': '0', 'Authorization': 'AWS
X2GOEX5TVL8FAYMQIIYC:lHt5vDLqHzsvnOBGnHRxaPNakrI=', 'x-amz-date': 'Fri, 22
Mar 2013 07:35:39 +'}, body=(0 bytes)
DEBUG: Response: {'status': 200, 'headers': {'date': 'Fri, 22 Mar 2013
07:33:49 GMT', 'content-length': '0', 'content-type': 'application/xml',
'server': 'Riak CS'}, 'reason': 'OK', 'data': ''}
Bucket 's3://zbucket/' created

I guess having set the proxy host and port was not enough, I'm right ? If
so I can prepare a pull request for the docs before tomorrow to add this
step.

Thanks,

Jean-Baptiste
___
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com


Riak CS : 405 (Method Not Allowed) when creating a bucket

2013-03-21 Thread Jean-Baptiste Barth
Hi,

First congratulations for open-sourcing Riak CS !

Thanks to the fast track docs I now have a vagrant VM which runs Riak CS
and I have been able to define admin credentials. Now I'm trying to use the
whole thing with s3cmd as proposed in
http://docs.basho.com/riakcs/latest/tutorials/fast-track/Testing-the-Installation/
;
s3cmd --configure and s3cmd ls work fine, though it doesn't return
anything since I have no bucket for now. I use s3cmd v1.5.0-alpha1
installed with the tarball.

When I try to create a bucket I get the following error: ERROR: S3 error:
405 (Method Not Allowed):

You can see a full trace here, trying to create a zbucket :
https://gist.github.com/jbbarth/5213352

I'm not very familiar with riak/webmachine/s3cmd for now. I imagine Riak CS
is not happy with the PUT HTTP verb, is it expected behaviour ? Maybe
there is something obvious I missed ? Any idea is welcome.

Thanks,

Jean-Baptiste
___
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com


Re: Riak CS : 405 (Method Not Allowed) when creating a bucket

2013-03-21 Thread Jared Morrow
Jean-Baptiste,

Bucket creation is one of the operations handled by 'stanchion'.  So, make
sure you've install stanchion installed on only one node and that all
riak-cs nodes are pointing at that one stanchion node.  If that all looks
fine, the second thing to check is that the admin credentials match between
riak-cs and stanchion.

Hopefully one of those is the problem and it is an easy fix.  If not, just
reply back and we can work through it.

-Jared

On Thu, Mar 21, 2013 at 9:58 AM, Jean-Baptiste Barth 
jeanbaptiste.ba...@gmail.com wrote:

 Hi,

 First congratulations for open-sourcing Riak CS !

 Thanks to the fast track docs I now have a vagrant VM which runs Riak CS
 and I have been able to define admin credentials. Now I'm trying to use the
 whole thing with s3cmd as proposed in
 http://docs.basho.com/riakcs/latest/tutorials/fast-track/Testing-the-Installation/
  ;
 s3cmd --configure and s3cmd ls work fine, though it doesn't return
 anything since I have no bucket for now. I use s3cmd v1.5.0-alpha1
 installed with the tarball.

 When I try to create a bucket I get the following error: ERROR: S3 error:
 405 (Method Not Allowed):

 You can see a full trace here, trying to create a zbucket :
 https://gist.github.com/jbbarth/5213352

 I'm not very familiar with riak/webmachine/s3cmd for now. I imagine Riak
 CS is not happy with the PUT HTTP verb, is it expected behaviour ? Maybe
 there is something obvious I missed ? Any idea is welcome.

 Thanks,

 Jean-Baptiste

 ___
 riak-users mailing list
 riak-users@lists.basho.com
 http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com


___
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com


Re: Riak CS : 405 (Method Not Allowed) when creating a bucket

2013-03-21 Thread Jean-Baptiste Barth
2013/3/21 Jared Morrow ja...@basho.com

 Bucket creation is one of the operations handled by 'stanchion'.  So, make
 sure you've install stanchion installed on only one node and that all
 riak-cs nodes are pointing at that one stanchion node.


Yep that's the case. Stanchion is running fine it seems, nothing in the
logs, all IP/ports match in /etc/{stanchion,riak,riak-cs}/app.config. Only
one node and one IP for now.


 If that all looks fine, the second thing to check is that the admin
 credentials match between riak-cs and stanchion.


They all look good in config files (same credentials in local ~/.s3cfg,
server's /etc/riak-cs/app.config and server's /etc/stanchion/app.config).
Didn't really know if it has been (or even needs to be) reloaded. A
/etc/init.d/... reload worked on riak / stanchion but failed on riak-cs
(Node 'riak-cs@33.33.33.10' not responding to pings.) so I issued a
restart of riak+riak-cs.


 Hopefully one of those is the problem and it is an easy fix.  If not, just
 reply back and we can work through it.


Same result in the end, still the same trace and error message. Forgot to
mention riak, riak-cs and stanchion all are in 1.3.0 version.

Thanks for your help,

Jean-Baptiste
___
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com


Re: Riak CS : 405 (Method Not Allowed) when creating a bucket

2013-03-21 Thread Kelly McLaughlin
Jean-Baptiste,

It seems like something is not properly configured, but I am not really
able to spot anything obvious that is wrong from the gist you provided.
What operating system are you testing on and are you using packages or have
you built from source? Could you also gist your riak_cs app.config?

Kelly
___
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com


Re: Riak CS : 405 (Method Not Allowed) when creating a bucket

2013-03-21 Thread Tyler Hannan
Jean-Baptiste,

It appears you are using the vagrant project at
https://github.com/hectcastro/vagrant-riak-cs-cluster , is that true?

If so, and just so I can test/reproduce/try it myself are you using the
ubuntu box (the default) or did you edit the vagrant file for CentOS?

Cheers,

--
*Tyler Hannan  |  Director, Technical Marketing*
Basho Technologies
-
t: @tylerhannan
c: 720-280-9216


On Thu, Mar 21, 2013 at 7:03 PM, Kelly McLaughlin ke...@basho.com wrote:

 Jean-Baptiste,

 It seems like something is not properly configured, but I am not really
 able to spot anything obvious that is wrong from the gist you provided.
 What operating system are you testing on and are you using packages or have
 you built from source? Could you also gist your riak_cs app.config?

 Kelly

 ___
 riak-users mailing list
 riak-users@lists.basho.com
 http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com


___
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com