-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
[meta] Migrate .kibana esArchives to kbnArchiver #102552
Comments
* Removes spaces check, since spaces should always be available * Disables Monitoring, SecuritySolutions, and Reporting in SSPL tests until elastic#102552 is completed Signed-off-by: Tyler Smalley <[email protected]>
* Removes spaces check, since spaces should always be available * Disables Monitoring, SecuritySolutions, and Reporting in SSPL tests until #102552 is completed Signed-off-by: Tyler Smalley <[email protected]>
* Removes spaces check, since spaces should always be available * Disables Monitoring, SecuritySolutions, and Reporting in SSPL tests until elastic#102552 is completed Signed-off-by: Tyler Smalley <[email protected]>
#102019) (#102580) * Revert "Revert: [7.x] [FTR][CI] Use default distribution for all tests (#102019)" This reverts commit c272bdb. * [FTR] Stabilize SSLP functional tests (#102553) * Removes spaces check, since spaces should always be available * Disables Monitoring, SecuritySolutions, and Reporting in SSPL tests until #102552 is completed Signed-off-by: Tyler Smalley <[email protected]> Co-authored-by: Kibana Machine <[email protected]>
Pinging @elastic/kibana-operations (Team:Operations) |
|
@wayneseymour - just a heads up that you keep closing this issue.
Yes, once we have migrated them all we will do this in the esArchiver. |
Yeah I noticed. My apologies. No idea why, but I'll pay more attention to it. Maybe my browser is using gestures lol. I'll watch out for it though. |
Helps with: elastic#102552 Drop archive as it's not used: "$ find . -type f -exec grep -l "x-pack/test/functional/es_archives/timelion/feature_controls" {} \;"
Helps with: #102552 Drop archive as it's not used: "$ find . -type f -exec grep -l "x-pack/test/functional/es_archives/timelion/feature_controls" {} \;"
Drop two fields from the orig archive. Helps with: elastic#102552
Drop two fields from the orig archive. Helps with: #102552
Add a new fn that checks for whether an archive should be migrated. This new fn disregards the standard_list. Helps with: elastic#102552
Add new kbn archive with an index pattern taken from the es archive. Change the test to use both es and kbn archives. Since all these objects are loaded into a space, just delete the space afterwards instead of unloading with es archiver. Helps with: elastic#102552
* [Archive Migrations] security_solution-timelines Add new kbn archive with an index pattern taken from the es archive. Change the test to use both es and kbn archives. Since all these objects are loaded into a space, just delete the space afterwards instead of unloading with es archiver. Helps with: #102552 * Drop exclusive * Drop unneeded fn. * Lint in my pocket. * Thanks to J. Buttner, "re-drop" non needed objects from the original archive. Co-authored-by: Kibana Machine <[email protected]>
The
esArchiver
is replacing the Kibana index, which is not something that Kibana still supports, causing numerous issues. Going forward we will usekbnArchiver
, which is a saved object export to handle this data. In cases where isolation is required, Spaces can now be used.Standard List (Types of Saved Objects that we do migrate)
As alluded to below, we've a finite list of saved object types that we can migrate.
If you run the following curl against a kibana server, you can obtain the list:
As of July 6, 2022, the list is as follows:
Note: The list has and can change so I run the curl command periodically.
Helpers
kibana/test/functional/apps/dashboard/group1/dashboard_unsaved_listing.ts
Line 38 in 542b381
Archives to be Migrated
SSPL
test/functional/fixtures/es_archiver/saved_objects_management/export_exclusion"type": "test-is-exportable",test/functional/fixtures/es_archiver/saved_objects_management/hidden_saved_objects"type": "test-hidden-importable-exportable",test/functional/fixtures/es_archiver/saved_objects_management/hidden_types"type": "test-actions-export-hidden",test/functional/fixtures/es_archiver/saved_objects_management/export_transform"type": "test-export-transform",test/functional/fixtures/es_archiver/saved_objects_management/nested_export_transform"type": "test-export-transform",X-Pack
x-pack/test/security_solution_cypress/es_archives/empty_kibana Contains no objects within the standard list
x-pack/test/functional/es_archives/security/discover [Archive Migration] x-pack..security/discover #106896
x-pack/test/functional/es_archives/security/flstest/kibana [Archive Migration] x-pack..security/flstest #107045
x-pack/test/functional/es_archives/discover/feature_controls/security [Archive Migration] x-pack..discover/feature_controls/security #107156
x-pack/test/functional/es_archives/discover/feature_controls/spaces [Archive Migration] x-pack..discover/feature_controls/spaces #107644
x-pack/test/functional/es_archives/discover/default [Archive Migration] x-pack..discover/default #107665
x-pack/test/functional/es_archives/canvas/default [Archive Migration] Swap es archiver for kbn archiver - Canvas app #102533
x-pack/test/functional/es_archives/canvas/lens [FTR] Stabilize SSLP functional tests #102553
x-pack/test/functional/es_archives/canvas/filter [Archive Migration] Swap es archiver for kbn archiver - Canvas app #102533
x-pack/test/functional/es_archives/canvas/reports [Archive Migration] Swap es archiver for kbn archiver - Canvas app #102533
x-pack/test/functional/es_archives/dashboard_view_mode [Archive Migration] x-pack..dashboard_view_mode #108503
x-pack/test/functional/es_archives/packaging [Archive Migration] xpack...packaging #110451
x-pack/test/functional/es_archives/cases/defaultWhy this cannot be migrated cases onlyx-pack/test/functional/es_archives/cases/migrations/7.11.1Why this cannot be migrated cases, cases-comments, & cases-user-actions onlyx-pack/test/functional/es_archives/cases/migrations/7.10.0Why this cannot be migrated cases-configure, cases, cases-user-actions, cases-comments only.x-pack/test/functional/es_archives/alerts Why this cannot be migrated
x-pack/test/functional/es_archives/alerts_legacy Cannot be migrated, just like x-pack/test/functional/es_archives/alerts
x-pack/test/functional/es_archives/endpoint/telemetry/agent_only Why this cannot be migrated fleet-agents
x-pack/test/functional/es_archives/endpoint/telemetry/cloned_endpoint_different_states - only has "fleet-agents" & fleet-agent-events
x-pack/test/functional/es_archives/endpoint/telemetry/cloned_endpoint_uninstalled - only has "fleet-agents" & fleet-agent-events
x-pack/test/functional/es_archives/endpoint/telemetry/endpoint_malware_disabled - only has "fleet-agents" & fleet-agent-events
x-pack/test/functional/es_archives/endpoint/telemetry/cloned_endpoint_installed - only has "fleet-agents" & fleet-agent-events
x-pack/test/functional/es_archives/endpoint/telemetry/endpoint_uninstalled - only has "fleet-agents" & fleet-agent-events
x-pack/test/functional/es_archives/endpoint/telemetry/endpoint_malware_enabled - only has "fleet-agents" & fleet-agent-events
x-pack/test/functional/es_archives/lens/rollup/config [Archive Migration] x-pack lens/rollup/config #135022
x-pack/test/functional/es_archives/lens/reporting [Archive Migrations] x-pack..lens/reporting #136262
x-pack/test/functional/es_archives/lens/basic Migrate es_archives/lens/basic/ to kbnArchiver #108120
x-pack/test/functional/es_archives/visualize/default no mention of .kibana within
x-pack/test/functional/es_archives/event_log_multiple_indicies Only contains config, event_log_test and space
x-pack/test/functional/es_archives/reporting/ecommerce_kibana_spaces [Archive Migrations] reporting-ecommerce_kibana_spaces - using an api in conjuction with migration #136288
x-pack/test/functional/es_archives/reporting/hugedata [Archive Migrations] x-pack..reporting/hugedata #128406
x-pack/test/functional/es_archives/reporting/multi_index_kibana No longer in the repo
find . -type d -name "x-pack/test/functional/es_archives/reporting/multi_index_kibana"
// Nothingx-pack/test/functional/es_archives/reporting/canvas_disallowed_url No longer in the repo
ffind . -type d -name x-pack/test/functional/es_archives/reporting/canvas_disallowed_url
// Nothingx-pack/test/functional/es_archives/reporting/ecommerce_kibana - Replacing es_archives/reporting/ecommerce_kibana with kbn_archiver/reporting/ecommerce.json as part of migrating to kbn_archiver #102825
x-pack/test/functional/es_archives/reporting/logs No longer in the repo
x-pack/test/functional/es_archives/maps/kibana - [test] Migrating to kbn_archiver from es_archiver - for the Maps app #103028
x-pack/test/functional/es_archives/invalid_scripted_field - [Archive Migration] replace es_archive with kbn_archive invalid_scripted_field.json #125321
x-pack/test/functional/es_archives/actions Only contains action
x-pack/test/functional/es_archives/dashboard/feature_controls/security - [Archive Migrations] Kbn archive migration security #139388
x-pack/test/functional/es_archives/dashboard/feature_controls/spaces [Archive Migrations] dashboard/feature_controls/spaces #139342
x-pack/test/functional/es_archives/dashboard/session_in_space [Archive Migrations] x-pack dashboard/session_in_spaces #136531
x-pack/test/functional/es_archives/dashboard/drilldowns - Kbnarchiver migration for x-pack/test/functional/es_archives/dashboard/drilldowns #134859
x-pack/test/functional/es_archives/dashboard/async_search - kbnArchiver migration for dashboard async_search #135062
x-pack/test/functional/es_archives/kibana_scripted_fields_on_logstash [Archive Migrations] x-pack..kibana_scripted_fields_on_logstash #136264
x-pack/test/functional/es_archives/logstash/example_pipelines Only contains config and space
x-pack/test/functional/es_archives/logstash/empty [Archive Migration] x-pack logstash/empty #135123
x-pack/test/functional/es_archives/hybrid/kibana - Migrating hybrid Kibana to kbnArchiver #136619
x-pack/test/functional/es_archives/timelion/feature_controls Timelion tests- migrate to kbnArchiver from esArchiver #103969
x-pack/test/functional/es_archives/task_manager_removed_types Only contains task saved object(s).
x-pack/test/functional/es_archives/empty_kibana [Archive Migration] batch 1 of removing es_archives/empty_kibana #138189 [Archive Migration] batch 2 of removing es_archives/empty_kibana #138208
x-pack/test/functional/es_archives/banners/multispace [Archive Migration] x-pack-banners/multispace #135783
x-pack/test/functional/es_archives/lists Not migrating, only contains: "exception-list-agnostic"
x-pack/test/functional/es_archives/saved_objects_management/feature_controls/security [Archive Migration] xpack..so_mgmt_feat_ctrls_security #112314
x-pack/test/functional/es_archives/saved_objects_management/spaces_integration [Archive Migration] xpack..saved_objects_management/spaces_integration #113047
x-pack/test/functional/es_archives/fleet/agents Types not in
standardList
: "PERMANENT", "ingest-agent-policies", & "fleet-agent-actions"x-pack/test/functional/es_archives/spaces/selector -Migrations/x pack es archives spaces selector #135053
x-pack/test/functional/es_archives/spaces/copy_saved_objects [Archive Migrations] x-pack spaces-copy_saved_objects #136636 Can't migrate. Test uses es archiver in a way that kbn archiver cannot be used.
x-pack/test/functional/es_archives/spaces/multi_space [Archive Migrations] x-pack spaces-multi-space #139552
x-pack/test/functional/es_archives/spaces/disabled_features [Archive Migrations] x-pack-spaces-disabled_features #136302
x-pack/test/functional/es_archives/spaces/enter_space [Archive Migration] x-pack spaces/enter_space #135200
x-pack/test/functional/es_archives/data/search_sessions Only has "search-session"
x-pack/test/saved_object_tagging/common/fixtures/es_archiver/functional_base Contains no .kibana references.
x-pack/test/saved_object_tagging/common/fixtures/es_archiver/visualize Contains no .kibana references.
x-pack/test/saved_object_tagging/common/fixtures/es_archiver/bulk_assign Contains no .kibana references.
x-pack/test/saved_object_tagging/common/fixtures/es_archiver/dashboard Contains no .kibana references.
x-pack/test/saved_object_tagging/common/fixtures/es_archiver/delete_with_references Contains no .kibana references.
x-pack/test/saved_object_tagging/common/fixtures/es_archiver/rbac_tags Contains 2 archives and neither contain .kibana references.
x-pack/test/saved_object_tagging/common/fixtures/es_archiver/so_management Contains no .kibana references.
x-pack/test/saved_object_tagging/common/fixtures/es_archiver/usage_collection Contains no .kibana references.
x-pack/test/apm_api_integration/common/fixtures/es_archiver/apm_8.0.0 Contains no .kibana references.
x-pack/test/plugin_functional/es_archives/global_search/search_syntax [Archive Migration] x-pack global_search/search_syntax #134217
x-pack/test/plugin_functional/es_archives/global_search/basic [Archive Migration] x-pack global_search/basic #134191
x-pack/test/encrypted_saved_objects_api_integration/fixtures/es_archiver/encrypted_saved_objects Contains no objects within the standard list
x-pack/test/encrypted_saved_objects_api_integration/fixtures/es_archiver/key_rotation Contains no objects within the standard list
x-pack/test/saved_object_api_integration/common/fixtures/es_archiver/saved_objects/spaces Not enabled within
.buildkite/ftr_configs.yml
x-pack/test/spaces_api_integration/common/fixtures/es_archiver/saved_objects/spaces Spoke with J. Portner, these wont be migrated.
Other:
fgrep -ri '"index": ".kibana' test --include=mappings.json
The text was updated successfully, but these errors were encountered: