Skip to content

Commit

Permalink
inventory file update : jdk or oathtool
Browse files Browse the repository at this point in the history
Signed-off-by: Reddem Manisha <[email protected]>
  • Loading branch information
Reddem Manisha authored and Reddem Manisha committed Jan 24, 2025
1 parent 58d6d99 commit 4314975
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 11 deletions.
53 changes: 53 additions & 0 deletions conf/inventory/rhel-9.5.0-x86_64-rgw.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
---
version_id: 9.5
id: rhel
instance:
create:
image-name: RHEL-9.5.0-x86_64-ga-latest
vm-size: ci.standard.medium

setup: |
#cloud-config
ssh_pwauth: true
disable_root: false
groups:
- cephuser
users:
- name: cephuser
primary-group: cephuser
sudo: ALL=(ALL) NOPASSWD:ALL
shell: /bin/bash
ssh-authorized-keys:
- ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC4eHmz10szeHNS3dNejKokW85ksB+iR4HGOFsmQM11Ni68Nm5aqEKvkOZU8TpY92vpCQL0A68GlrXB845cACdyk6HUJYyNNNMC43l1FYWOwjMqQBSdj8W3VQDTA6eiG60mt5fgI8fyR38rKzIA1MnTBkSSjuh5kQVJ9bdEp3GuY5oc8vxDNBlGJ6LYnyEWt/pqL2J+mpjqnOjsC+EbE2exhP9O+mvzpQiyo/+dEN1COwX3//pNRXGfOSeOczHNsJE8Eu+j/n/BlW57++sJyFMkzS7bUxMSGM6quvjQZ7RT1c5JM6vLEiQyzQxoRgzY93h1yKlOstBi0NamtpqHQZGP [email protected]
- ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCyaKj0phxJTD2ZblCbujHOlH3KWx4WlEUdKWxftfBarFbN9tztClUXC4WtSDXsJeith9/JaiXkJMNulSEmZ1+WfpaS1CKiBxyy/6lzwaiqnphiIJIZu7mQTOydcc0ACIE1g/sm0yBpOQRaa28BFAlQxN5IFVzQqws1M3uSYU9iyOj8CZagnavIHMPfw7wOVX+ncUl+YIySRgsjbtrLPm1cfEcutpT8SphNOu6mKDq5jN9jVqn5j+2KxAmJRjkKmEyNXrzhTUgdBrxfJ877JkeyNfjzaptX29ms1LzJxVPV0pitJ7gHirc3LlZ8PihIdWR52Ts2BwcF86/2CB39nw+NCXSICbGmWues0m5BjIC7utGERA/fU5eE7CnTKFuUaONkL7CGqQN/7bak0E9IUJqzyRswDub93j9QyXfV305wHF4nfOeHLDKbcQHgLM1/rjs6BQMZvJlS+f+2kJHMfFD9UYCrnhdMpLXTvJ8amlF9J+HUhu7zLPNuEjJf9I4aNb0= [email protected]
- ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDPHFNcyrHISbDksvZcICQFpVXOjYgSHuDIjMYHzaFh+2wOZxLE6NmHwhTJDEqW1WogzdfqFa39c6b4Mhm3JFDu8fbHs/2uccVdZrAEAdXBi++SMBzDTkBjp+6RTW8xHBKBBm/xbtCS2KuSMYWCzmT1bk87ZzzOY/4ov8UAOm6g5eouR1qpohCaRVmoVVankb4FAi8VGT1McQm6eiecebKNzMUP08eidKyCfpKgObSiEFTp7grAyv8BVNNsJTgLOtwoyfJbEbZridxgEqrDhF21WpqloeiyG4YPWN3TeDYtqaedtIjcfiOizy9HmsSu8miusfvMEjFgR9G2xbpudOyv [email protected]
chpasswd:
list: |
root:passwd
cephuser:pass123
expire: false
runcmd:
- sed -i -e 's/^Defaults\s\+requiretty/# \0/' /etc/sudoers
- echo "net.core.default_qdisc=netem" > /etc/sysctl.d/1000-qdisc.conf
- subscription-manager clean
- timedatectl set-timezone Etc/UTC
- hostnamectl set-hostname $(hostname -s)
- sed -i -e 's/#PermitRootLogin .*/PermitRootLogin yes/' /etc/ssh/sshd_config
- systemctl restart sshd
- curl -m 120 -o /etc/pki/ca-trust/source/anchors/ceph-qe-ca.pem http://magna002.ceph.redhat.com/cephci-jenkins/.cephqe-ca.pem
- curl -m 120 -k -o /etc/pki/ca-trust/source/anchors/RH-IT-Root-CA.crt https://certs.corp.redhat.com/certs/Current-IT-Root-CAs.pem
- update-ca-trust
- touch /ceph-qa-ready
- mkdir -p /root/rgw_rpms
- curl -k -o /root/rgw_rpms/jdk.rpm https://download.oracle.com/java/23/latest/jdk-23_linux-x64_bin.rpm
- curl -k -o /root/rgw_rpms/oathtool.rpm https://dl.fedoraproject.org/pub/epel/9/Everything/x86_64/Packages/o/oathtool-2.6.12-1.el9.x86_64.rpm
final_message: "Ready for ceph qa testing"
2 changes: 1 addition & 1 deletion suites/reef/rgw/tier-2_rgw_regression_extended.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ tests:
config:
run-on-rgw: true
extra-pkgs:
- wget https://download.oracle.com/java/23/latest/jdk-23_linux-x64_bin.rpm
- jdk
install_start_kafka: true
script-name: test_bucket_policy_with_tenant_user.py
config-file-name: test_put_get_bucket_notification_with_tenant_same_and_different_user.yaml
Expand Down
3 changes: 1 addition & 2 deletions suites/reef/rgw/tier-2_rgw_regression_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -506,8 +506,7 @@ tests:
script-name: test_rgw_mfa.py
config-file-name: test_rgw_mfa_multipart.yaml
extra-pkgs:
9:
- https://dl.fedoraproject.org/pub/epel/9/Everything/x86_64/Packages/o/oathtool-2.6.12-1.el9.x86_64.rpm
- oathtool

- test:
name: incorrect syntax for mfa resync commnad appropriate usage message is displayed
Expand Down
13 changes: 5 additions & 8 deletions tests/rgw/sanity_rgw.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,6 @@ def run(ceph_cluster, **kw):
else config.get("run-on-haproxy", False)
)

distro_version_id = rgw_node.distro_info["VERSION_ID"]

if run_on_rgw:
exec_from = rgw_node
append_param = ""
Expand All @@ -116,14 +114,13 @@ def run(ceph_cluster, **kw):
# install extra package which are test specific
if extra_pkgs:
log.info(f"got extra pkgs: {extra_pkgs}")
if isinstance(extra_pkgs, dict):
_pkgs = extra_pkgs.get(int(distro_version_id[0]))
pkgs = " ".join(_pkgs)
else:
pkgs = " ".join(extra_pkgs)
package_path = "/root/rgw_rpms"
pkgs_str = ""
for pkg in extra_pkgs:
pkgs_str += f"{package_path}/{pkg}.rpm "

exec_from.exec_command(
sudo=True, cmd=f"yum install -y {pkgs}", long_running=True
sudo=True, cmd=f"yum install -y {pkgs_str}", long_running=True
)

log.info("Flushing iptables")
Expand Down

0 comments on commit 4314975

Please sign in to comment.