Skip to content

test/rgw: ensure proper cleanup in Kafka idle behaviour notification test#63015

Closed
VinayakTiwari1103 wants to merge 1 commit intoceph:mainfrom
VinayakTiwari1103:patch-3
Closed

test/rgw: ensure proper cleanup in Kafka idle behaviour notification test#63015
VinayakTiwari1103 wants to merge 1 commit intoceph:mainfrom
VinayakTiwari1103:patch-3

Conversation

@VinayakTiwari1103
Copy link
Copy Markdown
Contributor

Ensure proper cleanup in test_ps_s3_notification_kafka_idle_behaviour by adding a try-finally block to handle S3 notifications, topics, and bucket deletion. This prevents Teuthology failures due to incomplete cleanup during GC or user purge.

Also corrected status assertion by using integer division for better reliability.

Fixes: https://tracker.ceph.com/issues/71114
Signed-off-by: Vinayak Tiwari tiwarivinayak10@gmail.com

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands

…test

Added a try-finally block in the `test_ps_s3_notification_kafka_idle_behaviour` function to guarantee cleanup of S3 notifications, topics, and buckets, even if the test encounters failures. This change addresses potential issues where incomplete cleanup could lead to Teuthology job failures during the garbage collection or user purge phase.

Also replaced floating-point division with integer division in the status assertion to ensure reliable HTTP status code validation.

These improvements enhance test reliability, prevent leftover resources, and reduce the risk of post-test administrative command failures.

Signed-off-by: Vinayak Tiwari  


Signed-off-by: Vinayak Tiwari <84216407+VinayakTiwari1103@users.noreply.github.com>
@VinayakTiwari1103 VinayakTiwari1103 requested a review from a team as a code owner April 28, 2025 18:42
@ceph-jenkins
Copy link
Copy Markdown
Collaborator

Can one of the admins verify this patch?

@yuvalif
Copy link
Copy Markdown
Contributor

yuvalif commented May 5, 2025

@VinayakTiwari1103 teuthology failures are due to an RGW crash. not a test cleanup issue.
please see: https://tracker.ceph.com/issues/71114#note-7

@VinayakTiwari1103
Copy link
Copy Markdown
Contributor Author

@VinayakTiwari1103 teuthology failures are due to an RGW crash. not a test cleanup issue.
please see: https://tracker.ceph.com/issues/71114#note-7

Hi @yuvalif ,
Thanks for the clarification. I focused on cleanup due to prior failures, but I’ll now look into the RGW crash as per the tracker.

Best,
Vinayak

@yuvalif
Copy link
Copy Markdown
Contributor

yuvalif commented May 6, 2025

@VinayakTiwari1103 teuthology failures are due to an RGW crash. not a test cleanup issue.
please see: https://tracker.ceph.com/issues/71114#note-7

Hi @yuvalif , Thanks for the clarification. I focused on cleanup due to prior failures, but I’ll now look into the RGW crash as per the tracker.

Best, Vinayak

i think the crash was already fixed. just trying to make sure the fix was backported to "squid"

@ivancich
Copy link
Copy Markdown
Member

Thanks, @yuvalif and @VinayakTiwari1103.

@yuvalif
Copy link
Copy Markdown
Contributor

yuvalif commented May 14, 2025

closing based on the above discussion

@yuvalif yuvalif closed this May 14, 2025
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