Upgrade from Source to Zenoss stack Installer
Here are the steps for upgrading from a source-based install to a
zenoss-stack .deb or rpm.
Note, that for all the commands below, the prompt "#" is used to mean
"run as root" and "$" for the zenoss user.
1. Fetch the zenoss .deb (for debian and ubuntu systems) or .rpm
for redhat, SuSE.
2. The zenoss stack includes it's own copy of mysql, which, by
default, will run on port 3307. Change your current configuration
to point to port 3307.
Event Manager -> Edit, change the port from 3306 to 3307
3. Back everything up
$ zenbackup
4. Make a note of which ZenPacks you have installed.
Settings -> ZenPacks
5. Shutdown zenoss
$ zenoss stop
6. Move the current zenoss to a new name:
$ mv /usr/local/zenoss /usr/local/zenoss-2.1.3
7. Install the package:
# dpkg -i zenoss-stack*.deb
or
# rpm -Uvh zenoss-stack*.rpm
8. Copy the configuration files to a backup directory:
$ cd /usr/local/zenoss/zenoss/etc
$ cp zeo.conf zope.conf /tmp
9. For each ZenPack installed on the old install, copy its directory to the
new install:
$ cp -r $OLD_ZENHOME/Products/SomeZenPack $ZENHOME/Products/
10. Start mysql
# /usr/local/zenoss/mysql/scripts/ctl.sh start
11. Load your data back with zenrestore:
$ NOW=`date +%Y%m%d`
$ zenrestore --dbuser=zenoss --dbpass=zenoss \
--file /usr/local/zenoss-2.1.3/backups/zenbackup_$NOW.tgz
12. Copy the configuration files back:
$ cp /tmp/zope.conf /usr/local/zenoss/zenoss/etc
$ cp /tmp/zeo.conf /usr/local/zenoss/zenoss/etc
13. Start zeo
$ zeoctl start
14. Migrate the data:
$ zenmigrate
15. Re-register the portlets
$ zendmd
>>> from Products.ZenWidgets.ZenossPortlets.ZenossPortlets \
import register_default_portlets
>>> register_default_portlets(zport.ZenPortletManager)
>>> commit()
16. Start all of zenoss:
$ zenoss start