[MCOL-702] multi node package install with non login su won't start Created: 2017-05-05  Updated: 2017-06-27  Resolved: 2017-06-27

Status: Closed
Project: MariaDB ColumnStore
Component/s: installation
Affects Version/s: 1.0.8
Fix Version/s: 1.1.0

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

redhat 6 rpm


Issue Links:
Duplicate
duplicates MCOL-368 remote_command.sh could use the incor... Closed
Sprint: 2017-12, 2017-13

 Description   

If you perform a multi node install using packages / rpms and on pm1 you use 'su' from a non root account to become root, then the installs will go ahead but the system won't start. pm1 is missing the init.d entry.

There are no invalid log entries in /tmp or /var/log/mariadb/columnstore to help troubleshoot.

Identified the root cause of this after running rpm -e and seeing an invalid expression in the uninstall logic. Re-running postconfigure after using 'su -' worked correctly.

There are many places in the install logic where the code checks $USER = root to detect root vs non root install. This is also an issue for containers where USER is not set by default.

We should consider revising the logic here to be more robust. If this is not possible at least have a solution that implies root user if a package / rpm install.



 Comments   
Comment by David Thompson (Inactive) [ 2017-06-05 ]

Please also see suggestions in related duplicate.

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

code changes, tested on centos 7. works with doing a multi-node install and comes up after a system reboot.

testing on other Os.

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

ran into install issues on debian 8 and centos 6 which blocks my testing on this issue.

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

pull request is done

Comment by Daniel Lee (Inactive) [ 2017-06-27 ]

Build verified: Github source 1.1.0

[root@localhost mariadb-columnstore-server]# git show
commit 60f2f261f81d994307762d6d93380873513a0be8
Author: david hill <david.hill@mariadb.com>
Date: Tue Jun 20 16:05:32 2017 -0500

[root@localhost mariadb-columnstore-server]# cd mariadb-columnstore-engine/
[root@localhost mariadb-columnstore-engine]# git show
commit b424a02c2e431be6f4cf39c12f0c7fd0155c23f5
Author: david hill <david.hill@mariadb.com>
Date: Mon Jun 26 09:58:38 2017 -0500

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