HA cluster ha-cluster-join csync2 can't retrieve config

I have set up 2 SLES HA machines, and run ha-cluster-init on the first one, as stated in quick start document, and then I ran ha-cluster-join. Then I get error:

"Configuring csync2...ERROR: 1: cluster.join: Can't retrieve csync2 config from sles-a"

If i try to retrieve file manually it works fine:

sles-b:~ # scp root@sles-a:'/etc/csync2/csync2.cfg' /etc/csync2 csync2.cfg 100% 516 672.2KB/s 00:00

The whole output of ha-cluster-join:

[CODE]sles-b:~ # ha-cluster-join
Join This Node to Cluster:
You will be asked for the IP address of an existing node, from which
configuration will be copied. If you have not already configured
passwordless ssh between nodes, you will be prompted for the root
password of the existing node.

IP address or hostname of existing node (e.g.: 192.168.1.1) []sles-a
Retrieving SSH keys - This may prompt for root@sles-a:
/root/.ssh/id_rsa already exists - overwrite (y/n)? y
One new SSH key installed
Configuring csync2…ERROR: 1: cluster.join: Can’t retrieve csync2 config from sles-a[/CODE]

Hawk2 website works fine, node1 (sles-a for me) or virtual IP, resources can be added, stopped, started, … tested with apache2 server. Bot devices can ssh passwordless into each other. Both devices are virtual machines, bridged to LAN. Does anyone know if this is a problem with setup script or did I do something wrong? If I take command from script and run it I get this error:

[CODE]sles-b:~ # scp root@sles-a:’/etc/csync2/{csync2.cfg,key_hagroup}’ \ /etc/csync2
error: unexpected filename: csync2.cfg

sles-b:~ # scp root@sles-a:’/etc/csync2/{csync2.cfg,key_hagroup}’ /etc/csync2
error: unexpected filename: csync2.cfg
[/CODE]

Thank you in advance to anyone willing to try to help
Kristjan

Hi Kristjan,

sles-b:~ # scp root@sles-a:'/etc/csync2/{csync2.cfg,key_hagroup}’ /etc/csync2
error: unexpected filename: csync2.cfg

does calling “sles-b:~ # scp root@sles-a:/etc/csync2/{csync2.cfg,key_hagroup} /etc/csync2” (without the single quotes) work manually? Maybe it’s not about csync2,conf, but key_hagroup…

Regards,
J

Older versions of scp work, new versions of scp (SLES 12 SP3 and SP4) are broken.
On older versions this works:
scp hana-n5:’/etc/{hosts,resolv.conf}’ .
hosts 100% 608 0.6KB/s 00:00
resolv.conf 100% 852 0.8KB/s 00:00

On newer versions, scp fails:
error: unexpected filename: hosts

The problem is the interpretation of single quotes and {}.

Thank you for the answers. I reinstalled everything and it worked properly :slight_smile:

Hi,

[QUOTE=kkoehle;56573]Older versions of scp work, new versions of scp (SLES 12 SP3 and SP4) are broken.
On older versions this works:
scp hana-n5:’/etc/{hosts,resolv.conf}’ .
hosts 100% 608 0.6KB/s 00:00
resolv.conf 100% 852 0.8KB/s 00:00

On newer versions, scp fails:
error: unexpected filename: hosts

The problem is the interpretation of single quotes and {}.[/QUOTE]

being picky here, for technical accuracy: it’s not scp that resolves the parameters, but the shell (prior to forking “scp”. You should see the same difference in parameter expansion when using “echo” instead of “scp”) - so it’s a problem with newer (or different) shells, liklely “bash” in this case.

With regards,
J