Oct 21, 2011 11:21 AM
Problem Installing Zenpack after 3.2 update
-
Like (0)
I wrote a HaProxy ZenPack under version 3.1 of Zenoss. After I updated to 3.2 it failed and when trying to re-install I get the error below.
[zenoss@zenoss local]$ zenpack --install=ZenPacks.company.HaProxy --link
2011-10-21 11:14:32,796 INFO zen.HookReportLoader: loading reports from:/opt/zenoss/zenoss/local/ZenPacks.company.HaProxy/ZenPacks/company/HaProxy/reports
2011-10-21 11:14:32,970 ERROR zen.ZenPackCmd: zenpack command failed
Traceback (most recent call last):
File "/opt/zenoss/zenoss/Products/ZenUtils/zenpack.py", line 406, in <module>
zp.run()
File "/opt/zenoss/zenoss/Products/ZenUtils/zenpack.py", line 134, in run
previousVersion= self.options.previousVersion)
File "/opt/zenoss/zenoss/Products/ZenUtils/ZenPackCmd.py", line 249, in InstallEggAndZenPack
forceRunExternal=forceRunExternal)
File "/opt/zenoss/zenoss/Products/ZenUtils/ZenPackCmd.py", line 424, in InstallDistAsZenPack
zenPack.install(dmd)
File "/opt/zenoss/zenoss/Products/ZenModel/ZenPack.py", line 251, in install
loader.load(self, app)
File "/opt/zenoss/zenoss/Products/ZenModel/ZenPackLoader.py", line 287, in load
registerSkin(app.zport.dmd, skinsDir)
File "/opt/zenoss/zenoss/Products/ZenUtils/Skins.py", line 59, in registerSkin
addDirectoryViews(skinstool, path, dict(__name__=root))
File "/opt/zenoss/python/lib/python2.6/site-packages/Products.CMFCore-2.2.0_alpha-py2.6.egg/Products/CMFCore/DirectoryView.py", line 621, in addDirectoryVie
ws
raise ValueError('Not a registered directory: %s' % reg_key)
ValueError: Not a registered directory: ZenPacks.company.HaProxy:/opt/zenoss/zenoss/local/ZenPacks.company.HaProxy/ZenPacks/company/HaProxy/skins
Does anyone have any ideas about fixing this? Only help I've found through google is related to .egg files being named .zip. This error also occurs when doing it as a local folder install and egg file install.
Thanks
I assume we'd need to see the zenpack to help debug this... Can you release it?
--
James Pulver
Information Technology Area Supervisor
LEPP Computer Group
Cornell University
I've attached an anonymized version of the ZenPack. So any issues with the company part could just be due to me changing it.
http://puck3d.net/ZenPacks.company.HaProxy.tar.gz
Thanks
Steve:
You'll need to register the skins directory but putting the following in the __init__.py
{
import Globals
import os
from Products.CMFCore.DirectoryView import registerDirectory
skinsDir = os.path.join(os.path.dirname(__file__), 'skins')
if os.path.isdir(skinsDir):
registerDirectory(skinsDir, globals())
}
Let me know if that works!
Best,
--Shane W. Scott(Hackman238)
ZCA - community/zca/blog
Were you planning on releasing this ZenPack to the community?
Follow Us On Twitter »
|
Latest from the Zenoss Blog » | Community | Products | Services Resources | Customers Partners | About Us | ||
Copyright © 2005-2011 Zenoss, Inc.
|
||||||||