[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: |
|
||||||||||||
| 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 |
| 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 Finally finish testing this ticket. I performed: 1) functional tests on installation, addmodule and removemodule 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 System Network Configuration Module Name Module Description NIC ID Host Name IP Address |
| 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 Verified latest change. Also rechecked the requested implementation. |