Skip to content

Conversation

@mrodm
Copy link
Contributor

@mrodm mrodm commented Feb 13, 2024

This PR removes the exception that was set in place for system package when packages were uninstalled in the tear down process (asset and system tests).

In #1672, system package is no longer installed in the default Agent policy, so there should not be any error when system package is uninstalled from now on.

  • Run all tests for current system package in integrations repository locally (Elastic stack 8.12.1)
    • system package is deleted
  • Run all tests for latest version supporting Elastic stack 7.17.* (version 1.11.0) - elastic/integrations@792a55c
    • deletion of the system package is skipped

Relates:

@mrodm mrodm self-assigned this Feb 13, 2024
Comment on lines -108 to -109
// by default system package is part of an agent policy and it cannot be uninstalled
// https://github.com/elastic/elastic-package/blob/5f65dc29811c57454bc7142aaf73725b6d4dc8e6/internal/stack/_static/kibana.yml.tmpl#L62
Copy link
Contributor Author

@mrodm mrodm Feb 13, 2024

Choose a reason for hiding this comment

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

Elastic stacks with version 7.17.* still have system package installed (tested with 7.17.18).
image

Would that be a problem to remove this exception ? @elastic/ecosystem

Looking at the latest system package version , it requires Kibana version ^8.12.0
https://github.com/elastic/integrations/blob/92900f6c0eb9cdc449808d8fd1dc234d05cf7f93/packages/system/manifest.yml#L11

Copy link
Member

Choose a reason for hiding this comment

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

Ah, you are right, actually the part of the template modified in https://github.com/elastic/elastic-package/pull/1672/files#diff-df47a0840eb947003447c6e44e2fbec3f13b1ffda4478b46ba2cced8f4ae2fc6R51 is only used starting on 8.0.0.

In 7.x probably this policy was hard-coded in Kibana, so we will need to keep the exception at least for 7.x.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Re-added this exception but just for Elastic stack 7.* in this commit 7d4c3f5

@mrodm mrodm requested a review from jsoriano February 13, 2024 13:01
@elasticmachine
Copy link
Collaborator

💚 Build Succeeded

History

cc @mrodm

@mrodm mrodm merged commit 736d623 into elastic:main Feb 13, 2024
@mrodm mrodm deleted the remove_system_exception branch February 13, 2024 18:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants