Configuration & Administration

Expand all | Collapse all

Problem Upgrading from Zenoss 6.2.1 to 6.3.2

  • 1.  Problem Upgrading from Zenoss 6.2.1 to 6.3.2

    Posted 20 days ago
    We tried upgrading our Zenoss installation (community) from 6.2.1 -> 6.3.2, but the upgrade-core.sh script fails:We tried upgrading our Zenoss installation (community) from 6.2.1 -> 6.3.2, but the upgrade-core.sh script fails:

         ZopeXMLConfigurationError: File "/opt/zenoss/ZenPacks/ZenPacks.IPC.Jira-1.3.1-py2.7.egg/ZenPacks/IPC/Jira/configure.zcml", line 9.4-13.42
          ImportError: No module named jira.client

         ERROR:zen.ZenPackCmd:Command '['zenpack', '--install', '/tmp/ZenPacks.zenoss.Dashboard-1.3.3-py2.7.egg']' returned non-zero exit status 3

    We have a custom zenpack that uses jira. The file referenced doesn't have "client" in it.

    We currently have ZenPacks.zenoss.Dashboard-1.2.9-py2.7.egg installed.

    I can provide the install log if needed. Any ideas?

    Thanks,

    ------------------------------
    Larry
    ------------------------------


  • 2.  RE: Problem Upgrading from Zenoss 6.2.1 to 6.3.2

    Posted 9 days ago
    Hi Larry

    For the ZenPack failure: The  zenpack install path /tmp/ZenPacks.zenoss.Dashboard-1.3.3-py2.7.egg looks a bit strange to me. Do you have your upgrade files in /tmp instead in /root  as it is recommended?

    For the jira issue. Looks like your jira ZenPack depends on the jira python library which is probably not installed in the 6.3.2 base image by default.

    Regards,

    ------------------------------
    Arthur
    ------------------------------



  • 3.  RE: Problem Upgrading from Zenoss 6.2.1 to 6.3.2

    Posted 9 days ago
    Hi Arthur,
        Thanks for the response. I looked at my install notes, and it should be in /root. I will try the install again to confirm though. I'm attaching the log from the previous attempt.

    As for jira issue, can I install it as part of the upgrade? How would I do this?

    Thanks,

    ------------------------------
    Larry
    ------------------------------



  • 4.  RE: Problem Upgrading from Zenoss 6.2.1 to 6.3.2

    Posted 6 days ago
    Edited by Arthur 6 days ago
    Hi Larry

    I'm only aware of two possibilites to alter an docker image.

    1. Edit the docker file
    I haven't seen any docker file for any Zenoss core_X.X

    2. Build a new image form a running instance with the modification and then make it work for an update - I don't have this knowledge.

    Possible choices are:

    A)
    As far as I have seen, an install error from a ZP during an update normally should not break the update. So reinstall it afer you have
    installed the needed depencencies on the updated instance.

    B)
    Remove the ZP before update and then install the dependencies and ZP.


    Can you tell me how you installed it on 6.2.1?
    I would also confirm if you have the python jira library installed.

    #serviced service attache zope
    [root@bd49e0bfd48d /]# python
    #import jira

    SyntaxError: invalid syntax
    >>> import jira
    Traceback (most recent call last):
    File "<stdin>", line 1, in <module>
    ImportError: No module named jira
    >>>



    ## output means jira not installed

    --------------

    [root@centos74-test ~]# python
    Python 2.7.5 (default, Aug 4 2017, 00:39:18)
    [GCC 4.8.5 20150623 (Red Hat 4.8.5-16)] on linux2
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import jira
    >>>

    ## output means jira installed



    Have a good backup and do it on a test unit first!

    Cheers

    ------------------------------
    Arthur
    ------------------------------



  • 5.  RE: Problem Upgrading from Zenoss 6.2.1 to 6.3.2

    Posted 6 days ago
    Hi Arthur,
        Thanks for the response. I

    mynew=python
    serviced service shell -s $mynew -i zope
    su - zenoss
    pip install jira==2.0
    exit
    exit
    serviced snapshot commit $mynew
    serviced service restart Zenoss.core/zenoss

    I see jira in the zope container if I'm the zenoss user (not as root though):

    [root@vnoc-dev1-uet1b lschauer]# serviced service attach zope
    [root@cff47e9b49d8 /]# su - zenoss
    Last login: Thu Jul 9 21:37:07 UTC 2020
    (zenoss) [zenoss@cff47e9b49d8 ~]$ pip list|grep jira
    DEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the [list] section) to disable this warning.
    jira (2.0.0)
    You are using pip version 9.0.1, however version 20.1.1 is available.
    You should consider upgrading via the 'pip install --upgrade pip' command.
    (zenoss) [zenoss@cff47e9b49d8 ~]$

    [root@cff47e9b49d8 /]# su - zenoss
    Last login: Thu Jul 9 21:47:35 UTC 2020
    (zenoss) [zenoss@cff47e9b49d8 ~]$ python
    Python 2.7.10 (default, Apr 30 2020, 02:44:43)
    [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] on linux2
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import jira
    >>>



    ------------------------------
    Larry
    ------------------------------



  • 6.  RE: Problem Upgrading from Zenoss 6.2.1 to 6.3.2

    Posted 4 days ago
    Hi Larry

    After you installed the python jira library where you able to install your jira ZP now?
    And where you able to do the upgrade now?


    ------------------------------
    Arthur
    ------------------------------