Red Hat Bugzilla – Bug 426918
Make cyloadrules on upgrade
Last modified: 2008-07-26 02:06:28 EDT
Description of problem:
Rpm doesn't do cyloadrules on upgrade.
Because of that cyphesis uses old rules which has bugs fixed in new versions.
Like this one: https://bugs.launchpad.net/cyphesis/+bug/179039
Version-Release number of selected component (if applicable):
You're right. It looks like cyloadrules is only getting called the first time
the database is created. Do you think it would be better to run cyloadrules
every time the server starts, or only when the server is upgraded?
It should be also runned on rpm install, not just upgrade - after uninstalling
you're leaving database intact.
Um, I don't know. May be running it only on install/upgrade is better.
The reason we can't do it in the rpm script during install/upgrade time is
because we can't be guaranteed that postgres is running. If we want to limit it
to only during upgrades/installs, then we would have to make the rpm create some
sort of trigger, such as setting a flag in /etc/sysconfig/cyphesis. The init.d
script for cyphesis would then check for this trigger, run cyloadrules, and then
reset the trigger.
I have a patch to fix this and will post a link to the rpm for you to try once
I've done a little more testing on it.
Changing Version to F9. I can push this fix to F8 if there is still demand for it.
cyphesis-0.5.15-7.fc9 has been submitted as an update for Fedora 9
cyphesis-0.5.15-8.fc9 has been pushed to the Fedora 9 testing repository. If problems still persist, please make note of it in this bug report.
If you want to test the update, you can install it with
su -c 'yum --enablerepo=updates-testing update cyphesis'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F9/FEDORA-2008-5107
cyphesis-0.5.15-8.fc9 has been pushed to the Fedora 9 stable repository. If problems still persist, please make note of it in this bug report.