Actions
Bug #16707
closedAfter upgrade from 5.0 to 6.0 on centos7, rudder-slapd is not started
Added by Nicolas CHARLES almost 5 years ago. Updated over 4 years ago.
Pull Request:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
Reviewed
Fix check:
Checked
Regression:
Description
i upgraded from 5.0 to 6.0, and slapd was not started
Policy generation failed, and policies were broken, as ncf changed
So nothing could restart rudder-slapd
So Rudder is in an broken state
Updated by Nicolas CHARLES almost 5 years ago
- Related to Bug #16699: Error messages while upgrading from 5.0.16.rc1.git202002060302-1.EL.7 to 6.0.3.rc1.git202002100103-1.EL.7 added
Updated by Nicolas CHARLES almost 5 years ago
Install log does state
restarting rudder-slapd ... done
Created symlink from /etc/systemd/system/rudder-server.service.requires/rudder-jetty.service to /usr/lib/systemd/system/rudder-jetty.service. Created symlink from /etc/systemd/system/multi-user.target.wants/rudder-slapd.service to /usr/lib/systemd/system/rudder-slapd.service. Created symlink from /etc/systemd/system/rudder-server.service.requires/rudder-slapd.service to /usr/lib/systemd/system/rudder-slapd.service. INFO: Restarting rudder-slapd... Done INFO: Launching script to check if a migration is needed ... Done enable /opt/rudder/share/plugins/scale-out-relay/scale-out-relay.jar [] Restarting jetty $ service rudder-jetty restart Stopping Jetty: ERROR: no pid found at /var/rudder/run/rudder-jetty.pid Setting umask to 0007 Starting Jetty: . . . . OK Tue Feb 11 11:35:34 UTC 2020 done INFO: Make sure Rudder webapp is started... Done INFO: Make sure Apache HTTPd is started... Done INFO: Applying selinux policy... Done Updating : 1398866025:rudder-server-root-6.0.3.rc1.git202002110103-1.EL.7.noarch 17/32 Created symlink from /etc/systemd/system/multi-user.target.wants/rudder-server.service to /usr/lib/systemd/system/rudder-server.service. Updating : audit-2.8.5-4.el7.x86_64 18/32 Cleanup : 1398866025:rudder-server-root-5.0.16.rc1.git202002110304-1.EL.7.noarch 19/32 Cleanup : 1398866025:rudder-webapp-5.0.16.rc1.git202002110304-1.EL.7.noarch 20/32 warning: file /var/rudder/configuration-repository/ncf/ncf-hooks.d/post.write_technique.50_rudderify.sh: remove failed: No such file or directory warning: file /var/rudder/configuration-repository/ncf/ncf-hooks.d/post.write_technique.10_commit.sh: remove failed: No such file or directory warning: file /var/rudder/configuration-repository/ncf/ncf-hooks.d: remove failed: No such file or directory Erasing : 1398866025:rudder-inventory-endpoint-5.0.16.rc1.git202002110304-1.EL.7.noarch 21/32 Erasing : 1398866025:ncf-api-virtualenv-5.0.16.rc1.git202002110304-1.EL.7.noarch 22/32 INFO: Removing the ncf-api-venv user... Done INFO: Removing ncf-api-virtualenv selinux policy...libsemanage.semanage_direct_remove_key: Removing last ncf-api-virtualenv module (no other ncf-api-virtualenv module exists at another priority). Done Cleanup : 1398866025:rudder-server-relay-5.0.16.rc1.git202002110304-1.EL.7.x86_64 23/32 Erasing : 1398866025:rudder-techniques-5.0.16.rc1.git202002110304-1.EL.7.noarch 24/32 Cleanup : policycoreutils-2.5-29.el7_6.1.x86_64 25/32 Cleanup : audit-2.8.4-4.el7.x86_64 26/32 Erasing : 1398866025:ncf-5.0.16.rc1.git202002110304-1.EL.7.noarch 27/32 warning: file /usr/share/ncf/tools/ncf_constraints.pyc: remove failed: No such file or directory INFO: A back up copy of the /opt/rudder/etc/uuid.hive has been created in /var/backups/rudder INFO: A back up copy of the /var/rudder/cfengine-community/policy_server.dat has been created in /var/backups/rudder INFO: A back up copy of the /var/rudder/cfengine-community/ppkeys has been created in /var/backups/rudder Cleanup : 1398866025:rudder-agent-5.0.16.rc1.git202002110304-1.EL.7.x86_64 28/32 Erasing : 1398866025:rudder-inventory-ldap-5.0.16.rc1.git202002110304-1.EL.7.x86_64 29/32 Stopping Jetty: ERROR: no pid found at /var/rudder/run/rudder-jetty.pid Erasing : 1398866025:rudder-jetty-5.0.16.rc1.git202002110304-1.EL.7.noarch 30/32 Cleanup : 1398866025:rudder-reports-5.0.16.rc1.git202002110304-1.EL.7.noarch 31/32 Cleanup : audit-libs-2.8.4-4.el7.x86_64 32/32 Verifying : 1398866025:rudder-server-relay-6.0.3.rc1.git202002110103-1.EL.7.x86_64 1/32 Verifying : audit-libs-python-2.8.5-4.el7.x86_64 2/32 Verifying : python-urllib3-1.10.2-7.el7.noarch 3/32 Verifying : audit-libs-2.8.5-4.el7.x86_64 4/32 Verifying : checkpolicy-2.5-8.el7.x86_64 5/32 Verifying : 1398866025:rudder-server-root-6.0.3.rc1.git202002110103-1.EL.7.noarch 6/32 Verifying : 1398866025:rudder-webapp-6.0.3.rc1.git202002110103-1.EL.7.x86_64 7/32 Verifying : python-IPy-0.75-6.el7.noarch 8/32 Verifying : setools-libs-3.3.8-4.el7.x86_64 9/32 Verifying : policycoreutils-python-2.5-33.el7.x86_64 10/32 Verifying : audit-2.8.5-4.el7.x86_64 11/32 Verifying : libsemanage-python-2.5-14.el7.x86_64 12/32 Verifying : 1398866025:rudder-agent-6.0.3.rc1.git202002110103-1.EL.7.x86_64 13/32 Verifying : policycoreutils-2.5-33.el7.x86_64 14/32 Verifying : python-chardet-2.2.1-3.el7.noarch 15/32 Verifying : python-requests-2.6.0-8.el7_7.noarch 16/32 Verifying : 1398866025:rudder-reports-6.0.3.rc1.git202002110103-1.EL.7.noarch 17/32 Verifying : libcgroup-0.41-21.el7.x86_64 18/32 Verifying : 1398866025:rudder-techniques-5.0.16.rc1.git202002110304-1.EL.7.noarch 19/32 Verifying : 1398866025:ncf-5.0.16.rc1.git202002110304-1.EL.7.noarch 20/32 Verifying : 1398866025:rudder-inventory-ldap-5.0.16.rc1.git202002110304-1.EL.7.x86_64 21/32 Verifying : policycoreutils-2.5-29.el7_6.1.x86_64 22/32 Verifying : audit-libs-2.8.4-4.el7.x86_64 23/32 Verifying : audit-2.8.4-4.el7.x86_64 24/32 Verifying : 1398866025:rudder-jetty-5.0.16.rc1.git202002110304-1.EL.7.noarch 25/32 Verifying : 1398866025:rudder-inventory-endpoint-5.0.16.rc1.git202002110304-1.EL.7.noarch 26/32 Verifying : 1398866025:rudder-server-root-5.0.16.rc1.git202002110304-1.EL.7.noarch 27/32 Verifying : 1398866025:rudder-reports-5.0.16.rc1.git202002110304-1.EL.7.noarch 28/32 Verifying : 1398866025:rudder-server-relay-5.0.16.rc1.git202002110304-1.EL.7.x86_64 29/32 Verifying : 1398866025:rudder-webapp-5.0.16.rc1.git202002110304-1.EL.7.noarch 30/32 Verifying : 1398866025:rudder-agent-5.0.16.rc1.git202002110304-1.EL.7.x86_64 31/32 Verifying : 1398866025:ncf-api-virtualenv-5.0.16.rc1.git202002110304-1.EL.7.noarch
Updated by Nicolas CHARLES almost 5 years ago
It seems to be caused by
%preun -n rudder-inventory-ldap #================================================= # Pre Un-installation #================================================= if [[ $1 -eq 0 ]] then systemctl stop rudder-slapd fi
in rudder-inventory-ldap 5.0
Updated by Nicolas CHARLES almost 5 years ago
we need to find a way to start rudder-slapd by new package once rudder-inventory-ldap is uninstalled
Updated by Nicolas CHARLES almost 5 years ago
we could set a %posttrans to start rudder-slapd in case in upgrade
Updated by Nicolas CHARLES almost 5 years ago
- Status changed from New to In progress
- Assignee set to Nicolas CHARLES
Updated by Nicolas CHARLES almost 5 years ago
- Assignee changed from Nicolas CHARLES to Benoît PECCATTE
- Pull Request set to https://github.com/Normation/rudder-packages/pull/2198
Updated by Nicolas CHARLES almost 5 years ago
- Status changed from In progress to Pending release
Applied in changeset rudder-packages|bda5f020bf78e97f308875d57af2bfb012c9c445.
Updated by Nicolas CHARLES almost 5 years ago
- Fix check changed from To do to Checked
Updated by Alexis Mousset over 4 years ago
- Name check changed from To do to Reviewed
Updated by Vincent MEMBRÉ over 4 years ago
- Status changed from Pending release to Released
This bug has been fixed in Rudder 6.0.3 which was released today.
Actions