Repository navigation
squid: qa,src: replace deprecated egrep/fgrep with grep -E/grep -F - #71918
Conversation
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.
egrep marked as obsolete, update it to grep -E Signed-off-by: Nitzan Mordechai <[email protected]> Signed-off-by: Samuel Just <[email protected]> (cherry picked from commit 6dfb84e) Signed-off-by: Lumir Sliva <[email protected]> Conflicts: qa/tasks/cephadm.py: squid reads the cluster log path from the log_path variable instead of formatting it inline. Kept the squid form and applied the egrep -> grep -E change only.
|
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 |
There was a problem hiding this comment.
Ceph Release Engineering Audit Report
Automated Redmine Linkage Audit
The following tracking irregularities were found:
- Orphaned Main PR: Could not find a Redmine tracker for
mainPR #66155. Please create a ticket, set its 'Pull Request ID', populate the 'Backport' field, and ensure it is in the 'Pending Backport' state.
Automated Backport Parity Review - Multiple PRs Detected
This backport appears to pull commits from multiple main PRs including: PR #66155, PR #68095.
This must be made explicit in the backport PR description. Furthermore, each backport tracker ticket associated with these main PRs must be linked to this PR.
Commit Parity Visualizer
| BACKPORT PR #71918 | SOURCE PR |
SOURCE STATUS |
|---|---|---|
| ed35b90 qa/tasks: update egrep to 'grep -E' | PR #66155 | 6dfb84e qa/tasks: update egrep to 'grep -E' |
| fc1847f 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
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 fc1847f (cherry-pick of 8b9dbb5)
Affected File(s)
qa/workunits/rbd/cli_generic.sh
Range Diff
Click to expand
--- Original (8b9dbb50)
+++ Backport (fc1847f3)
@@ -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: fc1847f3d75 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)"Deviation in Backport ed35b90 (cherry-pick of 6dfb84e)
Affected File(s)
qa/tasks/cephadm.py
Range Diff
Click to expand
--- Original (6dfb84e8)
+++ Backport (ed35b909)
@@ -4,3 +4,10 @@
Signed-off-by: Nitzan Mordechai <[email protected]>
Signed-off-by: Samuel Just <[email protected]>
+(cherry picked from commit 6dfb84e8246d625642fd751c63a3954fdd36cf88)
+Signed-off-by: Lumir Sliva <[email protected]>
+
+Conflicts:
+ qa/tasks/cephadm.py: squid reads the cluster log path from the
+ log_path variable instead of formatting it inline. Kept the squid
+ form and applied the egrep -> grep -E change only.
================================================================================
RANGE DIFF
================================================================================
1: 6dfb84e8246 ! 1: ed35b909262 qa/tasks: update egrep to 'grep -E'
@@ Commit message
Signed-off-by: Nitzan Mordechai <[email protected]>
Signed-off-by: Samuel Just <[email protected]>
+ (cherry picked from commit 6dfb84e8246d625642fd751c63a3954fdd36cf88)
+ Signed-off-by: Lumir Sliva <[email protected]>
+
+ Conflicts:
+ qa/tasks/cephadm.py: squid reads the cluster log path from the
+ log_path variable instead of formatting it inline. Kept the squid
+ form and applied the egrep -> grep -E change only.
## qa/tasks/ceph.py ##
@@ qa/tasks/ceph.py: def cluster(ctx, config):
@@ qa/tasks/ceph.py: def restart(ctx, config):
## qa/tasks/cephadm.py ##
@@ qa/tasks/cephadm.py: def ceph_log(ctx, config):
- """
- args = [
- 'sudo',
-- 'egrep', pattern,
-+ 'grep', '-E', pattern,
- '/var/log/ceph/{fsid}/ceph.log'.format(
- fsid=fsid),
+ log_path,
]
if only_match:
- args.extend([run.Raw('|'), 'egrep', '|'.join(only_match)])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.
When you are ready for a new audit, please remove the releng-audit-fail label or comment /audit retest.
|
✅ Audit Override Applied by @idryomov. |
|
This PR has been added to squid integration testing by anuchaithra started 2026-09-22-04:04. |
Testing completed for RGW suites and got approval from @ivancich, morr details in https://tracker.ceph.com/issues/80710. |
|
This PR has been added to wip-bharath26-testing-20260924.011509-squid. |
backport tracker: https://tracker.ceph.com/issues/80658
backport of #68095 and #66155
parent tracker: https://tracker.ceph.com/issues/75776
this backport was staged manually
Two commits:
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.
qa/tasks: update egrep to 'grep -E' #66155). That went to tentacle as
tentacle: qa/tasks: update egrep to 'grep -E' #67518 but never to squid, and without
it squid still shells out to egrep in first_in_ceph_log, which runs on
every job teardown. Squid reads the cluster log path from a log_path
variable where main formats it inline, so qa/tasks/cephadm.py needed a
one-line resolution.
Left alone: src/vstart.sh (fixed on main by 745cece, never
backported), two doc examples, and
qa/suites/upgrade/quincy-x/stress-split/1-start.yaml, which has no
counterpart on main since the quincy-x suite is gone there.
Checklist