Skip to content

[7.x] [kbnClient] fix basePath handling and export reponse type (#97277)#97353

Merged
kibanamachine merged 1 commit intoelastic:7.xfrom
kibanamachine:backport/7.x/pr-97277
Apr 16, 2021
Merged

[7.x] [kbnClient] fix basePath handling and export reponse type (#97277)#97353
kibanamachine merged 1 commit intoelastic:7.xfrom
kibanamachine:backport/7.x/pr-97277

Conversation

@kibanamachine
Copy link
Contributor

Backports the following commits to 7.x:

)

Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
@kibanamachine kibanamachine added the backport This PR is a backport of another PR label Apr 16, 2021
@kibanamachine kibanamachine enabled auto-merge (squash) April 16, 2021 05:16
@kibanamachine
Copy link
Contributor Author

💛 Build succeeded, but was flaky


Test Failures

Kibana Pipeline / general / X-Pack API Integration Tests.x-pack/test/api_integration/apis/security_solution/feature_controls·ts.apis SecuritySolution Endpoints feature controls APIs can be accessed user with global "all" privileges

Link to Jenkins

Standard Out

Failed Tests Reporter:
  - Test has not failed recently on tracked branches

[00:00:00]       │
[00:00:00]         └-: apis
[00:00:00]           └-> "before all" hook in "apis"
[00:06:08]           └-: SecuritySolution Endpoints
[00:06:08]             └-> "before all" hook in "SecuritySolution Endpoints"
[00:07:25]             └-: feature controls
[00:07:25]               └-> "before all" hook for "APIs can't be accessed by user with no privileges"
[00:07:25]               └-> APIs can't be accessed by user with no privileges
[00:07:25]                 └-> "before each" hook: global before each for "APIs can't be accessed by user with no privileges"
[00:07:25]                 │ debg creating role logstash_read
[00:07:25]                 │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-18-tests-xxl-1618550203581786977] added role [logstash_read]
[00:07:25]                 │ debg creating user logstash_read
[00:07:25]                 │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-18-tests-xxl-1618550203581786977] added user [logstash_read]
[00:07:25]                 │ debg created user logstash_read
[00:07:25]                 │ proc [kibana]   log   [06:18:44.563] [warning][api-authorization][plugins][security] User not authorized for "/api/solutions/security/graphql": responding with 403
[00:07:25]                 │ debg deleting role logstash_read
[00:07:25]                 │ debg deleting user logstash_read
[00:07:25]                 │ info java.lang.OutOfMemoryError: Java heap space
[00:07:25]                 │      Dumping heap to data/java_pid128369.hprof ...
[00:07:27]                 │ info Heap dump file created [713065505 bytes in 1.673 secs]
[00:07:27]                 │ debg deleted user logstash_read
[00:07:27]                 └- ✓ pass  (2.3s) "apis SecuritySolution Endpoints feature controls APIs can't be accessed by user with no privileges"
[00:07:27]               └-> APIs can be accessed user with global "all" privileges
[00:07:27]                 └-> "before each" hook: global before each for "APIs can be accessed user with global "all" privileges"
[00:07:27]                 │ debg creating role global_all
[00:07:27]                 │ info [o.e.b.ElasticsearchUncaughtExceptionHandler] [kibana-ci-immutable-ubuntu-18-tests-xxl-1618550203581786977] fatal error in thread [elasticsearch[kibana-ci-immutable-ubuntu-18-tests-xxl-1618550203581786977][system_read][T#5]], exiting
[00:07:27]                 │      java.lang.OutOfMemoryError: Java heap space
[00:07:27]                 │      	at java.util.Arrays.copyOfRange(Arrays.java:3821) ~[?:?]
[00:07:27]                 │      	at java.lang.String.<init>(String.java:397) ~[?:?]
[00:07:27]                 │      	at java.util.Base64$Encoder.encodeToString(Base64.java:346) ~[?:?]
[00:07:27]                 │      	at org.elasticsearch.xpack.core.async.AsyncTaskIndexService.encodeResponse(AsyncTaskIndexService.java:478) ~[?:?]
[00:07:27]                 │      	at org.elasticsearch.xpack.core.async.AsyncTaskIndexService.updateResponse(AsyncTaskIndexService.java:215) ~[?:?]
[00:07:27]                 │      	at org.elasticsearch.xpack.search.TransportSubmitAsyncSearchAction.onFinalResponse(TransportSubmitAsyncSearchAction.java:178) ~[?:?]
[00:07:27]                 │      	at org.elasticsearch.xpack.search.TransportSubmitAsyncSearchAction.access$000(TransportSubmitAsyncSearchAction.java:50) ~[?:?]
[00:07:27]                 │      	at org.elasticsearch.xpack.search.TransportSubmitAsyncSearchAction$1$1.lambda$onResponse$1(TransportSubmitAsyncSearchAction.java:102) ~[?:?]
[00:07:27]                 │      	at org.elasticsearch.xpack.search.TransportSubmitAsyncSearchAction$1$1$$Lambda$7425/0x0000000801b99220.accept(Unknown Source) ~[?:?]
[00:07:27]                 │      	at org.elasticsearch.xpack.search.AsyncSearchTask.executeCompletionListeners(AsyncSearchTask.java:308) ~[?:?]
[00:07:27]                 │      	at org.elasticsearch.xpack.search.AsyncSearchTask.access$500(AsyncSearchTask.java:51) ~[?:?]
[00:07:27]                 │      	at org.elasticsearch.xpack.search.AsyncSearchTask$Listener.onResponse(AsyncSearchTask.java:441) ~[?:?]
[00:07:27]                 │      	at org.elasticsearch.xpack.search.AsyncSearchTask$Listener.onResponse(AsyncSearchTask.java:365) ~[?:?]
[00:07:27]                 │      	at org.elasticsearch.action.support.ContextPreservingActionListener.onResponse(ContextPreservingActionListener.java:31) ~[elasticsearch-7.13.0-SNAPSHOT.jar:7.13.0-SNAPSHOT]
[00:07:27]                 │      	at org.elasticsearch.xpack.security.action.filter.SecurityActionFilter.lambda$applyInternal$2(SecurityActionFilter.java:163) ~[?:?]
[00:07:27]                 │      	at org.elasticsearch.xpack.security.action.filter.SecurityActionFilter$$Lambda$5206/0x000000080182aaf8.accept(Unknown Source) ~[?:?]
[00:07:27]                 │      	at org.elasticsearch.action.ActionListener$DelegatingFailureActionListener.onResponse(ActionListener.java:217) ~[elasticsearch-7.13.0-SNAPSHOT.jar:7.13.0-SNAPSHOT]
[00:07:27]                 │      	at org.elasticsearch.action.ActionListener$RunAfterActionListener.onResponse(ActionListener.java:339) ~[elasticsearch-7.13.0-SNAPSHOT.jar:7.13.0-SNAPSHOT]
[00:07:27]                 │      	at org.elasticsearch.action.search.AbstractSearchAsyncAction.sendSearchResponse(AbstractSearchAsyncAction.java:657) ~[elasticsearch-7.13.0-SNAPSHOT.jar:7.13.0-SNAPSHOT]
[00:07:27]                 │      	at org.elasticsearch.action.search.ExpandSearchPhase.run(ExpandSearchPhase.java:109) ~[elasticsearch-7.13.0-SNAPSHOT.jar:7.13.0-SNAPSHOT]
[00:07:27]                 │      	at org.elasticsearch.action.search.AbstractSearchAsyncAction.executePhase(AbstractSearchAsyncAction.java:424) ~[elasticsearch-7.13.0-SNAPSHOT.jar:7.13.0-SNAPSHOT]
[00:07:27]                 │      	at org.elasticsearch.action.search.AbstractSearchAsyncAction.executeNextPhase(AbstractSearchAsyncAction.java:418) ~[elasticsearch-7.13.0-SNAPSHOT.jar:7.13.0-SNAPSHOT]
[00:07:27]                 │      	at org.elasticsearch.action.search.FetchSearchPhase.moveToNextPhase(FetchSearchPhase.java:219) ~[elasticsearch-7.13.0-SNAPSHOT.jar:7.13.0-SNAPSHOT]
[00:07:27]                 │      	at org.elasticsearch.action.search.FetchSearchPhase.lambda$innerRun$1(FetchSearchPhase.java:101) ~[elasticsearch-7.13.0-SNAPSHOT.jar:7.13.0-SNAPSHOT]
[00:07:27]                 │      	at org.elasticsearch.action.search.FetchSearchPhase$$Lambda$6725/0x0000000801aac910.run(Unknown Source) ~[?:?]
[00:07:27]                 │      	at org.elasticsearch.action.search.CountedCollector.countDown(CountedCollector.java:40) ~[elasticsearch-7.13.0-SNAPSHOT.jar:7.13.0-SNAPSHOT]
[00:07:27]                 │      	at org.elasticsearch.action.search.CountedCollector$$Lambda$7327/0x0000000801b8ec20.run(Unknown Source) ~[?:?]
[00:07:27]                 │      	at org.elasticsearch.action.search.ArraySearchPhaseResults.consumeResult(ArraySearchPhaseResults.java:35) ~[elasticsearch-7.13.0-SNAPSHOT.jar:7.13.0-SNAPSHOT]
[00:07:27]                 │      	at org.elasticsearch.action.search.CountedCollector.onResult(CountedCollector.java:48) ~[elasticsearch-7.13.0-SNAPSHOT.jar:7.13.0-SNAPSHOT]
[00:07:27]                 │      	at org.elasticsearch.action.search.FetchSearchPhase$2.innerOnResponse(FetchSearchPhase.java:171) ~[elasticsearch-7.13.0-SNAPSHOT.jar:7.13.0-SNAPSHOT]
[00:07:27]                 │      	at org.elasticsearch.action.search.FetchSearchPhase$2.innerOnResponse(FetchSearchPhase.java:166) ~[elasticsearch-7.13.0-SNAPSHOT.jar:7.13.0-SNAPSHOT]
[00:07:27]                 │      	at org.elasticsearch.action.search.SearchActionListener.onResponse(SearchActionListener.java:34) ~[elasticsearch-7.13.0-SNAPSHOT.jar:7.13.0-SNAPSHOT]
[00:07:27]                 │ERROR fatal error in thread [elasticsearch[kibana-ci-immutable-ubuntu-18-tests-xxl-1618550203581786977][system_read][T#5]], exiting
[00:07:27]                 │      
[00:07:27]                 │ERROR java.lang.OutOfMemoryError: Java heap space
[00:07:27]                 │      	at java.base/java.util.Arrays.copyOfRange(Arrays.java:3821)
[00:07:27]                 │      	at java.base/java.lang.String.<init>(String.java:397)
[00:07:27]                 │      	at java.base/java.util.Base64$Encoder.encodeToString(Base64.java:346)
[00:07:27]                 │      	at org.elasticsearch.xpack.core.async.AsyncTaskIndexService.encodeResponse(AsyncTaskIndexService.java:478)
[00:07:27]                 │      	at org.elasticsearch.xpack.core.async.AsyncTaskIndexService.updateResponse(AsyncTaskIndexService.java:215)
[00:07:27]                 │      	at org.elasticsearch.xpack.search.TransportSubmitAsyncSearchAction.onFinalResponse(TransportSubmitAsyncSearchAction.java:178)
[00:07:27]                 │      	at org.elasticsearch.xpack.search.TransportSubmitAsyncSearchAction.access$000(TransportSubmitAsyncSearchAction.java:50)
[00:07:27]                 │      	at org.elasticsearch.xpack.search.TransportSubmitAsyncSearchAction$1$1.lambda$onResponse$1(TransportSubmitAsyncSearchAction.java:102)
[00:07:27]                 │      	at org.elasticsearch.xpack.search.TransportSubmitAsyncSearchAction$1$1$$Lambda$7425/0x0000000801b99220.accept(Unknown Source)
[00:07:27]                 │      	at org.elasticsearch.xpack.search.AsyncSearchTask.executeCompletionListeners(AsyncSearchTask.java:308)
[00:07:27]                 │      	at org.elasticsearch.xpack.search.AsyncSearchTask.access$500(AsyncSearchTask.java:51)
[00:07:27]                 │      	at org.elasticsearch.xpack.search.AsyncSearchTask$Listener.onResponse(AsyncSearchTask.java:441)
[00:07:27]                 │      	at org.elasticsearch.xpack.search.AsyncSearchTask$Listener.onResponse(AsyncSearchTask.java:365)
[00:07:27]                 │      	at org.elasticsearch.action.support.ContextPreservingActionListener.onResponse(ContextPreservingActionListener.java:31)
[00:07:27]                 │      	at org.elasticsearch.xpack.security.action.filter.SecurityActionFilter.lambda$applyInternal$2(SecurityActionFilter.java:163)
[00:07:27]                 │      	at org.elasticsearch.xpack.security.action.filter.SecurityActionFilter$$Lambda$5206/0x000000080182aaf8.accept(Unknown Source)
[00:07:27]                 │      	at org.elasticsearch.action.ActionListener$DelegatingFailureActionListener.onResponse(ActionListener.java:217)
[00:07:27]                 │      	at org.elasticsearch.action.ActionListener$RunAfterActionListener.onResponse(ActionListener.java:339)
[00:07:27]                 │      	at org.elasticsearch.action.search.AbstractSearchAsyncAction.sendSearchResponse(AbstractSearchAsyncAction.java:657)
[00:07:27]                 │      	at org.elasticsearch.action.search.ExpandSearchPhase.run(ExpandSearchPhase.java:109)
[00:07:27]                 │      	at org.elasticsearch.action.search.AbstractSearchAsyncAction.executePhase(AbstractSearchAsyncAction.java:424)
[00:07:27]                 │      	at org.elasticsearch.action.search.AbstractSearchAsyncAction.executeNextPhase(AbstractSearchAsyncAction.java:418)
[00:07:27]                 │      	at org.elasticsearch.action.search.FetchSearchPhase.moveToNextPhase(FetchSearchPhase.java:219)
[00:07:27]                 │      	at org.elasticsearch.action.search.FetchSearchPhase.lambda$innerRun$1(FetchSearchPhase.java:101)
[00:07:27]                 │      	at org.elasticsearch.action.search.FetchSearchPhase$$Lambda$6725/0x0000000801aac910.run(Unknown Source)
[00:07:27]                 │      	at org.elasticsearch.action.search.CountedCollector.countDown(CountedCollector.java:40)
[00:07:27]                 │      	at org.elasticsearch.action.search.CountedCollector$$Lambda$7327/0x0000000801b8ec20.run(Unknown Source)
[00:07:27]                 │      	at org.elasticsearch.action.search.ArraySearchPhaseResults.consumeResult(ArraySearchPhaseResults.java:35)
[00:07:27]                 │      	at org.elasticsearch.action.search.CountedCollector.onResult(CountedCollector.java:48)
[00:07:27]                 │      	at org.elasticsearch.action.search.FetchSearchPhase$2.innerOnResponse(FetchSearchPhase.java:171)
[00:07:27]                 │      	at org.elasticsearch.action.search.FetchSearchPhase$2.innerOnResponse(FetchSearchPhase.java:166)
[00:07:27]                 │      	at org.elasticsearch.action.search.SearchActionListener.onResponse(SearchActionListener.java:34)
[00:07:27]                 │      
[00:07:28]                 │ proc [kibana]   log   [06:18:47.276] [error][elasticsearch] Request error, retrying
[00:07:28]                 │ proc [kibana] GET http://localhost:61112/_xpack?accept_enterprise=true => socket hang up
[00:07:28]                 │ proc [kibana]   log   [06:18:47.277] [warning][elasticsearch] Unable to revive connection: http://localhost:61112/
[00:07:28]                 │ proc [kibana]   log   [06:18:47.278] [warning][elasticsearch] No living connections
[00:07:28]                 │ proc [kibana]   log   [06:18:47.278] [warning][licensing][plugins] License information could not be obtained from Elasticsearch due to Error: No Living connections error
[00:07:28]                 │ proc [kibana]   log   [06:18:47.280] [info][plugins][searchprofiler] You cannot use searchprofiler because license information is not available at this time.
[00:07:28]                 │ proc [kibana]   log   [06:18:47.280] [info][painlessLab][plugins] You cannot use painlessLab because license information is not available at this time.
[00:07:28]                 │ proc [kibana]   log   [06:18:47.284] [info][plugins][snapshotRestore] You cannot use snapshot_restore because license information is not available at this time.
[00:07:28]                 │ proc [kibana]   log   [06:18:47.284] [info][indexManagement][plugins] You cannot use index_management because license information is not available at this time.
[00:07:28]                 │ proc [kibana]   log   [06:18:47.284] [info][plugins][rollup] You cannot use rollup because license information is not available at this time.
[00:07:28]                 │ proc [kibana]   log   [06:18:47.285] [info][plugins][remoteClusters] You cannot use Remote Clusters because license information is not available at this time.
[00:07:28]                 │ proc [kibana]   log   [06:18:47.285] [info][indexLifecycleManagement][plugins] You cannot use index_lifecycle_management because license information is not available at this time.
[00:07:28]                 │ proc [kibana]   log   [06:18:47.285] [info][plugins][transform] You cannot use transform because license information is not available at this time.
[00:07:28]                 │ proc [kibana]   log   [06:18:47.285] [info][ingestPipelines][plugins] You cannot use ingest_pipelines because license information is not available at this time.
[00:07:28]                 │ proc [kibana]   log   [06:18:47.296] [info][kibana-monitoring][monitoring][monitoring][plugins] Monitoring status upload endpoint is not enabled in Elasticsearch:Monitoring stats collection is stopped
[00:07:28]                 │ERROR [PUT http://elastic:changeme@localhost:61111/api/security/role/global_all] request failed (attempt=1/0): Request failed with status code 500
[00:07:28]                 │ debg deleting role global_all
[00:07:28]                 │ proc [kibana]  error  [06:18:46.624]  Error: Internal Server Error
[00:07:28]                 │ proc [kibana]     at HapiResponseAdapter.toError (/dev/shm/workspace/kibana-build-xpack-11/src/core/server/http/router/response_adapter.js:124:19)
[00:07:28]                 │ proc [kibana]     at HapiResponseAdapter.toHapiResponse (/dev/shm/workspace/kibana-build-xpack-11/src/core/server/http/router/response_adapter.js:78:19)
[00:07:28]                 │ proc [kibana]     at HapiResponseAdapter.handle (/dev/shm/workspace/kibana-build-xpack-11/src/core/server/http/router/response_adapter.js:73:17)
[00:07:28]                 │ proc [kibana]     at Router.handle (/dev/shm/workspace/kibana-build-xpack-11/src/core/server/http/router/router.js:164:34)
[00:07:28]                 │ proc [kibana]     at handler (/dev/shm/workspace/kibana-build-xpack-11/src/core/server/http/router/router.js:124:50)
[00:07:28]                 │ proc [kibana]     at exports.Manager.execute (/dev/shm/workspace/kibana-build-xpack-11/node_modules/@hapi/hapi/lib/toolkit.js:60:28)
[00:07:28]                 │ proc [kibana]     at Object.internals.handler (/dev/shm/workspace/kibana-build-xpack-11/node_modules/@hapi/hapi/lib/handler.js:46:20)
[00:07:28]                 │ proc [kibana]     at exports.execute (/dev/shm/workspace/kibana-build-xpack-11/node_modules/@hapi/hapi/lib/handler.js:31:20)
[00:07:28]                 │ proc [kibana]     at Request._lifecycle (/dev/shm/workspace/kibana-build-xpack-11/node_modules/@hapi/hapi/lib/request.js:370:32)
[00:07:28]                 │ proc [kibana]     at Request._execute (/dev/shm/workspace/kibana-build-xpack-11/node_modules/@hapi/hapi/lib/request.js:279:9)
[00:07:28]                 │ proc [kibana]   log   [06:18:47.312] [warning][plugins][securitySolution] Unable to verify endpoint policies in line with license change: failed to fetch package policies: connect ECONNREFUSED 127.0.0.1:61112
[00:07:28]                 │ proc [kibana]   log   [06:18:47.314] [error][authentication][plugins][security] License is not available, authentication is not possible.
[00:07:28]                 │ proc [kibana]   log   [06:18:47.316] [warning][elasticsearch] Unable to revive connection: http://localhost:61112/
[00:07:28]                 │ proc [kibana]   log   [06:18:47.316] [warning][elasticsearch] No living connections
[00:07:28]                 │ proc [kibana]   log   [06:18:47.317] [warning][licensing][plugins] License information could not be obtained from Elasticsearch due to Error: No Living connections error
[00:07:28]                 └- ✖ fail: apis SecuritySolution Endpoints feature controls APIs can be accessed user with global "all" privileges
[00:07:28]                 │      Error: Request failed with status code 503
[00:07:28]                 │       at createError (/dev/shm/workspace/parallel/11/kibana/node_modules/axios/lib/core/createError.js:16:15)
[00:07:28]                 │       at settle (/dev/shm/workspace/parallel/11/kibana/node_modules/axios/lib/core/settle.js:17:12)
[00:07:28]                 │       at IncomingMessage.handleStreamEnd (/dev/shm/workspace/parallel/11/kibana/node_modules/axios/lib/adapters/http.js:260:11)
[00:07:28]                 │       at endReadableNT (internal/streams/readable.js:1327:12)
[00:07:28]                 │       at processTicksAndRejections (internal/process/task_queues.js:80:21)
[00:07:28]                 │ 
[00:07:28]                 │ 

Stack Trace

Error: Request failed with status code 503
    at createError (/dev/shm/workspace/parallel/11/kibana/node_modules/axios/lib/core/createError.js:16:15)
    at settle (/dev/shm/workspace/parallel/11/kibana/node_modules/axios/lib/core/settle.js:17:12)
    at IncomingMessage.handleStreamEnd (/dev/shm/workspace/parallel/11/kibana/node_modules/axios/lib/adapters/http.js:260:11)
    at endReadableNT (internal/streams/readable.js:1327:12)
    at processTicksAndRejections (internal/process/task_queues.js:80:21) {
  config: {
    url: 'http://elastic:changeme@localhost:61111/api/security/role/global_all',
    method: 'delete',
    headers: {
      Accept: 'application/json, text/plain, */*',
      'kbn-xsrf': 'kbn-client',
      'User-Agent': 'axios/0.21.1'
    },
    transformRequest: [ [Function: transformRequest] ],
    transformResponse: [ [Function: transformResponse] ],
    paramsSerializer: [Function: paramsSerializer],
    timeout: 0,
    adapter: [Function: httpAdapter],
    xsrfCookieName: 'XSRF-TOKEN',
    xsrfHeaderName: 'X-XSRF-TOKEN',
    maxContentLength: -1,
    maxBodyLength: -1,
    httpsAgent: null,
    validateStatus: [Function: validateStatus],
    data: undefined
  },
  request: <ref *1> ClientRequest {
    _events: [Object: null prototype] {
      socket: [Function (anonymous)],
      abort: [Function (anonymous)],
      aborted: [Function (anonymous)],
      connect: [Function (anonymous)],
      error: [Function (anonymous)],
      timeout: [Function (anonymous)],
      prefinish: [Function: requestOnPrefinish]
    },
    _eventsCount: 7,
    _maxListeners: undefined,
    outputData: [],
    outputSize: 0,
    writable: true,
    destroyed: true,
    _last: true,
    chunkedEncoding: false,
    shouldKeepAlive: false,
    _defaultKeepAlive: true,
    useChunkedEncodingByDefault: false,
    sendDate: false,
    _removedConnection: false,
    _removedContLen: false,
    _removedTE: false,
    _contentLength: 0,
    _hasBody: true,
    _trailer: '',
    finished: true,
    _headerSent: true,
    socket: Socket {
      connecting: false,
      _hadError: false,
      _parent: null,
      _host: 'localhost',
      _readableState: [ReadableState],
      _events: [Object: null prototype],
      _eventsCount: 6,
      _maxListeners: undefined,
      _writableState: [WritableState],
      allowHalfOpen: false,
      _sockname: null,
      _pendingData: null,
      _pendingEncoding: '',
      server: null,
      _server: null,
      parser: null,
      _httpMessage: [Circular *1],
      write: [Function: writeAfterFIN],
      [Symbol(async_id_symbol)]: 2300507,
      [Symbol(kHandle)]: null,
      [Symbol(kSetNoDelay)]: false,
      [Symbol(lastWriteQueueSize)]: 0,
      [Symbol(timeout)]: null,
      [Symbol(kBuffer)]: null,
      [Symbol(kBufferCb)]: null,
      [Symbol(kBufferGen)]: null,
      [Symbol(kCapture)]: false,
      [Symbol(kBytesRead)]: 477,
      [Symbol(kBytesWritten)]: 229,
      [Symbol(RequestTimeout)]: undefined
    },
    _header: 'DELETE /api/security/role/global_all HTTP/1.1\r\n' +
      'Accept: application/json, text/plain, */*\r\n' +
      'kbn-xsrf: kbn-client\r\n' +
      'User-Agent: axios/0.21.1\r\n' +
      'Host: localhost:61111\r\n' +
      'Authorization: Basic ZWxhc3RpYzpjaGFuZ2VtZQ==\r\n' +
      'Connection: close\r\n' +
      '\r\n',
    _keepAliveTimeout: 0,
    _onPendingData: [Function: noopPendingOutput],
    agent: Agent {
      _events: [Object: null prototype],
      _eventsCount: 2,
      _maxListeners: undefined,
      defaultPort: 80,
      protocol: 'http:',
      options: [Object],
      requests: {},
      sockets: {},
      freeSockets: {},
      keepAliveMsecs: 1000,
      keepAlive: false,
      maxSockets: Infinity,
      maxFreeSockets: 256,
      scheduling: 'fifo',
      maxTotalSockets: Infinity,
      totalSocketCount: 0,
      [Symbol(kCapture)]: false
    },
    socketPath: undefined,
    method: 'DELETE',
    maxHeaderSize: undefined,
    insecureHTTPParser: undefined,
    path: '/api/security/role/global_all',
    _ended: true,
    res: IncomingMessage {
      _readableState: [ReadableState],
      _events: [Object: null prototype],
      _eventsCount: 3,
      _maxListeners: undefined,
      socket: [Socket],
      httpVersionMajor: 1,
      httpVersionMinor: 1,
      httpVersion: '1.1',
      complete: true,
      headers: [Object],
      rawHeaders: [Array],
      trailers: {},
      rawTrailers: [],
      aborted: false,
      upgrade: false,
      url: '',
      method: null,
      statusCode: 503,
      statusMessage: 'Service Unavailable',
      client: [Socket],
      _consuming: false,
      _dumped: false,
      req: [Circular *1],
      responseUrl: 'http://elastic:changeme@localhost:61111/api/security/role/global_all',
      redirects: [],
      [Symbol(kCapture)]: false,
      [Symbol(RequestTimeout)]: undefined
    },
    aborted: false,
    timeoutCb: null,
    upgradeOrConnect: false,
    parser: null,
    maxHeadersCount: null,
    reusedSocket: false,
    host: 'localhost',
    protocol: 'http:',
    _redirectable: Writable {
      _writableState: [WritableState],
      _events: [Object: null prototype],
      _eventsCount: 2,
      _maxListeners: undefined,
      _options: [Object],
      _ended: true,
      _ending: true,
      _redirectCount: 0,
      _redirects: [],
      _requestBodyLength: 0,
      _requestBodyBuffers: [],
      _onNativeResponse: [Function (anonymous)],
      _currentRequest: [Circular *1],
      _currentUrl: 'http://elastic:changeme@localhost:61111/api/security/role/global_all',
      [Symbol(kCapture)]: false
    },
    [Symbol(kCapture)]: false,
    [Symbol(kNeedDrain)]: false,
    [Symbol(corked)]: 0,
    [Symbol(kOutHeaders)]: [Object: null prototype] {
      accept: [Array],
      'kbn-xsrf': [Array],
      'user-agent': [Array],
      host: [Array],
      authorization: [Array]
    }
  },
  response: {
    status: 503,
    statusText: 'Service Unavailable',
    headers: {
      'retry-after': '30',
      'kbn-name': 'kibana-ci-immutable-ubuntu-18-tests-xxl-1618550203581786977',
      'kbn-license-sig': '3f2fbe2e7dffe9936f647deadcb18d812ffbb4f02c27cd5d8ed8069fef195573',
      'content-type': 'application/json; charset=utf-8',
      'cache-control': 'private, no-cache, no-store, must-revalidate',
      'content-length': '86',
      date: 'Fri, 16 Apr 2021 06:18:47 GMT',
      connection: 'close'
    },
    config: {
      url: 'http://elastic:changeme@localhost:61111/api/security/role/global_all',
      method: 'delete',
      headers: [Object],
      transformRequest: [Array],
      transformResponse: [Array],
      paramsSerializer: [Function: paramsSerializer],
      timeout: 0,
      adapter: [Function: httpAdapter],
      xsrfCookieName: 'XSRF-TOKEN',
      xsrfHeaderName: 'X-XSRF-TOKEN',
      maxContentLength: -1,
      maxBodyLength: -1,
      httpsAgent: null,
      validateStatus: [Function: validateStatus],
      data: undefined
    },
    request: <ref *1> ClientRequest {
      _events: [Object: null prototype],
      _eventsCount: 7,
      _maxListeners: undefined,
      outputData: [],
      outputSize: 0,
      writable: true,
      destroyed: true,
      _last: true,
      chunkedEncoding: false,
      shouldKeepAlive: false,
      _defaultKeepAlive: true,
      useChunkedEncodingByDefault: false,
      sendDate: false,
      _removedConnection: false,
      _removedContLen: false,
      _removedTE: false,
      _contentLength: 0,
      _hasBody: true,
      _trailer: '',
      finished: true,
      _headerSent: true,
      socket: [Socket],
      _header: 'DELETE /api/security/role/global_all HTTP/1.1\r\n' +
        'Accept: application/json, text/plain, */*\r\n' +
        'kbn-xsrf: kbn-client\r\n' +
        'User-Agent: axios/0.21.1\r\n' +
        'Host: localhost:61111\r\n' +
        'Authorization: Basic ZWxhc3RpYzpjaGFuZ2VtZQ==\r\n' +
        'Connection: close\r\n' +
        '\r\n',
      _keepAliveTimeout: 0,
      _onPendingData: [Function: noopPendingOutput],
      agent: [Agent],
      socketPath: undefined,
      method: 'DELETE',
      maxHeaderSize: undefined,
      insecureHTTPParser: undefined,
      path: '/api/security/role/global_all',
      _ended: true,
      res: [IncomingMessage],
      aborted: false,
      timeoutCb: null,
      upgradeOrConnect: false,
      parser: null,
      maxHeadersCount: null,
      reusedSocket: false,
      host: 'localhost',
      protocol: 'http:',
      _redirectable: [Writable],
      [Symbol(kCapture)]: false,
      [Symbol(kNeedDrain)]: false,
      [Symbol(corked)]: 0,
      [Symbol(kOutHeaders)]: [Object: null prototype]
    },
    data: {
      statusCode: 503,
      error: 'Service Unavailable',
      message: 'License is not available.'
    }
  },
  isAxiosError: true,
  toJSON: [Function: toJSON]
}

Metrics [docs]

✅ unchanged

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

cc @spalger

@kibanamachine kibanamachine merged commit 02b138b into elastic:7.x Apr 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants