[MCOL-663] Restarting installation fails if installed on secondary interface Created: 2017-04-14  Updated: 2017-09-18  Resolved: 2017-09-18

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

Type: Bug Priority: Major
Reporter: Michaël de groot Assignee: David Thompson (Inactive)
Resolution: Fixed Votes: 0
Labels: None

Sprint: 2017-18

 Description   

I needed to stop installation aand was unable to start afterwards (I used empty CentOS7 VM's we normally use for trainings):
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...

I think this has to do with my VM's having 2 network interfaces and I used the secondary for the installation.



 Comments   
Comment by David Thompson (Inactive) [ 2017-04-24 ]

Any known issues / gotchas with multiple nic interfaces?

Comment by David Hill (Inactive) [ 2017-04-24 ]

This sounds like its related to the Enhancement that was made for

https://jira.mariadb.org/browse/MCOL-547 (enforce limitation of postCfg needing to be run on pm1)

It was coded to handle multiple configured IP addresses, but seems to be an issue here like its only reading the first interface and them comparing to the configured IP address. Will need to investigate further inhouse.

A work-around for now would be to reinstall using the first interface, if possible.

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

I couldn't reproduce on my local vm with 2 Ethernet interfaces when I configured to use the second one.

The code is doing a match between the configured pm1 Ip address and the available Ip addresses on the server using the getifaddrs() API. So maybe on your system, the ip addresses detected by this API, for whatever reason..

if possible, could you provide the following info by running these commands:

  1. ifconfig

Thanks, David

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

I reproduced the issue when it was using the local ip address, looks different than the users. But this needs to be fixed

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

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...
root@ubuntu16:/usr/local/mariadb/columnstore/bin# ma getsystemn
getsystemnetworkconfig Mon Jun 5 11:52:50 2017

System Network Configuration

Module Name Module Description NIC ID Host Name IP Address
----------- ------------------------- ------ --------- ---------------
pm1 Performance Module #1 1 ubuntu16 127.0.1.1

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

also it could be that the user specified an IP address that doesnt show up when we run the API to get the list of local Ethernet ports. So maybe be we need to allow the user to overide this check and continue.

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

Changed to prompt when the ip address doesnt match to allow the user to decide to continue or not.

"The Configured PM1 IP Address of xxx.xxx.xxx.xxx does match any of the"
"Server Ethernet IP addresses there were detected, do you want to continue?"
"This is to make sure that you arent running postConfigure from a non-PM1 node."
prompt = "Enter 'y' to continue using Configured IP address [y,n] > "

commit b2468bc61cd8d6fde5028c1d713d8179bf4aa429
Author: david hill <david.hill@mariadb.com>
Date: Mon Jun 5 16:02:24 2017 -0500

MCOL-633 - change to prompt when ip address doesnt match

oamapps/postConfigure/postConfigure.cpp | 125

Comment by David Thompson (Inactive) [ 2017-09-18 ]

Verified, i can install on either NIC ip.

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