Skip to content

tentacle: qa,src: replace deprecated egrep/fgrep with grep -E/grep -F - #71917

Merged
batrick merged 1 commit into
ceph:tentaclefrom
lumir-sliva:egrep-fgrep-tentacle
Sep 30, 2026
Merged

batrick merged 1 commit into
ceph:tentaclefrom
lumir-sliva:egrep-fgrep-tentacle

Conversation

@lumir-sliva

Copy link
Copy Markdown
Contributor

backport tracker: https://tracker.ceph.com/issues/80630


backport of #68095
parent tracker: https://tracker.ceph.com/issues/75776

this backport was staged manually

One adaptation. Tentacle doesn't carry the
test_trash_purge_schedule_staggering test main added later to
qa/workunits/rbd/cli_generic.sh, so the fgrep -> grep -F substitution
covers the 13 call sites that exist here instead of 14. Everything else
applied unchanged.

After this the only egrep left on tentacle is in src/vstart.sh (fixed on
main by 745cece, never backported) and one doc example. Neither runs
in teuthology.

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)
    • Includes unit test(s)
    • Includes integration test(s)
    • Includes bug reproducer
    • No tests

egrep and fgrep are deprecated and emit warnings on modern systems:

  egrep: warning: egrep is obsolescent; using grep -E

Replace all occurrences of egrep with grep -E and fgrep with grep -F
across shell scripts, Python files, and YAML configs. These are
POSIX-defined equivalences with identical behavior.

Fixes: https://tracker.ceph.com/issues/75776
Signed-off-by: Lumir Sliva <[email protected]>
(cherry picked from commit 8b9dbb5)

Conflicts:
	qa/workunits/rbd/cli_generic.sh: this branch does not carry the
	test_trash_purge_schedule_staggering test added on main. Applied the
	fgrep -> grep -F substitution to the occurrences present here.
@github-actions

Copy link
Copy Markdown

Thank you for your contribution. Since you are not yet a member of the Ceph organization with write permissions on ceph/ceph.git, our CI will not automatically run. Any member of the Ceph organization may label this PR ci-approved to allow Jenkins CI jobs to run.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Ceph Release Engineering Audit Report

Commit Parity Visualizer

BACKPORT PR #71917 SOURCE PR SOURCE STATUS
e729073 qa,src: replace deprecated egrep/fgrep with grep -E/grep -F PR #68095 8b9dbb5 qa,src: replace deprecated egrep/fgrep with grep -E/grep -F

Automated Backport Parity Review - Cherry-Pick Conflicts / Deviations

⚠️ WARNING: Cherry-pick conflicts or deviations were found that require component lead review.

A conflict or deviation was detected during the simulation of this backport. The code in this PR does not match a clean cherry-pick of the upstream commits.

This does not necessarily indicate an issue but a maintainer should review.

**Click to expand conflict summaries.**

Deviation in Backport e729073 (cherry-pick of 8b9dbb5)

Affected File(s)

Range Diff

Click to expand
--- Original (8b9dbb50)
+++ Backport (e7290733)
@@ -10,3 +10,9 @@
 
 Fixes: https://tracker.ceph.com/issues/75776
 Signed-off-by: Lumir Sliva <[email protected]>
+(cherry picked from commit 8b9dbb50d08c6e4f2ca5a444ffcbabc658ec8090)
+
+Conflicts:
+	qa/workunits/rbd/cli_generic.sh: this branch does not carry the
+	test_trash_purge_schedule_staggering test added on main. Applied the
+	fgrep -> grep -F substitution to the occurrences present here.

================================================================================
RANGE DIFF
================================================================================

