Project

General

Profile

Actions

Bug #5089

closed

uuid.hive gets overwritten on the root server if rudder-agent is installed after rudder-webapp

Added by Lionel Le Folgoc almost 10 years ago. Updated almost 10 years ago.

Status:
Released
Priority:
1
Assignee:
Matthieu CERDA
Category:
System integration
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:

Description

Hi again,

Still with the 4 components architecture (cf. #5080 and #5087).

server-4 (rudder-webapp + rudder-techniques + CFEngine server) does not seem to be recognized as the policy server. When I force an inventory with "/var/rudder/cfengine-community/bin/cf-agent -KI -D force_inventory", the content added by rudder-agent is the following:

<POLICY_SERVER>f6d3513b-fef2-452a-8990-f9871a516059</POLICY_SERVER>
<SERVER_ROLES>
<SERVER_ROLE>rudder-webapp</SERVER_ROLE>
<SERVER_ROLE>rudder-jetty</SERVER_ROLE>
</SERVER_ROLES>

"f6d3513b-fef2-452a-8990-f9871a516059" is its own UUID, but I guess it should be "root", because it's not recognized as is, and is blocking node acceptance in the web UI.
Quote from /var/log/rudder/webapp/2014_06_19.stderrout.log:

[...]
[2014-06-19 12:52:34] ERROR com.normation.rudder.web.services.DisplayNode - Could not fetch policy server details (id NodeId(f6d3513b-fef2-452a-8990-f9871a516059)) for no
de with id NodeId(f6d3513b-fef2-452a-8990-f9871a516059) <- Node with ID 'f6d3513b-fef2-452a-8990-f9871a516059' was not found
[...]
[2014-06-19 12:52:41] ERROR com.normation.rudder.services.servers.NewNodeManagerImpl - Unit acceptor error for node NodeId(f6d3513b-fef2-452a-8990-f9871a516059) <- Error
when trying to accept node f6d3513b-fef2-452a-8990-f9871a516059 <- Error when executing accept node process named accept_new_server:add_system_configuration_rules <- Tech
nical group with ID 'NodeGroupId(hasPolicyServer-f6d3513b-fef2-452a-8990-f9871a516059)' was not found <- Error when retrieving the entry for NodeGroup 'NodeGroupId(hasPol
icyServer-f6d3513b-fef2-452a-8990-f9871a516059)'

I compared with a monolithic rudder-server-root installation, and the inventory file contains the proper policy server:

<POLICY_SERVER>root</POLICY_SERVER>
<SERVER_ROLES>
<SERVER_ROLE>rudder-reports</SERVER_ROLE>
<SERVER_ROLE>rudder-inventory-endpoint</SERVER_ROLE>
<SERVER_ROLE>rudder-inventory-ldap</SERVER_ROLE>
<SERVER_ROLE>rudder-webapp</SERVER_ROLE>
<SERVER_ROLE>rudder-jetty</SERVER_ROLE>
<SERVER_ROLE>rudder-ldap</SERVER_ROLE>
<SERVER_ROLE>rudder-db</SERVER_ROLE>
<SERVER_ROLE>rudder-server-root</SERVER_ROLE>
</SERVER_ROLES>

I'm not sure whether the bug is that "root" isn't used, or that the policy server UUID isn't automagically resolved.

Thanks.

Actions

Also available in: Atom PDF