Project

General

Profile

Bug #42924

radosgw-admin fail to connect to radosgw over https

Added by Yuval Lifshitz 19 days ago. Updated 5 days ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
% Done:

0%

Source:
Development
Tags:
httpclient ssl
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature:

Description

when setting radosgw frontend to use https, radosgw-admin commands that communicate with the gateway over https, fail due to certificate verification failure.
E.g

bin/radosgw-admin realm pull -c ceph.conf --rgw-realm r --url https://localhost:8000 --access-key xxx --secret xxx --debug-rgw=20
2019-11-21T10:51:57.608+0200 7f3f4315c080 20 > HTTP_DATE -> Thu Nov 21 08:51:57 2019
2019-11-21T10:51:57.608+0200 7f3e5affd700 20 reqs_thread_entry: start
2019-11-21T10:51:57.608+0200 7f3f4315c080 10 get_canon_resource(): dest=/admin/realm
2019-11-21T10:51:57.608+0200 7f3f4315c080 10 generated canonical header: GET

Thu Nov 21 08:51:57 2019
/admin/realm
2019-11-21T10:51:57.608+0200 7f3f4315c080 15 generated auth header: ...
2019-11-21T10:51:57.608+0200 7f3f4315c080 20 sending request to https://localhost:8000/admin/realm?name=r
2019-11-21T10:51:57.608+0200 7f3f4315c080 20 register_request mgr=0x558758fa7990 req_data->id=0, curl_handle=0x5587590dfa20
2019-11-21T10:51:57.608+0200 7f3e5affd700 20 link_request req_data=0x5587590e00c0 req_data->id=0, curl_handle=0x5587590dfa20
request failed: 2019-11-21T10:51:57.631+0200 7f3e5affd700 20 ERROR: msg->data.result=60 req_data->id=0 http_status=0(5) Input/output error

2019-11-21T10:51:57.631+0200 7f3e5affd700 20 ERROR: curl error: SSL peer certificate or SSH remote key was not OK

radosgw-admin should have a flag indicating the location of the CA file, and/or a flag indicating not to validate server certificate.

History

#1 Updated by Casey Bodley 19 days ago

  • Status changed from New to 12

#2 Updated by Casey Bodley 19 days ago

  • Tags set to httpclient ssl

#3 Updated by Patrick Donnelly 5 days ago

  • Status changed from 12 to New

Also available in: Atom PDF