Skip navigation
1 2 3 Previous Next 15339 Views 37 Replies Latest reply: May 10, 2013 4:07 PM by Shane Scott RSS Go to original post
  • Shane Scott ZenossMaster 1,373 posts since
    Jul 6, 2009
    Currently Being Moderated
    16. Feb 3, 2012 11:26 AM (in response to jshardlow)
    Re: 2.5.2 -> 3.0.3 ZenPack removal problem

    jshardlow:

     

    Please backup before running the following code. You can best backup ZODB by running zeopack -h localhost -p8100 twice and backing up $ZENHOME/var/Data.fs.old

     

    In zendmd as the zenoss user:

    packs = None

    if hasattr(dmd, 'ZenPackManager'):

        packs = dmd.ZenPackManager.packs

    else:

        packs = dmd.packs

     

    for pack in packs():

        try:

            unused = pack.primaryAq()

            print "%s is fine." % (pack.id,)

            if pack.id == "Device_Server_Linux_Class":

                print "Forcing removal of %s." % (pack.id)

                packs._remove(pack)   

        except AttributeError:

            print "Problem with %s ZenPack. Forcing removal." % (pack.id)

            packs._remove(pack)

     

     

    commit()

     

     

    It should force removal of Device_Server_Linux_Class.

     

    Best,

    --Shane (Hackman238)

  • Shane Scott ZenossMaster 1,373 posts since
    Jul 6, 2009
    Currently Being Moderated
    18. Feb 6, 2012 10:01 AM (in response to jshardlow)
    Re: 2.5.2 -> 3.0.3 ZenPack removal problem

    jshardlow:

     

    Do you have a copy of this pack somewhere? We could zenpack --install it over itself to fix the problem.

     

    --Shane

  • Shane Scott ZenossMaster 1,373 posts since
    Jul 6, 2009
    Currently Being Moderated
    20. Feb 6, 2012 11:27 AM (in response to jshardlow)
    Re: 2.5.2 -> 3.0.3 ZenPack removal problem

    jshardlow:

     

    Hum. Can you post a copy?

     

    --Shane

  • Shane Scott ZenossMaster 1,373 posts since
    Jul 6, 2009
    Currently Being Moderated
    22. Feb 7, 2012 10:24 AM (in response to jshardlow)
    Re: 2.5.2 -> 3.0.3 ZenPack removal problem

    jshardlow:

     

    I modified it to remove the HTTPMonitor dependance. Try reinstalling this.

     

    --Shane (Hackman238)

    Attachments:
  • Shane Scott ZenossMaster 1,373 posts since
    Jul 6, 2009
    Currently Being Moderated
    24. Feb 10, 2012 2:19 PM (in response to jshardlow)
    Re: 2.5.2 -> 3.0.3 ZenPack removal problem

    jshardlow:

     

    Yikes. Try this updated one. It's even more simplified.

     

    --Shane

    Attachments:
  • Shane Scott ZenossMaster 1,373 posts since
    Jul 6, 2009
    Currently Being Moderated
    26. Feb 18, 2012 1:08 PM (in response to jshardlow)
    Re: 2.5.2 -> 3.0.3 ZenPack removal problem

    jshardlow:

     

    What happens when you zen[pack --remove it?

     

    --Shane

  • Shane Scott ZenossMaster 1,373 posts since
    Jul 6, 2009
    Currently Being Moderated
    28. Feb 21, 2012 10:48 AM (in response to jshardlow)
    Re: 2.5.2 -> 3.0.3 ZenPack removal problem

    jshardlow:

     

    Yikes. I'm short on ideas. I'll talk with a dev.

     

    --Shane

More Like This

  • Retrieving data ...

Legend

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