-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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]: Unable to add Logstash output under Fleet>Settings tab. #153622
Comments
Pinging @elastic/fleet (Team:Fleet) |
@manishgupta-qasource Please review. |
Secondary review for this ticket is Done |
@jen-huang yes, you're right. I have a PR to fix it with a lot more tests to cover edge cases. |
Fixes #153622 ## Summary [Fleet] Fix an error when creating new logstash output. The bug was added with #153226 and depended on this [else branch](https://github.com/criamico/kibana/blob/30d3843b142142d19f1fda8f8107f088c03ff1cb/x-pack/plugins/fleet/server/services/output.ts#L309-L312) that shouldn't have been added. I also added unit and integration tests to cover for this and other cases. ### Testing - Create a new `logstash` output, it can be `default` or not - The output creation works as expected in both cases ### Checklist - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios --------- Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Fixes elastic#153622 ## Summary [Fleet] Fix an error when creating new logstash output. The bug was added with elastic#153226 and depended on this [else branch](https://github.com/criamico/kibana/blob/30d3843b142142d19f1fda8f8107f088c03ff1cb/x-pack/plugins/fleet/server/services/output.ts#L309-L312) that shouldn't have been added. I also added unit and integration tests to cover for this and other cases. ### Testing - Create a new `logstash` output, it can be `default` or not - The output creation works as expected in both cases ### Checklist - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios --------- Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> (cherry picked from commit 2e08470)
…153819) # Backport This will backport the following commits from `main` to `8.7`: - [[Fleet] Fix error when creating new logstash output (#153752)](#153752) <!--- Backport version: 8.9.7 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Cristina Amico","email":"criamico@users.noreply.github.com"},"sourceCommit":{"committedDate":"2023-03-28T00:43:03Z","message":"[Fleet] Fix error when creating new logstash output (#153752)\n\nFixes https://github.com/elastic/kibana/issues/153622\r\n\r\n## Summary\r\n[Fleet] Fix an error when creating new logstash output. \r\n\r\nThe bug was added with #153226 and\r\ndepended on this [else\r\nbranch](https://github.com/criamico/kibana/blob/30d3843b142142d19f1fda8f8107f088c03ff1cb/x-pack/plugins/fleet/server/services/output.ts#L309-L312)\r\nthat shouldn't have been added.\r\n\r\nI also added unit and integration tests to cover for this and other\r\ncases.\r\n\r\n\r\n### Testing\r\n- Create a new `logstash` output, it can be `default` or not\r\n- The output creation works as expected in both cases\r\n\r\n### Checklist\r\n\r\n- [x] [Unit or functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere updated or added to match the most common scenarios\r\n\r\n---------\r\n\r\nCo-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>","sha":"2e0847007a6e870b87b9401cf2360c015afb82a2","branchLabelMapping":{"^v8.8.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:Fleet","backport:prev-minor","v8.8.0"],"number":153752,"url":"https://github.com/elastic/kibana/pull/153752","mergeCommit":{"message":"[Fleet] Fix error when creating new logstash output (#153752)\n\nFixes https://github.com/elastic/kibana/issues/153622\r\n\r\n## Summary\r\n[Fleet] Fix an error when creating new logstash output. \r\n\r\nThe bug was added with #153226 and\r\ndepended on this [else\r\nbranch](https://github.com/criamico/kibana/blob/30d3843b142142d19f1fda8f8107f088c03ff1cb/x-pack/plugins/fleet/server/services/output.ts#L309-L312)\r\nthat shouldn't have been added.\r\n\r\nI also added unit and integration tests to cover for this and other\r\ncases.\r\n\r\n\r\n### Testing\r\n- Create a new `logstash` output, it can be `default` or not\r\n- The output creation works as expected in both cases\r\n\r\n### Checklist\r\n\r\n- [x] [Unit or functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere updated or added to match the most common scenarios\r\n\r\n---------\r\n\r\nCo-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>","sha":"2e0847007a6e870b87b9401cf2360c015afb82a2"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.8.0","labelRegex":"^v8.8.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/153752","number":153752,"mergeCommit":{"message":"[Fleet] Fix error when creating new logstash output (#153752)\n\nFixes https://github.com/elastic/kibana/issues/153622\r\n\r\n## Summary\r\n[Fleet] Fix an error when creating new logstash output. \r\n\r\nThe bug was added with #153226 and\r\ndepended on this [else\r\nbranch](https://github.com/criamico/kibana/blob/30d3843b142142d19f1fda8f8107f088c03ff1cb/x-pack/plugins/fleet/server/services/output.ts#L309-L312)\r\nthat shouldn't have been added.\r\n\r\nI also added unit and integration tests to cover for this and other\r\ncases.\r\n\r\n\r\n### Testing\r\n- Create a new `logstash` output, it can be `default` or not\r\n- The output creation works as expected in both cases\r\n\r\n### Checklist\r\n\r\n- [x] [Unit or functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere updated or added to match the most common scenarios\r\n\r\n---------\r\n\r\nCo-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>","sha":"2e0847007a6e870b87b9401cf2360c015afb82a2"}}]}] BACKPORT--> Co-authored-by: Cristina Amico <criamico@users.noreply.github.com>
Hi Team, We have revalidated this issue on latest 8.7.0 BC10 and found it still reproducible. Build details: Screen Recording: Settings.-.Fleet.-.Elastic.-.Google.Chrome.2023-03-29.15-14-29.mp4Please let us know if anything else is required from our end. Thanks! |
The fix missed BC10, the job started at midnight and the backport for this was merged around 2am. From the looks of it we were just trying to sneak it in as opposed to blocking the release for it @jen-huang? There is no mention of BC11 yet but you never know |
@hop-dev Do you think we are still in time for 8.7.0? I see that FF is tomorrow (Thu the 30th). |
I think tomorrow is the release date not FF. The only way to make 8.7.0 is if another build candidate is done and I can't see any mention of another one being done. We could raise this as a release blocker but I think we would have to have a very strong case. |
@jlind23 What do you suggest? This bug prevents the creation of any new logstash policy as long as the customer has already a policy with fleet server installed. :/ |
As discussed with @jlind23, the bug wasn't identified as a blocker for 8.7.0 so it should be fine. There is a workaround for customers trying to add a new Logstash output; the bug doesn't affect existing outputs, but only the creation of new ones. I'll document the workaround in a Known Issue. |
@amolnater-qasource In the meantime you can validate this with a snapshot build of 8.7.1 or 8.8.0. Thank you! |
Hi @jen-huang We have revalidated this issue on latest 8.8.0-SNAPSHOT and found it fixed there.
Screen Recording: Settings.-.Fleet.-.Elastic.-.Google.Chrome.2023-03-31.10-24-13.mp4Build details: Further, we are currently unable to deploy latest 8.7.1 SNAPSHOT and we will revalidate once we are successfully able to deploy the latest 8.7.1 build. Please let us know if anything else is required from our end. |
Hi Team, We are successfully able to deploy 8.7.1 SNAPSHOT today, so we have revalidated this issue and found it fixed there too.
Screen Recording: Settings.-.Fleet.-.Elastic.-.Google.Chrome.2023-04-03.11-39-00.mp4Build details: Further we will mark this issue as QA:Validated once testing on 8.7.1 BC1 [when available]. |
Bug ConversionTest-Case not required as this particular checkpoint is already covered in the following testcase: Thanks! |
Hi Team, We have revalidated this on latest 8.7.1 BC2 kibana cloud environment and found it fixed now. Observations:
Build details: Hence, we are marking this issue as QA:Validated. Please let us know if anything else is required from our end. |
Kibana version: 8.7 BC9 kibana cloud environment
Host OS and Browser version: All, All
Build details:
Preconditions:
Steps to reproduce:
Logstash output cannot be used with Fleet Server integration in Elastic Cloud agent policy. Please create a new ElasticSearch output.
Screen Recording:
Settings.-.Fleet.-.Elastic.-.Google.Chrome.2023-03-24.10-34-59.mp4
Expected Result:
User should be able to add Logstash output under Fleet>Settings tab.
The text was updated successfully, but these errors were encountered: