TECHZEN Zenoss User Community ARCHIVE  

Zenoss 6.2.1 Support for Old ZenPacks

Subject: Zenoss 6.2.1 Support for Old ZenPacks
Author: Larry
Posted: 2019-05-09 21:18

Greetings!
     Is there a guide/documentation/website that covers ZenPack changes that are needed to run on Zenoss Core 6.2.1? We have a custom ZP that installs okay, but the Zenoss dashboard is unreachable. Answering and ready status are both 1, and Control Center has the following log message:

2019/05/08 21:28:23 [error] 10078#0: *507114 upstream prematurely closed connection while reading response header from upstream, client: 172.17.0.1, server: , request: "POST /zport/dmd/Events/jobs_router HTTP/1.1", upstream: "http://127.0.0.1:9080/zport/dmd/Events/jobs_router"...

Service name is Zenoss.core, type is zproxy

Thanks in advance,
Larry


------------------------------
Larry
Sr. Systems Engineer
IPC Global
Alpharetta GA
470-407-9100 ext 136
------------------------------


Subject: RE: Zenoss 6.2.1 Support for Old ZenPacks
Author: Jay Stanley
Posted: 2019-05-14 17:25

From what version to 6.2.x?

Are you using ZenPackLib? What does your ZenPack do? Did you modify the __init__, have custom patches, routers, etc?


------------------------------
jstanley
------------------------------


Subject: RE: Zenoss 6.2.1 Support for Old ZenPacks
Author: Larry
Posted: 2019-05-15 00:42

Hi Jay,
    Thanks for your reply. Here are the answers:

Yes, we are using ZenPacklib. The zenpack was created using ZenPacklib v2.1.1 with no changes on __init__.py.

The zenpack basically creates a custom notification. Besides the base structure created by ZenPacklib, we added the following files:

Interfaces.py, info.py, actions/myaction.py, configure.zcml. All the changes were in these files.

We followed this article to create our custom zenpack: https://aalvarez.me/posts/custom-notification-action-types-in-zenoss/

Please let me know if you need anything else.

Thanks,
Larry

------------------------------
Larry
Sr. Systems Engineer
IPC Global
Alpharetta GA
470-407-9100 ext 136
------------------------------


Subject: RE: Zenoss 6.2.1 Support for Old ZenPacks
Author: Jay Stanley
Posted: 2019-05-20 08:06

What happens if you uninstall the zenpack?

------------------------------
jstanley
------------------------------


Subject: RE: Zenoss 6.2.1 Support for Old ZenPacks
Author: Larry
Posted: 2019-05-20 17:53

We haven't tried to uninstall the zenpack on 6.2.1. How is that done? I'm only familiar with uninstalling ZPs on 4.2.5. On 6.2.1. we just reverted to the previous snapshot.

Thanks,
Larry

------------------------------
Larry
Sr. Systems Engineer
IPC Global
Alpharetta GA
470-407-9100 ext 136
------------------------------


Subject: RE: Zenoss 6.2.1 Support for Old ZenPacks
Author: Jay Stanley
Posted: 2019-05-23 10:24

If the ZP is the only change and it breaks Zenoss, then I have to assume something in the ZP is doing it. I would have to look at the code to figure it out.

*Edit: I am also assuming you are installing the ZenPack properly and have tried doing a full shutdown, verify, then start afterwards.

------------------------------
jstanley
------------------------------


Subject: RE: Zenoss 6.2.1 Support for Old ZenPacks
Author: Larry
Posted: 2019-05-23 22:51

Thanks Jay. We have been running "serviced service restart Zenoss.core/Zenoss" after installing the ZP. We have not tried to reboot the server. We can try that.

I would be glad to show you the code if you're willing to take a look at it. What's the best way to do this?

Thanks,
Larry

------------------------------
Larry
Sr. Systems Engineer
IPC Global
Alpharetta GA
470-407-9100 ext 136
------------------------------


Subject: RE: Zenoss 6.2.1 Support for Old ZenPacks
Author: Jay Stanley
Posted: 2019-05-24 14:07

send it to my email and I will take a look when I can. (if you cant see my email in my profile, hit me up on irc)

------------------------------
jstanley
------------------------------


Subject: RE: Zenoss 6.2.1 Support for Old ZenPacks
Author: Jay Stanley
Posted: 2019-06-07 08:08

You have bad imports in your notification action.

from jira.client import JIRA
from jira.exceptions import JIRAError

Any libraries that are not in the default installation should be contained within a lib dir in your ZenPack, and then imported from there.

https://github.com/zenoss/ZenPacks.zenoss.OpenStackInfrastructure is a good example of containing code in lib and then calling it later in a modeler

------------------------------
jstanley
------------------------------


Subject: RE: Zenoss 6.2.1 Support for Old ZenPacks
Author: Larry
Posted: 2019-06-11 19:13

Thanks for looking into this. I have passed this information on to our developer, and he will be making the needed changes.

------------------------------
Larry
Sr. Systems Engineer
IPC Global
Alpharetta GA
470-407-9100 ext 136
------------------------------


< Previous
PythonCollector try to access the components with config.datasources (dsplugin.p ...
  Next
API change zparemeter fails
>