Skip to content

qa/suites/upgrade/telemetry-upgrade: update telemetry tests - #60984

Merged
ljflores merged 5 commits into
ceph:mainfrom
ljflores:wip-fix-telemetry-tests
Jan 21, 2025
Merged

ljflores merged 5 commits into
ceph:mainfrom
ljflores:wip-fix-telemetry-tests

Conversation

@ljflores

@ljflores ljflores commented Dec 6, 2024 •

Copy link
Copy Markdown
Member

In this PR, we accomplish two things:

  1. We update the logic in the telemetry workunits to better verify collections.
  2. We replace quincy tests with squid tests since main is now pre-Tentacle.

Check individual commits for further explanations.

Contribution Guidelines

  • To sign and title your commits, please refer to Submitting Patches to Ceph.

  • If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.

  • When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an x between the brackets: [x]. Spaces and capitalization matter when checking off items this way.

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
  • jenkins retest this please
  • jenkins test classic perf
  • jenkins test crimson perf
  • jenkins test signed
  • jenkins test make check
  • jenkins test make check arm64
  • jenkins test submodules
  • jenkins test dashboard
  • jenkins test dashboard cephadm
  • jenkins test api
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox
  • jenkins test windows
  • jenkins test rook e2e

@ljflores

Copy link
Copy Markdown
Member Author

@ljflores
ljflores marked this pull request as ready for review January 17, 2025 21:03
@ljflores ljflores mentioned this pull request Jan 17, 2025
4 of 14 tasks
This commit changes the workunit that tests the upgrade path from
reef to x.

The logic to verify collections is now much more robust. Previously,
the test relied on developers to make it aware of any new collections
it needed to verify. Now, I have added logic to check that the # of
known collections matches the # of reported collections. If it does not,
the test errors out, which will force developers to add any new
collections to the upgrade test along with adding it to the telemetry
code.

The test also verifies all collections instead of focusing only on new
collections that were added after the base collections.

Signed-off-by: Laura Flores <[email protected]>
…ef-->x test

This comment was mistakenly carried over in
6d25c05.

Signed-off-by: Laura Flores <[email protected]>
…tests

Since main is now pre-Tentacle, we should replace the quincy upgrade
path with squid.

I have kept the quincy workunits since they are still
referenced in the overall upgrade suite. I will remove these
in a separate PR since changing the overall upgrade tests reaches
beyond the scope of just telemetry.

Signed-off-by: Laura Flores <[email protected]>
@ljflores
ljflores force-pushed the wip-fix-telemetry-tests branch 3 times, most recently from 23219b2 to dcd64d6 Compare January 17, 2025 23:14
1. For the telemetry upgrade tests, we want to
   make sure we enable the perf channel before we
   upgrade to test that out.

2. We also want to be sure to set up ident information.
   in the workunits used before the upgrade.

3. We can remove the "opt out" commands in the before-upgrade
   workunits since we want to stay opted in during the upgrade.
   We only opt out after all the checks are complete.

4. We mistakenly test "ceph telemetry show" twice when one
   of then should be "ceph telemetry show-all".

Signed-off-by: Laura Flores <[email protected]>
Even though we opt in right away after upgrading, which minimizes the chance
of this warning coming up, the cluster log still detects it sometimes and
fails the test. So, we can ignore it since it's expected for the warning
to come up for a few seconds in some cases.

Signed-off-by: Laura Flores <[email protected]>
@ljflores
ljflores force-pushed the wip-fix-telemetry-tests branch from dcd64d6 to 504fac3 Compare January 18, 2025 03:28

@Naveenaidu Naveenaidu left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM! Really appreciate the effort taken in splitting the changes into small comimts - It was very easy to follow and review ❤️

@ljflores

Copy link
Copy Markdown
Member Author

jenkins test api

@ljflores

Copy link
Copy Markdown
Member Author

Merging since I already tested this in teuthology.

@ljflores
ljflores merged commit 97c8c56 into ceph:main Jan 21, 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.

2 participants