Skip to content

Commit d552531

Browse files
authored
Merge pull request #59 from varkoly/SLE-15-SP3
Check if HANA DB is running on the nodes
2 parents f1602c5 + 29aad0e commit d552531

File tree

12 files changed

+53
-9
lines changed

12 files changed

+53
-9
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@ jobs:
2424

2525
- name: Unit Tests
2626
run: rake test:unit
27-
# enable code coverage reporting
27+
# disable code coverage reporting
2828
env:
29-
COVERAGE: 1
29+
COVERAGE: 0
3030

3131
# send the coverage report to coveralls.io
32-
- name: Coveralls Report
33-
uses: coverallsapp/github-action@master
34-
with:
35-
github-token: ${{ secrets.GITHUB_TOKEN }}
32+
#- name: Coveralls Report
33+
# uses: coverallsapp/github-action@master
34+
# with:
35+
# github-token: ${{ secrets.GITHUB_TOKEN }}
3636

3737
Package:
3838
runs-on: ubuntu-latest

package/yast2-sap-ha.changes

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
-------------------------------------------------------------------
2+
Thu Feb 6 08:58:53 UTC 2025 - Peter Varkoly <varkoly@suse.com>
3+
4+
- yast sap_ha should check if HDB is running on primary
5+
(bsc#1235773) Build in a check if the DB is running on both nodes.
6+
- 4.3.1
7+
18
-------------------------------------------------------------------
29
Mon Aug 7 05:06:22 UTC 2023 - Peter Varkoly <varkoly@suse.com>
310

package/yast2-sap-ha.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818

1919
Name: yast2-sap-ha
20-
Version: 4.3.0
20+
Version: 4.3.1
2121
Release: 0
2222

2323
BuildArch: noarch

src/data/sap_ha/help_prereq_hana_su_co.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ <h3>SAP HANA System Replication Scale Up: Cost-Optimized</h3>
55
There are two machines with SAP HANA installed.
66
<br/> Note that the machine you run the wizard on becomes the primary node in the cluster.
77
</li>
8+
<li>Verify that both databases are up and running.</li>
89
<li>
910
You have created one of the following:
1011
<ul type="square">

src/data/sap_ha/help_prereq_hana_su_co_azure.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ <h3>SAP HANA System Replication Scale Up: Cost-Optimized in Microsoft&reg; Azure
1818
There are two machines with SAP HANA installed.
1919
<br/> Note that the machine you run the wizard on becomes the primary node in the cluster.
2020
</li>
21+
<li>Verify that both databases are up and running.</li>
2122
<li>
2223
The master node SSH public key is authorized for SSH access to the secondary node. This is needed when SSH password access is disabled, which is the default on Microsoft Azure.
2324
</li>

src/data/sap_ha/help_prereq_hana_su_mt.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ <h3>SAP HANA System Replication Scale Up: Multi-Tier</h3>
55
There are two machines with SAP HANA installed.
66
<br> Note that the machine you run the wizard on becomes the primary node in the cluster.
77
</li>
8+
<li>Verify that both databases are up and running.</li>
89
<li>
910
You have created one of the following:
1011
<ul type="square">

src/data/sap_ha/help_prereq_hana_su_mt_azure.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ <h3>SAP HANA System Replication Scale Up: Multi-Tier in Microsoft&reg; Azure&reg
1818
There are two machines with SAP HANA installed.
1919
<br> Note that the machine you run the wizard on becomes the primary node in the cluster.
2020
</li>
21+
<li>Verify that both databases are up and running.</li>
2122
<li>
2223
The master node SSH public key is authorized for SSH access to the secondary node. This is needed when SSH password access is disabled, which is the default on Microsoft Azure.
2324
</li>

src/data/sap_ha/help_prereq_hana_su_po.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ <h3>SAP HANA System Replication Scale Up: Performance-Optimized</h3>
55
There are two machines with SAP HANA installed.
66
<br> Note that the machine you run the wizard on becomes the primary node in the cluster.
77
</li>
8+
<li>Verify that both databases are up and running.</li>
89
<li>
910
You have created one of the following:
1011
<ul type="square">

src/data/sap_ha/help_prereq_hana_su_po_azure.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ <h3>SAP HANA System Replication Scale Up: Performance-Optimized in Microsoft&reg
1818
There are two machines with SAP HANA installed.
1919
<br> Note that the machine you run the wizard on becomes the primary node in the cluster.
2020
</li>
21+
<li>Verify that both databases are up and running.</li>
2122
<li>
2223
The master node SSH public key is authorized for SSH access to the secondary node. This is needed when SSH password access is disabled, which is the default on Microsoft Azure.
2324
</li>

src/lib/sap_ha/configuration/cluster.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,13 @@ def other_nodes
247247
ips
248248
end
249249

250+
# return all IPs of the first ring
251+
def all_nodes
252+
ips = @nodes.map { |_, n| n[:ip_ring1] }
253+
return [] if ips.any?(&:empty?)
254+
ips
255+
end
256+
250257
def set_host_password(ip, password)
251258
node = @nodes.values.find { |v| v[:ip_ring1] == ip }
252259
if node.nil?

0 commit comments

Comments
 (0)