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

[7.x] [Fleet] Support Fleet server system indices (#89372) #90640

Merged
merged 1 commit into from
Feb 8, 2021

Conversation

nchaulet
Copy link
Member

@nchaulet nchaulet commented Feb 8, 2021

Backports the following commits to 7.x:

@nchaulet nchaulet self-assigned this Feb 8, 2021
@kibanamachine
Copy link
Contributor

💛 Build succeeded, but was flaky


Test Failures

Kibana Pipeline / general / Chrome X-Pack UI Functional Tests.x-pack/test/functional/apps/ingest_pipelines/feature_controls/ingest_pipelines_security·ts.Ingest pipelines app feature controls security global dashboard all with ingest_pipelines_user should render the "Ingest" section with ingest pipelines

Link to Jenkins

Standard Out

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

[00:00:00]       │
[00:08:49]         └-: Ingest pipelines app
[00:08:49]           └-> "before all" hook in "Ingest pipelines app"
[00:08:49]           └-: feature controls
[00:08:49]             └-> "before all" hook in "feature controls"
[00:08:49]             └-: security
[00:08:49]               └-> "before all" hook in "security"
[00:08:49]               └-> "before all" hook in "security"
[00:08:49]                 │ info [empty_kibana] Loading "mappings.json"
[00:08:49]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-centos-tests-xxl-1612799873120358153] [.kibana_2/sqqkZWopTT2G9Y3XsENi-w] deleting index
[00:08:49]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-centos-tests-xxl-1612799873120358153] [.kibana_1/YcaHymcHT7upAkKZrzmu_A] deleting index
[00:08:49]                 │ info [empty_kibana] Deleted existing index ".kibana_2"
[00:08:49]                 │ info [empty_kibana] Deleted existing index ".kibana_1"
[00:08:49]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1612799873120358153] [.kibana] creating index, cause [api], templates [], shards [1]/[1]
[00:08:49]                 │ info [empty_kibana] Created index ".kibana"
[00:08:49]                 │ debg [empty_kibana] ".kibana" settings {"index":{"number_of_replicas":"1","number_of_shards":"1"}}
[00:08:49]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-centos-tests-xxl-1612799873120358153] [.kibana/nKDCnf_IQfGS631DbBWVIA] update_mapping [_doc]
[00:08:49]                 │ debg Migrating saved objects
[00:08:49]                 │ proc [kibana]   log   [16:55:35.038] [info][savedobjects-service] Creating index .kibana_2.
[00:08:49]                 │ proc [kibana]   log   [16:55:35.041] [info][savedobjects-service] Creating index .kibana_task_manager_5.
[00:08:49]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1612799873120358153] [.kibana_2] creating index, cause [api], templates [], shards [1]/[1]
[00:08:49]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xxl-1612799873120358153] updating number_of_replicas to [0] for indices [.kibana_2]
[00:08:49]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1612799873120358153] [.kibana_task_manager_5] creating index, cause [api], templates [], shards [1]/[1]
[00:08:49]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xxl-1612799873120358153] updating number_of_replicas to [0] for indices [.kibana_task_manager_5]
[00:08:50]                 │ proc [kibana]   log   [16:55:35.124] [info][savedobjects-service] Reindexing .kibana to .kibana_1
[00:08:50]                 │ proc [kibana]   log   [16:55:35.142] [info][savedobjects-service] Migrating .kibana_task_manager_4 saved objects to .kibana_task_manager_5
[00:08:50]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1612799873120358153] [.kibana_1] creating index, cause [api], templates [], shards [1]/[1]
[00:08:50]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xxl-1612799873120358153] updating number_of_replicas to [0] for indices [.kibana_1]
[00:08:50]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-centos-tests-xxl-1612799873120358153] [.kibana_task_manager_5/aTxZMA9jTK2MN8dNBj-HKQ] update_mapping [_doc]
[00:08:50]                 │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-centos-tests-xxl-1612799873120358153] 17490 finished with response BulkByScrollResponse[took=1.2ms,timed_out=false,sliceId=null,updated=0,created=0,deleted=0,batches=0,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:08:50]                 │ proc [kibana]   log   [16:55:35.220] [info][savedobjects-service] Pointing alias .kibana_task_manager to .kibana_task_manager_5.
[00:08:50]                 │ proc [kibana]   log   [16:55:35.258] [info][savedobjects-service] Finished in 217ms.
[00:08:50]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-centos-tests-xxl-1612799873120358153] [.kibana/nKDCnf_IQfGS631DbBWVIA] deleting index
[00:08:50]                 │ proc [kibana]   log   [16:55:35.501] [info][savedobjects-service] Migrating .kibana_1 saved objects to .kibana_2
[00:08:50]                 │ proc [kibana]   log   [16:55:35.505] [info][savedobjects-service] Pointing alias .kibana to .kibana_2.
[00:08:50]                 │ proc [kibana]   log   [16:55:35.532] [info][savedobjects-service] Finished in 496ms.
[00:08:50]                 │ debg [empty_kibana] Migrated Kibana index after loading Kibana data
[00:08:50]                 │ debg [empty_kibana] Ensured that default space exists in .kibana
[00:08:50]                 │ debg applying update to kibana config: {"accessibility:disableAnimations":true,"dateFormat:tz":"UTC"}
[00:08:50]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-centos-tests-xxl-1612799873120358153] [.kibana_2/zX_ntkoFSjWupzWNM4WzGg] update_mapping [_doc]
[00:08:51]                 │ debg navigating to home url: http://localhost:61161/app/home#/
[00:08:51]                 │ debg navigate to: http://localhost:61161/app/home#/
[00:08:52]                 │ debg browser[INFO] http://localhost:61161/app/home?_t=1612803337092#/ 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:08:52]                 │
[00:08:52]                 │ debg browser[INFO] http://localhost:61161/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:08:52]                 │ debg ... sleep(700) start
[00:08:52]                 │ debg ... sleep(700) end
[00:08:52]                 │ debg returned from get, calling refresh
[00:08:53]                 │ERROR browser[SEVERE] http://localhost:61161/38549/bundles/core/core.entry.js 12:158464 TypeError: Failed to fetch
[00:08:53]                 │          at fetch_Fetch.fetchResponse (http://localhost:61161/38549/bundles/core/core.entry.js:6:32451)
[00:08:53]                 │          at async interceptResponse (http://localhost:61161/38549/bundles/core/core.entry.js:6:28637)
[00:08:53]                 │          at async http://localhost:61161/38549/bundles/core/core.entry.js:6:31117
[00:08:53]                 │ debg browser[INFO] http://localhost:61161/app/home?_t=1612803337092#/ 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:08:53]                 │
[00:08:53]                 │ debg browser[INFO] http://localhost:61161/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:08:53]                 │ debg currentUrl = http://localhost:61161/app/home#/
[00:08:53]                 │          appUrl = http://localhost:61161/app/home#/
[00:08:53]                 │ debg TestSubjects.find(kibanaChrome)
[00:08:53]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:08:53]                 │ debg ... sleep(501) start
[00:08:54]                 │ debg ... sleep(501) end
[00:08:54]                 │ debg in navigateTo url = http://localhost:61161/app/home#/
[00:08:54]                 │ debg TestSubjects.exists(statusPageContainer)
[00:08:54]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:08:56]                 │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:09:11]               └-: global dashboard all with ingest_pipelines_user
[00:09:11]                 └-> "before all" hook for "should show the Stack Management nav link"
[00:09:11]                 └-> "before all" hook for "should show the Stack Management nav link"
[00:09:11]                   │ debg set roles = global_dashboard_all,ingest_pipelines_user
[00:09:11]                   │ debg creating user test_user
[00:09:11]                   │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-centos-tests-xxl-1612799873120358153] updated user [test_user]
[00:09:11]                   │ debg created user test_user
[00:09:11]                   │ debg TestSubjects.exists(kibanaChrome)
[00:09:11]                   │ debg Find.existsByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=2500
[00:09:11]                   │ debg TestSubjects.find(kibanaChrome)
[00:09:11]                   │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=100000
[00:09:11]                   │ debg browser[INFO] http://localhost:61161/app/management?_t=1612803349499 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:09:11]                   │
[00:09:11]                   │ debg browser[INFO] http://localhost:61161/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:09:12]                 └-> should show the Stack Management nav link
[00:09:12]                   └-> "before each" hook: global before each for "should show the Stack Management nav link"
[00:09:12]                   │ debg isGlobalLoadingIndicatorVisible
[00:09:12]                   │ debg TestSubjects.exists(globalLoadingIndicator)
[00:09:12]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:09:14]                   │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:09:14]                   │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:09:14]                   │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:09:14]                   │ debg TestSubjects.exists(collapsibleNav)
[00:09:14]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="collapsibleNav"]') with timeout=2500
[00:09:17]                   │ debg --- retry.tryForTime error: [data-test-subj="collapsibleNav"] is not displayed
[00:09:18]                   │ debg TestSubjects.click(toggleNavButton)
[00:09:18]                   │ debg Find.clickByCssSelector('[data-test-subj="toggleNavButton"]') with timeout=10000
[00:09:18]                   │ debg Find.findByCssSelector('[data-test-subj="toggleNavButton"]') with timeout=10000
[00:09:18]                   │ debg TestSubjects.find(collapsibleNav)
[00:09:18]                   │ debg Find.findByCssSelector('[data-test-subj="collapsibleNav"]') with timeout=10000
[00:09:18]                   │ debg Find.existsByCssSelector('[data-test-subj=collapsibleNav] > button') with timeout=2500
[00:09:18]                   │ debg Find.findByCssSelector('[data-test-subj=collapsibleNav] > button') with timeout=10000
[00:09:18]                   │ debg Find.clickByCssSelector('[data-test-subj=collapsibleNav] > button') with timeout=10000
[00:09:18]                   │ debg Find.findByCssSelector('[data-test-subj=collapsibleNav] > button') with timeout=10000
[00:09:18]                   └- ✓ pass  (5.4s) "Ingest pipelines app feature controls security global dashboard all with ingest_pipelines_user should show the Stack Management nav link"
[00:09:18]                 └-> should render the "Ingest" section with ingest pipelines
[00:09:18]                   └-> "before each" hook: global before each for "should render the "Ingest" section with ingest pipelines"
[00:09:18]                   │ debg navigating to management url: http://localhost:61161/app/management
[00:09:18]                   │ debg navigate to: http://localhost:61161/app/management
[00:09:18]                   │ debg browser[INFO] http://localhost:61161/app/management?_t=1612803363404 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:09:18]                   │
[00:09:18]                   │ debg browser[INFO] http://localhost:61161/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:09:18]                   │ debg ... sleep(700) start
[00:09:19]                   │ debg ... sleep(700) end
[00:09:19]                   │ debg returned from get, calling refresh
[00:09:19]                   │ debg browser[INFO] http://localhost:61161/app/management?_t=1612803363404 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:09:19]                   │
[00:09:19]                   │ debg browser[INFO] http://localhost:61161/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:09:19]                   │ debg currentUrl = http://localhost:61161/app/management
[00:09:19]                   │          appUrl = http://localhost:61161/app/management
[00:09:19]                   │ debg TestSubjects.find(kibanaChrome)
[00:09:19]                   │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:09:20]                   │ debg ... sleep(501) start
[00:09:20]                   │ debg ... sleep(501) end
[00:09:20]                   │ debg in navigateTo url = http://localhost:61161/app/management
[00:09:20]                   │ debg TestSubjects.exists(statusPageContainer)
[00:09:20]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:09:23]                   │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:09:23]                   │ debg Find.allByCssSelector('.mgtSideBarNav > .euiSideNav__content > .euiSideNavItem') with timeout=10000
[00:09:23]                   │ info Taking screenshot "/dev/shm/workspace/parallel/16/kibana/x-pack/test/functional/screenshots/failure/Ingest pipelines app feature controls security global dashboard all with ingest_pipelines_user should render the _Ingest_ section with ingest pipelines.png"
[00:09:23]                   │ info Current URL is: http://localhost:61161/app/management
[00:09:23]                   │ info Saving page source to: /dev/shm/workspace/parallel/16/kibana/x-pack/test/functional/failure_debug/html/Ingest pipelines app feature controls security global dashboard all with ingest_pipelines_user should render the _Ingest_ section with ingest pipelines.html
[00:09:23]                   └- ✖ fail: Ingest pipelines app feature controls security global dashboard all with ingest_pipelines_user should render the "Ingest" section with ingest pipelines
[00:09:23]                   │       Error: expected { sectionId: 'ingest',
[00:09:23]                   │   sectionLinks: [ 'ingest_pipelines', 'beats_management' ] } to sort of equal { sectionId: 'ingest',
[00:09:23]                   │   sectionLinks: [ 'ingest_pipelines' ] }
[00:09:23]                   │       + expected - actual
[00:09:23]                   │ 
[00:09:23]                   │        {
[00:09:23]                   │          "sectionId": "ingest"
[00:09:23]                   │          "sectionLinks": [
[00:09:23]                   │            "ingest_pipelines"
[00:09:23]                   │       -    "beats_management"
[00:09:23]                   │          ]
[00:09:23]                   │        }
[00:09:23]                   │       
[00:09:23]                   │       at Assertion.assert (/dev/shm/workspace/parallel/16/kibana/packages/kbn-expect/expect.js:100:11)
[00:09:23]                   │       at Assertion.eql (/dev/shm/workspace/parallel/16/kibana/packages/kbn-expect/expect.js:244:8)
[00:09:23]                   │       at Context.<anonymous> (test/functional/apps/ingest_pipelines/feature_controls/ingest_pipelines_security.ts:64:32)
[00:09:23]                   │       at runMicrotasks (<anonymous>)
[00:09:23]                   │       at processTicksAndRejections (internal/process/task_queues.js:93:5)
[00:09:23]                   │       at Object.apply (/dev/shm/workspace/parallel/16/kibana/packages/kbn-test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16)
[00:09:23]                   │ 
[00:09:23]                   │ 

