ZenPacks, JSON API, and Integrations

Zenoss Core 6.3.2 ZenPack install with service and external dependency

  • 1.  Zenoss Core 6.3.2 ZenPack install with service and external dependency

    Posted 23 days ago
    Hello,

    I am trying to install a ZenPack, which I have developed myself, in Zenoss Core 6.3.2. I have last used the ZenPack in Zenoss Core 5. My ZenPack includes a custom service and this service depends on a python module. The python module is located in the lib folder of my ZenPack as an egg file. I have also added the following to the install script of my ZenPack:
    libDir = os.path.join(os.path.dirname(__file__), 'lib')
    if os.path.isdir(libDir):
        for file in os.listdir(libDir):
            if file.endswith('.egg'):
                sys.path.append(os.path.join(libDir, file))​

    Unfortunately, the ZenPack install fails because the python module needed by the service is missing. I have already tried to manually install the module in the zope and zenhub containers. The installation still fails. How do I install the python module during the deployment of the ZenPack? Or, alternatively, which docker container do I have to manually modify to satisfy the dependency? Considering that the service will run in its own container, I might not be able to modify the container before the ZenPack is installed...

    Any help would be greatly appreciated!

    ------------------------------
    FirstName LastName
    CompanyName
    ------------------------------