Actions
Bug #13507
closedwhen upgrading from 4.3 to 5.0, even with option autoupdate-technique-library=true, techniques are not reloaded
Pull Request:
Severity:
Major - prevents use of part of Rudder | no simple workaround
UX impact:
User visibility:
Operational - other Techniques | Rudder settings | Plugins
Effort required:
Small
Priority:
56
Name check:
Fix check:
Regression:
Description
i setted the value to true, and upgraded to 5.0
techniques were copied, but were not reloaded in the webapp
Output is
NFO: Ensuring correct permissions on the keys directory... Done. ok: Rudder agent has been enabled but not started, wait for next cron run. ok: start service rudder-agent succeeded INFO: Scheduling an inventory during next run... Setting up rudder-reports (5.0.0-stretch0) ... INFO: Waiting for PostgreSQL to be up... Done Processing triggers for rsyslog (8.24.0-1) ... Setting up ncf-api-virtualenv (5.0.0-stretch0) ... Installing new version of config file /etc/apache2/conf-available/ncf-api-virtualenv.conf ... Conf ncf-api-virtualenv already enabled INFO: Restarting Apache HTTPd... Done Setting up rudder-server-relay (5.0.0-stretch0) ... Installing new version of config file /etc/apache2/sites-available/rudder.conf ... Installing new version of config file /opt/rudder/etc/rudder-apache-relay-common.conf ... Installing new version of config file /opt/rudder/etc/rudder-apache-relay-ssl.conf ... INFO: Restarting Apache HTTPd... Done INFO: rudder-server-relay setup complete. Setting up rudder-inventory-endpoint (5.0.0-stretch0) ... INFO: Launching script to check if a migration is needed INFO: End of migration script Setting up rudder-webapp (5.0.0-stretch0) ... Configuration file '/opt/rudder/etc/rudder-web.properties' ==> Modified (by you or by a script) since installation. ==> Package distributor has shipped an updated version. What would you like to do about it ? Your options are: Y or I : install the package maintainer's version N or O : keep your currently-installed version D : show the differences between the versions Z : start a shell to examine the situation The default action is to keep your current version. *** rudder-web.properties (Y/I/N/O/D/Z) [default=N] ? Installing new version of config file /opt/rudder/etc/rudder-users.xml ... Installing new version of config file /opt/rudder/etc/rudder-apache-webapp-common.conf ... Installing new version of config file /opt/rudder/etc/rudder-apache-webapp-ssl.conf ... INFO: Restarting 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 OK INFO: Checking if inventory-web.properties database access credentials are all right... LDAP OK, SQL skipped INFO: A Technique library reload is needed and has been scheduled. Warning: Long arguments are not supported, you probably tried to use one! Overriding existing techniques INFO: Correcting permissions on /var/rudder/configuration-repository... Done Techniques have been updated, and update branch set to current state of the Techniques [master 6b2a9cd] Update technique editor hook "ncf-hooks.d/post.write_technique.10_commit.sh" [master fe3188d] Update technique editor hook "ncf-hooks.d/post.write_technique.50_rudderify.sh" INFO: Alternative source path added: /var/rudder/configuration-repository/ncf INFO: Alternative source path added: /var/rudder/configuration-repository/ncf INFO: Alternative source path added: /var/rudder/configuration-repository/ncf INFO: The /var/rudder/configuration-repository/techniques/ncf_techniques/category.xml file already exists. Not updating. INFO: Alternative source path added: /var/rudder/configuration-repository/ncf INFO: Checking PostgreSQL service status... OK INFO: Checking LDAP service status... OK INFO: The migration has completed successfully. INFO: End of migration script INFO: Correcting permissions on /var/rudder/configuration-repository... Done [master b38a58b] Add ncf hooks to repository INFO: Restarting Rudder webapp and inventory-endpoint... Done Setting up rudder-server-root (5.0.0-stretch0) ... Installing new version of config file /etc/init.d/rudder-server ... Processing triggers for systemd (232-25+deb9u1) ...
and logs says
[2018-09-18 11:56:13] INFO bootchecks - Check for force reload of Techniques library [2018-09-18 11:56:13] INFO bootchecks - Flag file '/opt/rudder/etc/force_technique_reload' does not exist, do not Technique library will not be reloaded [2018-09-18 11:56:13] INFO bootchecks - Resume policy update if it was running before shutdown
Actions