Stack Trace

Error: expected { sectionId: 'ingest',
  sectionLinks: [ 'ingest_pipelines', 'beats_management' ] } to sort of equal { sectionId: 'ingest',
  sectionLinks: [ 'ingest_pipelines' ] }
    at Assertion.assert (/dev/shm/workspace/parallel/16/kibana/packages/kbn-expect/expect.js:100:11)
    at Assertion.eql (/dev/shm/workspace/parallel/16/kibana/packages/kbn-expect/expect.js:244:8)
    at Context.<anonymous> (test/functional/apps/ingest_pipelines/feature_controls/ingest_pipelines_security.ts:64:32)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at Object.apply (/dev/shm/workspace/parallel/16/kibana/packages/kbn-test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16) {
  actual: '{\n' +
    '  "sectionId": "ingest"\n' +
    '  "sectionLinks": [\n' +
    '    "ingest_pipelines"\n' +
    '    "beats_management"\n' +
    '  ]\n' +
    '}',
  expected: '{\n  "sectionId": "ingest"\n  "sectionLinks": [\n    "ingest_pipelines"\n  ]\n}',
  showDiff: true
}

Metrics [docs]

✅ unchanged

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

@nchaulet nchaulet merged commit 89920ee into elastic:7.x Feb 8, 2021
@nchaulet nchaulet deleted the backport/7.x/pr-89372 branch February 8, 2021 17:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants