[COMMIT scylla-cluster-tests branch-2021.1] fix(install_scylla): adding workaround to JDK

0 views
Skip to first unread message

Commit Bot

<bot@cloudius-systems.com>
unread,
May 25, 2022, 2:21:07 AM5/25/22
to scylladb-dev@googlegroups.com, Fabio Gelcer
From: Fabio Gelcer <fa...@scylladb.com>
Committer: Israel Fruchter <israel....@gmail.com>
Branch: branch-2021.1

fix(install_scylla): adding workaround to JDK

because of issue https://github.com/scylladb/scylla/issues/10442
we need to add here this workaround, as the
base versions patches don't include the fix
for this issue.

---
diff --git a/sdcm/cluster.py b/sdcm/cluster.py
--- a/sdcm/cluster.py
+++ b/sdcm/cluster.py
@@ -2205,6 +2205,18 @@ def install_scylla(self, scylla_repo):
'sudo apt-get install -y -o Dpkg::Options::="--force-overwrite" -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" '
'--allow-unauthenticated {}'.format(self.scylla_pkg()))

+ # THIS IS A WORKAROUND FOR ISSUE https://github.com/scylladb/scylla/issues/10442
+ # the issue is related to JDK version, and the fix was added to later patches of multiple base versions,
+ # hence this is a temporary workaround to make the rolling upgrade tests to pass, until the latest
+ # patch of the supported releases will include the fix.
+ package_manager = 'yum' if self.is_rhel_like() else 'apt'
+ self.remoter.sudo(f'{package_manager} install zip unzip -y')
+ self.remoter.run('curl -s "https://get.sdkman.io" | bash')
+ self.remoter.run(shell_script_cmd("""
+ source "$HOME/.sdkman/bin/sdkman-init.sh"
+ sdk install java 8.0.302-open
+ """))
+
def offline_install_scylla(self, unified_package, nonroot):
"""
Offline install scylla by unified package.

Commit Bot

<bot@cloudius-systems.com>
unread,
May 29, 2022, 5:30:21 AM5/29/22
to scylladb-dev@googlegroups.com, Fabio Gelcer
From: Fabio Gelcer <fa...@scylladb.com>
Committer: Israel Fruchter <israel....@gmail.com>
Branch: master

fix(install_scylla): adding workaround to JDK

because of issue https://github.com/scylladb/scylla/issues/10442
we need to add here this workaround, as the
base versions patches don't include the fix
for this issue.

---
diff --git a/sdcm/cluster.py b/sdcm/cluster.py
--- a/sdcm/cluster.py
+++ b/sdcm/cluster.py
@@ -2044,6 +2044,21 @@ def install_scylla(self, scylla_repo):
'sudo apt-get install -y '
' {} '.format(self.scylla_pkg()))

+ # THIS IS A WORKAROUND FOR ISSUE https://github.com/scylladb/scylla/issues/10442
+ # the issue is related to JDK version, and the fix was added to later patches of multiple base versions,
+ # hence this is a temporary workaround to make the rolling upgrade tests to pass, until the latest
+ # patch of the supported releases will include the fix.
+ package_manager = 'yum' if self.is_rhel_like() else 'apt'
+ self.remoter.sudo(f'{package_manager} install zip unzip -y')
+ self.remoter.run('curl -s "https://get.sdkman.io" | bash')
+ self.remoter.run(shell_script_cmd("""
+ source "/home/$USER/.sdkman/bin/sdkman-init.sh"
+ sed -i s/sdkman_auto_answer=false/sdkman_auto_answer=true/ ~/.sdkman/etc/config
+ sed -i s/sdkman_auto_env=false/sdkman_auto_env=true/ ~/.sdkman/etc/config
+ sdk install java 8.0.302-open
+ sdk default java 8.0.302-open

Commit Bot

<bot@cloudius-systems.com>
unread,
May 29, 2022, 5:31:01 AM5/29/22
to scylladb-dev@googlegroups.com, Fabio Gelcer
From: Fabio Gelcer <fa...@scylladb.com>
Committer: Israel Fruchter <fr...@scylladb.com>
Branch: branch-2022.1

fix(install_scylla): adding workaround to JDK

because of issue https://github.com/scylladb/scylla/issues/10442
we need to add here this workaround, as the
base versions patches don't include the fix
for this issue.

(cherry picked from commit 4aa15e3b43c4b2bfe4cdc0df01cbc0c77c1d804c)

---
diff --git a/sdcm/cluster.py b/sdcm/cluster.py
--- a/sdcm/cluster.py
+++ b/sdcm/cluster.py
@@ -2017,6 +2017,21 @@ def install_scylla(self, scylla_repo):

Commit Bot

<bot@cloudius-systems.com>
unread,
May 29, 2022, 5:31:04 AM5/29/22
to scylladb-dev@googlegroups.com, Fabio Gelcer
From: Fabio Gelcer <fa...@scylladb.com>
Committer: Israel Fruchter <fr...@scylladb.com>
Branch: branch-5.0

fix(install_scylla): adding workaround to JDK

because of issue https://github.com/scylladb/scylla/issues/10442
we need to add here this workaround, as the
base versions patches don't include the fix
for this issue.

(cherry picked from commit 4aa15e3b43c4b2bfe4cdc0df01cbc0c77c1d804c)

---
diff --git a/sdcm/cluster.py b/sdcm/cluster.py
--- a/sdcm/cluster.py
+++ b/sdcm/cluster.py
@@ -2040,6 +2040,21 @@ def install_scylla(self, scylla_repo):

Commit Bot

<bot@cloudius-systems.com>
unread,
May 29, 2022, 5:31:48 AM5/29/22
to scylladb-dev@googlegroups.com, Fabio Gelcer
From: Fabio Gelcer <fa...@scylladb.com>
Committer: Israel Fruchter <fr...@scylladb.com>
Branch: branch-4.5

