Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[test-failed]: X-Pack EPM API Integration Tests1.x-pack/test/ingest_manager_api_integration/apis/epm/package_install_complete·ts - Ingest Manager Endpoints EPM Endpoints setup checks packages completed install package install should have not reinstalled if package install completed #80273

Closed
liza-mae opened this issue Oct 13, 2020 · 12 comments
Assignees
Labels
bug Fixes for quality problems that affect the customer experience failed-test A test failure on a tracked branch, potentially flaky-test Team:Defend Workflows “EDR Workflows” sub-team of Security Solution Team:Fleet Team label for Observability Data Collection Fleet team Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. test-cloud v7.11.0

Comments

@liza-mae
Copy link
Contributor

Version: 7.10.0
Class: X-Pack EPM API Integration Tests1.x-pack/test/ingest_manager_api_integration/apis/epm/package_install_complete·ts
Stack Trace:

{ Error: Request failed with status code 404
   at createError (/var/lib/jenkins/workspace/elastic+estf-cloud-kibana-tests/JOB/xpackExtGrp2/TASK/saas_run_kibana_tests/node/linux-immutable/ci/cloud/common/build/kibana/node_modules/axios/lib/core/createError.js:16:15)
   at settle (/var/lib/jenkins/workspace/elastic+estf-cloud-kibana-tests/JOB/xpackExtGrp2/TASK/saas_run_kibana_tests/node/linux-immutable/ci/cloud/common/build/kibana/node_modules/axios/lib/core/settle.js:17:12)
   at IncomingMessage.handleStreamEnd (/var/lib/jenkins/workspace/elastic+estf-cloud-kibana-tests/JOB/xpackExtGrp2/TASK/saas_run_kibana_tests/node/linux-immutable/ci/cloud/common/build/kibana/node_modules/axios/lib/adapters/http.js:236:11)
   at endReadableNT (_stream_readable.js:1145:12)
   at process._tickCallback (internal/process/next_tick.js:63:19)
 config:
  { url:
     'https://elastic:hQJWl0ms0CdC1SSgIVKD6qQw@8968eadf10884afb8998bb4b964fe489.us-east-1.aws.staging.foundit.no:9243/api/saved_objects/epm-packages/multiple_versions',
    method: 'get',
    headers:
     { Accept: 'application/json, text/plain, */*',
       'kbn-xsrf': 'kbn-client',
       'User-Agent': 'axios/0.19.2' },
    transformRequest: [ [Function: transformRequest] ],
    transformResponse: [ [Function: transformResponse] ],
    timeout: 0,
    adapter: [Function: httpAdapter],
    xsrfCookieName: 'XSRF-TOKEN',
    xsrfHeaderName: 'X-XSRF-TOKEN',
    maxContentLength: -1,
    validateStatus: [Function: validateStatus],
    httpsAgent: null,
    data: undefined },
 request:
  ClientRequest {
    _events:
     [Object: null prototype] {
       socket: [Function],
       abort: [Function],
       aborted: [Function],
       error: [Function],
       timeout: [Function],
       prefinish: [Function: requestOnPrefinish] },
    _eventsCount: 6,
    _maxListeners: undefined,
    output: [],
    outputEncodings: [],
    outputCallbacks: [],
    outputSize: 0,
    writable: true,
    _last: true,
    chunkedEncoding: false,
    shouldKeepAlive: false,
    useChunkedEncodingByDefault: false,
    sendDate: false,
    _removedConnection: false,
    _removedContLen: false,
    _removedTE: false,
    _contentLength: 0,
    _hasBody: true,
    _trailer: '',
    finished: true,
    _headerSent: true,
    socket:
     TLSSocket {
       _tlsOptions: [Object],
       _secureEstablished: true,
       _securePending: false,
       _newSessionPending: false,
       _controlReleased: true,
       _SNICallback: null,
       servername:
        '8968eadf10884afb8998bb4b964fe489.us-east-1.aws.staging.foundit.no',
       alpnProtocol: false,
       authorized: true,
       authorizationError: null,
       encrypted: true,
       _events: [Object],
       _eventsCount: 8,
       connecting: false,
       _hadError: false,
       _handle: null,
       _parent: null,
       _host:
        '8968eadf10884afb8998bb4b964fe489.us-east-1.aws.staging.foundit.no',
       _readableState: [ReadableState],
       readable: false,
       _maxListeners: undefined,
       _writableState: [WritableState],
       writable: false,
       allowHalfOpen: false,
       _sockname: null,
       _pendingData: null,
       _pendingEncoding: '',
       server: undefined,
       _server: null,
       ssl: null,
       _requestCert: true,
       _rejectUnauthorized: true,
       parser: null,
       _httpMessage: [Circular],
       write: [Function: writeAfterFIN],
       [Symbol(res)]: null,
       [Symbol(asyncId)]: 11872,
       [Symbol(lastWriteQueueSize)]: 0,
       [Symbol(timeout)]: null,
       [Symbol(kBytesRead)]: 576,
       [Symbol(kBytesWritten)]: 321,
       [Symbol(connect-options)]: [Object] },
    connection:
     TLSSocket {
       _tlsOptions: [Object],
       _secureEstablished: true,
       _securePending: false,
       _newSessionPending: false,
       _controlReleased: true,
       _SNICallback: null,
       servername:
        '8968eadf10884afb8998bb4b964fe489.us-east-1.aws.staging.foundit.no',
       alpnProtocol: false,
       authorized: true,
       authorizationError: null,
       encrypted: true,
       _events: [Object],
       _eventsCount: 8,
       connecting: false,
       _hadError: false,
       _handle: null,
       _parent: null,
       _host:
        '8968eadf10884afb8998bb4b964fe489.us-east-1.aws.staging.foundit.no',
       _readableState: [ReadableState],
       readable: false,
       _maxListeners: undefined,
       _writableState: [WritableState],
       writable: false,
       allowHalfOpen: false,
       _sockname: null,
       _pendingData: null,
       _pendingEncoding: '',
       server: undefined,
       _server: null,
       ssl: null,
       _requestCert: true,
       _rejectUnauthorized: true,
       parser: null,
       _httpMessage: [Circular],
       write: [Function: writeAfterFIN],
       [Symbol(res)]: null,
       [Symbol(asyncId)]: 11872,
       [Symbol(lastWriteQueueSize)]: 0,
       [Symbol(timeout)]: null,
       [Symbol(kBytesRead)]: 576,
       [Symbol(kBytesWritten)]: 321,
       [Symbol(connect-options)]: [Object] },
    _header:
     'GET /api/saved_objects/epm-packages/multiple_versions HTTP/1.1\r\nAccept: application/json, text/plain, */*\r\nkbn-xsrf: kbn-client\r\nUser-Agent: axios/0.19.2\r\nHost: 8968eadf10884afb8998bb4b964fe489.us-east-1.aws.staging.foundit.no:9243\r\nAuthorization: Basic ZWxhc3RpYzpoUUpXbDBtczBDZEMxU1NnSVZLRDZxUXc=\r\nConnection: close\r\n\r\n',
    _onPendingData: [Function: noopPendingOutput],
    agent:
     Agent {
       _events: [Object],
       _eventsCount: 1,
       _maxListeners: undefined,
       defaultPort: 443,
       protocol: 'https:',
       options: [Object],
       requests: {},
       sockets: {},
       freeSockets: {},
       keepAliveMsecs: 1000,
       keepAlive: false,
       maxSockets: Infinity,
       maxFreeSockets: 256,
       maxCachedSessions: 100,
       _sessionCache: [Object] },
    socketPath: undefined,
    timeout: undefined,
    method: 'GET',
    insecureHTTPParser: undefined,
    path: '/api/saved_objects/epm-packages/multiple_versions',
    _ended: true,
    res:
     IncomingMessage {
       _readableState: [ReadableState],
       readable: false,
       _events: [Object],
       _eventsCount: 3,
       _maxListeners: undefined,
       socket: [TLSSocket],
       connection: [TLSSocket],
       httpVersionMajor: 1,
       httpVersionMinor: 1,
       httpVersion: '1.1',
       complete: true,
       headers: [Object],
       rawHeaders: [Array],
       trailers: {},
       rawTrailers: [],
       aborted: false,
       upgrade: false,
       url: '',
       method: null,
       statusCode: 404,
       statusMessage: 'Not Found',
       client: [TLSSocket],
       _consuming: false,
       _dumped: false,
       req: [Circular],
       responseUrl:
        'https://elastic:hQJWl0ms0CdC1SSgIVKD6qQw@8968eadf10884afb8998bb4b964fe489.us-east-1.aws.staging.foundit.no:9243/api/saved_objects/epm-packages/multiple_versions',
       redirects: [] },
    aborted: undefined,
    timeoutCb: null,
    upgradeOrConnect: false,
    parser: null,
    maxHeadersCount: null,
    _redirectable:
     Writable {
       _writableState: [WritableState],
       writable: true,
       _events: [Object],
       _eventsCount: 2,
       _maxListeners: undefined,
       _options: [Object],
       _redirectCount: 0,
       _redirects: [],
       _requestBodyLength: 0,
       _requestBodyBuffers: [],
       _onNativeResponse: [Function],
       _currentRequest: [Circular],
       _currentUrl:
        'https://elastic:hQJWl0ms0CdC1SSgIVKD6qQw@8968eadf10884afb8998bb4b964fe489.us-east-1.aws.staging.foundit.no:9243/api/saved_objects/epm-packages/multiple_versions' },
    [Symbol(isCorked)]: false,
    [Symbol(outHeadersKey)]:
     [Object: null prototype] {
       accept: [Array],
       'kbn-xsrf': [Array],
       'user-agent': [Array],
       host: [Array],
       authorization: [Array] } },
 response:
  { status: 404,
    statusText: 'Not Found',
    headers:
     { 'cache-control': 'private, no-cache, no-store, must-revalidate',
       'content-length': '106',
       'content-type': 'application/json; charset=utf-8',
       date: 'Mon, 12 Oct 2020 14:02:14 GMT',
       'kbn-license-sig':
        'b31b2588971d1942d752aca006f084b945c08cc31bbec01aaf24cae94cd5b6d8',
       'kbn-name': 'bec80dd75eb7',
       'x-cloud-request-id': 'uwxF08OUST-h_dhpTlshmA',
       'x-found-handling-cluster': '8968eadf10884afb8998bb4b964fe489',
       'x-found-handling-instance': 'instance-0000000000',
       connection: 'close' },
    config:
     { url:
        'https://elastic:hQJWl0ms0CdC1SSgIVKD6qQw@8968eadf10884afb8998bb4b964fe489.us-east-1.aws.staging.foundit.no:9243/api/saved_objects/epm-packages/multiple_versions',
       method: 'get',
       headers: [Object],
       transformRequest: [Array],
       transformResponse: [Array],
       timeout: 0,
       adapter: [Function: httpAdapter],
       xsrfCookieName: 'XSRF-TOKEN',
       xsrfHeaderName: 'X-XSRF-TOKEN',
       maxContentLength: -1,
       validateStatus: [Function: validateStatus],
       httpsAgent: null,
       data: undefined },
    request:
     ClientRequest {
       _events: [Object],
       _eventsCount: 6,
       _maxListeners: undefined,
       output: [],
       outputEncodings: [],
       outputCallbacks: [],
       outputSize: 0,
       writable: true,
       _last: true,
       chunkedEncoding: false,
       shouldKeepAlive: false,
       useChunkedEncodingByDefault: false,
       sendDate: false,
       _removedConnection: false,
       _removedContLen: false,
       _removedTE: false,
       _contentLength: 0,
       _hasBody: true,
       _trailer: '',
       finished: true,
       _headerSent: true,
       socket: [TLSSocket],
       connection: [TLSSocket],
       _header:
        'GET /api/saved_objects/epm-packages/multiple_versions HTTP/1.1\r\nAccept: application/json, text/plain, */*\r\nkbn-xsrf: kbn-client\r\nUser-Agent: axios/0.19.2\r\nHost: 8968eadf10884afb8998bb4b964fe489.us-east-1.aws.staging.foundit.no:9243\r\nAuthorization: Basic ZWxhc3RpYzpoUUpXbDBtczBDZEMxU1NnSVZLRDZxUXc=\r\nConnection: close\r\n\r\n',
       _onPendingData: [Function: noopPendingOutput],
       agent: [Agent],
       socketPath: undefined,
       timeout: undefined,
       method: 'GET',
       insecureHTTPParser: undefined,
       path: '/api/saved_objects/epm-packages/multiple_versions',
       _ended: true,
       res: [IncomingMessage],
       aborted: undefined,
       timeoutCb: null,
       upgradeOrConnect: false,
       parser: null,
       maxHeadersCount: null,
       _redirectable: [Writable],
       [Symbol(isCorked)]: false,
       [Symbol(outHeadersKey)]: [Object] },
    data:
     { statusCode: 404,
       error: 'Not Found',
       message: 'Saved object [epm-packages/multiple_versions] not found' } },
 isAxiosError: true,
 toJSON: [Function] }

