https://issues.rudder.io/https://issues.rudder.io/themes/rudder7/favicon/favicon.ico?17096450182013-11-06T10:42:10ZIssue TrackerRudder - Bug #4132: slapd is not always restarted on upgrading, leading to missing schema updatehttps://issues.rudder.io/issues/4132?journal_id=223132013-11-06T10:42:10ZVincent MEMBRÉvme@rudder.io
<ul></ul><p>slapd is not restarted on rpm when upgrading to 2.8</p>
<p>here the extract on sles11 :</p>
<pre>
Retrieving package rudder-inventory-ldap-1398866025:2.8.0.rc2-1.SLES.11.x86_64 (2/8), 2.7 MiB (12.4 MiB unpacked)
Retrieving: rudder-inventory-ldap-2.8.0.rc2-1.SLES.11.x86_64.rpm [done]
Installing: rudder-inventory-ldap-1398866025:2.8.0.rc2-1.SLES.11 [done]
Additional rpm output:
INFO: Setting slapd as a boot service... Done
INFO: Reloading syslogd... Done
INFO: Starting slapd... Done
</pre>
<p>And here the same upgrade with an ubuntu 12.10:<br /><pre>
Setting up rudder-inventory-ldap (2.8.0~rc2-quantal0) ...
INFO: Restarting syslogd... Done
INFO: OpenLDAP indexes are not up to date, reindexing... Done.
slapd[13049]: [INFO] Using /etc/default/slapd for configuration
slapd[13054]: [INFO] Halting OpenLDAP...
slapd[13058]: [OK] OpenLDAP stopped after 1 seconds
slapd[13059]: [INFO] Launching OpenLDAP database backup...
slapd[13076]: [OK] data save in /var/rudder/ldap/backup/openldap-data-20131106102018.ldif
slapd[13078]: [INFO] Halting OpenLDAP replication...
slapd[13079]: [INFO] no replica found in configuration, aborting stopping slurpd
slapd[13080]: [INFO] Launching OpenLDAP configuration test...
slapd[13082]: [OK] OpenLDAP configuration test successful
slapd[13083]: [INFO] Launching OpenLDAP replication...
slapd[13084]: [INFO] no replica found in configuration, aborting lauching slurpd
slapd[13085]: [INFO] no db_recover done
slapd[13086]: [INFO] Launching OpenLDAP...
slapd[13087]: [OK] file descriptor limit set to 1024
slapd[13094]: [OK] OpenLDAP started on port 389 and 636
Setting up rudder-jetty (2.8.0~rc2-quantal0) ...
</pre></p>
<p>It was both an upgrade from 2.7.5</p>
<p>Indexes needs to be updated in Ubuntu and Sles don't find it needs.</p>
<p>A solution may be to force restart at the end of spec file (a start is made, but it does nothing if slapd is still running ..)</p> Rudder - Bug #4132: slapd is not always restarted on upgrading, leading to missing schema updatehttps://issues.rudder.io/issues/4132?journal_id=223142013-11-06T10:42:20ZVincent MEMBRÉvme@rudder.io
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>In progress</i></li></ul> Rudder - Bug #4132: slapd is not always restarted on upgrading, leading to missing schema updatehttps://issues.rudder.io/issues/4132?journal_id=223152013-11-06T11:13:11ZVincent MEMBRÉvme@rudder.io
<ul><li><strong>Subject</strong> changed from <i>Upgrading rudder-webpp on rpm based system needs to restart slapd too</i> to <i>slapd is not always restarted on upgrading, leading to missing schema update</i></li><li><strong>Target version</strong> changed from <i>2.6.9</i> to <i>2.4.12</i></li></ul><p>In fact slapd may not be restarted even if schema has changed, on debian by luck, indexes have changed so slapd is restarted, but if it was not the case the bug would occurs too.</p>
<p>We need to always restart slapd at the end of rudder-inventory-ldap this occurs too in 2.4</p>
<p>A better version would be to prevent swapping (slapd may be restarted several times during upgrade. and this should be done once but that for a next version</p> Rudder - Bug #4132: slapd is not always restarted on upgrading, leading to missing schema updatehttps://issues.rudder.io/issues/4132?journal_id=223162013-11-06T11:20:27ZVincent MEMBRÉvme@rudder.io
<ul><li><strong>Status</strong> changed from <i>In progress</i> to <i>Pending technical review</i></li><li><strong>Assignee</strong> changed from <i>Vincent MEMBRÉ</i> to <i>Jonathan CLARKE</i></li><li><strong>Pull Request</strong> set to <i>https://github.com/Normation/rudder-packages/pull/182</i></li></ul><p>Pull request here: <a class="external" href="https://github.com/Normation/rudder-packages/pull/182">https://github.com/Normation/rudder-packages/pull/182</a></p> Rudder - Bug #4132: slapd is not always restarted on upgrading, leading to missing schema updatehttps://issues.rudder.io/issues/4132?journal_id=223262013-11-06T17:33:40ZJonathan CLARKEjonathan.clarke@normation.com
<ul><li><strong>Status</strong> changed from <i>Pending technical review</i> to <i>Pending release</i></li></ul> Rudder - Bug #4132: slapd is not always restarted on upgrading, leading to missing schema updatehttps://issues.rudder.io/issues/4132?journal_id=226832013-11-20T15:36:10ZNicolas PERRONnicolas.perron@normation.com
<ul><li><strong>Status</strong> changed from <i>Pending release</i> to <i>Released</i></li></ul><p>This bug has been fixed in Rudder 2.4.12 which was released today.<br />Check out: </p>
<ul>
<li>The release announcement: <a class="external" href="http://www.rudder-project.org/pipermail/rudder-announce/2013-November/000061.html">http://www.rudder-project.org/pipermail/rudder-announce/2013-November/000061.html</a></li>
<li>The full ChangeLog: <a class="external" href="http://www.rudder-project.org/foswiki/bin/view/System/Documentation:ChangeLog24">http://www.rudder-project.org/foswiki/bin/view/System/Documentation:ChangeLog24</a></li>
<li>Download information: <a class="external" href="https://www.rudder-project.org/site/get-rudder/downloads/">https://www.rudder-project.org/site/get-rudder/downloads/</a></li>
</ul> Rudder - Bug #4132: slapd is not always restarted on upgrading, leading to missing schema updatehttps://issues.rudder.io/issues/4132?journal_id=380232015-03-11T11:07:40ZBenoît PECCATTEbenoit.peccatte@rudder.io
<ul><li><strong>Project</strong> changed from <i>34</i> to <i>Rudder</i></li><li><strong>Category</strong> set to <i>Packaging</i></li></ul>