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

[Fleet] Remove aliases from index_template when updating an existing template #91200

Merged
merged 4 commits into from
Feb 11, 2021

Conversation

nchaulet
Copy link
Member

@nchaulet nchaulet commented Feb 11, 2021

Description

Reapply #91142

The commit was reverted du to a type issue this fix it c5b5f20

This was merged between the CI and the merge of the previous PR #90492

Context

Resolve #90984

Ensure we aliases from index_template when updating an existing index template

When updating an index template we put new component template before updating the index template, this cause validation error in the case where the index template contains the aliases property. That PR ensure the aliases property is removed before.

How to test

Start with a Kibana 7.10 setup fleet and endpoint than update to that PR you should be able to upgrade and go to fleet and the index_template for logs-endpoint* should not contains aliases

Locally I tested it like this (without the fix I got the issue)

First run kibana from the 7.10 branch,

  • run Elastic with data in a persistent place, like this yarn es snapshot --license trial --password changeme -E xpack.security.authc.api_key.enabled=true -E path.data=/tmp/es-data
  • Run kibana (do not forget the bootstrap, ...)
  • Setup fleet and install endpoint

Than checkout that PR

  • run Elastic with data in a persistent place, like this yarn es snapshot --license trial --password changeme -E xpack.security.authc.api_key.enabled=true -E path.data=/tmp/es-data
  • Run kibana (do not forget the bootstrap, ...)
  • Go to fleet it should be fixed.

Release note

Fix an upgrade issue in Fleet from 7.10 to 7.11 happening with the endpoint package.

@nchaulet nchaulet added bug Fixes for quality problems that affect the customer experience v8.0.0 release_note:skip Skip the PR/issue when compiling release notes Team:Fleet Team label for Observability Data Collection Fleet team v7.12.0 v7.11.1 labels Feb 11, 2021
@nchaulet nchaulet self-assigned this Feb 11, 2021
@nchaulet nchaulet requested a review from a team as a code owner February 11, 2021 19:30
@elasticmachine
Copy link
Contributor

Pinging @elastic/fleet (Team:Fleet)

@nchaulet nchaulet requested a review from jbudz February 11, 2021 19:30
Copy link
Contributor

@jen-huang jen-huang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@jen-huang jen-huang removed the release_note:skip Skip the PR/issue when compiling release notes label Feb 11, 2021
Copy link
Member

@pzl pzl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀 🌔

@nchaulet nchaulet enabled auto-merge (squash) February 11, 2021 21:34
@nchaulet nchaulet disabled auto-merge February 11, 2021 21:41
@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/transform/feature_controls/transform_security·ts.transform feature controls security global dashboard all with transform_user should render the "Data" section with Transform

Link to Jenkins

Standard Out

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