Other test failures:

  • Ingest Manager Endpoints EPM Endpoints setup checks packages completed install package install should have reinstalled if package installing did not complete in elapsed time
  • Ingest Manager Endpoints EPM Endpoints setup checks packages completed install package install should have not reinstalled if package installing did not surpass elapsed time
  • Ingest Manager Endpoints EPM Endpoints setup checks packages completed install package update should have not reinstalled if package update completed
  • Ingest Manager Endpoints EPM Endpoints setup checks packages completed install package update should have reinstalled if package updating did not complete in elapsed time
  • Ingest Manager Endpoints EPM Endpoints setup checks packages completed install package update should have not reinstalled if package updating did not surpass elapsed time

Test Report: https://internal-ci.elastic.co/view/Stack%20Tests/job/elastic+estf-cloud-kibana-tests/845/testReport/

@liza-mae liza-mae added failed-test A test failure on a tracked branch, potentially flaky-test test-cloud labels Oct 13, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-test-triage (failed-test)

@elasticmachine
Copy link
Contributor

Pinging @elastic/endpoint-management (Team:Endpoint Management)

@kevinlog kevinlog added the Team:Fleet Team label for Observability Data Collection Fleet team label Oct 13, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/ingest-management (Team:Ingest Management)

@ph ph added bug Fixes for quality problems that affect the customer experience v7.11.0 labels Oct 14, 2020
@ph
Copy link
Contributor

