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] Add support for "Edit Package Policy" extensions using latest version of a package #114914

Merged

Conversation

kpollich
Copy link
Member

@kpollich kpollich commented Oct 13, 2021

Resolves #114785

Ref #112831

Summary

Allows fleet UI extensions to opt into targeting the latest version of a package during edits, rather than the version specified on the current package policy.

How to Test

  1. Create an outdated integration policy for the synthetics package by specifying a version in the "Add Integration" URL, e.g.

http://localhost:5601/{BASE_PATH}/app/fleet/integrations/synthetics-0.1.0/add-integration

Screen Shot 2021-10-18 at 10 44 39 AM

  1. Navigate anywhere else in Fleet, or to the Synthetics integration's settings page and verify that the Synthetics package is auto-updated by referencing Kibana logs outputted during Fleet's "Ensure Preconfiguration" call

Screen Shot 2021-10-18 at 10 46 57 AM

  1. Navigate back to the policies list for Synthetics, and click the integration policy name to navigate to the "Edit Integration" page

Screen Shot 2021-10-18 at 10 48 47 AM

  1. Note that the UI displays "Upgrade" content instead of "Edit", indicating that the package policy will be upgraded

Screen Shot 2021-10-18 at 10 50 57 AM

  1. Address any conflicts and save

  2. Note the policy has been upgraded to 0.3.0

@kpollich kpollich added v8.0.0 release_note:skip Skip the PR/issue when compiling release notes Team:Fleet Team label for Observability Data Collection Fleet team auto-backport Deprecated - use backport:version if exact versions are needed v7.16.0 labels Oct 13, 2021
@kpollich kpollich self-assigned this Oct 13, 2021
@kpollich kpollich requested review from a team as code owners October 13, 2021 20:43
@elasticmachine
Copy link
Contributor

Pinging @elastic/fleet (Team:Fleet)

@botelastic botelastic bot added Team:APM All issues that need APM UI Team support Team:Uptime - DEPRECATED Synthetics & RUM sub-team of Application Observability labels Oct 13, 2021
@elasticmachine
Copy link
Contributor

Pinging @elastic/apm-ui (Team:apm)

@elasticmachine
Copy link
Contributor

Pinging @elastic/uptime (Team:uptime)

