Bug #16360
closedError when upgrading Rudder 5.0 to 6.0 on centos7
Description
Several things go wrong with that update, AFAWK:
1/ incorrect selinux policies leads to seral errors among which technique from technique editor disapear: #16393 (corrected in 6.0.1)
Workaround: setenforce 0
2/ Rudder 5.0.n (x < 16) can not be uninstalled correctly (#16362).
Workaround: rpm -e --noscripts rudder-jetty-5.0.15
3/ bad migration of OpenLDAP configuration, so the slapd
can't start anymore. Workaround:
- mv /opt/rudder/etc/openldap/slapd.conf /opt/rudder/etc/openldap/slapd.conf.save-5.0
- mv /opt/rudder/etc/openldap/slapd.conf.rpmnew /opt/rudder/etc/openldap/slapd.conf
- update password in /opt/rudder/etc/openldap/slapd.conf
- chmod +r /opt/rudder/etc/openldap/slapd.conf
- systemctl start rudder-slapd
You should now be able to restart rudder-jetty
: systemctl restart rudder-jetty
Context:
unning transaction check Running transaction test Transaction test succeeded Running transaction Updating : audit-libs-2.8.5-4.el7.x86_64 1/32 Updating : 1398866025:rudder-agent-6.0.0.beta2.git201912060103-1.EL.7.x86_64 2/32 INFO: Scheduling an inventory during next run... Installing : audit-libs-python-2.8.5-4.el7.x86_64 3/32 Updating : policycoreutils-2.5-33.el7.x86_64 4/32 Installing : libcgroup-0.41-21.el7.x86_64 5/32 Installing : python-chardet-2.2.1-3.el7.noarch 6/32 Updating : 1398866025:rudder-reports-6.0.0.beta2.git201912060103-1.EL.7.noarch 7/32 INFO: Setting PostgreSQL as a boot service... Done INFO: Waiting for PostgreSQL to be up... Done Installing : libsemanage-python-2.5-14.el7.x86_64 8/32 Installing : setools-libs-3.3.8-4.el7.x86_64 9/32 Installing : python-IPy-0.75-6.el7.noarch 10/32 Installing : python-urllib3-1.10.2-7.el7.noarch 11/32 Installing : python-requests-2.6.0-7.el7_7.noarch 12/32 Installing : checkpolicy-2.5-8.el7.x86_64 13/32 Installing : policycoreutils-python-2.5-33.el7.x86_64 14/32 Updating : 1398866025:rudder-server-relay-6.0.0.beta2.git201912060103-1.EL.7.x86_64 15/32 INFO: Setting Apache HTTPd as a boot service... Done INFO: Creating users ... Done INFO: Configuring systemd services... Done Adding password for user rudder Adding password for user rudder INFO: Starting services... Done INFO: rudder-server-relay setup complete. getfacl: Removing leading '/' from absolute path names Installing : 1398866025:rudder-webapp-6.0.0.beta2.git201912060103-1.EL.7.x86_64 16/32 warning: /opt/rudder/etc/openldap/slapd.conf created as /opt/rudder/etc/openldap/slapd.conf.rpmnew warning: /opt/rudder/etc/rudder-web.properties created as /opt/rudder/etc/rudder-web.properties.rpmnew warning: user rudder-slapd does not exist - using root warning: group rudder-slapd does not exist - using root INFO: Creating groups ...INFO: Creating users ... Done INFO: Setting up systemd ... Done INFO: Applying selinux policy... Done Updating : 1398866025:rudder-server-root-6.0.0.beta2.git201912060103-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.git201912060152-1.EL.7.noarch 19/32 Cleanup : 1398866025:rudder-webapp-5.0.16.rc1.git201912060152-1.EL.7.noarch 20/32 Erasing : 1398866025:rudder-inventory-endpoint-5.0.16.rc1.git201912060152-1.EL.7.noarch 21/32 warning: /opt/rudder/etc/inventory-web.properties saved as /opt/rudder/etc/inventory-web.properties.rpmsave Erasing : 1398866025:ncf-api-virtualenv-5.0.16.rc1.git201912060152-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.git201912060152-1.EL.7.x86_64 23/32 Erasing : 1398866025:rudder-techniques-5.0.16.rc1.git201912060152-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.git201912060152-1.EL.7.noarch 27/32 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.git201912060152-1.EL.7.x86_64 28/32 Erasing : 1398866025:rudder-inventory-ldap-5.0.16.rc1.git201912060152-1.EL.7.x86_64 29/32 Stopping Jetty: ERROR: no pid found at /var/rudder/run/rudder-jetty.pid error: %preun(rudder-jetty-1398866025:5.0.16.rc1.git201912060152-1.EL.7.noarch) scriptlet failed, exit status 1 Error in PREUN scriptlet in rpm package 1398866025:rudder-jetty-5.0.16.rc1.git201912060152-1.EL.7.noarch Cleanup : 1398866025:rudder-reports-5.0.16.rc1.git201912060152-1.EL.7.noarch 30/32 error: rudder-jetty-1398866025:5.0.16.rc1.git201912060152-1.EL.7.noarch: erase failed Cleanup : audit-libs-2.8.4-4.el7.x86_64 31/32 Verifying : 1398866025:rudder-server-root-6.0.0.beta2.git201912060103-1.EL.7.noarch 1/32 Verifying : 1398866025:rudder-webapp-6.0.0.beta2.git201912060103-1.EL.7.x86_64 2/32 Verifying : checkpolicy-2.5-8.el7.x86_64 3/32 Verifying : 1398866025:rudder-server-relay-6.0.0.beta2.git201912060103-1.EL.7.x86_64 4/32 Verifying : python-urllib3-1.10.2-7.el7.noarch 5/32 Verifying : audit-libs-2.8.5-4.el7.x86_64 6/32 Verifying : python-IPy-0.75-6.el7.noarch 7/32 Verifying : python-requests-2.6.0-7.el7_7.noarch 8/32 Verifying : 1398866025:rudder-agent-6.0.0.beta2.git201912060103-1.EL.7.x86_64 9/32 Verifying : setools-libs-3.3.8-4.el7.x86_64 10/32 Verifying : policycoreutils-python-2.5-33.el7.x86_64 11/32 Verifying : audit-2.8.5-4.el7.x86_64 12/32 Verifying : audit-libs-python-2.8.5-4.el7.x86_64 13/32 Verifying : libsemanage-python-2.5-14.el7.x86_64 14/32 Verifying : 1398866025:rudder-reports-6.0.0.beta2.git201912060103-1.EL.7.noarch 15/32 Verifying : policycoreutils-2.5-33.el7.x86_64 16/32 Verifying : python-chardet-2.2.1-3.el7.noarch 17/32 Verifying : libcgroup-0.41-21.el7.x86_64 18/32 Verifying : 1398866025:rudder-inventory-endpoint-5.0.16.rc1.git201912060152-1.EL.7.noarch 19/32 Verifying : policycoreutils-2.5-29.el7_6.1.x86_64 20/32 Verifying : 1398866025:rudder-server-relay-5.0.16.rc1.git201912060152-1.EL.7.x86_64 21/32 Verifying : 1398866025:ncf-5.0.16.rc1.git201912060152-1.EL.7.noarch 22/32 Verifying : audit-2.8.4-4.el7.x86_64 23/32 Verifying : 1398866025:rudder-server-root-5.0.16.rc1.git201912060152-1.EL.7.noarch 24/32 Verifying : 1398866025:rudder-agent-5.0.16.rc1.git201912060152-1.EL.7.x86_64 25/32 Verifying : 1398866025:rudder-webapp-5.0.16.rc1.git201912060152-1.EL.7.noarch 26/32 Verifying : 1398866025:rudder-techniques-5.0.16.rc1.git201912060152-1.EL.7.noarch 27/32 Verifying : 1398866025:rudder-inventory-ldap-5.0.16.rc1.git201912060152-1.EL.7.x86_64 28/32 Verifying : 1398866025:rudder-jetty-5.0.16.rc1.git201912060152-1.EL.7.noarch 29/32 Verifying : 1398866025:rudder-reports-5.0.16.rc1.git201912060152-1.EL.7.noarch 30/32 Verifying : audit-libs-2.8.4-4.el7.x86_64 31/32 Verifying : 1398866025:ncf-api-virtualenv-5.0.16.rc1.git201912060152-1.EL.7.noarch 32/32 Installed: rudder-webapp.x86_64 1398866025:6.0.0.beta2.git201912060103-1.EL.7 Dependency Installed: audit-libs-python.x86_64 0:2.8.5-4.el7 checkpolicy.x86_64 0:2.5-8.el7 libcgroup.x86_64 0:0.41-21.el7 libsemanage-python.x86_64 0:2.5-14.el7 policycoreutils-python.x86_64 0:2.5-33.el7 python-IPy.noarch 0:0.75-6.el7 python-chardet.noarch 0:2.2.1-3.el7 python-requests.noarch 0:2.6.0-7.el7_7 python-urllib3.noarch 0:1.10.2-7.el7 setools-libs.x86_64 0:3.3.8-4.el7 Updated: rudder-agent.x86_64 1398866025:6.0.0.beta2.git201912060103-1.EL.7 rudder-reports.noarch 1398866025:6.0.0.beta2.git201912060103-1.EL.7 rudder-server-relay.x86_64 1398866025:6.0.0.beta2.git201912060103-1.EL.7 rudder-server-root.noarch 1398866025:6.0.0.beta2.git201912060103-1.EL.7 Dependency Updated: audit.x86_64 0:2.8.5-4.el7 audit-libs.x86_64 0:2.8.5-4.el7 policycoreutils.x86_64 0:2.5-33.el7 Replaced: ncf.noarch 1398866025:5.0.16.rc1.git201912060152-1.EL.7 ncf-api-virtualenv.noarch 1398866025:5.0.16.rc1.git201912060152-1.EL.7 rudder-inventory-endpoint.noarch 1398866025:5.0.16.rc1.git201912060152-1.EL.7 rudder-inventory-ldap.x86_64 1398866025:5.0.16.rc1.git201912060152-1.EL.7 rudder-techniques.noarch 1398866025:5.0.16.rc1.git201912060152-1.EL.7 Failed: rudder-jetty.noarch 1398866025:5.0.16.rc1.git201912060152-1.EL.7 Complete!