Skip to content

[EPM] await call to InstallPrebuiltComponentTemplates #65880

@skh

Description

@skh

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 await here 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 base package, 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.)

Metadata

Metadata

Assignees

Labels

Feature:EPMFleet team's Elastic Package Manager (aka Integrations) projectIngest Management:alpha1Group issues for ingest management alpha1Team:FleetTeam label for Observability Data Collection Fleet teambugFixes for quality problems that affect the customer experience

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions