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

There are some issues in yast2-cluster write function #110

Open
wants to merge 1 commit into
base: SLE-15-SP3
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions package/yast2-cluster.changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
-------------------------------------------------------------------
Thu Mar 23 07:55:52 UTC 2023 - Peter Varkoly <varkoly@suse.com>

- bsc#1209602 bugs in yast2-cluster Write funcion
- Remove sensless call to sysconfig.openais
- Remove sensless sysconfig.openais agent
- Enable csync2.socket
- Add SCR.Write(PATH,nil) to save the configuration inmediately
- Version 4.3.8

-------------------------------------------------------------------
Thu Nov 3 06:08:28 UTC 2022 - XinLiang <XLiang@suse.com>

Expand Down
2 changes: 1 addition & 1 deletion package/yast2-cluster.spec
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
%define _fwdefdir %{_prefix}/lib/firewalld/services

Name: yast2-cluster
Version: 4.3.7
Version: 4.3.8
Release: 0
Summary: Configuration of cluster
License: GPL-2.0-only
Expand Down
9 changes: 3 additions & 6 deletions src/modules/Cluster.rb
Original file line number Diff line number Diff line change
Expand Up @@ -531,13 +531,10 @@ def save_csync2_conf
SCR.Write(path(".csync2_ha.value.ha_group.host"), @csync2_host)
SCR.Write(path(".csync2_ha.value.ha_group.include"), @csync2_include)
SCR.Write(path(".csync2_ha.value.ha_group.key"), [@csync2_key_file])
SCR.Write(path(".csync2_ha"), nil)

SCR.Write(path(".sysconfig.pacemaker.LRMD_MAX_CHILDREN"), 4)
SCR.Write(
path(".sysconfig.openais.COROSYNC_DEFAULT_CONFIG_IFACE"),
"openaisserviceenableexperimental:corosync_parser"
)

SCR.Write(path(".sysconfig.pacemaker"), nil)
nil
end

Expand Down Expand Up @@ -747,7 +744,7 @@ def Write
SCR.Execute(path(".target.bash_output"), "systemctl enable corosync.service")
end
if @global_startcsync2 == true
SCR.Execute(path(".target.bash_output"), "systemctl enable csync2")
SCR.Execute(path(".target.bash_output"), "systemctl enable csync2.socket")
end

return false if Abort()
Expand Down
16 changes: 0 additions & 16 deletions src/scrconf/cfg_openais.scr

This file was deleted.