[00:00:00]       │
[00:19:03]         └-: transform
[00:19:03]           └-> "before all" hook in "transform"
[00:19:03]           └-> "before all" hook in "transform"
[00:19:03]             │ debg creating role transform_source
[00:19:03]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-debian-tests-xxl-1613072248858172940] added role [transform_source]
[00:19:03]             │ debg creating role transform_dest
[00:19:03]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-debian-tests-xxl-1613072248858172940] added role [transform_dest]
[00:19:03]             │ debg creating role transform_dest_readonly
[00:19:03]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-debian-tests-xxl-1613072248858172940] added role [transform_dest_readonly]
[00:19:03]             │ debg creating role transform_ui_extras
[00:19:03]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-debian-tests-xxl-1613072248858172940] added role [transform_ui_extras]
[00:19:03]             │ debg creating user transform_poweruser
[00:19:04]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-debian-tests-xxl-1613072248858172940] added user [transform_poweruser]
[00:19:04]             │ debg created user transform_poweruser
[00:19:04]             │ debg creating user transform_viewer
[00:19:04]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-debian-tests-xxl-1613072248858172940] added user [transform_viewer]
[00:19:04]             │ debg created user transform_viewer
[00:24:00]           └-: feature controls
[00:24:00]             └-> "before all" hook in "feature controls"
[00:24:00]             └-: security
[00:24:00]               └-> "before all" hook in "security"
[00:24:00]               └-> "before all" hook in "security"
[00:24:00]                 │ info [empty_kibana] Loading "mappings.json"
[00:24:00]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-debian-tests-xxl-1613072248858172940] [.kibana_pre6.5.0_001/2zr7QIE3T_Kyebxx-8QS5g] deleting index
[00:24:00]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-debian-tests-xxl-1613072248858172940] [.kibana_task_manager_8.0.0_001/DpTqSGl3Q1isk8b02cU53A] deleting index
[00:24:00]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-debian-tests-xxl-1613072248858172940] [.kibana_8.0.0_001/Ev_lkXwaTm6fBufMVrgv3A] deleting index
[00:24:00]                 │ info [empty_kibana] Deleted existing index ".kibana_8.0.0_001"
[00:24:00]                 │ info [empty_kibana] Deleted existing index ".kibana_task_manager_8.0.0_001"
[00:24:00]                 │ info [empty_kibana] Deleted existing index ".kibana_pre6.5.0_001"
[00:24:00]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xxl-1613072248858172940] [.kibana] creating index, cause [api], templates [], shards [1]/[1]
[00:24:00]                 │ info [empty_kibana] Created index ".kibana"
[00:24:00]                 │ debg [empty_kibana] ".kibana" settings {"index":{"number_of_replicas":"1","number_of_shards":"1"}}
[00:24:00]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xxl-1613072248858172940] [.kibana/HdvO4gXkSh2DU9S64pjiJQ] update_mapping [_doc]
[00:24:00]                 │ debg Migrating saved objects
[00:24:00]                 │ proc [kibana]   log   [20:38:51.852] [info][savedobjects-service] [.kibana_task_manager] INIT -> CREATE_NEW_TARGET
[00:24:00]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xxl-1613072248858172940] [.kibana_task_manager_8.0.0_001] creating index, cause [api], templates [], shards [1]/[1]
[00:24:00]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-tests-xxl-1613072248858172940] updating number_of_replicas to [0] for indices [.kibana_task_manager_8.0.0_001]
[00:24:00]                 │ proc [kibana]   log   [20:38:51.862] [info][savedobjects-service] [.kibana] INIT -> LEGACY_SET_WRITE_BLOCK
[00:24:00]                 │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-debian-tests-xxl-1613072248858172940] adding block write to indices [[.kibana/HdvO4gXkSh2DU9S64pjiJQ]]
[00:24:00]                 │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-debian-tests-xxl-1613072248858172940] completed adding block write to indices [.kibana]
[00:24:00]                 │ proc [kibana]   log   [20:38:51.913] [info][savedobjects-service] [.kibana_task_manager] CREATE_NEW_TARGET -> MARK_VERSION_INDEX_READY
[00:24:00]                 │ proc [kibana]   log   [20:38:51.930] [info][savedobjects-service] [.kibana] LEGACY_SET_WRITE_BLOCK -> LEGACY_CREATE_REINDEX_TARGET
[00:24:00]                 │ proc [kibana]   log   [20:38:51.942] [info][savedobjects-service] [.kibana_task_manager] MARK_VERSION_INDEX_READY -> DONE
[00:24:00]                 │ proc [kibana]   log   [20:38:51.943] [info][savedobjects-service] [.kibana_task_manager] Migration completed after 94ms
[00:24:00]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xxl-1613072248858172940] [.kibana_pre6.5.0_001] creating index, cause [api], templates [], shards [1]/[1]
[00:24:00]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-tests-xxl-1613072248858172940] updating number_of_replicas to [0] for indices [.kibana_pre6.5.0_001]
[00:24:00]                 │ proc [kibana]   log   [20:38:52.000] [info][savedobjects-service] [.kibana] LEGACY_CREATE_REINDEX_TARGET -> LEGACY_REINDEX
[00:24:00]                 │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-debian-tests-xxl-1613072248858172940] 31787 finished with response BulkByScrollResponse[took=1.6ms,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:24:00]                 │ proc [kibana]   log   [20:38:52.006] [info][savedobjects-service] [.kibana] LEGACY_REINDEX -> LEGACY_REINDEX_WAIT_FOR_TASK
[00:24:00]                 │ proc [kibana]   log   [20:38:52.012] [info][savedobjects-service] [.kibana] LEGACY_REINDEX_WAIT_FOR_TASK -> LEGACY_DELETE
[00:24:00]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-debian-tests-xxl-1613072248858172940] [.kibana/HdvO4gXkSh2DU9S64pjiJQ] deleting index
[00:24:00]                 │ proc [kibana]   log   [20:38:52.046] [info][savedobjects-service] [.kibana] LEGACY_DELETE -> SET_SOURCE_WRITE_BLOCK
[00:24:00]                 │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-debian-tests-xxl-1613072248858172940] adding block write to indices [[.kibana_pre6.5.0_001/d8zQ7AHWR2KSmF0jv27vYw]]
[00:24:00]                 │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-debian-tests-xxl-1613072248858172940] completed adding block write to indices [.kibana_pre6.5.0_001]
[00:24:00]                 │ proc [kibana]   log   [20:38:52.082] [info][savedobjects-service] [.kibana] SET_SOURCE_WRITE_BLOCK -> CREATE_REINDEX_TEMP
[00:24:00]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xxl-1613072248858172940] [.kibana_8.0.0_reindex_temp] creating index, cause [api], templates [], shards [1]/[1]
[00:24:00]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-tests-xxl-1613072248858172940] updating number_of_replicas to [0] for indices [.kibana_8.0.0_reindex_temp]
[00:24:00]                 │ proc [kibana]   log   [20:38:52.134] [info][savedobjects-service] [.kibana] CREATE_REINDEX_TEMP -> REINDEX_SOURCE_TO_TEMP
[00:24:00]                 │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-debian-tests-xxl-1613072248858172940] 31817 finished with response BulkByScrollResponse[took=1.5ms,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:24:00]                 │ proc [kibana]   log   [20:38:52.140] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP -> REINDEX_SOURCE_TO_TEMP_WAIT_FOR_TASK
[00:24:00]                 │ proc [kibana]   log   [20:38:52.145] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_WAIT_FOR_TASK -> SET_TEMP_WRITE_BLOCK
[00:24:00]                 │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-debian-tests-xxl-1613072248858172940] adding block write to indices [[.kibana_8.0.0_reindex_temp/12rgqFAgQkel4WtWzWoMlw]]
[00:24:00]                 │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-debian-tests-xxl-1613072248858172940] completed adding block write to indices [.kibana_8.0.0_reindex_temp]
[00:24:00]                 │ proc [kibana]   log   [20:38:52.179] [info][savedobjects-service] [.kibana] SET_TEMP_WRITE_BLOCK -> CLONE_TEMP_TO_TARGET
[00:24:00]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xxl-1613072248858172940] applying create index request using existing index [.kibana_8.0.0_reindex_temp] metadata
[00:24:00]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xxl-1613072248858172940] [.kibana_8.0.0_001] creating index, cause [clone_index], templates [], shards [1]/[1]
[00:24:00]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-tests-xxl-1613072248858172940] updating number_of_replicas to [0] for indices [.kibana_8.0.0_001]
[00:24:00]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xxl-1613072248858172940] [.kibana_8.0.0_001/lEwVluYKSyKQocjTVqOJtA] create_mapping
[00:24:00]                 │ proc [kibana]   log   [20:38:52.260] [info][savedobjects-service] [.kibana] CLONE_TEMP_TO_TARGET -> OUTDATED_DOCUMENTS_SEARCH
[00:24:00]                 │ proc [kibana]   log   [20:38:52.267] [info][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_SEARCH -> UPDATE_TARGET_MAPPINGS
[00:24:01]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xxl-1613072248858172940] [.kibana_8.0.0_001/lEwVluYKSyKQocjTVqOJtA] update_mapping [_doc]
[00:24:01]                 │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-debian-tests-xxl-1613072248858172940] 31853 finished with response BulkByScrollResponse[took=1.5ms,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:24:01]                 │ proc [kibana]   log   [20:38:52.325] [info][savedobjects-service] [.kibana] UPDATE_TARGET_MAPPINGS -> UPDATE_TARGET_MAPPINGS_WAIT_FOR_TASK
[00:24:01]                 │ proc [kibana]   log   [20:38:52.331] [info][savedobjects-service] [.kibana] UPDATE_TARGET_MAPPINGS_WAIT_FOR_TASK -> MARK_VERSION_INDEX_READY
[00:24:01]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-debian-tests-xxl-1613072248858172940] [.kibana_8.0.0_reindex_temp/12rgqFAgQkel4WtWzWoMlw] deleting index
[00:24:01]                 │ proc [kibana]   log   [20:38:52.369] [info][savedobjects-service] [.kibana] MARK_VERSION_INDEX_READY -> DONE
[00:24:01]                 │ proc [kibana]   log   [20:38:52.370] [info][savedobjects-service] [.kibana] Migration completed after 523ms
[00:24:01]                 │ debg [empty_kibana] Migrated Kibana index after loading Kibana data
[00:24:01]                 │ debg [empty_kibana] Ensured that default space exists in .kibana
[00:24:01]                 │ debg applying update to kibana config: {"accessibility:disableAnimations":true,"dateFormat:tz":"UTC","visualization:visualize:legacyChartsLibrary":true}
[00:24:01]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xxl-1613072248858172940] [.kibana_8.0.0_001/lEwVluYKSyKQocjTVqOJtA] update_mapping [_doc]
[00:24:02]                 │ debg SecurityPage.forceLogout
[00:24:02]                 │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=100
[00:24:03]                 │ debg --- retry.tryForTime error: .login-form is not displayed
[00:24:03]                 │ debg Redirecting to /logout to force the logout
[00:24:03]                 │ debg Waiting on the login form to appear
[00:24:03]                 │ debg Waiting for Login Page to appear.
[00:24:03]                 │ debg Waiting up to 100000ms for login page...
[00:24:03]                 │ debg browser[INFO] http://localhost:6191/logout?_t=1613075934856 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:24:03]                 │
[00:24:03]                 │ debg browser[INFO] http://localhost:6191/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:24:03]                 │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=2500
[00:24:06]                 │ERROR browser[SEVERE] http://localhost:6191/internal/security/me - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:24:06]                 │ debg browser[INFO] http://localhost:6191/login?msg=LOGGED_OUT 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:24:06]                 │
[00:24:06]                 │ debg browser[INFO] http://localhost:6191/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:24:06]                 │ERROR browser[SEVERE] http://localhost:6191/internal/spaces/_active_space - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:24:06]                 │ERROR browser[SEVERE] http://localhost:6191/internal/security/me - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:24:06]                 │ debg browser[INFO] http://localhost:6191/40404/bundles/core/core.entry.js 12:161232 "Detected an unhandled Promise rejection.
[00:24:06]                 │      Error: Unauthorized"
[00:24:06]                 │ERROR browser[SEVERE] http://localhost:6191/40404/bundles/core/core.entry.js 5:3002 
[00:24:06]                 │ERROR browser[SEVERE] http://localhost:6191/api/licensing/info - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:24:06]                 │ debg --- retry.tryForTime error: .login-form is not displayed
[00:24:07]                 │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=2500
[00:24:07]                 │ debg navigating to home url: http://localhost:6191/app/home#/
[00:24:07]                 │ debg navigate to: http://localhost:6191/app/home#/
[00:24:07]                 │ debg browser[INFO] http://localhost:6191/login?next=%2Fapp%2Fhome%3F_t%3D1613075938520#/ 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:24:07]                 │
[00:24:07]                 │ debg browser[INFO] http://localhost:6191/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:24:07]                 │ debg ... sleep(700) start
[00:24:08]                 │ debg ... sleep(700) end
[00:24:08]                 │ debg returned from get, calling refresh
[00:24:08]                 │ERROR browser[SEVERE] http://localhost:6191/internal/spaces/_active_space - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:24:08]                 │ debg browser[INFO] http://localhost:6191/login?next=%2Fapp%2Fhome%3F_t%3D1613075938520#/ 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:24:08]                 │
[00:24:08]                 │ debg browser[INFO] http://localhost:6191/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:24:08]                 │ debg currentUrl = http://localhost:6191/login?next=%2Fapp%2Fhome%3F_t%3D1613075938520#/
[00:24:08]                 │          appUrl = http://localhost:6191/app/home#/
[00:24:08]                 │ debg TestSubjects.find(kibanaChrome)
[00:24:08]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:24:08]                 │ debg Found login page
[00:24:08]                 │ debg TestSubjects.setValue(loginUsername, test_user)
[00:24:08]                 │ debg TestSubjects.click(loginUsername)
[00:24:08]                 │ debg Find.clickByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:24:08]                 │ debg Find.findByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:24:08]                 │ERROR browser[SEVERE] http://localhost:6191/internal/spaces/_active_space - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:24:08]                 │ debg browser[INFO] http://localhost:6191/40404/bundles/core/core.entry.js 12:161232 "Detected an unhandled Promise rejection.
[00:24:08]                 │      Error: Unauthorized"
[00:24:08]                 │ERROR browser[SEVERE] http://localhost:6191/40404/bundles/core/core.entry.js 5:3002 
[00:24:08]                 │ERROR browser[SEVERE] http://localhost:6191/api/licensing/info - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:24:08]                 │ERROR browser[SEVERE] http://localhost:6191/internal/security/me - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:24:09]                 │ debg TestSubjects.setValue(loginPassword, changeme)
[00:24:09]                 │ debg TestSubjects.click(loginPassword)
[00:24:09]                 │ debg Find.clickByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:24:09]                 │ debg Find.findByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:24:09]                 │ debg TestSubjects.click(loginSubmit)
[00:24:09]                 │ debg Find.clickByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:24:09]                 │ debg Find.findByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:24:09]                 │ debg Find.waitForDeletedByCssSelector('.kibanaWelcomeLogo') with timeout=10000
[00:24:09]                 │ proc [kibana]   log   [20:39:00.590] [info][plugins][routes][security] Logging in with provider "basic" (basic)
[00:24:09]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:24:09]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"] nav:not(.ng-hide)') with timeout=60000
[00:24:11]                 │ debg browser[INFO] http://localhost:6191/app/home?_t=1613075938520#/ 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:24:11]                 │
[00:24:11]                 │ debg browser[INFO] http://localhost:6191/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:24:11]                 │ debg browser[INFO] http://localhost:6191/app/home?_t=1613075942681#/ 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:24:11]                 │
[00:24:11]                 │ debg browser[INFO] http://localhost:6191/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:24:12]                 │ debg Finished login process currentUrl = http://localhost:6191/app/home#/
[00:24:12]                 │ debg ... sleep(501) start
[00:24:12]                 │ debg ... sleep(501) end
[00:24:12]                 │ debg in navigateTo url = http://localhost:6191/app/home#/
[00:24:12]                 │ debg TestSubjects.exists(statusPageContainer)
[00:24:12]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:24:15]                 │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:24:29]               └-: global dashboard all with transform_user
[00:24:29]                 └-> "before all" hook for "should show the Stack Management nav link"
[00:24:29]                 └-> "before all" hook for "should show the Stack Management nav link"
[00:24:29]                   │ debg set roles = global_dashboard_all,transform_user
[00:24:29]                   │ debg creating user test_user
[00:24:30]                   │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-debian-tests-xxl-1613072248858172940] updated user [test_user]
[00:24:30]                   │ debg created user test_user
[00:24:30]                   │ debg TestSubjects.exists(kibanaChrome)
[00:24:30]                   │ debg Find.existsByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=2500
[00:24:30]                   │ debg TestSubjects.find(kibanaChrome)
[00:24:30]                   │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=100000
[00:24:30]                   │ debg browser[INFO] http://localhost:6191/app/management?_t=1613075954044 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:24:30]                   │
[00:24:30]                   │ debg browser[INFO] http://localhost:6191/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:24:31]                 └-> should show the Stack Management nav link
[00:24:31]                   └-> "before each" hook: global before each for "should show the Stack Management nav link"
[00:24:31]                   │ debg isGlobalLoadingIndicatorVisible
[00:24:31]                   │ debg TestSubjects.exists(globalLoadingIndicator)
[00:24:31]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:24:32]                   │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:24:33]                   │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:24:33]                   │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:24:33]                   │ debg TestSubjects.exists(collapsibleNav)
[00:24:33]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="collapsibleNav"]') with timeout=2500
[00:24:36]                   │ debg --- retry.tryForTime error: [data-test-subj="collapsibleNav"] is not displayed
[00:24:36]                   │ debg TestSubjects.click(toggleNavButton)
[00:24:36]                   │ debg Find.clickByCssSelector('[data-test-subj="toggleNavButton"]') with timeout=10000
[00:24:36]                   │ debg Find.findByCssSelector('[data-test-subj="toggleNavButton"]') with timeout=10000
[00:24:36]                   │ debg TestSubjects.find(collapsibleNav)
[00:24:36]                   │ debg Find.findByCssSelector('[data-test-subj="collapsibleNav"]') with timeout=10000
[00:24:36]                   │ debg Find.existsByCssSelector('[data-test-subj=collapsibleNav] > button') with timeout=2500
[00:24:36]                   │ debg Find.findByCssSelector('[data-test-subj=collapsibleNav] > button') with timeout=10000
[00:24:36]                   │ debg Find.clickByCssSelector('[data-test-subj=collapsibleNav] > button') with timeout=10000
[00:24:36]                   │ debg Find.findByCssSelector('[data-test-subj=collapsibleNav] > button') with timeout=10000
[00:24:36]                   └- ✓ pass  (5.4s) "transform feature controls security global dashboard all with transform_user should show the Stack Management nav link"
[00:24:36]                 └-> should render the "Data" section with Transform
[00:24:36]                   └-> "before each" hook: global before each for "should render the "Data" section with Transform"
[00:24:36]                   │ debg navigating to management url: http://localhost:6191/app/management
[00:24:36]                   │ debg navigate to: http://localhost:6191/app/management
[00:24:36]                   │ debg browser[INFO] http://localhost:6191/app/management?_t=1613075968132 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:24:36]                   │
[00:24:36]                   │ debg browser[INFO] http://localhost:6191/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:24:36]                   │ debg ... sleep(700) start
[00:24:37]                   │ debg ... sleep(700) end
[00:24:37]                   │ debg returned from get, calling refresh
[00:24:38]                   │ debg browser[INFO] http://localhost:6191/app/management?_t=1613075968132 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:24:38]                   │
[00:24:38]                   │ debg browser[INFO] http://localhost:6191/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:24:38]                   │ debg currentUrl = http://localhost:6191/app/management
[00:24:38]                   │          appUrl = http://localhost:6191/app/management
[00:24:38]                   │ debg TestSubjects.find(kibanaChrome)
[00:24:38]                   │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:24:38]                   │ debg ... sleep(501) start
[00:24:39]                   │ debg ... sleep(501) end
[00:24:39]                   │ debg in navigateTo url = http://localhost:6191/app/management
[00:24:39]                   │ debg TestSubjects.exists(statusPageContainer)
[00:24:39]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:24:41]                   │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:24:42]                   │ debg Find.allByCssSelector('.mgtSideBarNav > .euiSideNav__content > .euiSideNavItem') with timeout=10000
[00:24:42]                   │ info Taking screenshot "/dev/shm/workspace/parallel/9/kibana/x-pack/test/functional/screenshots/failure/transform feature controls security global dashboard all with transform_user should render the _Data_ section with Transform.png"
[00:24:42]                   │ info Current URL is: http://localhost:6191/app/management
[00:24:42]                   │ info Saving page source to: /dev/shm/workspace/parallel/9/kibana/x-pack/test/functional/failure_debug/html/transform feature controls security global dashboard all with transform_user should render the _Data_ section with Transform.html
[00:24:42]                   └- ✖ fail: transform feature controls security global dashboard all with transform_user should render the "Data" section with Transform
[00:24:42]                   │      Error: expected [ { sectionId: 'data', sectionLinks: [ 'transform' ] },
[00:24:42]                   │   { sectionId: 'insightsAndAlerting',
[00:24:42]                   │     sectionLinks: [ 'watcher' ] } ] to have a length of 1 but got 2
[00:24:42]                   │       at Assertion.assert (/dev/shm/workspace/parallel/9/kibana/packages/kbn-expect/expect.js:100:11)
[00:24:42]                   │       at Assertion.length (/dev/shm/workspace/parallel/9/kibana/packages/kbn-expect/expect.js:374:8)
[00:24:42]                   │       at Context.<anonymous> (test/functional/apps/transform/feature_controls/transform_security.ts:64:34)
[00:24:42]                   │       at runMicrotasks (<anonymous>)
[00:24:42]                   │       at processTicksAndRejections (internal/process/task_queues.js:93:5)
[00:24:42]                   │       at Object.apply (/dev/shm/workspace/parallel/9/kibana/packages/kbn-test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16)
[00:24:42]                   │ 
[00:24:42]                   │ 

