[MCOL-1607] postConfigure must support hostnames as cluster nodes network endpoints. Created: 2018-07-28  Updated: 2023-10-26  Resolved: 2019-03-07

Status: Closed
Project: MariaDB ColumnStore
Component/s: ?
Affects Version/s: 1.2
Fix Version/s: 1.2.3

Type: Bug Priority: Critical
Reporter: Roman Assignee: Daniel Lee (Inactive)
Resolution: Fixed Votes: 0
Labels: containers, documentation, relnote

Issue Links:
Relates
relates to MCOL-2129 Add a new postConfigure flag to resol... Closed
relates to MCOL-2133 Enforce max hostname length of 60 cha... Closed
Sprint: 2018-21, 2019-01, 2019-02, 2019-03

 Description   

At the moment postConfigure doesn't allow to use hostnames as network endpoints for a cluster nodes. During initial setup postConfigure just resolves hostnames and use IPs to fill in the corresponding sockets in Columnstore.xml. It is good to have an option(lets call it -d) that prevents postConfigure from resolving hostname into IP. Other solutions are welcome.



 Comments   
Comment by David Thompson (Inactive) [ 2018-11-29 ]

pleblanc in the world of containers and kubernetes, DNS resolution is back in fashion and so we need the entire columnstore cluster to support operating using hostnames only. In almost all cases if a container is restarted it's going to get a new ip address. We have some hacks in place to support this but it's less than ideal.

I think it's still desirable to support ip addresses as well for bare metal and environments where they don't want to configure DNS.

Comment by Patrick LeBlanc (Inactive) [ 2018-11-30 ]

OK, finished the first cut of the addmodule and postconfig functionality. Tested the success paths & a couple error paths on my local box. It behaves how I think it should, at least as far as I can tell. We can get this into develop once 1.2.2 is finalized for a wider range of testing.

Comment by Patrick LeBlanc (Inactive) [ 2018-12-13 ]

Got swamped after the 1.2.2 release, and next week I'll be unavailable for the review process. I'm sure there will be some back and forth on that. I'll hold off until I can be responsive to change requests. Should be Thursday, Dec 20.

Comment by Patrick LeBlanc (Inactive) [ 2018-12-20 ]

Not sure if you have time for this; if not feel free to reassign.

Comment by Patrick LeBlanc (Inactive) [ 2018-12-21 ]

For QA: Note, the new option to postConfigure is '-x' not '-d'. -d is already taken.

Comment by Patrick LeBlanc (Inactive) [ 2019-02-13 ]

Without the -x, it would turn a hostname into an ip addr and store that.

Comment by Patrick LeBlanc (Inactive) [ 2019-02-13 ]

Daniel found a couple problems in 1.2.3rc on centos 7
1) if you use postconfig without -x, it doesn't take hostnames at all.
2) if you do use -x, it stores the hostname, but when you run postconfig again, it doesn't think it's on PM1 anymore.

Comment by Patrick LeBlanc (Inactive) [ 2019-02-14 ]

For #1 above, it looks like that was a pre-existing inconsistency in the path Daniel went down. Fixed that. Also fixed a prompt that asked for IP addresses only, when it also would take hostnames.

For #2, the existing 'am I PM 1?' check looks at ip addresses, I made postconfig resolve hostname -> IP before that.

Will issue the PR in a few mins.

Comment by Daniel Lee (Inactive) [ 2019-02-27 ]

Build tested: 1.2.3-1

[dlee@master centos7]$ cat gitversionInfo.txt
server commit:
61f32f2
engine commit:
e849af0

Finally finish testing this ticket. I performed:

1) functional tests on installation, addmodule and removemodule
2) system shutdown and restart
3) installations with and without the -x option
4) all support operating system
5) few multiple-module confections.

Overall, it is working as design. I just found a minor issue for the OAM getSystemNetworkConfig command. For the right most columns, the column heading is "IP address", but the column values are host names. Since we already have the "Host Name" columnstore, we should get the IP addresses at the time when command is executed and display them accordingly. It should be a quick change.

mcsadmin> getsystemnetworkconfig
getsystemnetworkconfig Wed Feb 27 22:26:19 2019

System Network Configuration

Module Name Module Description NIC ID Host Name IP Address
----------- ------------------------- ------ --------- ---------------
um1 User Module #1 1 s1um1 s1um1
pm1 Performance Module #1 1 s1pm1 s1pm1
pm2 Performance Module #2 1 s1pm2 s1pm2

Comment by Daniel Lee (Inactive) [ 2019-02-27 ]

Reopening the ticket per the getSystemNetworkConfig issue.

Comment by Patrick LeBlanc (Inactive) [ 2019-03-04 ]

Made it resolve the ip addr for printing that field. Assigned the PR to Andrew.

Comment by Daniel Lee (Inactive) [ 2019-03-07 ]

Build verified: 1.2.3-1 nightly
server commit:
61f32f2
engine commit:
fddd108

Verified latest change. Also rechecked the requested implementation.

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