[MCOL-493] rpm install for multi node combined fails to setup logging on other nodes Created: 2017-01-07  Updated: 2017-01-23  Resolved: 2017-01-23

Status: Closed
Project: MariaDB ColumnStore
Component/s: installation
Affects Version/s: 1.0.6
Fix Version/s: 1.0.7

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

centos 7 rpm install 2 node combined. Should also check deb install as well.



 Description   

Perform a 2 node combined install on centos7 using rpm.

In the /tmp/pm2.. log the logging check shows that logging was not setup correctly and indeed it is not.

On the remote node:

cat /tmp/syslog_install.log
sudo: sorry, you must have a tty to run sudo
 
System logging being used: rsyslog
 
sudo: sorry, you must have a tty to run sudo
sudo: sorry, you must have a tty to run sudo

Workaround, run the script manually on the remote node(s) as root with a login shell:
/usr/local/mariadb/columnstore/bin/syslogSetup.sh install

run it again with argument check to verify.



 Comments   
Comment by David Thompson (Inactive) [ 2017-01-07 ]

I think this is because post-install is run by rpm and USER is not set in the env when run from there. We should be able to infer that this is a package install and thus running as root in the sudo check.

Comment by David Hill (Inactive) [ 2017-01-10 ]

fix/address by having module_installer run syslogSetup.sh..

Comment by David Hill (Inactive) [ 2017-01-10 ]

the install is already done in post-install, the syslogSetup.sh status is in the installer scripts. that could be moved to module_installer

Comment by David Hill (Inactive) [ 2017-01-10 ]

change syslogSetup for sudo check, make like post-install
moved syslogSetup.sh call from remote install scripts to module_installer

Comment by David Hill (Inactive) [ 2017-01-10 ]

did a pull request

Comment by Ben Thompson (Inactive) [ 2017-01-12 ]

Reviewed and merged.

Comment by Daniel Lee (Inactive) [ 2017-01-23 ]

Build verified: 1.0.7-1

mcsadmin> getsoft
getsoftwareinfo Mon Jan 23 21:25:58 2017

Name : mariadb-columnstore-platform
Version : 1.0.7
Release : 1
Architecture: x86_64
Install Date: Mon 23 Jan 2017 02:59:35 PM UTC
Group : Applications/Databases
Size : 10013744
License : Copyright (c) 2016 MariaDB Corporation Ab., all rights reserved; redistributable under the terms of the GPL, see the file COPYING for details.
Signature : (none)
Source RPM : mariadb-columnstore-platform-1.0.7-1.src.rpm
Build Date : Sat 21 Jan 2017 10:09:56 PM UTC

Verified with two-node combo installations for both rpm (centos7) and deb (ubuntu 16.04) packages.

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