-
Notifications
You must be signed in to change notification settings - Fork 8.5k
[EPM] await call to InstallPrebuiltComponentTemplates #65880
Copy link
Copy link
Closed
Labels
Feature:EPMFleet team's Elastic Package Manager (aka Integrations) projectFleet team's Elastic Package Manager (aka Integrations) projectIngest Management:alpha1Group issues for ingest management alpha1Group issues for ingest management alpha1Team:FleetTeam label for Observability Data Collection Fleet teamTeam label for Observability Data Collection Fleet teambugFixes for quality problems that affect the customer experienceFixes for quality problems that affect the customer experience
Metadata
Metadata
Assignees
Labels
Feature:EPMFleet team's Elastic Package Manager (aka Integrations) projectFleet team's Elastic Package Manager (aka Integrations) projectIngest Management:alpha1Group issues for ingest management alpha1Group issues for ingest management alpha1Team:FleetTeam label for Observability Data Collection Fleet teamTeam label for Observability Data Collection Fleet teambugFixes for quality problems that affect the customer experienceFixes for quality problems that affect the customer experience
Type
Fields
Give feedbackNo fields configured for issues without a type.
During the installation of prebuilt index templates (v2), we install prebuilt component templates first, and then the templates which use these component templates. This happens here: https://github.com/elastic/kibana/blob/master/x-pack/plugins/ingest_manager/server/services/epm/elasticsearch/template/install.ts#L23-L24
We're probably missing an
awaithere to ensure that the component templates are present when they are used. This wasn't a problem during testing but looks brittle.Also, prebuilt templates are used by the
basepackage, which is used for the first setup of Ingest Manager, so this has the potential of making the whole of Ingest Manager unusable.(Thanks @neptunian for spotting it.)