-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ticket 269: SignatureDoesNotMatch when getting logs from ceph bucket. #714
Comments
We had a report of this in Slack a few months ago. The user reported being able to fix it:
(https://kubernetes.slack.com/archives/C6VCGP4MT/p1526335304000425) @jhamilton1 could you please see if this information is helpful? |
@ncdc I will take a look and see. Thanks! |
Thanks for this report! After some digging, the error for I think the error message could be made more friendly, such that the 403 is recognized and the user is informed that access to the requested file was denied. I don't know if we want to be too detailed on failures, given this codepath is meant to apply to multiple providers, not just S3-compatible APIs. In terms of making it work, I'm not sure how much we can do on the Ark side. I'll investigate the AWS SDK to see if we can possibly negotiate the signature version, but I'm not very optimistic. In the meantime, would you mind trying with Ceph v10.2.11, @jhamilton1 ? |
Not a problem @nrb, I will try with both upgrading ceph and trying the fix listed by ncdc |
Related to #549 (review all CLI error handling) |
Looking at some of the AWS docs:
So I think the best course of action may be the local, non-Keystone Ceph user and/or upgrading. @jhamilton1 Were you using Keystone in your test cluster? |
@nrb I did not implement Keystone in the ceph cluster. |
@nrb I went back through the ceph docs. The first attempt at implementing the v4 signature functionality was in the "Jewel" release and still had some bugs. This would explain why I still was getting the "Signature" errors after I upgraded to the latest Jewel stable. I read through the Luminous release notes and decided to upgrade to the latest stable for that release. There were some issues with some of the Luminous minors. The signature error has been resolved after this upgrade and I am able to get the logs as expected. |
Thanks a ton for this investigative work, @jhamilton1! When you have time, could you get the version number you were successful with, so we can document it? |
No problem @nrb I upgraded to ceph v12.2.7 |
@nrb do we want also to include using a non-keystone account as well in the ceph doc PR? I also had to add this parameter to the ark config manifest. |
Fixes vmware-tanzu#714 Signed-off-by: Nolan Brubaker <[email protected]>
@jhamilton1 I've created #823 to address the error specifically, and Ceph v12.2.7 was added to our support matrix. Let me know on the PR if anything should change. |
Fixes vmware-tanzu#714 Signed-off-by: Nolan Brubaker <[email protected]>
@jhamilton1 The updated docs are now live at https://heptio.github.io/ark/v0.9.0/troubleshooting |
Awesome, thanks @nrb!! |
What steps did you take and what happened:
I setup ark to utilize the ceph object gateway. I created a "backups" bucket and created an access_key_id and secret_access_key that I plugged into the ark config map along with the s3Url for the ceph gateway.
I can create a backup without any problem. I verified the backup completed with the "ark get backup command. I also verified the backup by posting a GET to the ceph bucket. However, when I run "ark backup logs , I get an error stating the signature did not match.
What did you expect to happen:
When executing "ark backup logs I expected to see the logs for the backup I created.
The output of the following commands will help us better understand what's going on:
(Pasting long output into a GitHub gist or other pastebin is fine.)
kubectl logs deployment/ark -n heptio-ark
level=debug msg="Running processDownloadRequest" key=heptio-ark/backup5-20180730111323 logSource="pkg/controller/download_request_controller.go:190"
ark backup describe <backupname>
orkubectl get backup/<backupname> -n heptio-ark -o yaml
backup5 Completed 2018-07-28 21:43:22 -0500 CDT 28d
ark backup logs <backupname>
An error occurred: request failed:
SignatureDoesNotMatch
tx00000000000000000017a-005b5f34fb-10eb-default10eb-default-defaultark restore describe <restorename>
orkubectl get restore/<restorename> -n heptio-ark -o yaml
ark restore logs <restorename>
Anything else you would like to add:
I have a test cluster built with ark already deployed to the customer specs. I can also provide the ceph object gateway endpoint for testing purposes.
I am currently using ceph v10.2.9
It looks like v10.2.11 has some fixes for the signatureDoesNotMatch error. I can upgrade ceph to the latest version if needed.
Environment:
ark version
): v0.8.1kubectl version
): v1.7.5/etc/os-release
): Debian GNU/Linux 8 (jessie)The text was updated successfully, but these errors were encountered: