mkfs.s3ql . try to connect to swift container but getting error

16 views
Skip to first unread message

amit kertis

unread,
Dec 25, 2019, 9:56:32 AM12/25/19
to s3ql
hi 

i am using version 3.3.2 

my authinfo file  look like this 

[swift]
backend-login: consulting_training:1e9531466900430598608c8e4392f5a8
backend-password: 857d4eadf8f54eaf8208f556401ec8e7
storage-url: swiftks://objectstore-3.eu-nl-1.cloud.sap:443/eu-nl-1:amitkertis

and i run this command 

mkfs.s3ql --authfile .s3ql/authinfo2 --debug --plain swiftks://objectstore-3.eu-nl-1.cloud.sap:443/eu-nl-1:amitkertis

but getting this error 

ubuntu1804:~$ mkfs.s3ql --authfile .s3ql/authinfo2 --debug --plain swiftks://objectstore-3.eu-nl-1.cloud.sap:443/eu-nl-1:amitkertis
2019-12-25 14:53:28.441 7579 DEBUG    MainThread s3ql.backends.common.get_ssl_context: Reading default CA certificates.
2019-12-25 14:53:28.442 7579 DEBUG    MainThread s3ql.backends.swift._do_request: started with 'GET', '/', None, {'limit': 1}, None, None
2019-12-25 14:53:28.442 7579 DEBUG    MainThread s3ql.backends.swift._do_request: no active connection, calling _get_conn()
2019-12-25 14:53:28.442 7579 DEBUG    MainThread s3ql.backends.swiftks._get_conn: started
2019-12-25 14:53:28.456 7579 ERROR    MainThread root.excepthook: Uncaught top-level exception:
Traceback (most recent call last):
  File "/usr/local/bin/mkfs.s3ql", line 11, in <module>
    load_entry_point('s3ql==3.3.2', 'console_scripts', 'mkfs.s3ql')()
  File "/usr/local/lib/python3.6/dist-packages/s3ql-3.3.2-py3.6-linux-x86_64.egg/s3ql/mkfs.py", line 92, in main
    plain_backend = get_backend(options, raw=True)
  File "/usr/local/lib/python3.6/dist-packages/s3ql-3.3.2-py3.6-linux-x86_64.egg/s3ql/common.py", line 246, in get_backend
    return options.backend_class(options)
  File "/usr/local/lib/python3.6/dist-packages/s3ql-3.3.2-py3.6-linux-x86_64.egg/s3ql/backends/swiftks.py", line 26, in __init__
    super().__init__(options)
  File "/usr/local/lib/python3.6/dist-packages/s3ql-3.3.2-py3.6-linux-x86_64.egg/s3ql/backends/swift.py", line 71, in __init__
    self._container_exists()
  File "/usr/local/lib/python3.6/dist-packages/s3ql-3.3.2-py3.6-linux-x86_64.egg/s3ql/backends/common.py", line 108, in wrapped
    return method(*a, **kw)
  File "/usr/local/lib/python3.6/dist-packages/s3ql-3.3.2-py3.6-linux-x86_64.egg/s3ql/backends/swift.py", line 86, in _container_exists
    self._do_request('GET', '/', query_string={'limit': 1 })
  File "/usr/local/lib/python3.6/dist-packages/s3ql-3.3.2-py3.6-linux-x86_64.egg/s3ql/backends/swift.py", line 230, in _do_request
    self.conn =  self._get_conn()
  File "/usr/local/lib/python3.6/dist-packages/s3ql-3.3.2-py3.6-linux-x86_64.egg/s3ql/backends/common.py", line 108, in wrapped
    return method(*a, **kw)
  File "/usr/local/lib/python3.6/dist-packages/s3ql-3.3.2-py3.6-linux-x86_64.egg/s3ql/backends/swiftks.py", line 140, in _get_conn
    raise HTTPError(resp.status, resp.reason, resp.headers)
s3ql.backends.s3c.HTTPError: 400 Bad Request



can someone explain what is this error 
and what i can do to solve it ?


thanks


Reply all
Reply to author
Forward
0 new messages