@@ -193,6 +193,7 @@ export class Plugin implements IPlugin<PluginSetup, PluginStart, SetupPlugins, S
registerExtension({
package: 'endpoint',
view: 'package-policy-edit',
useLatestPackageVersion: true,
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure this is a requirement for the Endpoint package since Elastic Agent has the ability to dynamically run different versions of the endpoint binary. That said, I can't really think of any downsides here since the user is already going to be pushing out updates to all of their endpoints.

Let me figure out the best person to talk to about this.

Copy link
Contributor

@smith smith left a comment

Choose a reason for hiding this comment

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

APM changes look ok.

Copy link
Contributor

@dominiqueclarke dominiqueclarke left a comment

Choose a reason for hiding this comment

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

I spent time working through by going through the following steps.

  • Create a 0.3.0 package using what's currently published on epr.elastic.co
  • Start package registry locally with version 0.3.1 and point to my local registry
  • Attempt to edit the existing 0.3.0 policy

What I've ran into is that... the policies seem to be auto updating. I do not have it set to keep policies up to date.
image
Screen Shot 2021-10-14 at 9 44 36 PM

Has synthetics auto upgrading been added to main already? Is it on by default for all packages right now?

Because of the auto upgrading, I wasn't able to yet validate the POC without auto upgrading. Please let me know if there are steps I can take to turn off the auto upgrading.

@kpollich
Copy link
Member Author

@dominiqueclarke - Ah yeah it looks like we have a bug here that's causing any package flagged as AUTO_UPDATE in Fleet to also incur an upgrade of policies. That's not the intended behavior. I'll get a PR together against main and ping here when it's merged back into this POC branch.

cc @joshdover - my understanding of the above is correct, right? A package flagged as AUTO_UPDATE should not have its associated integration policies upgraded by default?

https://github.com/elastic/kibana/blob/master/x-pack/plugins/fleet/common/constants/epm.ts#L42-L46

Bug is with this conditional, for reference:

https://github.com/elastic/kibana/blob/master/x-pack/plugins/fleet/server/services/managed_package_policies.ts#L55-L58.

@dominiqueclarke
Copy link
Contributor

@dominiqueclarke - Ah yeah it looks like we have a bug here that's causing any package flagged as AUTO_UPDATE in Fleet to also incur an upgrade of policies. That's not the intended behavior. I'll get a PR together against main and ping here when it's merged back into this POC branch.

cc @joshdover - my understanding of the above is correct, right? A package flagged as AUTO_UPDATE should not have its associated integration policies upgraded by default?

https://github.com/elastic/kibana/blob/master/x-pack/plugins/fleet/common/constants/epm.ts#L42-L46

Bug is with this conditional, for reference:

https://github.com/elastic/kibana/blob/master/x-pack/plugins/fleet/server/services/managed_package_policies.ts#L55-L58.

Thank you for investigating. If it's okay with you, I'd like to rereview after the bug fix goes in.

@kpollich
Copy link
Member Author

@elasticmachine merge upstream

@dominiqueclarke
Copy link
Contributor

This worked as expected when editing an older policy, it successfully updated to a new version.

However, when trying to edit that updated policy again, I'm getting this error, even though it's on the latest version.

Screen Shot 2021-10-18 at 2 22 26 PM

@kpollich
Copy link
Member Author

@elasticmachine merge upstream

@@ -345,29 +363,6 @@ export const EditPackagePolicyForm = memo<{

const { error } = await savePackagePolicy();
if (!error) {
if (isUpgrade) {
Copy link
Member Author

Choose a reason for hiding this comment

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

@joshdover @jen-huang

My change to return a bad request in the case of general failures, and instead allowing only validation errors to be considered non-fatal errors in 61bea60 revealed an interesting issue:

This API request to /upgrade the package policy was always failing before, we just didn't return an error-coded HTTP response. We returned a 200 with success: false in the body. However, the actual "upgrade" process has been and remains successful to this date. Why is that?

What we were actually doing here in the policy editor was:

  1. Run the dry run to get the new "proposed" shape of the package policy w/ any new inputs/streams/variables, and any existing values merged into them
  2. Use the new "proposed" package policy as our backing data model for the policy editor form
  3. Save the policy, including the new values and package version
  4. Call the /upgrade endpoint, and receive an error because the policy has already been saved with the new package version

So, the /upgrade endpoint in its non-dry-run context was essentially useless in this workflow. And it is largely useless overall because we don't support editing at the time of upgrade. A consumer would have to make their edits to the outdated package policy prior to upgrading, which doesn't make sense because it'd result in an invalid package policy. We'd be adding values for variables defined in the new version of the package, then validating them against the outdated version of the package.

Instead, by removing this /upgrade call, we have a workflow that stops at #3 above. So our functionality is entirely the same as it was before, we've just done away with an erroneous call at the end of the process.

It seems to me like maybe we should formalize this and re-do some of the ergonomics of our upgrade process. The only purpose of the non-dry-run upgrade endpoint, at this point, would to be to perform an upgrade with no edits, then allow the user to make edits to their policy after the upgrade is complete. It seems like this is not a realistic user experience based on our implementation in Fleet, so it doesn't make sense to me to even support it. Instead, we should focus on the path of "Generate proposed upgraded policy -> Allow for edits to proposed policy -> Persist proposed policy".

I know this is long but I would love to get some thoughts here. Happy to sync offline as well.

Copy link
Member Author

Choose a reason for hiding this comment

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

The actual upgrade service method still serves a purpose in upgrading package policies automatically, to be clear. We want to attempt an upgrade and fail if there are any conflicts. I am just proposing that we do away with the API endpoint that serves that same purpose.

Copy link
Contributor

Choose a reason for hiding this comment

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

Instead, we should focus on the path of "Generate proposed upgraded policy -> Allow for edits to proposed policy -> Persist proposed policy".

This makes sense to me. It seems this endpoint is only useful in the context of attempting to automate an upgrade without any user intervention. If that's the case, then I think we should remove the ability to specify any edits / input vars in the upgrade endpoint and instead only use it for attempting to upgrade a policy automatically without any edits.

It'd then make sense to move the logic for executing a dry run + getting the new proposed policy to a separate endpoint.

To make sure I'm understanding correctly, if we followed this logic, we'd end up with something like:

  • POST /package-policy/<id>/upgrade for attempting automated upgrades without edits. Does not accept any inputs or request body at all. Will fail if there's a conflict.
  • GET /package-policy/<id>/upgrade for executing a dry run and getting the "proposed package policy"
  • PUT /package-policy/<id> for saving an existing policy, potentially with a higher version. Accepts all input fields. Will fail if validation fails for the given package version.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes that sounds like a great improvement for the layout of this particular API.

POST /package-policy/<id>/upgrade for attempting automated upgrades without edits. Does not accept any inputs or request body at all. Will fail if there's a conflict.

This is how the POST /package-policy/<id>/upgrade endpoint works today.

GET /package-policy/<id>/upgrade for executing a dry run and getting the "proposed package policy"

This is the current functionality of the POST /package-policy/<id>/upgrade { dryRun: true } API call

PUT /package-policy/<id> for saving an existing policy, potentially with a higher version. Accepts all input fields. Will fail if validation fails for the given package version.

This is existing functionality as well. So the only change here should be moving away from the dryRun: true request parameter, and creating a distinct GET /upgrade endpoint wired up to that particular service method instead.

I created #115570 to capture this piece of work. I tagged it as technical debt for now.

@kpollich
Copy link
Member Author

@dominiqueclarke - I just tracked down and pushed a fix for that issue w/ the default name always appearing when editing policies. Everything should be functional here, now.

Copy link
Contributor

@dominiqueclarke dominiqueclarke left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for being so thorough.

@kpollich
Copy link
Member Author

There is one improvement here that I've identified in #115638 to avoid displaying the "Upgrade" UI when the policy is actually up to date.

@kpollich
Copy link
Member Author

@elasticmachine merge upstream

@kpollich
Copy link
Member Author

@elasticmachine merge upstream

@kpollich kpollich removed the request for review from a team October 20, 2021 16:02
@kibanamachine
Copy link
Contributor

💛 Build succeeded, but was flaky


Test Failures

Kibana Pipeline / general / X-Pack Saved Object Tagging Functional Tests.x-pack/test/saved_object_tagging/functional/tests/dashboard_integration·ts.saved objects tagging - functional tests dashboard integration editing allows to select tags for an existing dashboard

Link to Jenkins

Standard Out

Failed Tests Reporter:
  - Test has failed 2 times on tracked branches: https://github.com/elastic/kibana/issues/106547

[00:00:00]     │
[00:00:00]       └-: saved objects tagging - functional tests
[00:00:00]         └-> "before all" hook in "saved objects tagging - functional tests"
[00:00:00]         └-> "before all" hook in "saved objects tagging - functional tests"
[00:00:00]           │ debg creating role kibana_rbac_default_space_read_user
[00:00:00]           │ info [o.e.x.s.a.r.TransportPutRoleAction] [node-01] added role [kibana_rbac_default_space_read_user]
[00:00:00]           │ debg creating role kibana_rbac_default_space_write_user
[00:00:00]           │ info [o.e.x.s.a.r.TransportPutRoleAction] [node-01] added role [kibana_rbac_default_space_write_user]
[00:00:00]           │ debg creating role kibana_rbac_default_space_so_management_write_user
[00:00:00]           │ info [o.e.x.s.a.r.TransportPutRoleAction] [node-01] added role [kibana_rbac_default_space_so_management_write_user]
[00:00:00]           │ debg creating role kibana_rbac_default_space_so_management_read_user
[00:00:00]           │ info [o.e.x.s.a.r.TransportPutRoleAction] [node-01] added role [kibana_rbac_default_space_so_management_read_user]
[00:00:00]           │ debg creating role kibana_rbac_default_space_so_tagging_read_user
[00:00:00]           │ info [o.e.x.s.a.r.TransportPutRoleAction] [node-01] added role [kibana_rbac_default_space_so_tagging_read_user]
[00:00:00]           │ debg creating role kibana_rbac_default_space_so_tagging_write_user
[00:00:00]           │ info [o.e.x.s.a.r.TransportPutRoleAction] [node-01] added role [kibana_rbac_default_space_so_tagging_write_user]
[00:00:00]           │ debg creating role kibana_rbac_default_space_dashboard_read_user
[00:00:00]           │ info [o.e.x.s.a.r.TransportPutRoleAction] [node-01] added role [kibana_rbac_default_space_dashboard_read_user]
[00:00:00]           │ debg creating role kibana_rbac_default_space_dashboard_write_user
[00:00:00]           │ info [o.e.x.s.a.r.TransportPutRoleAction] [node-01] added role [kibana_rbac_default_space_dashboard_write_user]
[00:00:00]           │ debg creating role kibana_rbac_default_space_visualize_read_user
[00:00:00]           │ info [o.e.x.s.a.r.TransportPutRoleAction] [node-01] added role [kibana_rbac_default_space_visualize_read_user]
[00:00:00]           │ debg creating role kibana_rbac_default_space_visualize_write_user
[00:00:00]           │ info [o.e.x.s.a.r.TransportPutRoleAction] [node-01] added role [kibana_rbac_default_space_visualize_write_user]
[00:00:00]           │ debg creating role kibana_rbac_default_space_advanced_settings_read_user
[00:00:00]           │ info [o.e.x.s.a.r.TransportPutRoleAction] [node-01] added role [kibana_rbac_default_space_advanced_settings_read_user]
[00:00:00]           │ debg creating role kibana_rbac_default_space_maps_read_user
[00:00:00]           │ info [o.e.x.s.a.r.TransportPutRoleAction] [node-01] added role [kibana_rbac_default_space_maps_read_user]
[00:00:00]           │ debg creating user not_a_kibana_user
[00:00:00]           │ info [o.e.x.s.a.u.TransportPutUserAction] [node-01] added user [not_a_kibana_user]
[00:00:00]           │ debg created user not_a_kibana_user
[00:00:00]           │ debg creating user a_kibana_rbac_default_space_read_user
[00:00:00]           │ info [o.e.x.s.a.u.TransportPutUserAction] [node-01] added user [a_kibana_rbac_default_space_read_user]
[00:00:00]           │ debg created user a_kibana_rbac_default_space_read_user
[00:00:00]           │ debg creating user a_kibana_rbac_default_space_write_user
[00:00:00]           │ info [o.e.x.s.a.u.TransportPutUserAction] [node-01] added user [a_kibana_rbac_default_space_write_user]
[00:00:00]           │ debg created user a_kibana_rbac_default_space_write_user
[00:00:00]           │ debg creating user a_kibana_rbac_default_space_so_management_write_user
[00:00:00]           │ info [o.e.x.s.a.u.TransportPutUserAction] [node-01] added user [a_kibana_rbac_default_space_so_management_write_user]
[00:00:00]           │ debg created user a_kibana_rbac_default_space_so_management_write_user
[00:00:00]           │ debg creating user a_kibana_rbac_default_space_so_tagging_read_user
[00:00:01]           │ info [o.e.x.s.a.u.TransportPutUserAction] [node-01] added user [a_kibana_rbac_default_space_so_tagging_read_user]
[00:00:01]           │ debg created user a_kibana_rbac_default_space_so_tagging_read_user
[00:00:01]           │ debg creating user a_kibana_rbac_default_space_so_tagging_read_so_management_read_user
[00:00:01]           │ info [o.e.x.s.a.u.TransportPutUserAction] [node-01] added user [a_kibana_rbac_default_space_so_tagging_read_so_management_read_user]
[00:00:01]           │ debg created user a_kibana_rbac_default_space_so_tagging_read_so_management_read_user
[00:00:01]           │ debg creating user a_kibana_rbac_default_space_so_tagging_write_user
[00:00:01]           │ info [o.e.x.s.a.u.TransportPutUserAction] [node-01] added user [a_kibana_rbac_default_space_so_tagging_write_user]
[00:00:01]           │ debg created user a_kibana_rbac_default_space_so_tagging_write_user
[00:00:01]           │ debg creating user a_kibana_rbac_default_space_dashboard_read_user
[00:00:01]           │ info [o.e.x.s.a.u.TransportPutUserAction] [node-01] added user [a_kibana_rbac_default_space_dashboard_read_user]
[00:00:01]           │ debg created user a_kibana_rbac_default_space_dashboard_read_user
[00:00:01]           │ debg creating user a_kibana_rbac_default_space_visualize_read_user
[00:00:01]           │ info [o.e.x.s.a.u.TransportPutUserAction] [node-01] added user [a_kibana_rbac_default_space_visualize_read_user]
[00:00:01]           │ debg created user a_kibana_rbac_default_space_visualize_read_user
[00:00:01]           │ debg creating user a_kibana_rbac_default_space_dashboard_write_user
[00:00:01]           │ info [o.e.x.s.a.u.TransportPutUserAction] [node-01] added user [a_kibana_rbac_default_space_dashboard_write_user]
[00:00:01]           │ debg created user a_kibana_rbac_default_space_dashboard_write_user
[00:00:01]           │ debg creating user a_kibana_rbac_default_space_visualize_write_user
[00:00:01]           │ info [o.e.x.s.a.u.TransportPutUserAction] [node-01] added user [a_kibana_rbac_default_space_visualize_write_user]
[00:00:01]           │ debg created user a_kibana_rbac_default_space_visualize_write_user
[00:00:01]           │ debg creating user a_kibana_rbac_default_space_advanced_settings_read_user
[00:00:01]           │ info [o.e.x.s.a.u.TransportPutUserAction] [node-01] added user [a_kibana_rbac_default_space_advanced_settings_read_user]
[00:00:01]           │ debg created user a_kibana_rbac_default_space_advanced_settings_read_user
[00:00:01]           │ debg creating user a_kibana_rbac_default_space_maps_read_user
[00:00:02]           │ info [o.e.x.s.a.u.TransportPutUserAction] [node-01] added user [a_kibana_rbac_default_space_maps_read_user]
[00:00:02]           │ debg created user a_kibana_rbac_default_space_maps_read_user
[00:05:57]         └-: dashboard integration
[00:05:57]           └-> "before all" hook in "dashboard integration"
[00:05:57]           └-> "before all" hook in "dashboard integration"
[00:05:57]             │ info [x-pack/test/saved_object_tagging/common/fixtures/es_archiver/dashboard] Loading "mappings.json"
[00:05:57]             │ info [x-pack/test/saved_object_tagging/common/fixtures/es_archiver/dashboard] Loading "data.json"
[00:05:57]             │ info [o.e.c.m.MetadataDeleteIndexService] [node-01] [.kibana_task_manager_8.0.0_001/CAgjjgq5Raa4uXQdB8B7DQ] deleting index
[00:05:57]             │ info [o.e.c.m.MetadataDeleteIndexService] [node-01] [.kibana_1/sq2rBRsHTIWpNyVjbyVoNw] deleting index
[00:05:57]             │ info [o.e.c.m.MetadataDeleteIndexService] [node-01] [.kibana_8.0.0_001/l9g157qWSgu1FPKfkwSY_Q] deleting index
[00:05:57]             │ info [x-pack/test/saved_object_tagging/common/fixtures/es_archiver/dashboard] Deleted existing index ".kibana_8.0.0_001"
[00:05:57]             │ info [x-pack/test/saved_object_tagging/common/fixtures/es_archiver/dashboard] Deleted existing index ".kibana_task_manager_8.0.0_001"
[00:05:57]             │ info [x-pack/test/saved_object_tagging/common/fixtures/es_archiver/dashboard] Deleted existing index ".kibana_1"
[00:05:57]             │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.kibana_1] creating index, cause [api], templates [], shards [1]/[0]
[00:05:57]             │ info [o.e.c.r.a.AllocationService] [node-01] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_1][0]]])." previous.health="YELLOW" reason="shards started [[.kibana_1][0]]"
[00:05:57]             │ info [x-pack/test/saved_object_tagging/common/fixtures/es_archiver/dashboard] Created index ".kibana_1"
[00:05:57]             │ debg [x-pack/test/saved_object_tagging/common/fixtures/es_archiver/dashboard] ".kibana_1" settings {"index":{"auto_expand_replicas":"0-1","number_of_replicas":"0","number_of_shards":"1"}}
[00:05:57]             │ info [x-pack/test/saved_object_tagging/common/fixtures/es_archiver/dashboard] Indexed 12 docs into ".kibana"
[00:05:57]             │ debg Migrating saved objects
[00:05:57]             │ proc [kibana] [2021-10-20T17:23:24.906+00:00][INFO ][savedobjects-service] [.kibana_task_manager] INIT -> CREATE_NEW_TARGET. took: 3ms.
[00:05:57]             │ proc [kibana] [2021-10-20T17:23:24.908+00:00][INFO ][savedobjects-service] [.kibana] INIT -> WAIT_FOR_YELLOW_SOURCE. took: 6ms.
[00:05:58]             │ proc [kibana] [2021-10-20T17:23:24.910+00:00][INFO ][savedobjects-service] [.kibana] WAIT_FOR_YELLOW_SOURCE -> CHECK_UNKNOWN_DOCUMENTS. took: 2ms.
[00:05:58]             │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.kibana_task_manager_8.0.0_001] creating index, cause [api], templates [], shards [1]/[1]
[00:05:58]             │ info [o.e.c.r.a.AllocationService] [node-01] updating number_of_replicas to [0] for indices [.kibana_task_manager_8.0.0_001]
[00:05:58]             │ proc [kibana] [2021-10-20T17:23:24.916+00:00][INFO ][savedobjects-service] [.kibana] CHECK_UNKNOWN_DOCUMENTS -> SET_SOURCE_WRITE_BLOCK. took: 6ms.
[00:05:58]             │ info [o.e.c.m.MetadataIndexStateService] [node-01] adding block write to indices [[.kibana_1/azeAkjxDRKK7mwvqP0Vybw]]
[00:05:58]             │ info [o.e.c.r.a.AllocationService] [node-01] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_task_manager_8.0.0_001][0]]])." previous.health="YELLOW" reason="shards started [[.kibana_task_manager_8.0.0_001][0]]"
[00:05:58]             │ info [o.e.c.m.MetadataIndexStateService] [node-01] completed adding block write to indices [.kibana_1]
[00:05:58]             │ proc [kibana] [2021-10-20T17:23:25.002+00:00][INFO ][savedobjects-service] [.kibana_task_manager] CREATE_NEW_TARGET -> MARK_VERSION_INDEX_READY. took: 96ms.
[00:05:58]             │ proc [kibana] [2021-10-20T17:23:25.026+00:00][INFO ][savedobjects-service] [.kibana] SET_SOURCE_WRITE_BLOCK -> CALCULATE_EXCLUDE_FILTERS. took: 110ms.
[00:05:58]             │ proc [kibana] [2021-10-20T17:23:25.031+00:00][INFO ][savedobjects-service] [.kibana] CALCULATE_EXCLUDE_FILTERS -> CREATE_REINDEX_TEMP. took: 5ms.
[00:05:58]             │ proc [kibana] [2021-10-20T17:23:25.054+00:00][INFO ][savedobjects-service] [.kibana_task_manager] MARK_VERSION_INDEX_READY -> DONE. took: 52ms.
[00:05:58]             │ proc [kibana] [2021-10-20T17:23:25.055+00:00][INFO ][savedobjects-service] [.kibana_task_manager] Migration completed after 152ms
[00:05:58]             │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.kibana_8.0.0_reindex_temp] creating index, cause [api], templates [], shards [1]/[1]
[00:05:58]             │ info [o.e.c.r.a.AllocationService] [node-01] updating number_of_replicas to [0] for indices [.kibana_8.0.0_reindex_temp]
[00:05:58]             │ info [o.e.c.r.a.AllocationService] [node-01] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_8.0.0_reindex_temp][0]]])." previous.health="YELLOW" reason="shards started [[.kibana_8.0.0_reindex_temp][0]]"
[00:05:58]             │ proc [kibana] [2021-10-20T17:23:25.123+00:00][INFO ][savedobjects-service] [.kibana] CREATE_REINDEX_TEMP -> REINDEX_SOURCE_TO_TEMP_OPEN_PIT. took: 92ms.
[00:05:58]             │ proc [kibana] [2021-10-20T17:23:25.127+00:00][INFO ][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_OPEN_PIT -> REINDEX_SOURCE_TO_TEMP_READ. took: 4ms.
[00:05:58]             │ proc [kibana] [2021-10-20T17:23:25.135+00:00][INFO ][savedobjects-service] [.kibana] Starting to process 12 documents.
[00:05:58]             │ proc [kibana] [2021-10-20T17:23:25.136+00:00][INFO ][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_READ -> REINDEX_SOURCE_TO_TEMP_TRANSFORM. took: 8ms.
[00:05:58]             │ proc [kibana] [2021-10-20T17:23:25.145+00:00][INFO ][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_TRANSFORM -> REINDEX_SOURCE_TO_TEMP_INDEX_BULK. took: 10ms.
[00:05:58]             │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_8.0.0_reindex_temp/gl0P9nPKRFyBCnFycJ9Phw] update_mapping [_doc]
[00:05:58]             │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_8.0.0_reindex_temp/gl0P9nPKRFyBCnFycJ9Phw] update_mapping [_doc]
[00:05:58]             │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_8.0.0_reindex_temp/gl0P9nPKRFyBCnFycJ9Phw] update_mapping [_doc]
[00:05:58]             │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_8.0.0_reindex_temp/gl0P9nPKRFyBCnFycJ9Phw] update_mapping [_doc]
[00:05:58]             │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_8.0.0_reindex_temp/gl0P9nPKRFyBCnFycJ9Phw] update_mapping [_doc]
[00:05:58]             │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_8.0.0_reindex_temp/gl0P9nPKRFyBCnFycJ9Phw] update_mapping [_doc]
[00:05:58]             │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_8.0.0_reindex_temp/gl0P9nPKRFyBCnFycJ9Phw] update_mapping [_doc]
[00:05:58]             │ proc [kibana] [2021-10-20T17:23:25.395+00:00][INFO ][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_INDEX_BULK -> REINDEX_SOURCE_TO_TEMP_READ. took: 250ms.
[00:05:58]             │ proc [kibana] [2021-10-20T17:23:25.401+00:00][INFO ][savedobjects-service] [.kibana] Processed 12 documents out of 12.
[00:05:58]             │ proc [kibana] [2021-10-20T17:23:25.402+00:00][INFO ][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_READ -> REINDEX_SOURCE_TO_TEMP_CLOSE_PIT. took: 6ms.
[00:05:58]             │ proc [kibana] [2021-10-20T17:23:25.404+00:00][INFO ][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_CLOSE_PIT -> SET_TEMP_WRITE_BLOCK. took: 3ms.
[00:05:58]             │ info [o.e.c.m.MetadataIndexStateService] [node-01] adding block write to indices [[.kibana_8.0.0_reindex_temp/gl0P9nPKRFyBCnFycJ9Phw]]
[00:05:58]             │ info [o.e.c.m.MetadataIndexStateService] [node-01] completed adding block write to indices [.kibana_8.0.0_reindex_temp]
[00:05:58]             │ proc [kibana] [2021-10-20T17:23:25.462+00:00][INFO ][savedobjects-service] [.kibana] SET_TEMP_WRITE_BLOCK -> CLONE_TEMP_TO_TARGET. took: 57ms.
[00:05:58]             │ info [o.e.c.m.MetadataCreateIndexService] [node-01] applying create index request using existing index [.kibana_8.0.0_reindex_temp] metadata
[00:05:58]             │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.kibana_8.0.0_001] creating index, cause [clone_index], templates [], shards [1]/[1]
[00:05:58]             │ info [o.e.c.r.a.AllocationService] [node-01] updating number_of_replicas to [0] for indices [.kibana_8.0.0_001]
[00:05:58]             │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_8.0.0_001/BgVerGtGTOq1cqwa5Vlepw] create_mapping
[00:05:58]             │ info [o.e.c.r.a.AllocationService] [node-01] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_8.0.0_001][0]]])." previous.health="YELLOW" reason="shards started [[.kibana_8.0.0_001][0]]"
[00:05:58]             │ proc [kibana] [2021-10-20T17:23:25.606+00:00][INFO ][savedobjects-service] [.kibana] CLONE_TEMP_TO_TARGET -> REFRESH_TARGET. took: 145ms.
[00:05:58]             │ proc [kibana] [2021-10-20T17:23:25.610+00:00][INFO ][savedobjects-service] [.kibana] REFRESH_TARGET -> OUTDATED_DOCUMENTS_SEARCH_OPEN_PIT. took: 4ms.
[00:05:58]             │ proc [kibana] [2021-10-20T17:23:25.613+00:00][INFO ][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_SEARCH_OPEN_PIT -> OUTDATED_DOCUMENTS_SEARCH_READ. took: 3ms.
[00:05:58]             │ proc [kibana] [2021-10-20T17:23:25.621+00:00][INFO ][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_SEARCH_READ -> OUTDATED_DOCUMENTS_SEARCH_CLOSE_PIT. took: 8ms.
[00:05:58]             │ proc [kibana] [2021-10-20T17:23:25.624+00:00][INFO ][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_SEARCH_CLOSE_PIT -> UPDATE_TARGET_MAPPINGS. took: 3ms.
[00:05:58]             │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_8.0.0_001/BgVerGtGTOq1cqwa5Vlepw] update_mapping [_doc]
[00:05:58]             │ proc [kibana] [2021-10-20T17:23:25.716+00:00][INFO ][savedobjects-service] [.kibana] UPDATE_TARGET_MAPPINGS -> UPDATE_TARGET_MAPPINGS_WAIT_FOR_TASK. took: 92ms.
[00:05:58]             │ info [o.e.t.LoggingTaskListener] [node-01] 8008 finished with response BulkByScrollResponse[took=31.9ms,timed_out=false,sliceId=null,updated=12,created=0,deleted=0,batches=1,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:05:58]             │ proc [kibana] [2021-10-20T17:23:25.822+00:00][INFO ][savedobjects-service] [.kibana] UPDATE_TARGET_MAPPINGS_WAIT_FOR_TASK -> MARK_VERSION_INDEX_READY. took: 106ms.
[00:05:58]             │ info [o.e.c.m.MetadataDeleteIndexService] [node-01] [.kibana_8.0.0_reindex_temp/gl0P9nPKRFyBCnFycJ9Phw] deleting index
[00:05:58]             │ proc [kibana] [2021-10-20T17:23:25.870+00:00][INFO ][savedobjects-service] [.kibana] MARK_VERSION_INDEX_READY -> DONE. took: 48ms.
[00:05:58]             │ proc [kibana] [2021-10-20T17:23:25.870+00:00][INFO ][savedobjects-service] [.kibana] Migration completed after 968ms
[00:05:58]             │ debg [x-pack/test/saved_object_tagging/common/fixtures/es_archiver/dashboard] Migrated Kibana index after loading Kibana data
[00:05:58]             │ debg [x-pack/test/saved_object_tagging/common/fixtures/es_archiver/dashboard] Ensured that default space exists in .kibana
[00:05:58]             │ info [x-pack/test/saved_object_tagging/common/fixtures/es_archiver/logstash_functional] Loading "mappings.json"
[00:05:58]             │ info [x-pack/test/saved_object_tagging/common/fixtures/es_archiver/logstash_functional] Loading "data.json.gz"
[00:05:58]             │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [logstash-2015.09.22] creating index, cause [api], templates [], shards [1]/[0]
[00:05:59]             │ info [o.e.c.r.a.AllocationService] [node-01] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[logstash-2015.09.22][0]]])." previous.health="YELLOW" reason="shards started [[logstash-2015.09.22][0]]"
[00:05:59]             │ info [x-pack/test/saved_object_tagging/common/fixtures/es_archiver/logstash_functional] Created index "logstash-2015.09.22"
[00:05:59]             │ debg [x-pack/test/saved_object_tagging/common/fixtures/es_archiver/logstash_functional] "logstash-2015.09.22" settings {"index":{"analysis":{"analyzer":{"url":{"max_token_length":"1000","tokenizer":"uax_url_email","type":"standard"}}},"number_of_replicas":"0","number_of_shards":"1"}}
[00:05:59]             │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [logstash-2015.09.20] creating index, cause [api], templates [], shards [1]/[0]
[00:05:59]             │ info [o.e.c.r.a.AllocationService] [node-01] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[logstash-2015.09.20][0]]])." previous.health="YELLOW" reason="shards started [[logstash-2015.09.20][0]]"
[00:05:59]             │ info [x-pack/test/saved_object_tagging/common/fixtures/es_archiver/logstash_functional] Created index "logstash-2015.09.20"
[00:05:59]             │ debg [x-pack/test/saved_object_tagging/common/fixtures/es_archiver/logstash_functional] "logstash-2015.09.20" settings {"index":{"analysis":{"analyzer":{"url":{"max_token_length":"1000","tokenizer":"uax_url_email","type":"standard"}}},"number_of_replicas":"0","number_of_shards":"1"}}
[00:05:59]             │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [logstash-2015.09.21] creating index, cause [api], templates [], shards [1]/[0]
[00:05:59]             │ info [o.e.c.r.a.AllocationService] [node-01] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[logstash-2015.09.21][0]]])." previous.health="YELLOW" reason="shards started [[logstash-2015.09.21][0]]"
[00:05:59]             │ info [x-pack/test/saved_object_tagging/common/fixtures/es_archiver/logstash_functional] Created index "logstash-2015.09.21"
[00:05:59]             │ debg [x-pack/test/saved_object_tagging/common/fixtures/es_archiver/logstash_functional] "logstash-2015.09.21" settings {"index":{"analysis":{"analyzer":{"url":{"max_token_length":"1000","tokenizer":"uax_url_email","type":"standard"}}},"number_of_replicas":"0","number_of_shards":"1"}}
[00:06:08]             │ info progress: 9929
[00:06:11]             │ info [x-pack/test/saved_object_tagging/common/fixtures/es_archiver/logstash_functional] Indexed 4633 docs into "logstash-2015.09.22"
[00:06:11]             │ info [x-pack/test/saved_object_tagging/common/fixtures/es_archiver/logstash_functional] Indexed 4757 docs into "logstash-2015.09.20"
[00:06:11]             │ info [x-pack/test/saved_object_tagging/common/fixtures/es_archiver/logstash_functional] Indexed 4614 docs into "logstash-2015.09.21"
[00:07:53]           └-: editing
[00:07:53]             └-> "before all" hook for "allows to select tags for an existing dashboard"
[00:07:53]             └-> allows to select tags for an existing dashboard
[00:07:53]               └-> "before each" hook: global before each for "allows to select tags for an existing dashboard"
[00:07:53]               └-> "before each" hook for "allows to select tags for an existing dashboard"
[00:07:53]                 │ debg navigating to dashboard url: http://localhost:61171/app/dashboards#/list
[00:07:53]                 │ debg navigate to: http://localhost:61171/app/dashboards#/list
[00:07:53]                 │ debg browser[INFO] http://localhost:61171/app/dashboards?_t=1634750719960#/list 281 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:07:53]                 │
[00:07:53]                 │ debg browser[INFO] http://localhost:61171/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:07:53]                 │ debg ... sleep(700) start
[00:07:53]                 │ debg ... sleep(700) end
[00:07:53]                 │ debg returned from get, calling refresh
[00:07:54]                 │ debg browser[INFO] http://localhost:61171/app/dashboards?_t=1634750719960#/list 281 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:07:54]                 │
[00:07:54]                 │ debg browser[INFO] http://localhost:61171/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:07:55]                 │ debg currentUrl = http://localhost:61171/app/dashboards#/list
[00:07:55]                 │          appUrl = http://localhost:61171/app/dashboards#/list
[00:07:55]                 │ debg TestSubjects.find(kibanaChrome)
[00:07:55]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:07:55]                 │ debg ... sleep(501) start
[00:07:56]                 │ debg ... sleep(501) end
[00:07:56]                 │ debg in navigateTo url = http://localhost:61171/app/dashboards#/list?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-15m,to:now))
[00:07:56]                 │ debg --- retry.tryForTime error: URL changed, waiting for it to settle
[00:07:56]                 │ debg ... sleep(501) start
[00:07:57]                 │ debg ... sleep(501) end
[00:07:57]                 │ debg in navigateTo url = http://localhost:61171/app/dashboards#/list?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-15m,to:now))
[00:07:57]                 │ debg gotoDashboardLandingPage
[00:07:57]                 │ debg onDashboardLandingPage
[00:07:57]                 │ debg TestSubjects.exists(dashboardLandingPage)
[00:07:57]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="dashboardLandingPage"]') with timeout=5000
[00:07:57]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="itemsInMemTable"]:not(.euiBasicTable-loading)') with timeout=2500
[00:07:57]               │ debg TestSubjects.click(dashboardListingTitleLink-dashboard-4-with-real-data-(tag-1))
[00:07:57]               │ debg Find.clickByCssSelector('[data-test-subj="dashboardListingTitleLink-dashboard-4-with-real-data-(tag-1)"]') with timeout=10000
[00:07:57]               │ debg Find.findByCssSelector('[data-test-subj="dashboardListingTitleLink-dashboard-4-with-real-data-(tag-1)"]') with timeout=10000
[00:07:57]               │ debg Switching to edit mode
[00:07:57]               │ debg TestSubjects.exists(dashboardEditMode)
[00:07:57]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="dashboardEditMode"]') with timeout=2500
[00:07:57]               │ debg browser[INFO] http://localhost:61171/app/dashboards#/view/61c58ad0-3dd3-11e8-b2b9-5d5dc1715159?_g=(filters:!()) 281 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:07:57]               │
[00:07:57]               │ debg browser[INFO] http://localhost:61171/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:07:59]               │ debg --- retry.tryForTime error: [data-test-subj="dashboardEditMode"] is not displayed
[00:08:00]               │ debg browser[WARNING] http://localhost:61171/47388/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js 20:68219 "Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
[00:08:00]               │      Arguments: 
[00:08:00]               │      [0] _isAMomentObject: true, _isUTC: false, _useUTC: false, _l: undefined, _i: Mon Apr 09 2018 17:56:08 GMT-0400, _f: undefined, _strict: undefined, _locale: [object Object]
[00:08:00]               │      Error
[00:08:00]               │          at Function.createFromInputFallback (http://localhost:61171/47388/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:21:68648)
[00:08:00]               │          at http://localhost:61171/47388/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:21:88824
[00:08:00]               │          at http://localhost:61171/47388/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:21:88875
[00:08:00]               │          at Ot (http://localhost:61171/47388/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:21:89187)
[00:08:00]               │          at wt (http://localhost:61171/47388/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:21:89448)
[00:08:00]               │          at Mt (http://localhost:61171/47388/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:21:89530)
[00:08:00]               │          at r (http://localhost:61171/47388/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:21:65570)
[00:08:00]               │          at Object.l [as parse] (http://localhost:61171/47388/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:340:135143)
[00:08:00]               │          at http://localhost:61171/47388/bundles/plugin/data/kibana/data.plugin.js:1:130901
[00:08:00]               │          at t._next (http://localhost:61171/47388/bundles/plugin/data/kibana/data.plugin.js:1:130975)"
[00:08:00]               │ debg Waiting up to 20000ms for in edit mode...
[00:08:00]               │ debg TestSubjects.findAll(embeddablePanel)
[00:08:00]               │ debg Find.allByCssSelector('[data-test-subj="embeddablePanel"]') with timeout=2500
[00:08:00]               │ warn browser[SEVERE] http://localhost:61171/api/index_patterns/_fields_for_wildcard?pattern=animals-*&meta_fields=_source&meta_fields=_id&meta_fields=_type&meta_fields=_index&meta_fields=_score - Failed to load resource: the server responded with a status of 404 (Not Found)
[00:08:00]               │ debg TestSubjects.findAll(embeddablePanelToggleMenuIcon)
[00:08:00]               │ debg Find.allByCssSelector('[data-test-subj="embeddablePanelToggleMenuIcon"]') with timeout=2500
[00:08:00]               │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.async-search] creating index, cause [auto(bulk api)], templates [], shards [1]/[0]
[00:08:00]               │ info [o.e.c.r.a.AllocationService] [node-01] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.async-search][0]]])." previous.health="YELLOW" reason="shards started [[.async-search][0]]"
[00:08:01]               │ debg TestSubjects.findAll(embeddablePanel)
[00:08:01]               │ debg Find.allByCssSelector('[data-test-subj="embeddablePanel"]') with timeout=2500
[00:08:01]               │ debg TestSubjects.findAll(embeddablePanelToggleMenuIcon)
[00:08:01]               │ debg Find.allByCssSelector('[data-test-subj="embeddablePanelToggleMenuIcon"]') with timeout=2500
[00:08:01]               │ debg TestSubjects.findAll(embeddablePanel)
[00:08:01]               │ debg Find.allByCssSelector('[data-test-subj="embeddablePanel"]') with timeout=2500
[00:08:01]               │ debg TestSubjects.findAll(embeddablePanelToggleMenuIcon)
[00:08:01]               │ debg Find.allByCssSelector('[data-test-subj="embeddablePanelToggleMenuIcon"]') with timeout=2500
[00:08:01]               │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_8.0.0_001/BgVerGtGTOq1cqwa5Vlepw] update_mapping [_doc]
[00:08:02]               │ debg TestSubjects.findAll(embeddablePanel)
[00:08:02]               │ debg Find.allByCssSelector('[data-test-subj="embeddablePanel"]') with timeout=2500
[00:08:02]               │ debg TestSubjects.findAll(embeddablePanelToggleMenuIcon)
[00:08:02]               │ debg Find.allByCssSelector('[data-test-subj="embeddablePanelToggleMenuIcon"]') with timeout=2500
[00:08:02]               │ debg TestSubjects.findAll(embeddablePanel)
[00:08:02]               │ debg Find.allByCssSelector('[data-test-subj="embeddablePanel"]') with timeout=2500
[00:08:02]               │ debg TestSubjects.findAll(embeddablePanelToggleMenuIcon)
[00:08:02]               │ debg Find.allByCssSelector('[data-test-subj="embeddablePanelToggleMenuIcon"]') with timeout=2500
[00:08:03]               │ debg TestSubjects.findAll(embeddablePanel)
[00:08:03]               │ debg Find.allByCssSelector('[data-test-subj="embeddablePanel"]') with timeout=2500
[00:08:03]               │ debg TestSubjects.findAll(embeddablePanelToggleMenuIcon)
[00:08:03]               │ debg Find.allByCssSelector('[data-test-subj="embeddablePanelToggleMenuIcon"]') with timeout=2500
[00:08:04]               │ debg TestSubjects.findAll(embeddablePanel)
[00:08:04]               │ debg Find.allByCssSelector('[data-test-subj="embeddablePanel"]') with timeout=2500
[00:08:04]               │ debg TestSubjects.findAll(embeddablePanelToggleMenuIcon)
[00:08:04]               │ debg Find.allByCssSelector('[data-test-subj="embeddablePanelToggleMenuIcon"]') with timeout=2500
[00:08:04]               │ debg TestSubjects.findAll(embeddablePanel)
[00:08:04]               │ debg Find.allByCssSelector('[data-test-subj="embeddablePanel"]') with timeout=2500
[00:08:04]               │ debg TestSubjects.findAll(embeddablePanelToggleMenuIcon)
[00:08:04]               │ debg Find.allByCssSelector('[data-test-subj="embeddablePanelToggleMenuIcon"]') with timeout=2500
[00:08:05]               │ debg TestSubjects.findAll(embeddablePanel)
[00:08:05]               │ debg Find.allByCssSelector('[data-test-subj="embeddablePanel"]') with timeout=2500
[00:08:05]               │ debg TestSubjects.findAll(embeddablePanelToggleMenuIcon)
[00:08:05]               │ debg Find.allByCssSelector('[data-test-subj="embeddablePanelToggleMenuIcon"]') with timeout=2500
[00:08:05]               │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_8.0.0_001/BgVerGtGTOq1cqwa5Vlepw] update_mapping [_doc]
[00:08:05]               │ debg TestSubjects.findAll(embeddablePanel)
[00:08:05]               │ debg Find.allByCssSelector('[data-test-subj="embeddablePanel"]') with timeout=2500
[00:08:05]               │ debg TestSubjects.findAll(embeddablePanelToggleMenuIcon)
[00:08:05]               │ debg Find.allByCssSelector('[data-test-subj="embeddablePanelToggleMenuIcon"]') with timeout=2500
[00:08:06]               │ debg TestSubjects.findAll(embeddablePanel)
[00:08:06]               │ debg Find.allByCssSelector('[data-test-subj="embeddablePanel"]') with timeout=2500
[00:08:06]               │ debg TestSubjects.findAll(embeddablePanelToggleMenuIcon)
[00:08:06]               │ debg Find.allByCssSelector('[data-test-subj="embeddablePanelToggleMenuIcon"]') with timeout=2500
[00:08:06]               │ debg TestSubjects.findAll(embeddablePanel)
[00:08:06]               │ debg Find.allByCssSelector('[data-test-subj="embeddablePanel"]') with timeout=2500
[00:08:07]               │ debg TestSubjects.findAll(embeddablePanelToggleMenuIcon)
[00:08:07]               │ debg Find.allByCssSelector('[data-test-subj="embeddablePanelToggleMenuIcon"]') with timeout=2500
[00:08:07]               │ debg TestSubjects.findAll(embeddablePanel)
[00:08:07]               │ debg Find.allByCssSelector('[data-test-subj="embeddablePanel"]') with timeout=2500
[00:08:07]               │ debg TestSubjects.findAll(embeddablePanelToggleMenuIcon)
[00:08:07]               │ debg Find.allByCssSelector('[data-test-subj="embeddablePanelToggleMenuIcon"]') with timeout=2500
[00:08:08]               │ debg TestSubjects.findAll(embeddablePanel)
[00:08:08]               │ debg Find.allByCssSelector('[data-test-subj="embeddablePanel"]') with timeout=2500
[00:08:08]               │ debg TestSubjects.findAll(embeddablePanelToggleMenuIcon)
[00:08:08]               │ debg Find.allByCssSelector('[data-test-subj="embeddablePanelToggleMenuIcon"]') with timeout=2500
[00:08:08]               │ debg TestSubjects.findAll(embeddablePanel)
[00:08:08]               │ debg Find.allByCssSelector('[data-test-subj="embeddablePanel"]') with timeout=2500
[00:08:08]               │ debg TestSubjects.findAll(embeddablePanelToggleMenuIcon)
[00:08:08]               │ debg Find.allByCssSelector('[data-test-subj="embeddablePanelToggleMenuIcon"]') with timeout=2500
[00:08:09]               │ debg TestSubjects.findAll(embeddablePanel)
[00:08:09]               │ debg Find.allByCssSelector('[data-test-subj="embeddablePanel"]') with timeout=2500
[00:08:09]               │ debg TestSubjects.findAll(embeddablePanelToggleMenuIcon)
[00:08:09]               │ debg Find.allByCssSelector('[data-test-subj="embeddablePanelToggleMenuIcon"]') with timeout=2500
[00:08:09]               │ debg TestSubjects.findAll(embeddablePanel)
[00:08:09]               │ debg Find.allByCssSelector('[data-test-subj="embeddablePanel"]') with timeout=2500
[00:08:09]               │ debg TestSubjects.findAll(embeddablePanelToggleMenuIcon)
[00:08:09]               │ debg Find.allByCssSelector('[data-test-subj="embeddablePanelToggleMenuIcon"]') with timeout=2500
[00:08:10]               │ debg TestSubjects.findAll(embeddablePanel)
[00:08:10]               │ debg Find.allByCssSelector('[data-test-subj="embeddablePanel"]') with timeout=2500
[00:08:10]               │ debg TestSubjects.findAll(embeddablePanelToggleMenuIcon)
[00:08:10]               │ debg Find.allByCssSelector('[data-test-subj="embeddablePanelToggleMenuIcon"]') with timeout=2500
[00:08:11]               │ debg TestSubjects.findAll(embeddablePanel)
[00:08:11]               │ debg Find.allByCssSelector('[data-test-subj="embeddablePanel"]') with timeout=2500
[00:08:11]               │ debg TestSubjects.findAll(embeddablePanelToggleMenuIcon)
[00:08:11]               │ debg Find.allByCssSelector('[data-test-subj="embeddablePanelToggleMenuIcon"]') with timeout=2500
[00:08:11]               │ debg TestSubjects.findAll(embeddablePanel)
[00:08:11]               │ debg Find.allByCssSelector('[data-test-subj="embeddablePanel"]') with timeout=2500
[00:08:11]               │ debg TestSubjects.findAll(embeddablePanelToggleMenuIcon)
[00:08:11]               │ debg Find.allByCssSelector('[data-test-subj="embeddablePanelToggleMenuIcon"]') with timeout=2500
[00:08:12]               │ debg TestSubjects.findAll(embeddablePanel)
[00:08:12]               │ debg Find.allByCssSelector('[data-test-subj="embeddablePanel"]') with timeout=2500
[00:08:12]               │ debg TestSubjects.findAll(embeddablePanelToggleMenuIcon)
[00:08:12]               │ debg Find.allByCssSelector('[data-test-subj="embeddablePanelToggleMenuIcon"]') with timeout=2500
[00:08:12]               │ debg TestSubjects.findAll(embeddablePanel)
[00:08:12]               │ debg Find.allByCssSelector('[data-test-subj="embeddablePanel"]') with timeout=2500
[00:08:12]               │ debg TestSubjects.findAll(embeddablePanelToggleMenuIcon)
[00:08:12]               │ debg Find.allByCssSelector('[data-test-subj="embeddablePanelToggleMenuIcon"]') with timeout=2500
[00:08:13]               │ debg TestSubjects.findAll(embeddablePanel)
[00:08:13]               │ debg Find.allByCssSelector('[data-test-subj="embeddablePanel"]') with timeout=2500
[00:08:13]               │ debg TestSubjects.findAll(embeddablePanelToggleMenuIcon)
[00:08:13]               │ debg Find.allByCssSelector('[data-test-subj="embeddablePanelToggleMenuIcon"]') with timeout=2500
[00:08:13]               │ debg TestSubjects.findAll(embeddablePanel)
[00:08:13]               │ debg Find.allByCssSelector('[data-test-subj="embeddablePanel"]') with timeout=2500
[00:08:13]               │ debg TestSubjects.findAll(embeddablePanelToggleMenuIcon)
[00:08:13]               │ debg Find.allByCssSelector('[data-test-subj="embeddablePanelToggleMenuIcon"]') with timeout=2500
[00:08:14]               │ debg TestSubjects.findAll(embeddablePanel)
[00:08:14]               │ debg Find.allByCssSelector('[data-test-subj="embeddablePanel"]') with timeout=2500
[00:08:14]               │ debg TestSubjects.findAll(embeddablePanelToggleMenuIcon)
[00:08:14]               │ debg Find.allByCssSelector('[data-test-subj="embeddablePanelToggleMenuIcon"]') with timeout=2500
[00:08:15]               │ debg TestSubjects.findAll(embeddablePanel)
[00:08:15]               │ debg Find.allByCssSelector('[data-test-subj="embeddablePanel"]') with timeout=2500
[00:08:15]               │ debg TestSubjects.findAll(embeddablePanelToggleMenuIcon)
[00:08:15]               │ debg Find.allByCssSelector('[data-test-subj="embeddablePanelToggleMenuIcon"]') with timeout=2500
[00:08:15]               │ debg TestSubjects.findAll(embeddablePanel)
[00:08:15]               │ debg Find.allByCssSelector('[data-test-subj="embeddablePanel"]') with timeout=2500
[00:08:15]               │ debg TestSubjects.findAll(embeddablePanelToggleMenuIcon)
[00:08:15]               │ debg Find.allByCssSelector('[data-test-subj="embeddablePanelToggleMenuIcon"]') with timeout=2500
[00:08:16]               │ debg TestSubjects.findAll(embeddablePanel)
[00:08:16]               │ debg Find.allByCssSelector('[data-test-subj="embeddablePanel"]') with timeout=2500
[00:08:16]               │ debg TestSubjects.findAll(embeddablePanelToggleMenuIcon)
[00:08:16]               │ debg Find.allByCssSelector('[data-test-subj="embeddablePanelToggleMenuIcon"]') with timeout=2500
[00:08:16]               │ debg TestSubjects.findAll(embeddablePanel)
[00:08:16]               │ debg Find.allByCssSelector('[data-test-subj="embeddablePanel"]') with timeout=2500
[00:08:16]               │ debg TestSubjects.findAll(embeddablePanelToggleMenuIcon)
[00:08:16]               │ debg Find.allByCssSelector('[data-test-subj="embeddablePanelToggleMenuIcon"]') with timeout=2500
[00:08:17]               │ debg TestSubjects.findAll(embeddablePanel)
[00:08:17]               │ debg Find.allByCssSelector('[data-test-subj="embeddablePanel"]') with timeout=2500
[00:08:17]               │ debg TestSubjects.findAll(embeddablePanelToggleMenuIcon)
[00:08:17]               │ debg Find.allByCssSelector('[data-test-subj="embeddablePanelToggleMenuIcon"]') with timeout=2500
[00:08:17]               │ debg TestSubjects.findAll(embeddablePanel)
[00:08:17]               │ debg Find.allByCssSelector('[data-test-subj="embeddablePanel"]') with timeout=2500
[00:08:17]               │ debg TestSubjects.findAll(embeddablePanelToggleMenuIcon)
[00:08:17]               │ debg Find.allByCssSelector('[data-test-subj="embeddablePanelToggleMenuIcon"]') with timeout=2500
[00:08:18]               │ debg TestSubjects.findAll(embeddablePanel)
[00:08:18]               │ debg Find.allByCssSelector('[data-test-subj="embeddablePanel"]') with timeout=2500
[00:08:18]               │ debg TestSubjects.findAll(embeddablePanelToggleMenuIcon)
[00:08:18]               │ debg Find.allByCssSelector('[data-test-subj="embeddablePanelToggleMenuIcon"]') with timeout=2500
[00:08:19]               │ debg TestSubjects.findAll(embeddablePanel)
[00:08:19]               │ debg Find.allByCssSelector('[data-test-subj="embeddablePanel"]') with timeout=2500
[00:08:19]               │ debg TestSubjects.findAll(embeddablePanelToggleMenuIcon)
[00:08:19]               │ debg Find.allByCssSelector('[data-test-subj="embeddablePanelToggleMenuIcon"]') with timeout=2500
[00:08:19]               │ debg TestSubjects.findAll(embeddablePanel)
[00:08:19]               │ debg Find.allByCssSelector('[data-test-subj="embeddablePanel"]') with timeout=2500
[00:08:19]               │ debg TestSubjects.findAll(embeddablePanelToggleMenuIcon)
[00:08:19]               │ debg Find.allByCssSelector('[data-test-subj="embeddablePanelToggleMenuIcon"]') with timeout=2500
[00:08:20]               │ debg TestSubjects.findAll(embeddablePanel)
[00:08:20]               │ debg Find.allByCssSelector('[data-test-subj="embeddablePanel"]') with timeout=2500
[00:08:20]               │ debg TestSubjects.findAll(embeddablePanelToggleMenuIcon)
[00:08:20]               │ debg Find.allByCssSelector('[data-test-subj="embeddablePanelToggleMenuIcon"]') with timeout=2500
[00:08:20]               │ info Taking screenshot "/dev/shm/workspace/parallel/17/kibana/x-pack/test/saved_object_tagging/functional/screenshots/failure/saved objects tagging - functional tests dashboard integration editing allows to select tags for an existing dashboard.png"
[00:08:20]               │ info Current URL is: http://localhost:61171/app/dashboards#/view/61c58ad0-3dd3-11e8-b2b9-5d5dc1715159?_g=(filters:!())
[00:08:20]               │ info Saving page source to: /dev/shm/workspace/parallel/17/kibana/x-pack/test/saved_object_tagging/functional/failure_debug/html/saved objects tagging - functional tests dashboard integration editing allows to select tags for an existing dashboard.html
[00:08:20]               └- ✖ fail: saved objects tagging - functional tests dashboard integration editing allows to select tags for an existing dashboard
[00:08:20]               │      Error: timed out waiting for in edit mode
[00:08:20]               │       at onFailure (/dev/shm/workspace/parallel/17/kibana/test/common/services/retry/retry_for_truthy.ts:39:13)
[00:08:20]               │       at retryForSuccess (/dev/shm/workspace/parallel/17/kibana/test/common/services/retry/retry_for_success.ts:59:13)
[00:08:20]               │       at retryForTruthy (/dev/shm/workspace/parallel/17/kibana/test/common/services/retry/retry_for_truthy.ts:27:3)
[00:08:20]               │       at RetryService.waitFor (/dev/shm/workspace/parallel/17/kibana/test/common/services/retry/retry.ts:59:5)
[00:08:20]               │       at DashboardPageObject.switchToEditMode (/dev/shm/workspace/parallel/17/kibana/test/functional/page_objects/dashboard_page.ts:257:5)
[00:08:20]               │       at Context.<anonymous> (test/saved_object_tagging/functional/tests/dashboard_integration.ts:166:9)
[00:08:20]               │       at Object.apply (/dev/shm/workspace/parallel/17/kibana/node_modules/@kbn/test/target_node/functional_test_runner/lib/mocha/wrap_function.js:87:16)
[00:08:20]               │ 
[00:08:20]               │ 

