Skip to content

Commit

Permalink
Dev: Dockerfile: Update dockerfile after corosync3 is in the Factory (C…
Browse files Browse the repository at this point in the history
…lusterLabs#1470)

Changes include:
- Dev: Dockerfile: Update dockerfile after corosync3 is in the Factory
- Dev: testcases: Replace IPaddr with IPaddr2
- Dev: testcases: Replace LVM with LVM-activate
  • Loading branch information
nicholasyang2022 authored Jun 26, 2024
2 parents c6cc599 + 4be0bea commit 8f0ed3e
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 13 deletions.
2 changes: 1 addition & 1 deletion scripts/lvm/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ longdesc: >-
Does not create the referenced volume group.
include:
- agent: ocf:heartbeat:LVM
- agent: ocf:heartbeat:LVM-activate
name: lvm
parameters:
- name: id
Expand Down
2 changes: 1 addition & 1 deletion templates/virtual-ip
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

%generate

primitive %_ ocf:heartbeat:IPaddr
primitive %_ ocf:heartbeat:IPaddr2
params ip=%_:ip
opt cidr_netmask=%_:netmask
opt lvs_support=%_:lvs_support
4 changes: 2 additions & 2 deletions test/testcases/bugs.exp
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,8 @@ property SAPHanaSR_2: \
INFO: 6: pulling in template virtual-ip
.INP: load vip
.INP: apply update
.EXT crm_resource --show-metadata ocf:heartbeat:IPaddr
.EXT crm_resource --list-ocf-alternatives IPaddr
.EXT crm_resource --show-metadata ocf:heartbeat:IPaddr2
.EXT crm_resource --list-ocf-alternatives IPaddr2
.INP: up
.INP: commit
.EXT crm_resource --list-options=primitive --all --output-as=xml
Expand Down
2 changes: 1 addition & 1 deletion test/testcases/ra
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
session RA interface
ra
providers IPaddr
providers IPaddr2
providers Dummy
info ocf:pacemaker:Dummy
info stonith:external/ssh
Expand Down
2 changes: 1 addition & 1 deletion test/testcases/ra.exp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.TRY RA interface
.INP: ra
.INP: providers IPaddr
.INP: providers IPaddr2

heartbeat
.INP: providers Dummy
Expand Down
4 changes: 2 additions & 2 deletions test/testcases/scripts.exp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
.EXT crm_resource --show-metadata ocf:heartbeat:db2
.EXT crm_resource --show-metadata ocf:heartbeat:exportfs
.EXT crm_resource --show-metadata systemd:haproxy
.EXT crm_resource --show-metadata ocf:heartbeat:LVM
.EXT crm_resource --show-metadata ocf:heartbeat:LVM-activate
.EXT crm_resource --show-metadata ocf:heartbeat:MailTo
.EXT crm_resource --show-metadata ocf:heartbeat:nginx
.EXT crm_resource --show-metadata ocf:heartbeat:Raid1
Expand Down Expand Up @@ -110,7 +110,7 @@ Script:

check-uptime Check uptime of nodes
gfs2-base GFS2 File System Base (Cloned)
lvm Controls the availability of an LVM Volume Group
lvm This agent activates/deactivates logical volumes.
raid1 Manages Linux software RAID (MD) devices on shared storage
sapdb SAP Database Instance
sapinstance SAP Instance
Expand Down
6 changes: 1 addition & 5 deletions test_container/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,7 @@ RUN zypper refresh && \
zypper -n install systemd \
make autoconf automake vim which libxslt-tools mailx iproute2 iputils bzip2 openssh tar file glibc-locale-base firewalld libopenssl1_1 dos2unix iptables cpio gawk \
python3 python3-pip python3-lxml python3-python-dateutil python3-setuptools python3-PyYAML python3-curses python3-behave python3-coverage python3-packaging \
csync2 libglue-devel corosync corosync-qdevice pacemaker booth corosync-qnetd
RUN zypper ar -f -G https://download.opensuse.org/repositories/network:/ha-clustering:/Unstable/openSUSE_Tumbleweed/ repo_corosync3 && \
zypper --non-interactive refresh && \
zypper --non-interactive up --allow-vendor-change -y corosync corosync-qdevice corosync-qnetd pacemaker && \
zypper --non-interactive in libknet1-*
csync2 libglue-devel corosync corosync-qdevice pacemaker booth corosync-qnetd libknet1-*

RUN ssh-keygen -t rsa -f /root/.ssh/id_rsa -N '' && \
cp /root/.ssh/id_rsa.pub /root/.ssh/authorized_keys && \
Expand Down

0 comments on commit 8f0ed3e

Please sign in to comment.