Project

General

Profile

Actions

Bug #5772

closed

Rudder agent refuses to update promises when its hostname is uppercase

Added by Benoît PECCATTE over 9 years ago. Updated over 9 years ago.

Status:
Released
Priority:
N/A
Category:
System techniques
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:

Description

If an agent is hosted on a host with an uppercase hostname, it can be refused by the server.

The problem is from cf-serverd that refuses it.
To work around it, edit /var/rudder/configuration-repository/techniques/system/common/1.0/cf-served.st and change the access rules to force lower case :

  &if(SKIPIDENTIFY)&
    &MANAGED_NODES_NAME, MANAGED_NODES_ID : {host, uuid |
      "/var/rudder/share/&uuid&/" 
        maproot => { string_downcase(escape("&host&"))  },
        admit   => { string_downcase(escape("&host&"))  };

     } &
  &else&
    &MANAGED_NODES_NAME, MANAGED_NODES_ID : {host, uuid |
      "/var/rudder/share/&uuid&/" 
        maproot => { host2ip("&host&"), string_downcase(escape("&host&"))  },
        admit   => { host2ip("&host&"), string_downcase(escape("&host&"))  };

     } &
  &endif&

Related issues 1 (0 open1 closed)

Related to Rudder - Bug #6037: Support uppercase hostname when updating promisesReleasedNicolas CHARLES2014-12-22Actions
Actions

Also available in: Atom PDF