Stack Trace

Error: timed out waiting for in edit mode
    at onFailure (/dev/shm/workspace/parallel/17/kibana/test/common/services/retry/retry_for_truthy.ts:39:13)
    at retryForSuccess (/dev/shm/workspace/parallel/17/kibana/test/common/services/retry/retry_for_success.ts:59:13)
    at retryForTruthy (/dev/shm/workspace/parallel/17/kibana/test/common/services/retry/retry_for_truthy.ts:27:3)
    at RetryService.waitFor (/dev/shm/workspace/parallel/17/kibana/test/common/services/retry/retry.ts:59:5)
    at DashboardPageObject.switchToEditMode (/dev/shm/workspace/parallel/17/kibana/test/functional/page_objects/dashboard_page.ts:257:5)
    at Context.<anonymous> (test/saved_object_tagging/functional/tests/dashboard_integration.ts:166:9)
    at Object.apply (/dev/shm/workspace/parallel/17/kibana/node_modules/@kbn/test/target_node/functional_test_runner/lib/mocha/wrap_function.js:87:16)

Metrics [docs]

Public APIs missing comments

Total count of every public API that lacks a comment. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats comments for more detailed information.

id before after diff
fleet 1121 1122 +1

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
fleet 619.6KB 619.7KB +161.0B

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
apm 29.3KB 29.3KB +27.0B
fleet 106.2KB 106.4KB +130.0B
uptime 24.9KB 24.9KB +27.0B
total +184.0B
Unknown metric groups

