Hello Jean-Charles, Thanks for the tip. When I added my buckets as host aliases it worked with s3cmd. I just couldn't visualise how this is a thing, to add bucket names as hostname aliases.
However, now, from dragondisk and crossftp s3 clients on another machine, when i try to put requests i get this message. I do not know how the host signature changes.. [R1] S3 Error: 403 (Forbidden) error: Service Error Message.; XML Error Message: <?xml version="1.0" encoding="UTF-8"?><Error><Code>SignatureDoesNotMatch</Code><RequestId>tx000000000000000000019-00574ea5af-1e4c5-default</RequestId><HostId>1e4c5-default-default</HostId></Error> [R1] 403 (Forbidden) error: Service Error Message.; XML Error Message: <?xml version="1.0" encoding="UTF-8"?><Error><Code>SignatureDoesNotMatch</Code><RequestId>tx000000000000000000019-00574ea5af-1e4c5-default</RequestId><HostId>1e4c5-default-default</HostId></Error> On 31 May 2016 at 22:52, LOPEZ Jean-Charles <jelo...@redhat.com> wrote: > Hi again, > > what do you have when you do a ping myb.xen1? > > If answer to the first question is host unknown, make a test by creating > an alias mob.xen1 in the /etc/hosts file. > > This has to resolve to the IP address of the node where the RGW is > running. In a production environment you would have to make sure you create > a DNS wildcard *.xen1 so that any bucket name can be resolved to the IP > address of the node where the RGW runs > > JC > > On May 31, 2016, at 13:46, hp cre <hpc...@gmail.com> wrote: > > Thanks Jean-Charles. I tried to add this in ceph.conf but did not make a > difference. > > On 31 May 2016 at 17:11, LOPEZ Jean-Charles <jelo...@redhat.com> wrote: > >> Hi, >> >> in order to use s3cmd, just make sure you have the rgw_dns_name = >> {bucket_fqdn_suffix} in your config file in the RGW section. In your case >> I’d say rgw_dns_name = xen1 >> >> And you should be good to go. >> >> JC >> >> On May 31, 2016, at 04:51, hp cre <hpc...@gmail.com> wrote: >> >> Hello, >> >> I created a test cluster of 3 OSD hosts (xen1,2,3) based on Ubuntu >> Xenial, ceph 10.2.1 using the quick start steps in the docs master branch. >> >> After jumping through a few problems, mainly from the inconsistent >> details in the docs, i got a stable cluster running with RGW. >> >> Running s3boto test script to create a new bucket works fine. however, >> when I use ay other tool to PUT files, I get a strange error stating "host >> not found". There is nothing in the gateway logs that would suggest why >> this happens, i only get the list of get requests from the cliient(s) I use. >> >> sample: >> =============================================================== >> 2016-05-31 13:30:21.953366 7fb2f37be700 1 civetweb: 0x7fb32800cbc0: >> 10.0.0.1 - - [31/May/2016:13:30:21 +0200] "GET / HTTP/1.1" 200 0 - >> CrossFTP/1.97.6 (Linux/4.4.0-21-generic; amd64; en; JVM 1.8.0_91) >> 2016-05-31 13:30:22.975609 7fb2f2fbd700 1 ====== starting new request >> req=0x7fb2f2fb77e0 ===== >> 2016-05-31 13:30:22.978613 7fb2f2fbd700 1 ====== req done >> req=0x7fb2f2fb77e0 op status=0 http_status=200 ====== >> 2016-05-31 13:30:22.978710 7fb2f2fbd700 1 civetweb: 0x7fb330016690: >> 10.0.0.1 - - [31/May/2016:13:30:22 +0200] "GET / HTTP/1.1" 200 0 - >> CrossFTP/1.97.6 (Linux/4.4.0-21-generic; amd64; en; JVM 1.8.0_91) >> 2016-05-31 13:32:04.032800 7fb2f27bc700 1 ====== starting new request >> req=0x7fb2f27b67e0 ===== >> 2016-05-31 13:32:04.034847 7fb2f27bc700 1 ====== req done >> req=0x7fb2f27b67e0 op status=0 http_status=200 ====== >> 2016-05-31 13:32:04.034895 7fb2f27bc700 1 civetweb: 0x7fb32c005910: >> 10.0.0.1 - - [31/May/2016:13:32:04 +0200] "GET / HTTP/1.1" 200 0 - >> DragonDisk 1.05 ( http://www.dragondisk.com ) >> ============================================================== >> >> example error message when I try a PUT operation on DragonDisk client to >> a bucket I created (myb), file called testfile >> >> ======================================================== >> 2 >> Operation: Copy >> /home/wes/testfile -> http://myb.xen1/testfile >> Host not found >> ======================================================== >> >> example error I got from using CrossFTP client to upload a file >> ================================================== >> L2] LIST All Buckets >> [R1] LIST /myb >> [R1] LIST All Buckets (cached) >> [R1] Succeeded >> [R1] LIST All Buckets >> [R1] Succeeded >> [L2] Succeeded >> Secure random seed initialized. >> [L2] S3 Error: -1 (null) error: Request Error: myb.xen1; XML Error >> Message: null >> [L2] -1 (null) error: Request Error: myb.xen1; XML Error Message: null >> [R1] S3 Error: -1 (null) error: Request Error: myb.xen1: unknown error; >> XML Error Message: null >> [R1] -1 (null) error: Request Error: myb.xen1: unknown error; XML Error >> Message: null >> ==================================================== >> >> example put operation for file "ceph-deploy-ceph.log" using s3cmd client >> on the gateway node (xen1) >> >> ===================================================== >> root@xen1:/home/cl# s3cmd put ceph-deploy-ceph.log s3://myb >> upload: 'ceph-deploy-ceph.log' -> 's3://myb/ceph-deploy-ceph.log' [1 of >> 1] >> 0 of 641045 0% in 0s 0.00 B/s failed >> WARNING: Retrying failed request: /ceph-deploy-ceph.log ([Errno -2] Name >> or service not known) >> WARNING: Waiting 3 sec... >> upload: 'ceph-deploy-ceph.log' -> 's3://myb/ceph-deploy-ceph.log' [1 of >> 1] >> 0 of 641045 0% in 0s 0.00 B/s failed >> WARNING: Retrying failed request: /ceph-deploy-ceph.log ([Errno -2] Name >> or service not known) >> WARNING: Waiting 6 sec... >> ======================================================= >> >> >> >> Here is my ceph.conf >> ============================================= >> [global] >> fsid = 77dbb949-8eed-4eea-b0ff-0c612e7e2991 >> mon_initial_members = xen1, xen2, xen3 >> mon_host = 10.0.0.10,10.0.0.11,10.0.0.12 >> auth_cluster_required = cephx >> auth_service_required = cephx >> auth_client_required = cephx >> osd_pool_default_size = 2 >> >> >> [client.radosgw.gateway] >> rgw_frontends = "civetweb port=80" >> host = xen1 >> keyring = /etc/ceph/ceph.client.radosgw.keyring >> rgw socket path = /var/run/ceph/ceph.radosgw.gateway.sock >> rgw print continue = false >> ============================================= >> >> Any troubleshooting help will be appreciated. >> >> Thanks, >> hpcre >> _______________________________________________ >> ceph-users mailing list >> ceph-users@lists.ceph.com >> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com >> >> >> > >
_______________________________________________ ceph-users mailing list ceph-users@lists.ceph.com http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com