Actions
Bug #5080
closedUser story #5077: Update to CFEngine 3.6.0 release
Roles overwritten during package installation
Pull Request:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:
Description
Hi again,
I'm testing the "distributed roles setup" with 4 servers. This is server-4 (rudder-webapp):
root# cat /var/rudder/cfengine-community/inputs/rudder-server-roles.conf rudder-ldap:192.168.42.201 rudder-inventory-endpoint:192.168.42.201 rudder-db:192.168.42.202 rudder-front:192.168.42.200 rudder-webapp:192.168.42.203
Then, installation of the packages:
root# yum install rudder-agent rudder-webapp rudder-techniques rsyslog rsyslog-pgsql ## server-4 (rudder-webapp) [...] Installing : 1398866025:rudder-webapp-2.11.0.beta1-1.EL.6.noarch INFO: Setting Apache HTTPd as a boot service... Done INFO: Restarting syslog... Done INFO: Stopping Apache HTTPd... Done INFO: Initialising in /var/rudder/configuration-repository/ncf INFO: Success INFO: No usable SSL certificate detected for Rudder HTTP/S support, generating one automatically... Done INFO: Starting Apache HTTPd... Done INFO: Launching script to check if a migration is needed INFO: Checking if rudder-web.properties database access credentials are all right... LDAP OK, SQL Credentials updated INFO: Checking if inventory-web.properties database access credentials are all right... non existant, skipping INFO: Checking LDAP service status... OK INFO: Checking PostgreSQL service status... OK INFO: End of migration script ******************************************************************************** rudder-webapp has been upgraded, but for the upgrade to take effect, please restart the jetty application server as follows: # /sbin/service rudder-jetty restart ********************************************************************************
Okay, so everything went fine, maybe...
root# cat /var/rudder/cfengine-community/inputs/rudder-server-roles.conf # This file contains, for each role, the list of nodes that have this role # These roles are auto-detected by default, based on inventories of nodes that have role files in /opt/rudder/etc/server-roles.d/ # Format is the following # role:hostname1,hostname2,hostname3 rudder-ldap:localhost rudder-inventory-endpoint:localhost rudder-db:localhost rudder-webapp:localhost rudder-front:localhost
Ah, my roles have been trashed...
Thanks.
Updated by Jonathan CLARKE over 10 years ago
- Status changed from New to In progress
- Assignee set to Jonathan CLARKE
- Priority changed from N/A to 2
- Target version set to 2.11.0~beta2
Indeed, this happens because rudder-agent installs initial-promises if there is no valid promises.cf file, and this includes a dummy rudder-server-roles.conf. Doh...
Fixing.
Updated by Jonathan CLARKE over 10 years ago
- Status changed from In progress to Pending technical review
- Assignee changed from Jonathan CLARKE to Matthieu CERDA
- Pull Request set to https://github.com/Normation/rudder-packages/pull/391
Updated by Jonathan CLARKE over 10 years ago
- Status changed from Pending technical review to Pending release
- % Done changed from 0 to 100
Applied in changeset commit:fa68431174f75fb130f8e36c690e2272b3193dd2.
Updated by Matthieu CERDA over 10 years ago
Applied in changeset commit:b2bf8f1755e54105385ab8dad75dcabf123379bf.
Updated by Vincent MEMBRÉ over 10 years ago
- Status changed from Pending release to Released
This bug has been fixed in Rudder 2.11.0~beta2 (announcement , changelog), which were released today.
- Download information: https://www.rudder-project.org/site/get-rudder/downloads/
Actions