Jul 13, 2010 11:04 PM
3.0-Incompatible Community ZenPacks
-
Like (0)
The document 3.0-Incompatible Community ZenPacks has been posted as a list of potentially 3.0-incompatible ZenPacks.
With the upgrade to Python 2.6 and Zope 2.12 in the upcoming Zenoss 3.0 release, there are a number of incompatibilties that may have been introduced to existing ZenPacks. While we have encouraged users to test their existing ZenPacks, not every ZenPack will continue to work with 3.0 without upgrading it. We have documentation for authors looking to upgrade their ZenPacks: The specified document was not found. and I'm happy to work with anyone to get fixes submitted and tested.
These were tested building with Ubuntu 32-bit on a VM and a script to automate installing them. The ZenPack authors are being notified, feel free to submit corrections where possible. As other ZenPacks are found to have errors or are fixed, the list will be revised and updated.
If you have any comments or feedback, feel free to post it to this thread or email me directly.
Thanks,
Matt Ray
Zenoss Community Manager
For those of us who didn't remove incompatible ZenPacks, how do we force the remove when it now show a line:
Broken This pack was just installed, or is missing or broken. Please restart Zope.
Is there a way to tell Zenoss Core to purge all missing and broken ZenPacks?
Thanks
P.S. Using Zenoss Core 3.0.0
I believe you can use either of the following techniques with zendmd to remove your broken zenpacks. Start up 'zendmd' as the zenoss user
>>> dmd.ZenPackManager.packs._delObject('ZenPacks.community.BrokenZenPack')
>>> commit()
or
>>> from ZenPacks.community.BrokenZenPack import ZenPack
>>> ZenPack.remove(dmd)
>>> commit()
Thanks,
Matt Ray
Zenoss Community Manager
I don't want to hijack a post, but I am encountering the same problem and running the commands you posted for zendmd are not removing the broken zenpack. This is definetely a lesson in doing due diligence before an upgrade especially when everything says to. This is the error I am receiving:
>>> dmd.ZenPackManager.packs._delObject('ZenPacks.SCC.ShowGraphPortlet')
Traceback (most recent call last):
File "<console>", line 1, in <module>
File "/opt/zenoss/Products/ZenRelations/ToManyRelationshipBase.py", line 79, in _delObject
self.removeRelation(obj, suppress_events)
File "/opt/zenoss/Products/ZenRelations/RelationshipBase.py", line 109, in removeRelation
self._remoteRemove(obj)
File "/opt/zenoss/Products/ZenRelations/ToManyContRelationship.py", line 187, in _remoteRemove
obj.getPrimaryId(), self.getPrimaryId()))
AttributeError: getPrimaryId
Any ideas?
Hi,
I am getting exactly the same thing:
>>> dmd.ZenPackManager.packs._delObject('ZenPacks.Ecocoms.OpenLayersMap')
Traceback (most recent call last):
File "<console>", line 1, in <module>
File "/opt/zenoss/Products/ZenRelations/ToManyRelationshipBase.py", line 79, in _delObject
self.removeRelation(obj, suppress_events)
File "/opt/zenoss/Products/ZenRelations/RelationshipBase.py", line 109, in removeRelation
self._remoteRemove(obj)
File "/opt/zenoss/Products/ZenRelations/ToManyContRelationship.py", line 187, in _remoteRemove
obj.getPrimaryId(), self.getPrimaryId()))
AttributeError: getPrimaryId
Any ideas?
Cheers,
Doug
Hi,
I am getting exactly the same thing:
>>> dmd.ZenPackManager.packs._delObject('ZenPacks.community.NetApp')
Traceback (most recent call last):
File "<console>", line 1, in <module>
File "/opt/zenoss/Products/ZenRelations/ToManyRelationshipBase.py", line 79, in _delObject
self.removeRelation(obj, suppress_events)
File "/opt/zenoss/Products/ZenRelations/RelationshipBase.py", line 109, in removeRelation
self._remoteRemove(obj)
File "/opt/zenoss/Products/ZenRelations/ToManyContRelationship.py", line 187, in _remoteRemove
obj.getPrimaryId(), self.getPrimaryId()))
AttributeError: getPrimaryId
Any ideas? This is getting rather frustrating as this ZenPack does not want to install on 3.2.1 & there is no other available. I thank you in advance for some leads on resolving this issue.
Best Regards,
Tom McCarthy
Tom:
when you install the pack from the cli what error do you get?
Try not to use _delOb until all other choices are exhausted.
--Shane
Shane,
I receive the following error from the CLI.
>>> dmd.ZenPackManager.packs. _delObject('ZenPacks.community.NetApp')
Traceback (most recent call last):
File "<console>", line 1, in <module>
File "/opt/zenoss/Products/ZenRelations/ToManyRelationshipBase.py", line 91, in _delObject
self.removeRelation(obj, suppress_events)
File "/opt/zenoss/Products/ZenRelations/RelationshipBase.py", line 109, in removeRelation
self._remoteRemove(obj)
File "/opt/zenoss/Products/ZenRelations/ToManyContRelationship.py", line 186, in _remoteRemove
obj.getPrimaryId(), self.getPrimaryId()))
AttributeError: getPrimaryId
I also tried with out the _delOB to no avail. That returned:
>>> dmd.ZenPackManager.packs.('ZenPacks.community.NetApp')
File "<console>", line 1
dmd.ZenPackManager.packs.('ZenPacks.community.NetApp')
^
SyntaxError: invalid syntax
Any other ideas would be welcomed. I only have about 15% more configuration to do & it seems that last bit is the toughest.
Thank You,
Tom
Tom:
Try resinstalling the pack using zenpack --install {pack name}
I'm interested in the trace there.
--Shane
Shane,
Here is the error now.
[zenoss@zenossprod zenpack_downloads]$ zenpack --install ZenPacks.community.NetApp-1.13-py2.4.egg
Link to http://pypi.python.org/simple/ZenPacks.community.NetApp/ ***BLOCKED*** by --allow-hosts
Couldn't find index page for 'ZenPacks.community.NetApp' (maybe misspelled?)
Link to http://pypi.python.org/simple/ ***BLOCKED*** by --allow-hosts
No local packages or download links found for ZenPacks.community.NetApp==1.13
Couldn't find index page for 'ZenPacks.community.NetApp' (maybe misspelled?)
No local packages or download links found for ZenPacks.community.NetApp==1.13
ERROR:zen.ZenPackCmd:zenpack command failed
Traceback (most recent call last):
File "/opt/zenoss/Products/ZenUtils/zenpack.py", line 406, in <module>
zp.run()
File "/opt/zenoss/Products/ZenUtils/zenpack.py", line 134, in run
previousVersion= self.options.previousVersion)
File "/opt/zenoss/Products/ZenUtils/ZenPackCmd.py", line 240, in InstallEggAndZenPack
zpDists = InstallEgg(dmd, eggPath, link=link)
File "/opt/zenoss/Products/ZenUtils/ZenPackCmd.py", line 303, in InstallEgg
DoEasyUninstall(eggPath)
File "/opt/zenoss/Products/ZenUtils/ZenPackCmd.py", line 891, in DoEasyUninstall
easy_install.main(args)
File "/opt/zenoss/lib/python/setuptools/command/easy_install.py", line 1712, in main
with_ei_usage(lambda:
File "/opt/zenoss/lib/python/setuptools/command/easy_install.py", line 1700, in with_ei_usage
return f()
File "/opt/zenoss/lib/python/setuptools/command/easy_install.py", line 1716, in <lambda>
distclass=DistributionWithoutHelpCommands, **kw
File "/opt/zenoss/lib/python2.6/distutils/core.py", line 152, in setup
dist.run_commands()
File "/opt/zenoss/lib/python2.6/distutils/dist.py", line 975, in run_commands
self.run_command(cmd)
File "/opt/zenoss/lib/python2.6/distutils/dist.py", line 995, in run_command
cmd_obj.run()
File "/opt/zenoss/lib/python/setuptools/command/easy_install.py", line 211, in run
self.easy_install(spec, not self.no_deps)
File "/opt/zenoss/lib/python/setuptools/command/easy_install.py", line 427, in easy_install
return self.install_item(None, spec, tmpdir, deps, True)
File "/opt/zenoss/lib/python/setuptools/command/easy_install.py", line 478, in install_item
self.process_distribution(spec, dist, deps)
File "/opt/zenoss/lib/python/setuptools/command/easy_install.py", line 519, in process_distribution
[requirement], self.local_index, self.easy_install
File "/opt/zenoss/lib/python/pkg_resources.py", line 563, in resolve
dist = best[req.key] = env.best_match(req, self, installer)
File "/opt/zenoss/lib/python/pkg_resources.py", line 799, in best_match
return self.obtain(req, installer) # try and download/install
File "/opt/zenoss/lib/python/pkg_resources.py", line 811, in obtain
return installer(requirement)
File "/opt/zenoss/lib/python/setuptools/command/easy_install.py", line 434, in easy_install
self.local_index
File "/opt/zenoss/lib/python/setuptools/package_index.py", line 475, in fetch_distribution
return dist.clone(location=self.download(dist.location, tmpdir))
AttributeError: 'NoneType' object has no attribute 'clone'
ANY Ideas would be welcomed. Thank you AGAIN.
Tom
Tom:
Install the netapp zenpack with py2.6 in its name.
--Shane
Follow Us On Twitter »
|
Latest from the Zenoss Blog » | Community | Products | Services Resources | Customers Partners | About Us | ||
Copyright © 2005-2011 Zenoss, Inc.
|
||||||||