Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

inventory file update : jdk or oathtool #4348

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

manisha-reddem
Copy link

@manisha-reddem manisha-reddem commented Jan 3, 2025

Centralize package versions (e.g., JDK, oathtool) in an inventory to simplify updates across suites.
log: http://magna002.ceph.redhat.com/ceph-qe-logs/mreddem/cephci-run-BLWG2P/Test_BucketNotification_with_users_in_same_tenant_and_different_tenant_0.log - for jdk package
log: http://magna002.ceph.redhat.com/ceph-qe-logs/mreddem/cephci-run-IP5QZM/multipart_versioned_object_deletion_with_mfa_token_0.log - for oathtool package

issue: https://issues.redhat.com/browse/RHCEPHQE-16965

  • Create a test case in Polarion reviewed and approved.
  • Create a design/automation approach doc. Optional for tests with similar tests already automated.
  • Review the automation design
  • Implement the test script and perform test runs
  • Submit PR for code review and approve
  • Update Polarion Test with Automation script details and update automation fields
  • If automation is part of Close loop, update BZ flag qe-test_coverage “+” and link Polarion test

Comment on lines 48 to 53

extra-packages:
jdk:
url: wget https://download.oracle.com/java/23/latest/jdk-23_linux-x64_bin.rpm
oathtool:
url: https://dl.fedoraproject.org/pub/epel/9/Everything/x86_64/Packages/o/oathtool-2.6.12-1.el9.x86_64.rpm
Copy link
Contributor

Choose a reason for hiding this comment

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

Can this be driven through test input as it is specific to a test suite or group?

Copy link
Author

Choose a reason for hiding this comment

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

Yes, we can specify the package names we need to install in the test suite, and based on the test input, it will install the required package versions from the inventory file.

Copy link
Contributor

Choose a reason for hiding this comment

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

IMHO, we should not be using inventory file. It should be part of the test configuration. Keeping it test configuration allows us to keep the test idempotent.

Copy link
Contributor

Choose a reason for hiding this comment

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

I think this fix stems from this comment #4186 (comment)... there I have mentioned installing the required packages via runcmd and not a separate key. Let's chat offline

@@ -116,14 +116,27 @@ def run(ceph_cluster, **kw):
# install extra package which are test specific
if extra_pkgs:
log.info(f"got extra pkgs: {extra_pkgs}")
inventory_data = config.get("inventory")
Copy link
Contributor

Choose a reason for hiding this comment

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

This creates a dependency on virtual environment. The tests should be agonistic of the platform used for deploying the test environment.

Copy link
Author

Choose a reason for hiding this comment

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

We can ensure that the required packages are added to all environments, making the test environment platform-independent.

@manisha-reddem manisha-reddem added DNM Do Not Merge RGW Rados Gateway and removed DNM Do Not Merge labels Jan 7, 2025
Copy link
Contributor

@psathyan psathyan left a comment

Choose a reason for hiding this comment

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

/lgtm

@@ -0,0 +1,53 @@
---
Copy link
Contributor

Choose a reason for hiding this comment

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

generalizing the name may be a bit difficult instead opt to use rhel-9.5.0-x86_64-rgw.yaml

@openshift-ci openshift-ci bot added the lgtm Add this label when the PR is good to be merged label Jan 19, 2025
Copy link
Contributor

openshift-ci bot commented Jan 19, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: manisha-reddem, psathyan

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

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

@psathyan psathyan dismissed their stale review January 19, 2025 04:22

Latest changes are good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm Add this label when the PR is good to be merged RGW Rados Gateway
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants