[MCOL-4865] verification of the hostname fails , because of long hostnames in /etc/hosts Created: 2021-09-13  Updated: 2023-11-17  Resolved: 2022-06-24

Status: Closed
Project: MariaDB ColumnStore
Component/s: cmapi
Affects Version/s: 5.6.2
Fix Version/s: cmapi-6.4.1

Type: Bug Priority: Major
Reporter: Richard Stracke Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None

Issue Links:
PartOf
is part of MCOL-4762 dbroot is unassigned even in working ... Closed
Sprint: 2021-17

 Description   

cmapi write the hostname in columnstore.xml
with
socket.gethostbyaddr(hostaddr)[0] or socket.gethostbyaddr(node)[0]

Both routine will get the hostname from
/etc/hosts

For validations, cmapi read hostname from columnstore.xml and compare it with
socket.gethostname()

socket.gethostname() returns the host shortname of the current computer.

If in /etc/hosts is only the long names was saved, the comparisation fails,
because the string of the host long name and the host short name are not identical.



 Comments   
Comment by alexey vorovich (Inactive) [ 2022-04-29 ]

alan.mologorsky please review

Comment by alexey vorovich (Inactive) [ 2022-06-22 ]

alan.mologorsky, can we add this to 641 ?

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