radosgw-agent failed to parse

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 07/04/2014 08:36 AM, Peter wrote:
> i am having issues running radosgw-agent to sync data between two
> radosgw zones. As far as i can tell both zones are running correctly.
>
> My issue is when i run the radosgw-agent command:
>
>
>> radosgw-agent -v --src-access-key <access_key> --src-secret-key
>> <secret_key> --dest-access-key <access_key> --dest-secret-key
>> <secret_key> --src-zone us-master http://us-secondary.example.com:80
>
> i get the following error:
>
> |DEBUG:boto:Using access key provided by client.||
> ||DEBUG:boto:Using secret key provided by client.||
> ||DEBUG:boto:StringToSign:||
> ||GET||
> ||
> ||Fri, 04 Jul 2014 15:25:53 GMT||
> ||/admin/config||
> ||DEBUG:boto:Signature:||
> ||AWS EA20YO07DA8JJJX7ZIPJ:WbykwyXu5m5IlbEsBzo8bKEGIzg=||
> ||DEBUG:boto:url =
> 'http://us-secondary.example.comhttp://us-secondary.example.com/admin/config'||
> ||params={}||
> ||headers={'Date': 'Fri, 04 Jul 2014 15:25:53 GMT', 'Content-Length':
> '0', 'Authorization': 'AWS
> EA20YO07DA8JJJX7ZIPJ:WbykwyXu5m5IlbEsBzo8bKEGIzg=', 'User-Agent':
> 'Boto/2.20.1 Python/2.7.6 Linux/3.13.0-24-generic'}||
> ||data=None||
> ||ERROR:root:Could not retrieve region map from destination||
> ||Traceback (most recent call last):||
> ||  File "/usr/lib/python2.7/dist-packages/radosgw_agent/cli.py", line
> 269, in main||
> ||    region_map = client.get_region_map(dest_conn)||
> ||  File "/usr/lib/python2.7/dist-packages/radosgw_agent/client.py",
> line 391, in get_region_map||
> ||    region_map = request(connection, 'get', 'admin/config')||
> ||  File "/usr/lib/python2.7/dist-packages/radosgw_agent/client.py",
> line 153, in request||
> ||    result = handler(url, params=params, headers=request.headers,
> data=data)||
> ||  File "/usr/lib/python2.7/dist-packages/requests/api.py", line 55, in
> get||
> ||    return request('get', url, **kwargs)||
> ||  File "/usr/lib/python2.7/dist-packages/requests/api.py", line 44, in
> request||
> ||    return session.request(method=method, url=url, **kwargs)||
> ||  File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line
> 349, in request||
> ||    prep = self.prepare_request(req)||
> ||  File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line
> 287, in prepare_request||
> ||    hooks=merge_hooks(request.hooks, self.hooks),||
> ||  File "/usr/lib/python2.7/dist-packages/requests/models.py", line
> 287, in prepare||
> ||    self.prepare_url(url, params)||
> ||  File "/usr/lib/python2.7/dist-packages/requests/models.py", line
> 334, in prepare_url||
> ||    scheme, auth, host, port, path, query, fragment = parse_url(url)||
> ||  File "/usr/lib/python2.7/dist-packages/urllib3/util.py", line 390,
> in parse_url||
> ||    raise LocationParseError("Failed to parse: %s" % url)||
> ||LocationParseError: Failed to parse: Failed to parse:
> us-secondary.example.comhttp:
>
>
> |||Is this a bug? or is my setup wrong? i can navigate to
> http://us-secondary.example.com/admin/config and it correctly outputs
> zone details. at the output above

It seems like an issue with your environment. What version of
radosgw-agent and which distro is this running on?

Are there any special characters in the access or secret keys that
might need to be escaped on the command line?

> |DEBUG:boto:url =
> 'http://us-secondary.example.comhttp://us-secondary.example.com/admin/config'||
>
>
> |should the url be repeated like that?

No, and it's rather strange since it should be the url passed on the
command line, parsed, and with /admin/config added.

Could post the result of this run in a python interpreter:

import urlparse
result = urlparse.urlparse('http://us-secondary.example.com:80')
print result.hostname, result.port

Josh


[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux