Bug #23432
openElastic Search Indexing fails for encrypted objects
0%
Description
When using encrypted objects (server side encryption using barbican) indexing with elastic search fails.
Ceph throws errors like:
2018-03-13 21:20:40.187236 7ff8bfd49700 1 meta sync: ERROR: failed to read mdlog info with (2) No such file or directory
2018-03-13 21:20:43.238247 7ff8ab520700 0 RGWStatRemoteObjCR() callback returned -22
2018-03-13 21:20:43.238266 7ff8ab520700 0 data sync: ERROR: failed to sync object: propcodms:ee560b67-c330-4fd0-af50-aefff93735d2.4163.1:6/testr/
2018-03-13 21:20:43.278427 7ff8ab520700 0 data sync: ERROR: a sync operation returned error
2018-03-13 21:20:43.339337 7ff8ab520700 0 RGWStatRemoteObjCR() callback returned -22
2018-03-13 21:20:43.339357 7ff8ab520700 0 data sync: ERROR: failed to sync object: propcodms:ee560b67-c330-4fd0-af50-aefff93735d2.4163.1:1/new4
2018-03-13 21:20:43.339453 7ff8ab520700 0 data sync: ERROR: failure in sync, backing out (sync_status=-22)
2018-03-13 21:20:43.456843 7ff8ab520700 0 data sync: ERROR: a sync operation returned error
2018-03-13 21:20:43.456873 7ff8ab520700 0 data sync: ERROR: failure in sync, backing out (sync_status=-22)
and elasticsearch says:
org.elasticsearch.index.mapper.MapperParsingException: failed to parse
Caused by: com.fasterxml.jackson.core.JsonParseException: Invalid UTF-8 middle byte 0x55
at [Source: org.elasticsearch.common.bytes.BytesReference$MarkSupportingStreamInputWrapper@4b162b44; line: 1, column: 323]