Sep 22, 2009 2:06 AM
Zenoss 2.4.5 doesn't restore Zenpack [Fixed]
-
Like (0)
Hi all,
today a move a zenoss installation from one server to a new one and i found that Zenpack is backupped but not restored.
this is my zenbackup content
[root@ZenossXen tmp]# tar -xvf zenbackup_20090921.tar
zenbackup/
zenbackup/events.sql
zenbackup/ZenPacks.tar
zenbackup/repozo/
zenbackup/repozo/2009-09-21-13-28-12.fs
zenbackup/repozo/2009-09-21-13-28-12.dat
zenbackup/etc.tar
zenbackup/backup.settings
zenbackup/perf.tar
so i unzip my ZenPacks.tar and i found all my backupped zenpack... but they have not been automatically restored.
i see a previous post that say "create a ZenPacks folder if you have this xxx error" but my zenrestore give me no error.
now how can i link my old ZenPacks in this installation?
i just copy this file in my handcreate ZenPacks folder and restart zenoss, now works fin but i've this error Products.ZenModel.ZenPack This pack is missing or broken. You may need to restart Zope. restarting zope don't fix my issue
in this new installation i also found that zenperfwmi doesn't exist...
on old server:
[root@IpMonitoring bin]# ls | grep zenperf
zenperfsnmp
zenperfwmi
on new server:
[zenoss@ZenossXen bin]$ ls | grep zenperf
zenperfsnmp
... so bad....
but i see that
[root@IpMonitoring bin]# ls -la zenperfwmi
lrwxrwxrwx 1 zenoss zenoss 119 7 set 11:55 zenperfwmi -> /opt/zenoss/ZenPacks/ZenPacks.community.WMIDataSource-1.1-py2.4.egg/ZenPacks/community/WMIDataSource/daemons/zenperfwmi
and then
[zenoss@ZenossXen bin]$ ln -s /opt/zenoss/ZenPacks/ZenPacks.community.WMIDataSource-1.1-py2.4.egg/ZenPacks/community/WMIDataSource/daemons/zenperfwmi
and
[zenoss@ZenossXen bin]$ zenperfwmi start
starting..
this fix my issue....
[root@ZenossXen ZenPacks]# service zenoss status
Daemon: zeoctl program running; pid=7694
Daemon: zopectl program running; pid=8881
Daemon: zenhub program running; pid=7727
Daemon: zenjobs program running; pid=7757
Daemon: zenping program running; pid=7824
Daemon: zensyslog program running; pid=7864
Daemon: zenstatus program running; pid=7874
Daemon: zenactions program running; pid=7905
Daemon: zentrap program running; pid=8010
Daemon: zenmodeler program running; pid=8011
Daemon: zenperfsnmp program running; pid=8045
Daemon: zencommand program running; pid=8094
Daemon: zenprocess program running; pid=8136
Daemon: zenwin program running; pid=9532
Daemon: zeneventlog program running; pid=8209
Daemon: zenperfwmi program running; pid=10302
DEV can you fix this issue?
There is a ticket http://dev.zenoss.org/trac/ticket/5180
And if you look at the options for zenrestore you should find the --zenpacks options
Though officially you have to re-install the zenpacks to do a restore. The reason is that zenpacks can and do all sorts things that are unanticipated. So the zenpack restore may or may not work depending on what the zenpack installed on the file system that is why it is always better to re-install the zenpack if possible
From the Admin Guide...
Before you can restore your Zenoss instance, you must ensure that the same ZenPacks that were installed on the backup system are also installed on the target system.
Products.ZenModel.ZenPack | This pack is missing or broken. You may need to restart Zope. |
this error persist after installing core zenpack and restarting zenoss
yes but rom 2.4.5 zenpack are backupped correctly (zenpack are all present in my backup file)
the issue is on zenrestore
Perf data bug has been fixed; that ticket, 5315, had a reference to http://dev.zenoss.org/trac/ticket/5447
In the meantime the perf data should be in the backup tar, it just had the wrong directory information associated with it. Look at the note in the ticket I linked to, should tell you were to find the perf data
--zenpacks Experimental: Restore any ZenPacks in the backup. Some
ZenPacks may not work properly. Reinstall ZenPacks if
possible
i see that it's till experimental..
i see that also in 2.5.1 zenpacks are not restored by default but i think it's not correct because when i have a backup with zenpack and i restore without zenpack i have a lot of issue due to zenpack missing (portlet, wmi...)
Follow Us On Twitter »
|
Latest from the Zenoss Blog » | Community | Products | Services Resources | Customers Partners | About Us | ||
Copyright © 2005-2011 Zenoss, Inc.
|
||||||||