1:  8b9dbb50d08 ! 1:  e72907331ad qa,src: replace deprecated egrep/fgrep with grep -E/grep -F
    @@ Commit message
     
         Fixes: https://tracker.ceph.com/issues/75776
         Signed-off-by: Lumir Sliva <[email protected]>
    +    (cherry picked from commit 8b9dbb50d08c6e4f2ca5a444ffcbabc658ec8090)
    +
    +    Conflicts:
    +            qa/workunits/rbd/cli_generic.sh: this branch does not carry the
    +            test_trash_purge_schedule_staggering test added on main. Applied the
    +            fgrep -> grep -F substitution to the occurrences present here.
     
      ## qa/standalone/mon/osd-crush.sh ##
     @@ qa/standalone/mon/osd-crush.sh: function TEST_crush_rule_create_simple() {
    @@ qa/workunits/rbd/cli_generic.sh: test_trash_purge_schedule() {
      
          expect_fail rbd trash purge schedule ls
          test "$(rbd trash purge schedule ls -R --format json)" = "[]"
    -@@ qa/workunits/rbd/cli_generic.sh: test_trash_purge_schedule_staggering() {
    - 
    -     # Initial empty check
    -     test "$(ceph rbd trash purge schedule list)" = "{}"
    --    ceph rbd trash purge schedule status | fgrep '"scheduled": []'
    -+    ceph rbd trash purge schedule status | grep -F '"scheduled": []'
    - 
    -     # Create 80 namespaces
    -     for i in {1..80}; do
     @@ qa/workunits/rbd/cli_generic.sh: test_mirror_snapshot_schedule() {
          rbd mirror pool peer add rbd2 cluster1
      
    @@ qa/workunits/rbd/cli_generic.sh: test_mirror_snapshot_schedule() {
      
          expect_fail rbd mirror snapshot schedule ls
          test "$(rbd mirror snapshot schedule ls -R --format json)" = "[]"
    -@@ qa/workunits/rbd/cli_generic.sh: test_mirror_snapshot_schedule_staggering() {
    - 
    -     # Initial empty check
    -     test "$(ceph rbd mirror snapshot schedule list)" = "{}"
    --    ceph rbd mirror snapshot schedule status | fgrep '"scheduled_images": []'
    -+    ceph rbd mirror snapshot schedule status | grep -F '"scheduled_images": []'
    - 
    -     # Create 80 images
    -     for i in {1..80}; do
     @@ qa/workunits/rbd/cli_generic.sh: test_mirror_pool_peer_bootstrap_create() {
          test "$TOKEN_FSID" = "$(ceph fsid)"
          test "$TOKEN_KEY" = "$(ceph auth get-key client.$TOKEN_CLIENT_ID)"

How to proceed:

  • Authors (Genuine Conflicts): If this is a genuine conflict requiring manual resolution, ensure your resolution is correct. You must explain the conflict resolution in the commit message (e.g., leave the standard Git Conflicts: block intact) and include an explanation for changes.
  • Authors (Need Help?): Reach out to the Component Lead for technical guidance on complex code conflicts.
  • Component Leads (Review): Please review the Range Diff(s) above to verify the author's manual conflict resolution is correct for this release branch. If the deviation is intentional, documented, and approved then the component lead or @ceph/ceph-release-manager can bypass this check by commenting /audit override.

Be familiar with the rules and guidelines for writing backports.


🛟 Need Help?

If you need technical help resolving these issues, please consult with the Component Lead. If you need administrative overrides, please see the #ceph-upstream-releases channel on Slack and request a review from the @ceph/ceph-release-manager.

📋 Component Lead / Release Manager

To override the audit failure, apply releng-audit-override label or comment /audit override.


⚠️ Note: Automated audit checks will be suspended on future pushes to prevent comment spam while you work.

When you are ready for a new audit, please remove the releng-audit-fail label or comment /audit retest.

View workflow run

@github-actions github-actions Bot added the releng-audit-fail Release engineering: failed backport verification audit. label Sep 18, 2026
@github-actions github-actions Bot removed the releng-audit-fail Release engineering: failed backport verification audit. label Sep 21, 2026
@github-actions

Copy link
Copy Markdown

✅ Audit Override Applied by @idryomov.

View workflow run

@idryomov

Copy link
Copy Markdown
Contributor

jenkins test windows

@anrao19

anrao19 commented Sep 22, 2026

Copy link
Copy Markdown
Contributor

@SrinivasaBharath

Copy link
Copy Markdown
Contributor

This PR has been added to wip-bharath19-testing-20260922.090258-tentacle.

@NitzanMordhai

Copy link
Copy Markdown
Contributor

@anrao19

anrao19 commented Sep 28, 2026

Copy link
Copy Markdown
Contributor

@anrao19 anrao19 added RGW-TESTED testing from rgw completed and removed wip-anrao5-testing labels Sep 28, 2026
@batrick
batrick merged commit 814b8be into ceph:tentacle Sep 30, 2026
28 of 29 checks passed
@batrick batrick modified the milestones: tentacle, v20.2.5 Sep 30, 2026
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.

6 participants