Everytime I upgrade from 2.3.3 to 2.4.2 it fails...miserably. It gets one error 
during the migrate, which I don't know if it's related to the problem we have 
after upgrading, but I've tried upgrading atleast 8 times....each time I have 
to clone my current server to keep from losing my data. 

Everytime the upgrade breaks WMI completely....everything just goes to nan and 
nothing I've tried will fix it. I have to delete the current server that I just 
upgraded, and fail over to the cloned server. Unfortunately 2.4.2 has some 
features that I need. In a fresh install of 2.4.2, wmi works just fine, but a 
fresh install is not an option as we have almost 2 years worth of devices and 
data setup and installed already. 

My 2.3.3 installation runs just fine, no issues whatsoever, but once upgrading 
to 2.4.2 everything runs great, aside from WMI which does not graph at all...I 
can't say it doesn't completely work as running the query manually from the 
zenoss server returns the correct data.

a reference to my previous thread on this issue can be found here 
http://forums.zenoss.com/viewtopic.php?t=10340

Here is the total output of my zenoss upgrade and then me applying some 
zenpatches to get rid of the error

rpm -Uvh zenoss-2.4.2.el5.i386.rpm
warning: zenoss-2.4.2.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 
aa5a1ad7
Preparing...                ########################################### [100%]
   1:zenoss                 ########################################### [100%]
[r...@monitor root]# /etc/init.d/zenoss start
Zenoss upgraded.  Running data migration scripts...
Upgrade pre step
/opt/zenoss/bin/install-functions.sh converted
/opt/zenoss/bin/zenoss_upgrade_pre converted
/opt/zenoss/etc/zeo.conf converted
Starting Zope Object Database
. daemon process started, pid=5323
Migrating data...
INFO:zen.migrate:Database going to version Zenoss 2.4.2
INFO:zen.migrate:Installing AddDeviceClassDescriptionAndProtocol (2.4.0)
INFO:zen.migrate:Installing NewProductIndexes (2.4.0)
INFO:zen.migrate:Reindexing products. This may take some time...
INFO:zen.migrate:Installing OSProcessMemoryBase1024 (2.4.0)
INFO:zen.migrate:Installing SimpleDataPoint_list (2.4.0)
INFO:zen.migrate:Installing UserMsgsPortlet (2.4.0)
INFO:zen.migrate:Installing ZenManagerRole (2.4.0)
INFO:zen.migrate:Installing addCpuDataPointAliases (2.4.0)
INFO:zen.migrate:Installing addDataPointAliasMenus (2.4.0)
INFO:zen.migrate:Installing addDefaultZFileSystemMapIgnoreTypes (2.4.0)
INFO:zen.migrate:Installing addJobManager (2.4.0)
INFO:zen.migrate:Installing addNmapOptionsZProp (2.4.0)
INFO:zen.migrate:Installing addPreferSnmpNamingFlag (2.4.0)
INFO:zen.migrate:Installing addSnmpStrictDiscoveryFlag (2.4.0)
INFO:zen.migrate:Installing addUnixMonitoring (2.4.0)
INFO:zen.migrate:Installing correctDNSlookupCommands (2.4.0)
INFO:zen.migrate:Installing uuidEventIds (2.4.0)
INFO:zen.migrate:Updating MySQL event table status
INFO:zen.migrate:Updating MySQL event table history
INFO:zen.migrate:This can take a VERY long time to execute(eg hours).  Please 
do not interrupt.
INFO:zen.migrate:Updating MySQL event table alert_state
INFO:zen.migrate:Updating MySQL event table log
INFO:zen.migrate:Updating MySQL event table detail
INFO:zen.migrate:Installing zSshConcurrentSessions (2.4.0)
INFO:zen.migrate:Installing FixBadJobs (2.4.2)
INFO:zen.migrate:Installing UseIntLoadAverages (2.4.2)
INFO:zen.migrate:Could not retrieve datasource at 
Server/Linux/rrdTemplates/Device/datasources/laLoadInt1. The template or 
datasource is not present.
INFO:zen.migrate:Could not retrieve datasource at 
Server/Linux/rrdTemplates/Device/datasources/laLoadInt15. The template or 
datasource is not present.
Recovering
Traceback (most recent call last):
  File "/opt/zenoss/Products/ZenModel/migrate/zenmigrate.py", line 21, in ?
    main()
  File "/opt/zenoss/Products/ZenModel/migrate/zenmigrate.py", line 18, in main
    m.main()
  File "/opt/zenoss/Products/ZenModel/migrate/Migrate.py", line 425, in main
    self.cutover()
  File "/opt/zenoss/Products/ZenModel/migrate/Migrate.py", line 305, in cutover
    self.migrate()
  File "/opt/zenoss/Products/ZenModel/migrate/Migrate.py", line 281, in migrate
    m.cutover(self.dmd)
  File "/opt/zenoss/Products/ZenModel/migrate/useIntLoadAverages.py", line 44, 
