On Jun 28, 2009, at 2:22 AM, konsa79 wrote:
> Code:
> [zen...@ipmonitoring 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   1474      0 --:--:-- --:--:--  
> --:--:-- 58000
> 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...@ipmonitoring 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)
> 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'
>
>
> something else to do?

That's incredibly strange. The patch looks like it applied cleanly,  
but this error shouldn't be possible with that patch in place. Try  
deleting /opt/zenoss/Products/ZenModel/migrate/useIntLoadAverages.pyc  
and running the zenmigrate again.
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users

Reply via email to