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] Fleet preconfigured variable value is not used #119748

Closed
nchaulet opened this issue Nov 25, 2021 · 1 comment · Fixed by #119749
Closed

[Fleet] Fleet preconfigured variable value is not used #119748

nchaulet opened this issue Nov 25, 2021 · 1 comment · Fixed by #119749
Labels
bug Fixes for quality problems that affect the customer experience Team:Fleet Team label for Observability Data Collection Fleet team v7.16.0 v8.0.0

Comments

@nchaulet
Copy link
Member

nchaulet commented Nov 25, 2021

Description

Looks like in #112702 we introduced a bug that cause preconfigured package policy to use default value instead of the one provided in the config.

This seems to cause issue for all the variables with default value.

How to reproduce

If you try to add the following preconfigured policy to your kibana config

xpack.fleet.agentPolicies:
  # Cloud Agent policy
  - name: Elastic Cloud agent policy test
    description: Default agent policy for agents hosted on Elastic Cloud
    is_default: false
    is_managed: true
    id: test-1234
    namespace: default
    monitoring_enabled: []
    package_policies:
      - name: fleet_server_test_123
        package:
          name: fleet_server
        inputs:
          - type: fleet-server
            keep_enabled: true
            vars:
              - name: host
                value: 127.0.0.1
                frozen: true

This result in an invalid value in the preconfigured package policy

Screen Shot 2021-11-25 at 11 38 07 AM

@joshdover @jen-huang @kpollich Should|Could we still backport to 7.16.0 a fix for that bug? I think the bug is currently mitigated in 7.16.0 by the fact that the cloud policy use the same value as the default value for variables with default value.

@nchaulet nchaulet added bug Fixes for quality problems that affect the customer experience v8.0.0 Team:Fleet Team label for Observability Data Collection Fleet team v7.16.0 labels Nov 25, 2021
@elasticmachine
Copy link
Contributor

Pinging @elastic/fleet (Team:Fleet)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience Team:Fleet Team label for Observability Data Collection Fleet team v7.16.0 v8.0.0
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants