Archived community.zenoss.org | full text search
Skip navigation
10823 Views 10 Replies Latest reply: Feb 21, 2012 4:32 PM by Shane Scott RSS
Matt Ray Rank: Zen Master 2,484 posts since
Apr 5, 2008
Currently Being Moderated

Jul 13, 2010 11:04 PM

3.0-Incompatible Community ZenPacks

The document 3.0-Incompatible Community ZenPacks has been posted as a list of potentially 3.0-incompatible ZenPacks.

 

With the upgrade to Python 2.6 and Zope 2.12 in the upcoming Zenoss 3.0 release, there are a number of incompatibilties that may have been introduced to existing ZenPacks.  While we have encouraged users to test their existing ZenPacks, not every ZenPack will continue to work with 3.0 without upgrading it.  We have documentation for authors looking to upgrade their ZenPacks: The specified document was not found. and I'm happy to work with anyone to get fixes submitted and tested.

 

These were tested building with Ubuntu 32-bit on a VM and a script to automate installing them.  The ZenPack authors are being notified, feel free to submit corrections where possible.  As other ZenPacks are found to have errors or are fixed, the list will be revised and updated.

 

If you have any comments or feedback, feel free to post it to this thread or email me directly.

 

Thanks,

Matt Ray

Zenoss Community Manager

mray@zenoss.com

  • cntrytwist Rank: White Belt 9 posts since
    May 22, 2010
    Currently Being Moderated
    1. Jul 19, 2010 11:24 PM (in response to Matt Ray)
    Re: 3.0-Incompatible Community ZenPacks

    For those of us who didn't remove incompatible ZenPacks, how do we force the remove when it now show a line:

    Broken      This pack was just installed, or is missing or broken. Please restart Zope.

     

    Is there a way to tell Zenoss Core to purge all missing and broken ZenPacks?

    Thanks

    P.S.  Using Zenoss Core 3.0.0

  • daveborg98 Rank: White Belt 8 posts since
    Oct 8, 2009
    Currently Being Moderated
    3. Sep 20, 2010 1:32 PM (in response to Matt Ray)
    Re: 3.0-Incompatible Community ZenPacks

    I don't want to hijack a post, but I am encountering the same problem and running the commands you posted for zendmd are not removing the broken zenpack. This is definetely a lesson in doing due diligence before an upgrade especially when everything says to. This is the error I am receiving:

     

    >>> dmd.ZenPackManager.packs._delObject('ZenPacks.SCC.ShowGraphPortlet')
    Traceback (most recent call last):
      File "<console>", line 1, in <module>
      File "/opt/zenoss/Products/ZenRelations/ToManyRelationshipBase.py", line 79, in _delObject
        self.removeRelation(obj, suppress_events)
      File "/opt/zenoss/Products/ZenRelations/RelationshipBase.py", line 109, in removeRelation
        self._remoteRemove(obj)
      File "/opt/zenoss/Products/ZenRelations/ToManyContRelationship.py", line 187, in _remoteRemove
        obj.getPrimaryId(), self.getPrimaryId()))
    AttributeError: getPrimaryId

    Any ideas?

  • irvined Newbie 1 posts since
    Sep 22, 2010
    Currently Being Moderated
    4. Sep 22, 2010 8:19 AM (in response to daveborg98)
    Re: 3.0-Incompatible Community ZenPacks

    Hi,

     

    I am getting exactly the same thing:

     

    >>> dmd.ZenPackManager.packs._delObject('ZenPacks.Ecocoms.OpenLayersMap')
    Traceback (most recent call last):
      File "<console>", line 1, in <module>
      File "/opt/zenoss/Products/ZenRelations/ToManyRelationshipBase.py", line 79, in _delObject
        self.removeRelation(obj, suppress_events)
      File "/opt/zenoss/Products/ZenRelations/RelationshipBase.py", line 109, in removeRelation
        self._remoteRemove(obj)
      File "/opt/zenoss/Products/ZenRelations/ToManyContRelationship.py", line 187, in _remoteRemove
        obj.getPrimaryId(), self.getPrimaryId()))
    AttributeError: getPrimaryId

    Any ideas?

     

    Cheers,

     

    Doug

  • Tom McCarthy Newbie 5 posts since
    Feb 13, 2012
    Currently Being Moderated
    5. Feb 21, 2012 10:36 AM (in response to irvined)
    Re: 3.0-Incompatible Community ZenPacks

    Hi,

     

    I am getting exactly the same thing:

     

    >>> dmd.ZenPackManager.packs._delObject('ZenPacks.community.NetApp')
    Traceback (most recent call last):
      File "<console>", line 1, in <module>
      File "/opt/zenoss/Products/ZenRelations/ToManyRelationshipBase.py", line 79, in _delObject
        self.removeRelation(obj, suppress_events)
      File "/opt/zenoss/Products/ZenRelations/RelationshipBase.py", line 109, in removeRelation
        self._remoteRemove(obj)
      File "/opt/zenoss/Products/ZenRelations/ToManyContRelationship.py", line 187, in _remoteRemove
        obj.getPrimaryId(), self.getPrimaryId()))
    AttributeError: getPrimaryId

    Any ideas? This is getting rather frustrating as this ZenPack does not want to install on 3.2.1 & there is no other available. I thank you in advance for some leads on resolving this issue.

     

    Best Regards,

    Tom McCarthy

  • Shane Scott ZenossMaster 1,373 posts since
    Jul 6, 2009
    Currently Being Moderated
    6. Feb 21, 2012 11:01 AM (in response to Tom McCarthy)
    Re: 3.0-Incompatible Community ZenPacks

    Tom:

     

    when you install the pack from the cli what error do you get?

     

    Try not to use _delOb until all other choices are exhausted.

     

    --Shane

  • Tom McCarthy Newbie 5 posts since
    Feb 13, 2012
    Currently Being Moderated
    7. Feb 21, 2012 11:10 AM (in response to Shane Scott)
    Re: 3.0-Incompatible Community ZenPacks

    Shane,

    I receive the following error from the CLI.

     

    >>> dmd.ZenPackManager.packs. _delObject('ZenPacks.community.NetApp')

    Traceback (most recent call last):

      File "<console>", line 1, in <module>

      File "/opt/zenoss/Products/ZenRelations/ToManyRelationshipBase.py", line 91, in _delObject

        self.removeRelation(obj, suppress_events)

      File "/opt/zenoss/Products/ZenRelations/RelationshipBase.py", line 109, in removeRelation

        self._remoteRemove(obj)

      File "/opt/zenoss/Products/ZenRelations/ToManyContRelationship.py", line 186, in _remoteRemove

        obj.getPrimaryId(), self.getPrimaryId()))

    AttributeError: getPrimaryId

     

    I also tried with out the _delOB to no avail. That returned:

     

    >>> dmd.ZenPackManager.packs.('ZenPacks.community.NetApp')

      File "<console>", line 1

        dmd.ZenPackManager.packs.('ZenPacks.community.NetApp')

                                 ^

    SyntaxError: invalid syntax

     

    Any other ideas would be welcomed. I only have about 15% more configuration to do & it seems that last bit is the toughest.

     

    Thank You,

    Tom

  • Shane Scott ZenossMaster 1,373 posts since
    Jul 6, 2009
    Currently Being Moderated
    8. Feb 21, 2012 11:13 AM (in response to Tom McCarthy)
    Re: 3.0-Incompatible Community ZenPacks

    Tom:

     

    Try resinstalling the pack using zenpack --install {pack name}

     

    I'm interested in the trace there.

     

    --Shane

  • Tom McCarthy Newbie 5 posts since
    Feb 13, 2012
    Currently Being Moderated
    9. Feb 21, 2012 4:13 PM (in response to Shane Scott)
    Re: 3.0-Incompatible Community ZenPacks

    Shane,

    Here is the error now.

     

    [zenoss@zenossprod zenpack_downloads]$ zenpack --install ZenPacks.community.NetApp-1.13-py2.4.egg

     

     

    Link to http://pypi.python.org/simple/ZenPacks.community.NetApp/ ***BLOCKED*** by --allow-hosts

     

     

    Couldn't find index page for 'ZenPacks.community.NetApp' (maybe misspelled?)

     

     

    Link to http://pypi.python.org/simple/ ***BLOCKED*** by --allow-hosts

     

     

    No local packages or download links found for ZenPacks.community.NetApp==1.13

    Couldn't find index page for 'ZenPacks.community.NetApp' (maybe misspelled?)

    No local packages or download links found for ZenPacks.community.NetApp==1.13

    ERROR:zen.ZenPackCmd:zenpack command failed

    Traceback (most recent call last):

      File "/opt/zenoss/Products/ZenUtils/zenpack.py", line 406, in <module>

        zp.run()

      File "/opt/zenoss/Products/ZenUtils/zenpack.py", line 134, in run

        previousVersion= self.options.previousVersion)

      File "/opt/zenoss/Products/ZenUtils/ZenPackCmd.py", line 240, in InstallEggAndZenPack

        zpDists = InstallEgg(dmd, eggPath, link=link)

      File "/opt/zenoss/Products/ZenUtils/ZenPackCmd.py", line 303, in InstallEgg

        DoEasyUninstall(eggPath)

      File "/opt/zenoss/Products/ZenUtils/ZenPackCmd.py", line 891, in DoEasyUninstall

        easy_install.main(args)

      File "/opt/zenoss/lib/python/setuptools/command/easy_install.py", line 1712, in main

        with_ei_usage(lambda:

      File "/opt/zenoss/lib/python/setuptools/command/easy_install.py", line 1700, in with_ei_usage

        return f()

      File "/opt/zenoss/lib/python/setuptools/command/easy_install.py", line 1716, in <lambda>

        distclass=DistributionWithoutHelpCommands, **kw

      File "/opt/zenoss/lib/python2.6/distutils/core.py", line 152, in setup

        dist.run_commands()

      File "/opt/zenoss/lib/python2.6/distutils/dist.py", line 975, in run_commands

        self.run_command(cmd)

      File "/opt/zenoss/lib/python2.6/distutils/dist.py", line 995, in run_command

        cmd_obj.run()

      File "/opt/zenoss/lib/python/setuptools/command/easy_install.py", line 211, in run

        self.easy_install(spec, not self.no_deps)

      File "/opt/zenoss/lib/python/setuptools/command/easy_install.py", line 427, in easy_install

        return self.install_item(None, spec, tmpdir, deps, True)

      File "/opt/zenoss/lib/python/setuptools/command/easy_install.py", line 478, in install_item

        self.process_distribution(spec, dist, deps)

      File "/opt/zenoss/lib/python/setuptools/command/easy_install.py", line 519, in process_distribution

        [requirement], self.local_index, self.easy_install

      File "/opt/zenoss/lib/python/pkg_resources.py", line 563, in resolve

        dist = best[req.key] = env.best_match(req, self, installer)

      File "/opt/zenoss/lib/python/pkg_resources.py", line 799, in best_match

        return self.obtain(req, installer) # try and download/install

      File "/opt/zenoss/lib/python/pkg_resources.py", line 811, in obtain

        return installer(requirement)

      File "/opt/zenoss/lib/python/setuptools/command/easy_install.py", line 434, in easy_install

        self.local_index

      File "/opt/zenoss/lib/python/setuptools/package_index.py", line 475, in fetch_distribution

        return dist.clone(location=self.download(dist.location, tmpdir))

    AttributeError: 'NoneType' object has no attribute 'clone'

     

    ANY Ideas would be welcomed. Thank you AGAIN.

     

    Tom

  • Shane Scott ZenossMaster 1,373 posts since
    Jul 6, 2009
    Currently Being Moderated
    10. Feb 21, 2012 4:32 PM (in response to Tom McCarthy)
    Re: 3.0-Incompatible Community ZenPacks

    Tom:

     

    Install the netapp zenpack with py2.6 in its name.

     

    --Shane

More Like This

  • Retrieving data ...

Legend

  • Correct Answers - 4 points
  • Helpful Answers - 2 points