Project

General

Profile

Actions

Bug #21356

closed

Inventory hostname differ between Windows and Linux

Added by Florent NEYRON over 2 years ago. Updated over 2 years ago.

Status:
Released
Priority:
N/A
Category:
Agent
Target version:
Severity:
Minor - inconvenience | misleading | easy workaround
UX impact:
I hate Rudder for that
User visibility:
First impressions of Rudder
Effort required:
Priority:
158
Name check:
To do
Fix check:
To do
Regression:

Description

Inventory data pulled by Rudder differs between Windows and Linux Hosts. When a Linux we show the full qualified domain name whereas when a Windows we only show the netbios name/hostname

.


Files

image001 (1).png (6.69 KB) image001 (1).png Florent NEYRON, 2022-07-04 19:30

Subtasks 1 (0 open1 closed)

Bug #21579: error in parent ticketReleasedAlexis MoussetActions

Related issues 1 (0 open1 closed)

Related to Rudder - User story #8022: Allow users to specify node hostname (FQDN)ReleasedAlexis MoussetActions
Actions #3

Updated by Nicolas CHARLES over 2 years ago

Agent looks for FQDN using the following methods

(Get-WmiObject -class Win32_ComputerSystem).DNSHostName

fallback to
    my $getComputerName = Win32::API->new(
        "kernel32", "GetComputerNameExW", ["I", "P", "P"], "N" 
    );

and fallback to
 $ENV(COMPUTERNAME)

but these methods don't seem to return the FQDN if it's set locally, not via the domain controller

it seems* a more reliable approach is to use

[System.Net.Dns]::GetHostByName($env:computerName).HostName

Actions #4

Updated by Alexis Mousset over 2 years ago

  • Category set to Agent
  • Priority changed from 62 to 124
Actions #5

Updated by Vincent MEMBRÉ over 2 years ago

  • Target version changed from 7.2.0~beta1 to 7.2.0~rc1
Actions #6

Updated by Alexis Mousset over 2 years ago

  • Priority changed from 124 to 172
Actions #8

Updated by Alexis Mousset over 2 years ago

  • User visibility changed from First impressions of Rudder to Getting started - demo | first install | Technique editor and level 1 Techniques
  • Priority changed from 172 to 142
Actions #9

Updated by Alexis Mousset over 2 years ago

  • User visibility changed from Getting started - demo | first install | Technique editor and level 1 Techniques to First impressions of Rudder
  • Priority changed from 142 to 172
Actions #10

Updated by Alexis Mousset over 2 years ago

  • User visibility changed from First impressions of Rudder to Getting started - demo | first install | Technique editor and level 1 Techniques
  • Priority changed from 172 to 142
Actions #11

Updated by Alexis Mousset over 2 years ago

  • User visibility changed from Getting started - demo | first install | Technique editor and level 1 Techniques to First impressions of Rudder
  • Priority changed from 142 to 172
Actions #13

Updated by Alexis Mousset over 2 years ago

  • User visibility changed from First impressions of Rudder to Getting started - demo | first install | Technique editor and level 1 Techniques
  • Priority changed from 172 to 3382
Actions #14

Updated by Alexis Mousset over 2 years ago

  • User visibility changed from Getting started - demo | first install | Technique editor and level 1 Techniques to First impressions of Rudder
  • Priority changed from 3382 to 204
Actions #15

Updated by Alexis Mousset over 2 years ago

  • Severity changed from Critical - prevents main use of Rudder | no workaround | data loss | security to Minor - inconvenience | misleading | easy workaround
  • Priority changed from 204 to 161
Actions #16

Updated by Nicolas CHARLES over 2 years ago

  • Status changed from New to In progress
  • Assignee set to Nicolas CHARLES
Actions #17

Updated by Nicolas CHARLES over 2 years ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from Nicolas CHARLES to Félix DALLIDET
  • Pull Request set to https://github.com/Normation/rudder-packages/pull/2643
Actions #18

Updated by Nicolas CHARLES over 2 years ago

  • Status changed from Pending technical review to Pending release
Actions #19

Updated by Nicolas CHARLES over 2 years ago

  • Subtask #21579 added
  • Priority changed from 161 to 160
Actions #20

Updated by Vincent MEMBRÉ over 2 years ago

  • Status changed from Pending release to Released
  • Priority changed from 160 to 158

This bug has been fixed in Rudder 7.2.0~rc1 which was released today.

Actions #21

Updated by François ARMAND about 2 years ago

  • Related to User story #8022: Allow users to specify node hostname (FQDN) added
Actions

Also available in: Atom PDF