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

Can't upgrade APM integration to version 7.16.1 on ESS #121238

Closed
bmorelli25 opened this issue Dec 13, 2021 · 21 comments
Closed

Can't upgrade APM integration to version 7.16.1 on ESS #121238

bmorelli25 opened this issue Dec 13, 2021 · 21 comments
Assignees
Labels
apm:fleet bug Fixes for quality problems that affect the customer experience impact:high Addressing this issue will have a high level of impact on the quality/strength of our product. Team:APM All issues that need APM UI Team support v7.16.0 v7.16.1

Comments

@bmorelli25
Copy link
Member

APM Server version (apm-server version):

  • ESS version 7.16.1
  • APM integration version 7.16.0

Description of the problem including expected versus actual behavior:

  • Can't upgrade the APM integration to 7.16.1
  • Can't save configuration options

Steps to reproduce:

  1. Spin up 7.16.1 on ESS
  2. Click Add integration > Elastic APM > APM integration > Switch to Elastic Agent > Switch to Elastic Agent. You should now have version 7.16.0 of the APM integration installed.
  3. Select View the APM integration in Fleet > Actions > Edit integration
  4. Click Upgrade integration. This is the error I get:
    Screen Shot 2021-12-13 at 1 53 58 PM
    I expanded the "Advanced options" and saw "Maximum duration for reading an entire request" thinks the default 3600 is less than 1ms, so I took that down to 0 (which removes the red) and tried again. Same error.

Screen Shot 2021-12-13 at 1 51 23 PM

I think it's important to note that I didn't change any configs. I was just trying to get the URL and Host from this page.
@simitt
Copy link
Contributor

simitt commented Dec 14, 2021

I just confirmed that this also happens in 7.16.0.

@simitt
Copy link
Contributor

simitt commented Dec 14, 2021

This also happens after adding a default APM integration to any agent policy and trying to upgrade it. This looks like an issue with the APM UI editor rather than an APM Server issue, therefore transferring the issue.

@simitt simitt transferred this issue from elastic/apm-server Dec 14, 2021
@simitt simitt added bug Fixes for quality problems that affect the customer experience Team:APM All issues that need APM UI Team support v7.16.0 v7.16.1 labels Dec 14, 2021
@elasticmachine
Copy link
Contributor

Pinging @elastic/apm-ui (Team:apm)

@dannycroft
Copy link

dannycroft commented Dec 16, 2021

@bmorelli25 thank you for raising this, we'll take a look at it ASAP (the team are coming to the end of thier on week)

@gbamparop
Copy link
Contributor

gbamparop commented Dec 16, 2021

The form validation error for "Maximum duration for reading an entire request" happens because ms is missing. For example, 3600ms is valid. This doesn't fix the other error (definition for this key is missing) when submitting the form though, which is caused by the elasticsearch property being sent

@gbamparop
Copy link
Contributor

Fleet allows packages to specify cluster privileges as part of this but the update policy endpoint throws a Bad Request error when adding this param:

"elasticsearch": {
        "privileges": {
            "cluster": [
                "cluster:monitor/main"
            ]
        }
    }

@joshdover
Copy link
Contributor

FYI @hop-dev is taking a look at this validation issue ^

@joshdover
Copy link
Contributor

joshdover commented Dec 16, 2021

@ogupte This looks suspiciously similar to the fix you made in this PR for 8.0 and 8.1: #119131 (comment)

Long story short is that we don't accept this parameter on the API, it's supplied by the package manifest and added to the package policy on the backend. I think we need to make a similar adjustment on 7.16 branch to not send in this API request.

@joshdover joshdover added the impact:high Addressing this issue will have a high level of impact on the quality/strength of our product. label Dec 16, 2021
@gbamparop
Copy link
Contributor

@joshdover it seems the same issue

@joshdover
Copy link
Contributor

AFAIK this has been fixed. Still waiting for someone from @elastic/apm-ui to confirm before we close. We also need to figure out why this wasn't caught in testing.

@simitt is it possible this wasn't caught because we aren't testing against production packages in the staging environment? I've been worried that that could cause issues like this that aren't caught until we promote a release to production.

@sorenlouv
Copy link
Member

@cauemarcondes Can you confirm if this is fixed?

@simitt
Copy link
Contributor

simitt commented Dec 20, 2021

@simitt is it possible this wasn't caught because we aren't testing against production packages in the staging environment? I've been worried that that could cause issues like this that aren't caught until we promote a release to production.

We werent testing against production packages, but we were testing against the production like packages from staging, that then got promoted to production. I'm not sure I am following how this would have caused troubles here.

@cauemarcondes
Copy link
Contributor

@joshdover @hop-dev I see that this PR #121412 hasn't been backported to 8.0, is it correct?

@joshdover
Copy link
Contributor

@cauemarcondes that change was already present in #119131 which was merged to 8.1 and 8.0

@cauemarcondes
Copy link
Contributor

@sqren I tested on 8.0 and I couldn't reproduce the error.

@joshdover
Copy link
Contributor

Think we're good here, closing.

@zube zube bot added [zube]: Done and removed [zube]: 8.0 labels Jan 5, 2022
@marclop
Copy link

marclop commented Jan 19, 2022

I'm still seeing this error when trying to upgrade the APM Integration using Kibana 7.17.0. I can reproduce locally and using the latest 7.17.0 build in ESS. Was the fix not back ported to the 7.17 branch? Exact steps to reproduce:

  1. Create a deployment using version 7.17.0 with APM & Fleet server enabled
  2. Install the APM Integration (7.16.0)
  3. Upgrade the APM Integration to 7.16.1
  4. When saving the changes, you'll see the following message:

image

@cauemarcondes
Copy link
Contributor

@hop-dev can you check if your fix was backported to 7.17?

@ogupte
Copy link
Contributor

ogupte commented Jan 19, 2022

@hop-dev can you check if your fix was backported to 7.17?

I don't see it in 7.17.

@ogupte
Copy link
Contributor

ogupte commented Jan 19, 2022

backport created for 7.17: #123368

@marclop
Copy link

marclop commented Jan 20, 2022

Thank you @ogupte !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
apm:fleet bug Fixes for quality problems that affect the customer experience impact:high Addressing this issue will have a high level of impact on the quality/strength of our product. Team:APM All issues that need APM UI Team support v7.16.0 v7.16.1
Projects
None yet
Development

No branches or pull requests

10 participants