in cutover
    ds = dmd.getObjByPath('/zport/dmd/Devices/' + dsPath)
  File "/opt/zenoss/Products/ZenModel/ZenModelBase.py", line 597, in 
getObjByPath
    return getObjByPath(self, path)
  File "/opt/zenoss/Products/ZenUtils/Utils.py", line 286, in getObjByPath
    next=obj[name]
  File "/opt/zenoss/lib/python/OFS/ObjectManager.py", line 713, in __getitem__
    raise KeyError, key
KeyError: 'Solaris'
Stopping Zope Object Database
daemon process stopped
Zenoss upgrade pre-restart commands complete.
Daemon: zeoctl . daemon process started, pid=5407
Daemon: zopectl . daemon process started, pid=5411
Daemon: zenhub starting...
Daemon: zenjobs starting...
Daemon: zenping starting...
Daemon: zensyslog starting...
Daemon: zenstatus starting...
Daemon: zenactions starting...
Daemon: zentrap starting...
Daemon: zenmodeler starting...
Daemon: zenperfsnmp starting...
Daemon: zencommand starting...
Daemon: zenprocess starting...
Daemon: zenwin starting...
Daemon: zeneventlog starting...
[r...@monitor root]# su zenoss
[zen...@monitor root]$ zenpatch 14088
Getting patch from Internet...
http://dev.zenoss.org/trac/changeset/14088?format=diff&new=14088
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   499    0   499    0     0    847      0 --:--:-- --:--:-- --:--:--  9175
determinig strip size for /opt/zenoss/Products/r14088.patch

Applying patch with strip=3
patch -b --strip=3 < r14088.patch
(Stripping trailing CRs from patch.)
patching file ZenModel/migrate/useIntLoadAverages.py
[zen...@monitor root]$ zenpatch 14004
Getting patch from Internet...
http://dev.zenoss.org/trac/changeset/14004?format=diff&new=14004
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  1650    0  1650    0     0   3406      0 --:--:-- --:--:-- --:--:-- 21042
determinig strip size for /opt/zenoss/Products/r14004.patch

Applying patch with strip=3
patch -b --strip=3 < r14004.patch
(Stripping trailing CRs from patch.)
patching file ZenUtils/ZenRestore.py
(Stripping trailing CRs from patch.)
patching file ZenUtils/ZenBackup.py
[zen...@monitor root]$ zenmigrate
INFO:zen.migrate:Database going to version Zenoss 2.4.2
INFO:zen.migrate:Installing FixBadJobs (2.4.2)
INFO:zen.migrate:Installing UseIntLoadAverages (2.4.2)
INFO:zen.migrate:Could not retrieve datasource at 
Server/Linux/rrdTemplates/Device/datasources/laLoadInt1. The template or 
datasource is not present.
INFO:zen.migrate:Could not retrieve datasource at 
Server/Linux/rrdTemplates/Device/datasources/laLoadInt15. The template or 
datasource is not present.
Recovering
Traceback (most recent call last):
  File "/opt/zenoss/Products/ZenModel/migrate/zenmigrate.py", line 21, in ?
    main()
  File "/opt/zenoss/Products/ZenModel/migrate/zenmigrate.py", line 18, in main
    m.main()
  File "/opt/zenoss/Products/ZenModel/migrate/Migrate.py", line 425, in main
    self.cutover()
  File "/opt/zenoss/Products/ZenModel/migrate/Migrate.py", line 305, in cutover
    self.migrate()
  File "/opt/zenoss/Products/ZenModel/migrate/Migrate.py", line 281, in migrate
    m.cutover(self.dmd)
  File "/opt/zenoss/Products/ZenModel/migrate/useIntLoadAverages.py", line 44, 
in cutover
    ds = dmd.getObjByPath('/zport/dmd/Devices/' + dsPath)
  File "/opt/zenoss/Products/ZenModel/ZenModelBase.py", line 597, in 
getObjByPath
    return getObjByPath(self, path)
  File "/opt/zenoss/Products/ZenUtils/Utils.py", line 286, in getObjByPath
    next=obj[name]
  File "/opt/zenoss/lib/python/OFS/ObjectManager.py", line 713, in __getitem__
    raise KeyError, key
