Skip to content

[CORE-7096] Hook admin API to debug bundle service#23557

Merged
michael-redpanda merged 6 commits intoredpanda-data:devfrom
BenPope:CORE-7096-debug-bundle-handlers
Oct 1, 2024
Merged

[CORE-7096] Hook admin API to debug bundle service#23557
michael-redpanda merged 6 commits intoredpanda-data:devfrom
BenPope:CORE-7096-debug-bundle-handlers

Conversation

@BenPope
Copy link
Copy Markdown
Member

@BenPope BenPope commented Sep 30, 2024

Continuation of CORE-7095

Implement:

  1. GET /debug/bundle/file/{filename}
  2. DELETE /debug/bundle/file/{filename}

Add ducktape tests for all endpoints:

  1. POST /v1/debug/bundle
  2. GET /v1/debug/bundle
  3. DELETE /v1/debug/bundle/{jobid}
  4. GET /debug/bundle/file/{filename} (returns not_implemented)
  5. DELETE /debug/bundle/file/{filename} (returns not_implemented)

Backports Required

  • none - not a bug fix
  • none - this is a backport
  • none - issue does not exist in previous branches
  • none - papercut/not impactful enough to backport
  • v24.2.x
  • v24.1.x
  • v23.3.x

Release Notes

  • none

Signed-off-by: Ben Pope <ben@redpanda.com>
Signed-off-by: Ben Pope <ben@redpanda.com>
@BenPope BenPope force-pushed the CORE-7096-debug-bundle-handlers branch from 8cc89c5 to 399da5a Compare September 30, 2024 11:44
@BenPope BenPope requested review from a team, michael-redpanda and pgellert and removed request for a team September 30, 2024 11:46
Copy link
Copy Markdown
Contributor

@michael-redpanda michael-redpanda left a comment

Choose a reason for hiding this comment

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

looks nice! couple of nits/suggestions

Comment thread tests/rptest/services/admin.py
Comment thread tests/rptest/tests/debug_bundle_test.py
Comment thread tests/rptest/tests/debug_bundle_test.py Outdated
Comment thread tests/rptest/tests/debug_bundle_test.py
Comment thread tests/rptest/tests/debug_bundle_test.py
@vbotbuildovich
Copy link
Copy Markdown
Collaborator

vbotbuildovich commented Sep 30, 2024

new failures in https://buildkite.com/redpanda/redpanda/builds/55432#01924305-ecf6-46e6-807f-424356404985:

"rptest.tests.partition_force_reconfiguration_test.PartitionForceReconfigurationTest.test_basic_reconfiguration.acks=-1.restart=False.controller_snapshots=False"

new failures in https://buildkite.com/redpanda/redpanda/builds/55474#01924486-9afa-4697-9de7-dd86edcd1c07:

"rptest.tests.delete_records_test.DeleteRecordsTest.test_delete_records_concurrent_truncations.cloud_storage_enabled=True.truncate_point=start_offset"

Comment thread tests/rptest/tests/debug_bundle_test.py
Comment thread tests/rptest/tests/debug_bundle_test.py
Comment thread tests/rptest/tests/debug_bundle_test.py
Comment thread src/v/redpanda/admin/debug_bundle.cc Outdated
Comment thread src/v/redpanda/admin/debug_bundle.h
@BenPope BenPope force-pushed the CORE-7096-debug-bundle-handlers branch from 3af4765 to 74279c6 Compare September 30, 2024 18:46
@BenPope
Copy link
Copy Markdown
Member Author

BenPope commented Oct 1, 2024

Copy link
Copy Markdown
Contributor

@michael-redpanda michael-redpanda left a comment

Choose a reason for hiding this comment

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

just need the new fields in the parameters

@BenPope BenPope force-pushed the CORE-7096-debug-bundle-handlers branch from 74279c6 to 50b4479 Compare October 1, 2024 12:38
@BenPope BenPope force-pushed the CORE-7096-debug-bundle-handlers branch from 50b4479 to ea1579b Compare October 1, 2024 12:47
Signed-off-by: Ben Pope <ben@redpanda.com>
Signed-off-by: Ben Pope <ben@redpanda.com>
Signed-off-by: Ben Pope <ben@redpanda.com>
Signed-off-by: Ben Pope <ben@redpanda.com>
@BenPope
Copy link
Copy Markdown
Member Author

BenPope commented Oct 1, 2024

Changes in force-push

@michael-redpanda michael-redpanda merged commit 32bd075 into redpanda-data:dev Oct 1, 2024
michael-redpanda added a commit to michael-redpanda/redpanda that referenced this pull request Oct 2, 2024
Thanks to some merge ordering schenangians, these tests started failing
when redpanda-data#23557 merged after redpanda-data#23508.  This change addresses the test bug by
properly obtaining the configuration property and handling a situation
when the debug bundle directory configuration is empty.

Signed-off-by: Michael Boquard <michael@redpanda.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants