rudder-server-roles.conf doesn't have proper hostname
The file /var/rudder/cfengine-community/inputs/rudder_server-roles.conf that is generated from a system technique contains hostnames for various roles.
These hostnames are generated from the webapp (&RUDDER_SERVER_ROLES&)
In case of a a server having roles but a local ldap server (distributed installation but ldap on the same machine as the webapp)
- the value configured in /opt/rudder/etc/rudder-web.properties is localhost
- the value generated in rudder_server-roles.conf is the full hostname of the machine
- the ldap server being local it only listen to 127.0.0.1
-> rudder-upgrade doesn't work since it takes the hostname from rudder_server-roles.conf