Opened 10 years ago

Last modified 9 years ago

#640 new defect

IZ2922: hostname string which contains ip representation only supported when FQDN is enabled

Reported by: crei Owned by:
Priority: low Milestone:
Component: sge Version: 6.2u2beta
Severity: Keywords: kernel
Cc:

Description

[Imported from gridengine issuezilla http://gridengine.sunsource.net/issues/show_bug.cgi?id=2922]

        Issue #:      2922             Platform:     All         Reporter: crei (crei)
       Component:     gridengine          OS:        All
     Subcomponent:    kernel           Version:      6.2u2beta      CC:    None defined
        Status:       NEW              Priority:     P4
      Resolution:                     Issue type:    DEFECT
                                   Target milestone: ---
      Assigned to:    andreas (andreas)
      QA Contact:     andreas
          URL:
       * Summary:     hostname string which contains ip representation only supported when FQDN is enabled
   Status whiteboard:
      Attachments:

     Issue 2922 blocks:
   Votes for issue 2922:


   Opened: Thu Feb 19 02:41:00 -0700 2009 
------------------------


Gridengine does not correctly support hostnames which contains the ip
representation of the host (e.g. "192.168.141.82" which is the host "host_A" in
the following example).

How to reproduce:

1) Setup host aliasing (or edit /etc/hosts) that the hostname results in a ip
address string:

> cat $SGE_ROOT/default/common/host_aliases
192.168.141.82 host_A

> $SGE_ROOT/utilbin/sol-amd64/gethostbyname -all host_A
Hostname: host_A
SGE name: 192.168.141.82
Aliases:
Host Address(es): 192.168.141.82

The resulting SGE name is "192.168.141.82".

(It might be necessary to restart the qmaster host)

2) a qhost removes the last 3 ip adress numbers:
> qhost
HOSTNAME                ARCH         NCPU  LOAD  MEMTOT  MEMUSE  SWAPTO  SWAPUS
-------------------------------------------------------------------------------
global                  -               -     -       -       -       -       -
192                     sol-sparc64     2     -    8.0G       -  521.0M       -
host_B                  lx26-amd64      2  0.64    3.9G  597.1M    2.0G   32.0K
host_C                  sol-amd64       4  0.13   15.9G    3.5G   16.0G     0.0
host_D                  lx26-amd64      4  0.62   15.5G    2.7G    8.0G     0.0
host_E                  sol-sparc64     2  0.05    4.0G    2.0G  516.0M     0.0
host_F                  lx26-amd64      4  0.11   15.5G    6.2G    1.9G    1.9G


WORKAROUND:
===========
Use full qualified host resolving (see bootstrap file) and restart qmaster.
=> ignore_fqdn must be set to false

> cat $SGE_ROOT/default/common/bootstrap
# Version: 6.2u2
#
...
ignore_fqdn             true
...

Change History (0)

Note: See TracTickets for help on using tickets.