Skip to content

Consolidate duplicate craft_s3_command into bucket_utils#14892

Draft
sagihirshfeld wants to merge 1 commit intored-hat-storage:masterfrom
sagihirshfeld:refactor/consolidate-craft-s3-command
Draft

Consolidate duplicate craft_s3_command into bucket_utils#14892
sagihirshfeld wants to merge 1 commit intored-hat-storage:masterfrom
sagihirshfeld:refactor/consolidate-craft-s3-command

Conversation

@sagihirshfeld
Copy link
Copy Markdown
Contributor

Remove the duplicate craft_s3_command from ocs_ci/helpers/helpers.py and update all consumers to use the version in ocs_ci/ocs/bucket_utils.py, which has proper SSL handling and multicluster support.

Port the max_attempts (AWS_MAX_ATTEMPTS) retry logic from the helpers version into bucket_utils, preserving the default of 8 attempts.

Remove the duplicate craft_s3_command from ocs_ci/helpers/helpers.py
and update all consumers to use the version in ocs_ci/ocs/bucket_utils.py,
which has proper SSL handling and multicluster support.

Port the max_attempts (AWS_MAX_ATTEMPTS) retry logic from the helpers
version into bucket_utils, preserving the default of 8 attempts.

Signed-off-by: Sagi Hirshfeld <shirshfe@redhat.com>

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Sagi Hirshfeld <shirshfe@redhat.com>
@sagihirshfeld sagihirshfeld self-assigned this Apr 14, 2026
@sagihirshfeld sagihirshfeld added Needs Testing Run tests and provide logs link MCG Multi Cloud Gateway / NooBaa related issues Squad/Red labels Apr 14, 2026
@openshift-ci
Copy link
Copy Markdown

openshift-ci bot commented Apr 14, 2026

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: sagihirshfeld

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@pull-request-size pull-request-size bot added the size/M PR that changes 30-99 lines label Apr 14, 2026
Copy link
Copy Markdown

@ocs-ci ocs-ci left a comment

Choose a reason for hiding this comment

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

PR validation on existing cluster

Cluster Name: shirshfe-22ibm02
Cluster Configuration: conf/deployment/ibmcloud/ipi_3az_rhcos_3m_3w.yaml
PR Test Suite:
PR Test Path: tests/functional/object/mcg/test_nsfs.py::TestNSFSObjectIntegrity::test_nsfs_list_objects tests/functional/object/mcg/test_sts_client.py::TestSTSClient::test_sts_assume_role tests/functional/object/mcg/test_bucket_logs.py::TestBucketLogs::test_guaranteed_bucket_logs_management tests/functional/object/mcg/test_lifecycle_configuration.py::TestLifecycleConfiguration::test_lifecycle_config_ops_s3_clients_compatibility
Additional Test Params: --skip-rpm-go-version-collection
OCP VERSION: 4.22
OCS VERSION: 4.22
tested against branch: master

Job UNSTABLE (some or all tests failed).

@sagihirshfeld
Copy link
Copy Markdown
Contributor Author

The above verification failed due to an unrelated teardown issue which is now addressed in this PR:
#14896

Copy link
Copy Markdown

@ocs-ci ocs-ci left a comment

Choose a reason for hiding this comment

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

PR validation on existing cluster

Cluster Name: shirshfe-22ibm02
Cluster Configuration: conf/deployment/ibmcloud/ipi_3az_rhcos_3m_3w.yaml
PR Test Suite:
PR Test Path: tests/functional/object/mcg/test_bucket_logs.py::TestBucketLogs::test_guaranteed_bucket_logs_management[default-logs-pvc]
Additional Test Params: --skip-rpm-go-version-collection
OCP VERSION: 4.22
OCS VERSION: 4.22
tested against branch: master

Job PASSED.

@sagihirshfeld sagihirshfeld added Verified Mark when PR was verified and log provided and removed Needs Testing Run tests and provide logs link labels Apr 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

do-not-merge/work-in-progress MCG Multi Cloud Gateway / NooBaa related issues size/M PR that changes 30-99 lines Squad/Red Verified Mark when PR was verified and log provided

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants