attachment_swift: Keystone error on write operation
grindtildeath opened this issue · 0 comments
grindtildeath commented
Reproduced on: 10.0
Traceback (most recent call last):
File "/odoo/src/odoo/http.py", line 642, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/odoo/src/odoo/http.py", line 684, in dispatch
result = self._call_function(**self.params)
File "/odoo/src/odoo/http.py", line 334, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/odoo/src/odoo/service/model.py", line 101, in wrapper
return f(dbname, *args, **kwargs)
File "/odoo/src/odoo/http.py", line 327, in checked_call
result = self.endpoint(*a, **kw)
File "/odoo/src/odoo/http.py", line 942, in __call__
return self.method(*args, **kw)
File "/odoo/src/odoo/http.py", line 507, in response_wrap
response = f(*args, **kw)
File "/odoo/src/addons/web/controllers/main.py", line 895, in call_kw
return self._call_kw(model, method, args, kwargs)
File "/odoo/src/addons/web/controllers/main.py", line 887, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/odoo/src/odoo/api.py", line 687, in call_kw
return call_kw_model(method, model, args, kwargs)
File "/odoo/src/odoo/api.py", line 672, in call_kw_model
result = method(recs, *args, **kwargs)
File "/odoo/src/odoo/addons/base/res/res_partner.py", line 534, in create
partner = super(Partner, self).create(vals)
File "/odoo/src/addons/mail/models/mail_thread.py", line 228, in create
thread = super(MailThread, self).create(values)
File "/odoo/src/odoo/models.py", line 3847, in create
record = self.browse(self._create(old_vals))
File "/odoo/src/odoo/models.py", line 3996, in _create
field.write(self.with_context(rel_context), vals[name])
File "/odoo/src/odoo/fields.py", line 1698, in write
'datas': value,
File "/odoo/src/odoo/addons/base/ir/ir_attachment.py", line 459, in create
return super(IrAttachment, self).create(values)
File "/odoo/src/odoo/models.py", line 3855, in create
self._fields[key].determine_inverse(record)
File "/odoo/src/odoo/fields.py", line 1046, in determine_inverse
getattr(records, self.inverse)()
File "/odoo/external-src/odoo-cloud-platform/base_attachment_object_storage/models/ir_attachment.py", line 126, in _inverse_datas
super(IrAttachment, attach)._inverse_datas()
File "/odoo/src/odoo/addons/base/ir/ir_attachment.py", line 208, in _inverse_datas
vals['store_fname'] = self._file_write(value, vals['checksum'])
File "/odoo/external-src/odoo-cloud-platform/base_attachment_object_storage/models/ir_attachment.py", line 158, in _file_write
filename = self._store_file_write(key, bin_data)
File "/odoo/external-src/odoo-cloud-platform/attachment_swift/models/ir_attachment.py", line 149, in _store_file_write
conn.put_container(container)
File "/usr/local/lib/python2.7/dist-packages/swiftclient/client.py", line 1760, in put_container
query_string=query_string)
File "/usr/local/lib/python2.7/dist-packages/swiftclient/client.py", line 1666, in _retry
self.url, self.token = self.get_auth()
File "/usr/local/lib/python2.7/dist-packages/swiftclient/client.py", line 1618, in get_auth
timeout=self.timeout)
File "/usr/local/lib/python2.7/dist-packages/swiftclient/client.py", line 635, in get_auth
interface=interface)
File "/usr/local/lib/python2.7/dist-packages/keystoneauth1/session.py", line 1225, in get_endpoint
return auth.get_endpoint(self, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/keystoneauth1/identity/base.py", line 380, in get_endpoint
allow_version_hack=allow_version_hack, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/keystoneauth1/identity/base.py", line 271, in get_endpoint_data
service_catalog = self.get_access(session).service_catalog
File "/usr/local/lib/python2.7/dist-packages/keystoneauth1/identity/base.py", line 134, in get_access
self.auth_ref = self.get_auth_ref(session)
File "/usr/local/lib/python2.7/dist-packages/keystoneauth1/identity/v3/base.py", line 184, in get_auth_ref
authenticated=False, log=False, **rkwargs)
File "/usr/local/lib/python2.7/dist-packages/keystoneauth1/session.py", line 1131, in post
return self.request(url, 'POST', **kwargs)
File "/usr/local/lib/python2.7/dist-packages/keystoneauth1/session.py", line 968, in request
raise exceptions.from_response(resp, method, url)
BadRequest: Expecting to find domain in project. The server could not comply with the request since it is either malformed or otherwise incorrect. The client is assumed to be in error. (HTTP 400) (Request-ID: req-82d6744f-c891-4fcc-a13b-88e6fa8107f8