fix(install_scylla): adding workaround to JDK

because of issue https://github.com/scylladb/scylla/issues/10442
we need to add here this workaround, as the
base versions patches don't include the fix
for this issue.

(cherry picked from commit 4aa15e3b43c4b2bfe4cdc0df01cbc0c77c1d804c)

---
diff --git a/sdcm/cluster.py b/sdcm/cluster.py
--- a/sdcm/cluster.py
+++ b/sdcm/cluster.py
@@ -2238,6 +2238,21 @@ def install_scylla(self, scylla_repo):

Commit Bot

<bot@cloudius-systems.com>
unread,
May 29, 2022, 5:31:49 AM5/29/22
to scylladb-dev@googlegroups.com, Fabio Gelcer
From: Fabio Gelcer <fa...@scylladb.com>
Committer: Israel Fruchter <fr...@scylladb.com>
Branch: branch-4.6

fix(install_scylla): adding workaround to JDK

because of issue https://github.com/scylladb/scylla/issues/10442
we need to add here this workaround, as the
base versions patches don't include the fix
for this issue.

(cherry picked from commit 4aa15e3b43c4b2bfe4cdc0df01cbc0c77c1d804c)

---
diff --git a/sdcm/cluster.py b/sdcm/cluster.py
--- a/sdcm/cluster.py
+++ b/sdcm/cluster.py
@@ -2022,6 +2022,21 @@ def install_scylla(self, scylla_repo):

Commit Bot

<bot@cloudius-systems.com>
unread,
May 29, 2022, 5:44:38 AM5/29/22
to scylladb-dev@googlegroups.com, Fabio Gelcer
From: Fabio Gelcer <fa...@scylladb.com>
Committer: Israel Fruchter <fr...@scylladb.com>
Branch: branch-2020.1

fix(install_scylla): adding workaround to JDK

because of issue https://github.com/scylladb/scylla/issues/10442
we need to add here this workaround, as the
base versions patches don't include the fix
for this issue.

(cherry picked from commit 4aa15e3b43c4b2bfe4cdc0df01cbc0c77c1d804c)

---
diff --git a/sdcm/cluster.py b/sdcm/cluster.py
--- a/sdcm/cluster.py
+++ b/sdcm/cluster.py
@@ -2170,6 +2170,22 @@ def install_scylla(self, scylla_repo):
'sudo apt-get install -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" {}'
'--allow-unauthenticated {}'.format(force, self.scylla_pkg()))

+ # THIS IS A WORKAROUND FOR ISSUE https://github.com/scylladb/scylla/issues/10442
+ # the issue is related to JDK version, and the fix was added to later patches of multiple base versions,
+ # hence this is a temporary workaround to make the rolling upgrade tests to pass, until the latest
+ # patch of the supported releases will include the fix.
+ package_manager = 'yum' if self.is_rhel_like() else 'apt'
+ self.remoter.run(f'sudo {package_manager} install zip unzip -y')
+ self.remoter.run('curl -s "https://get.sdkman.io" | bash')
+ cmd = """
+ source "/home/$USER/.sdkman/bin/sdkman-init.sh"
+ sed -i s/sdkman_auto_answer=false/sdkman_auto_answer=true/ ~/.sdkman/etc/config
+ sed -i s/sdkman_auto_env=false/sdkman_auto_env=true/ ~/.sdkman/etc/config
+ sdk install java 8.0.302-open
+ sdk default java 8.0.302-open
+ """
+ self.remoter.run(f'bash -cxe "{dedent(cmd)}"')
+
def install_scylla_debuginfo(self):
self.log.info("Installing Scylla debug info...")
if not self.scylla_version:

Commit Bot

<bot@cloudius-systems.com>
unread,
May 29, 2022, 5:47:21 AM5/29/22
to scylladb-dev@googlegroups.com, Fabio Gelcer
From: Fabio Gelcer <fa...@scylladb.com>
Committer: Israel Fruchter <fr...@scylladb.com>
Branch: branch-2021.1

fix(install_scylla): adding workaround to JDK

because of issue https://github.com/scylladb/scylla/issues/10442
we need to add here this workaround, as the
base versions patches don't include the fix
for this issue.

(cherry picked from commit 4aa15e3b43c4b2bfe4cdc0df01cbc0c77c1d804c)

---
diff --git a/sdcm/cluster.py b/sdcm/cluster.py
--- a/sdcm/cluster.py
+++ b/sdcm/cluster.py
@@ -2217,6 +2217,21 @@ def install_scylla(self, scylla_repo):
sdk install java 8.0.302-open
"""))

+ # THIS IS A WORKAROUND FOR ISSUE https://github.com/scylladb/scylla/issues/10442
+ # the issue is related to JDK version, and the fix was added to later patches of multiple base versions,
+ # hence this is a temporary workaround to make the rolling upgrade tests to pass, until the latest
+ # patch of the supported releases will include the fix.
+ package_manager = 'yum' if self.is_rhel_like() else 'apt'
+ self.remoter.sudo(f'{package_manager} install zip unzip -y')
+ self.remoter.run('curl -s "https://get.sdkman.io" | bash')
+ self.remoter.run(shell_script_cmd("""
+ source "/home/$USER/.sdkman/bin/sdkman-init.sh"
+ sed -i s/sdkman_auto_answer=false/sdkman_auto_answer=true/ ~/.sdkman/etc/config
+ sed -i s/sdkman_auto_env=false/sdkman_auto_env=true/ ~/.sdkman/etc/config
+ sdk install java 8.0.302-open
+ sdk default java 8.0.302-open
Reply all
Reply to author
Forward
0 new messages