[MCOL-547] enforce limitation of postCfg needing to be run on pm1 Created: 2017-02-07  Updated: 2018-08-31  Resolved: 2017-03-22

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

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

Sub-Tasks:
Key
Summary
Type
Status
Assignee
MCOL-613 enforce limitation of postCfg needing... Sub-Task Closed Daniel Lee  
Sprint: 2017-5, 2017-6

 Description   

postConfigure is documented as requireing that you run and configure this for what becomes the pm1 server. However it doesn't enforce this and if you end up performing a multi node seperate install and enter values such that the current server ends up being a um server then the install fails badly. We should either remove the limitation or if this is too tricky, enforce or validate the current server is pm1.



 Comments   
Comment by David Hill (Inactive) [ 2017-02-28 ]

So this change will only apply if an upgrade is being done... We can check to see if the module is pm1 and if so, perform the postConfigure run. But if its a new system, then the local node will not assign or is assigned as the default of pm1.

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

Added code to compare the configure pm1 ip address versus the IP address of the local server where the command is running.

Here is the new Error exit when it is run on a non-pm1 node.

Do you want to utilize the configuration data from the saved copy? [y,n] > y

ERROR: postConfigure install can only be done on the PM1
designated node. The configured PM1 IP address doesn't match the local
IP Address. exiting...

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

please rewiew pull request MCOL-547.

code change, added code to get local ip and compare with the PM1 configured IP address. Only allow postConfigure to run on preinstalled systems on pm1 node

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

additional changes needed based in review input

Comment by Ben Thompson (Inactive) [ 2017-03-09 ]

Reviewed and Merged.

Comment by Daniel Lee (Inactive) [ 2017-03-21 ]

Build verified: 1.0.8-1

ERROR: postConfigure install can only be done on the PM1
designated node. The configured PM1 IP address doesn't match the local
IP Address. exiting...

Still need to test for 1.1.0

Comment by Daniel Lee (Inactive) [ 2017-03-22 ]

Build verified: 1.1.0 Github source

[root@localhost mariadb-columnstore-server]# git show
commit 24f5065dba978ef4ec6ea8cb4bfd9728321941bd
Author: david hill <david.hill@mariadb.com>
Date: Mon Mar 20 09:57:25 2017 -0500

[root@localhost mariadb-columnstore-server]# cd mariadb-columnstore-engine/
[root@localhost mariadb-columnstore-engine]# git show
commit c1d38e0a8b8d73b710cd9a4356dc19708a717277
Author: David Hill <david.hill@mariadb.com>
Date: Mon Mar 20 16:52:29 2017 -0500

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