[MCOL-773] system not startup up via postConfigure/startsSystem - remote_command issue Created: 2017-06-15  Updated: 2023-10-26  Resolved: 2017-07-19

Status: Closed
Project: MariaDB ColumnStore
Component/s: ?
Affects Version/s: 1.0.9
Fix Version/s: 1.0.10, 1.1.0

Type: Bug Priority: Major
Reporter: David Hill (Inactive) Assignee: Daniel Lee (Inactive)
Resolution: Fixed Votes: 0
Labels: None


 Description   

Customer had an issue with a a multi-node system not starting up either via postConfigure or mcsadmin startsystem.

We was able to reproduce the issue and the problem was that a banner is used at ssh login time that has "#" in it and the 1.0.9 version of remote_command.sh watches for "#" as an indication that the command has finished. So this cause the command that was being passed by the remote_command script not to run.

This issue has been fixed in the 1.1.0 version of remote_command.sh, so that fixes needs to be back ported to 1.0.10.

Work-around is the commit out these lines in the remote_command.sh script to get things to work:

grep "#" remote_command.sh

#expect -re

{[$#] }
# -re {[$#] }

{ exit 0 }
# -re {[$#] } { exit 0 }
  1. expect -re {[$#] }

    { exit 0 }

also this needs to be setup in /etc/ssh/sshd_config

  1. no default banner path
  2. Banner /etc/issue

and this needs to be in the banner file, example like this:

###############################



 Comments   
Comment by David Hill (Inactive) [ 2017-06-16 ]

commit fef65814cb02287ea834fe9717f6903861feb4c3
Author: david hill <david.hill@mariadb.com>
Date: Fri Jun 16 09:11:06 2017 -0500

MCOL-733 - changed to not watch for command line prompts

oam/install_scripts/remote_command.sh | 8 +++-----

Comment by David Hill (Inactive) [ 2017-06-16 ]

fyi - fixed already in 1.1.0

Comment by Daniel Lee (Inactive) [ 2017-07-19 ]

Build verified: 1.0.10-1

Verify changes in the remote_command.sh file and performed installation tests as regression.

Comment by Daniel Lee (Inactive) [ 2017-07-19 ]

Build verified: Github source 1.1.0

[root@localhost mariadb-columnstore-server]# git show
commit 8e07495da650d922c4d1f3f09d77382168132b11
Merge: 80e57a8 c27e1e5
Author: David.Hall <david.hall@mariadb.com>
Date: Wed Jul 12 13:07:42 2017 -0500

[root@localhost mariadb-columnstore-engine]# git show
commit 853eb1388ea5f880abc9b11e9498bd8a3407fa5a
Merge: d138692 9ad2b0c
Author: David.Hall <david.hall@mariadb.com>
Date: Tue Jul 18 09:21:39 2017 -0500

Generated at Thu Feb 08 02:23:43 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.