You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@vcl.apache.org by "Andy Kurth (JIRA)" <ji...@apache.org> on 2015/03/18 14:33:38 UTC

[jira] [Created] (VCL-836) cluster_info file may contain incorrect IP addresses

Andy Kurth created VCL-836:
------------------------------

             Summary: cluster_info file may contain incorrect IP addresses
                 Key: VCL-836
                 URL: https://issues.apache.org/jira/browse/VCL-836
             Project: VCL
          Issue Type: Bug
          Components: vcld (backend)
    Affects Versions: 2.4
            Reporter: Andy Kurth
            Assignee: Andy Kurth
             Fix For: 2.4.1


The cluster_info file added to computers in a cluster reservation may contain wrong public IP addresses.  This is due to the backend vcld daemon caching reservation data including the computer public IP address in its %ENV variable.

A computer using dynamic DHCP may obtain a different IP address when loaded.  The IP address in the VCL database prior to the computer being loaded is retrieved when the load (new or reload state) process begins.  After the computer is loaded, its correct public IP address is retrieved from the computer's OS and the database is updated.

The problem occurs when subsequent processes are forked -- mainly when a request goes from new to reserved.  After the new process terminates, the vcld daemon is still storing the original computer information in %ENV.  A reserved process is forked which uses this data.  During reserved, cluster_info is created which contains the public IP address of each computer assigned to the request.  When cluster_info is created, the previously retrieved data is used.  As a result, the only IP addresses which would be correct are the ones which haven't changed since vcld originally retrieved the data.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)