Are you using ZenPackLib? What does your ZenPack do? Did you modify the __init__, have custom patches, routers, etc?
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
------------------------------