KeyError: 'Solaris'
[zen...@monitor root]$ zenbackup -v
usage: ZenBackup.py [options]

ZenBackup.py: error: -v option requires an argument
[zen...@monitor root]$ zenbackup -v10
DEBUG:zenbackup:Use /tmp/tmpmYNa1M/zenbackup as a staging directory for the 
backup
DEBUG:zenbackup:Can we access ZODB through Zeo?
DEBUG:zenbackup:/opt/zenoss/bin/python /opt/zenoss/bin/zeoup.py -p 8100 -h 
localhost
DEBUG:zenbackup:Elapsed time: 0.86

INFO:zenbackup:Getting MySQL dbname, user, password from ZODB.
INFO:zenbackup:Backing up events database.
DEBUG:zenbackup:mysqldump -uzenoss ***************** --single-transaction 
--routines events --result-file=/tmp/tmpmYNa1M/zenbackup/events.sql
DEBUG:zenbackup:No output from command
INFO:zenbackup:Backup of events database completed in 4 seconds.
INFO:zenbackup:Backing up the ZODB.
DEBUG:zenbackup:/opt/zenoss/bin/python /opt/zenoss/bin/repozo.py --repository 
/tmp/tmpmYNa1M/zenbackup/repozo --file /opt/zenoss/var/Data.fs --backup --full
DEBUG:zenbackup:No output from command
INFO:zenbackup:Backup of ZODB database completed in 17 seconds.
INFO:zenbackup:Backing up config files.
INFO:zenbackup:Backup of config files completed.
INFO:zenbackup:Backing up ZenPacks.
INFO:zenbackup:Backup of ZenPacks completed.
INFO:zenbackup:Backing up performance data (RRDs).
DEBUG:zenbackup:tar cf /tmp/tmpmYNa1M/zenbackup/perf.tar /opt/zenoss/perf
DEBUG:zenbackup:No output from command
INFO:zenbackup:Backup of performance data completed in 14 seconds.
INFO:zenbackup:Packaging backup file.
DEBUG:zenbackup:tar czfC /opt/zenoss/backups/zenbackup_20090721.tgz 
/tmp/tmpmYNa1M zenbackup
DEBUG:zenbackup:No output from command
INFO:zenbackup:Backup written to /opt/zenoss/backups/zenbackup_20090721.tgz
INFO:zenbackup:Cleaning up staging directory /tmp/tmpmYNa1M
DEBUG:zenbackup:rm -r /tmp/tmpmYNa1M
DEBUG:zenbackup:No output from command
INFO:zenbackup:Backup completed successfully in 58 seconds.
[zen...@monitor root]$ zenpatch 14163
Getting patch from Internet...
http://dev.zenoss.org/trac/changeset/14163?format=diff&new=14163
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   671    0   671    0     0   2714      0 --:--:-- --:--:-- --:--:-- 12833
determinig strip size for /opt/zenoss/Products/r14163.patch

Applying patch with strip=3
patch -b --strip=3 < r14163.patch
(Stripping trailing CRs from patch.)
patching file ZenModel/migrate/useIntLoadAverages.py
[zen...@monitor root]$ zenmigrate
INFO:zen.migrate:Database going to version Zenoss 2.4.2
INFO:zen.migrate:Installing FixBadJobs (2.4.2)
INFO:zen.migrate:Installing UseIntLoadAverages (2.4.2)
INFO:zen.migrate:Could not retrieve datasource at 
Server/Linux/rrdTemplates/Device/datasources/laLoadInt1. The template or 
datasource is not present.
INFO:zen.migrate:Could not retrieve datasource at 
Server/Linux/rrdTemplates/Device/datasources/laLoadInt15. The template or 
datasource is not present.
INFO:zen.migrate:Could not retrieve datasource at 
Server/Solaris/rrdTemplates/Device/datasources/laLoadInt1. The template or 
datasource is not present.
INFO:zen.migrate:Could not retrieve datasource at 
Server/Solaris/rrdTemplates/Device/datasources/laLoadInt15. The template or 
datasource is not present.
INFO:zen.migrate:Installing zFileSystemSizeOffset (2.4.2)
INFO:zen.migrate:Loading Reports




-------------------- m2f --------------------

Read this topic online here:
http://forums.zenoss.com/viewtopic.php?p=37153#37153

-------------------- m2f --------------------



_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users

Reply via email to