API count

id before after diff
fleet 1224 1225 +1

History

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

cc @kpollich

@kpollich kpollich merged commit 6d4cfc5 into elastic:master Oct 20, 2021
@kpollich kpollich deleted the 114785-use-latest-version-extension-point branch October 20, 2021 18:36
kibanamachine added a commit to kibanamachine/kibana that referenced this pull request Oct 20, 2021
… version of a package (elastic#114914)

* Add support for extensions using latest version of a package and forcing upgrade state for edit policy view

* Fix isUpgrade flag on integrations UI version of edit page

* Treat non-validation errors as general failures in server and UI

* Fix tests + don't call upgrade API when saving

* fix i18n

* Fix default name always appearing when editing package policies via extension UI

* Opt security solution plugin out of new extension option

Co-authored-by: Kibana Machine <[email protected]>
@kibanamachine
Copy link
Contributor

💚 Backport successful

Status Branch Result
7.16

This backport PR will be merged automatically after passing CI.

kibanamachine added a commit that referenced this pull request Oct 20, 2021
… version of a package (#114914) (#115843)

* Add support for extensions using latest version of a package and forcing upgrade state for edit policy view

* Fix isUpgrade flag on integrations UI version of edit page

* Treat non-validation errors as general failures in server and UI

* Fix tests + don't call upgrade API when saving

* fix i18n

* Fix default name always appearing when editing package policies via extension UI

* Opt security solution plugin out of new extension option

Co-authored-by: Kibana Machine <[email protected]>

Co-authored-by: Kyle Pollich <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Deprecated - use backport:version if exact versions are needed release_note:skip Skip the PR/issue when compiling release notes Team:APM All issues that need APM UI Team support Team:Fleet Team label for Observability Data Collection Fleet team Team:Uptime - DEPRECATED Synthetics & RUM sub-team of Application Observability v7.16.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Fleet] Create Proof of Concept for testing "Edit to Upgrade" flow in APM + Synthetics
7 participants