TECHZEN Zenoss User Community ARCHIVE  

Error when install OpenStack Provider View zenpack

Subject: Error when install OpenStack Provider View zenpack
Author: [Not Specified]
Posted: 2016-05-25 03:55

I encounter this error below when I install the OpenStack Provider View zenpack in zenoss 4.2.5. I have installed the required zenpack of the PythonCollector and OpenStack Tenant View.

Anyone can advise what's this error

[zenoss@localhost ~]$ zenpack --install ZenPacks.zenoss.OpenStackInfrastructure-2.1.3.egg
ERROR:zen.ZenMessaging:Error encountered while processing ZenPacks.zenoss.OpenStackInfrastructure
Traceback (most recent call last):
File "/opt/zenoss/Products/ZenMessaging/queuemessaging/schema.py", line 58, in _getZenPackSchemas
pkg_path = zpkg.load().__path__[0]
File "/opt/zenoss/lib/python/pkg_resources.py", line 1954, in load
entry = __import__(self.module_name, globals(),globals(), ['__name__'])
File "/opt/zenoss/ZenPacks/ZenPacks.zenoss.OpenStackInfrastructure-2.1.3.egg/ZenPacks/zenoss/OpenStackInfrastructure/__init__.py", line 36, in
from . import schema
ImportError: cannot import name schema
ERROR:zen.ZenossStartup:Error encountered while processing ZenPacks.zenoss.OpenStackInfrastructure
Traceback (most recent call last):
File "/opt/zenoss/Products/ZenossStartup/__init__.py", line 27, in
pkg_path = zpkg.load().__path__[0]
File "/opt/zenoss/lib/python/pkg_resources.py", line 1954, in load
entry = __import__(self.module_name, globals(),globals(), ['__name__'])
File "/opt/zenoss/ZenPacks/ZenPacks.zenoss.OpenStackInfrastructure-2.1.3.egg/ZenPacks/zenoss/OpenStackInfrastructure/__init__.py", line 21, in
from . import zenpacklib
ImportError: cannot import name zenpacklib
ERROR:zen.ZenPackCmd:zenpack command failed
Traceback (most recent call last):
File "/opt/zenoss/Products/ZenUtils/zenpack.py", line 487, in
zp.run()
File "/opt/zenoss/Products/ZenUtils/zenpack.py", line 143, in run
self.connect()
File "/opt/zenoss/Products/ZenUtils/ZenScriptBase.py", line 52, in connect
setDescriptors(self.dmd)
File "/opt/zenoss/Products/ZenRelations/ZenPropertyManager.py", line 664, in setDescriptors
module = __import__(zpkg.module_name, globals(), locals(), fromlist)
File "/opt/zenoss/ZenPacks/ZenPacks.zenoss.OpenStackInfrastructure-2.1.3.egg/ZenPacks/zenoss/OpenStackInfrastructure/__init__.py", line 21, in
from . import zenpacklib
ImportError: cannot import name zenpacklib



Subject: This ZenPack now uses the
Author: Jane Curry
Posted: 2016-06-01 05:19

This ZenPack now uses the zenpacklib tool and the error is reporting problems with that. You are installing the egg file, so this shouldn't be YOUR problem; rather it is an issue to report back to Zenoss.

The egg bundle does appear to include zenpacklib and the zenpack.yaml definition file. Unfortunately you tend to get this error for multiple reasons, one of which may be a problem with the zenpack.yaml definition file.

Cheers,

Jane

Email: jane.curry@skills-1st.co.uk    Web: https://www.skills-1st.co.uk



< Previous
How do I update a ZenPack on the Wiki
  Next
Exporting ZenPack in Zenoss 5.1.2
>