ph commented Oct 14, 2020

@neptunian could it be a bigger problem?

@MindyRS MindyRS added the Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. label Oct 15, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-security (Team:Security Solution)

@neptunian
Copy link
Contributor

@ph I am still looking into it. I can't reproduce locally on 7.10, and am not sure why the 404s.

@neptunian
Copy link
Contributor

Fixes were merged and backported. Will close when I confirm tests passing on new builds.

@ph
Copy link
Contributor

ph commented Oct 21, 2020

@liza-mae I think we can close this?

@ph ph closed this as completed Oct 21, 2020
@neptunian neptunian reopened this Oct 27, 2020
@neptunian
Copy link
Contributor

Tests look to still be failing and possibly related to the conversation here: #80978

@neptunian
Copy link
Contributor

Unfortunately, I missed a few cases with the initial PR and have opened another.

@charlie-pichette charlie-pichette added Team:Defend Workflows “EDR Workflows” sub-team of Security Solution and removed Team:Endpoint Management labels Oct 28, 2020
@neptunian
Copy link
Contributor

I checked the recent 8.0.0 build and EPM tests pass. I will assume (and check) it fixed for 8.10.

https://internal-ci.elastic.co/view/Stack%20Tests/job/elastic+estf-cloud-kibana-tests/919/#showFailuresLink

@muskangulati-qasource
Copy link

Bug Conversion

  • Test-Case not required as this is a Dev Validation ticket

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience failed-test A test failure on a tracked branch, potentially flaky-test Team:Defend Workflows “EDR Workflows” sub-team of Security Solution Team:Fleet Team label for Observability Data Collection Fleet team Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. test-cloud v7.11.0
Projects
None yet
Development

No branches or pull requests

8 participants