Stack Trace

Error: expected [ { sectionId: 'data', sectionLinks: [ 'transform' ] },
  { sectionId: 'insightsAndAlerting',
    sectionLinks: [ 'watcher' ] } ] to have a length of 1 but got 2
    at Assertion.assert (/dev/shm/workspace/parallel/9/kibana/packages/kbn-expect/expect.js:100:11)
    at Assertion.length (/dev/shm/workspace/parallel/9/kibana/packages/kbn-expect/expect.js:374:8)
    at Context.<anonymous> (test/functional/apps/transform/feature_controls/transform_security.ts:64:34)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at Object.apply (/dev/shm/workspace/parallel/9/kibana/packages/kbn-test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16)

Metrics [docs]

✅ unchanged

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

@nchaulet nchaulet merged commit 94ba974 into elastic:master Feb 11, 2021
@nchaulet nchaulet deleted the fix-90984-install-template-aliases branch February 11, 2021 21:42
nchaulet added a commit to nchaulet/kibana that referenced this pull request Feb 11, 2021
nchaulet added a commit to nchaulet/kibana that referenced this pull request Feb 11, 2021
…template (elastic#91200)

# Conflicts:
#	x-pack/plugins/fleet/server/services/epm/elasticsearch/template/install.test.ts
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 release_note:fix Team:Fleet Team label for Observability Data Collection Fleet team v7.11.1 v7.12.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Fleet] Upgrade to 7.11 failed
5 participants