Discussion:
Cannot uninstall Zenoss Zenpack ..
Gerald Talton
2013-02-18 17:58:15 UTC
Permalink
Gerald Talton [http://community.zenoss.org/people/gtalton] created the discussion

"Cannot uninstall Zenoss Zenpack .."

To view the discussion, visit: http://community.zenoss.org/message/71528#71528

--------------------------------------------------------------
I recently had someone on my team install a Zenpack that made the system unstable, so I restored the Zenpack directory from backup and that stabilized the system. However in doing that I now have a Zenpack that I cannot remove.

Zenpack list shows this:

zenpack --list
ZenPacks.OndrejJakubcik.OracleHwMonitoring (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.OndrejJakubcik.OracleHwMonitoring-1.1-py2.6.egg)
ZenPacks.RomanTykhonov.OracleDB (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.RomanTykhonov.OracleDB-2.0-py2.6.egg)
ZenPacks.Test.Ellipse (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.Test.Ellipse)
ZenPacks.community.AIX (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.community.AIX-1.1-py2.6.egg)
ZenPacks.community.CiscoEnvMon (/usr/local/zenoss/python/lib/python2.6/site-packages/ZenPacks.community.CiscoEnvMon-1.0-py2.6.egg)
ZenPacks.community.DellMon (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.community.DellMon-2.4.egg)
ZenPacks.community.DistributedCollectors (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.community.DistributedCollectors-1.7.egg)
ZenPacks.community.HPMon (/usr/local/zenoss/python/lib/python2.6/site-packages/ZenPacks.community.HPMon-2.2-py2.6.egg)
ZenPacks.community.HPUXMonitor (/usr/local/zenoss/python/lib/python2.6/site-packages/ZenPacks.community.HPUXMonitor-2.2-py2.6.egg)
ZenPacks.community.IBM3584Mon (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.community.IBM3584Mon-1.1-py2.6.egg)
ZenPacks.community.IBMSystemxIMM (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.community.IBMSystemxIMM-1.0.0-py2.6.egg)
ZenPacks.community.MsSQLMon (broken)
ZenPacks.community.MsSQLMon_ODBC (/usr/local/zenoss/python/lib/python2.6/site-packages/ZenPacks.community.MsSQLMon_ODBC-3.1.1-py2.6.egg)
ZenPacks.community.PointThreshold (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.community.PointThreshold-1.1-py2.6.egg)
ZenPacks.community.RDBMS (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.community.RDBMS-2.2.egg)
ZenPacks.community.SQLDataSource (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.community.SQLDataSource-1.6.egg)

If I then try to remove it:
$ zenpack --remove=ZenPacks.community.MsSQLMon
ERROR:zen.ZenPackCmd:zenpack command failed
Traceback (most recent call last):
   File "/usr/local/zenoss/zenoss/Products/ZenUtils/zenpack.py", line 406, in      zp.run()
   File "/usr/local/zenoss/zenoss/Products/ZenUtils/zenpack.py", line 162, in run
     self.options.removePackName, None)
   File "/usr/local/zenoss/zenoss/Products/ZenRelations/ToManyContRelationship.py", line 199, in _getOb
     return self._objects[id].__of__(self)
AttributeError: 'ZenPack' object has no attribute '__of__'

So doing a quick zenchkrels shows the depths of my pain:
INFO:zen.Relations:checking relations on object /zport/dmd/Devices/Server/Windows/rrdTemplates/MsSqlDatabase
Traceback (most recent call last):
  File "/usr/local/zenoss/zenoss/Products/ZenUtils/CheckRelations.py", line 72, in      tmbk.rebuild()
   File "/usr/local/zenoss/zenoss/Products/ZenUtils/CheckRelations.py", line 40, in rebuild
     object.checkRelations(repair=repair)
   File "/usr/local/zenoss/zenoss/Products/ZenRelations/RelationshipManager.py", line 262, in checkRelations
     rel.checkRelation(repair)
   File "/usr/local/zenoss/zenoss/Products/ZenRelations/ToOneRelationship.py", line 201, in checkRelation
     ppath = self.obj.getPrimaryPath()

At this point I need to find a way to safely remove this ZenPack. If some zendmd hacking is required that's great. I've got a few scripts written with zendmd already so all I need is some guidance on what I need to do to correct this relation issue so I can safely remove the zenpack.

Any guidance is appreciated.

-Gerald
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/71528#71528]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Shane Scott
2013-02-18 18:41:31 UTC
Permalink
Shane Scott [http://community.zenoss.org/people/hackman238] created the discussion

"Re: Cannot uninstall Zenoss Zenpack .."

To view the discussion, visit: http://community.zenoss.org/message/71552#71552

--------------------------------------------------------------
Gerald:

Try reinstalling the pack then removing it again.

Best,
--Shane Scott (Hackman238)
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/71552#71552]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Gerald Talton
2013-02-18 19:12:41 UTC
Permalink
Gerald Talton [http://community.zenoss.org/people/gtalton] created the discussion

"Re: Cannot uninstall Zenoss Zenpack .."

To view the discussion, visit: http://community.zenoss.org/message/71563#71563

--------------------------------------------------------------
<sigh>

I've truly stepped into the rabbit hole.

I can't install the zenpack because I don't have have SQLDataSource 2.0 installed


No local packages or download links found for ZenPacks.community.SQLDataSource>=2.0

So a quick check, finds that SQLDataSource installed is 1.6


$ zenpack --list | grep ZenPacks.community.SQLDataSource
ZenPacks.community.SQLDataSource (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.community.SQLDataSource-1.6.egg)


So doing an uninstall on that
$ zenpack --remove=ZenPacks.community.SQLDataSource
INFO:zen.Relations:Ignoring unresolvable object ''
ERROR:zen.ZenPackCmd:zenpack command failed
Traceback (most recent call last):
  File "/usr/local/zenoss/zenoss/Products/ZenUtils/zenpack.py", line 406, in     zp.run()
  File "/usr/local/zenoss/zenoss/Products/ZenUtils/zenpack.py", line 168, in run
    self.options.removePackName)
  File "/usr/local/zenoss/zenoss/Products/ZenUtils/ZenPackCmd.py", line 795, in RemoveZenPack
    'because it is required by %s' % ', '.join(deps))
ZenPackDependentsException: ZenPacks.community.SQLDataSource cannot be removed because it is required by ZenPacks.community.ZenODBC


so next doing a remove on ZenODBC .. we get
$ zenpack --remove=ZenPacks.community.ZenODBC
INFO:zen.Relations:Ignoring unresolvable object ''
ERROR:zen.ZenPackCmd:zenpack command failed
Traceback (most recent call last):
  File "/usr/local/zenoss/zenoss/Products/ZenUtils/zenpack.py", line 406, in     zp.run()
  File "/usr/local/zenoss/zenoss/Products/ZenUtils/zenpack.py", line 168, in run
    self.options.removePackName)
  File "/usr/local/zenoss/zenoss/Products/ZenUtils/ZenPackCmd.py", line 812, in RemoveZenPack
    zp.remove(dmd, leaveObjects)
  File "/usr/local/zenoss/zenoss/Products/ZenModel/ZenPack.py", line 294, in remove
    self.removeCatalogedObjects(app)
  File "/usr/local/zenoss/zenoss/Products/ZenModel/ZenPack.py", line 396, in removeCatalogedObjects
    parent._delObject(o.id)
  File "/usr/local/zenoss/zenoss/Products/ZenRelations/ToManyRelationshipBase.py", line 79, in _delObject
    self.removeRelation(obj, suppress_events)
  File "/usr/local/zenoss/zenoss/Products/ZenRelations/RelationshipBase.py", line 110, in removeRelation
    self._remove(obj, suppress_events=suppress_events)
  File "/usr/local/zenoss/zenoss/Products/ZenRelations/ToManyContRelationship.py", line 164, in _remove
    notify(ObjectWillBeRemovedEvent(robj, self, robj.getId()))
  File "/usr/local/zenoss/python/lib/python2.6/site-packages/zope.event-3.4.1-py2.6.egg/zope/event/__init__.py", line 23, in notify
    subscriber(event)
  File "/usr/local/zenoss/python/lib/python2.6/site-packages/zope.component-3.7.1-py2.6.egg/zope/component/event.py", line 26, in dispatch
    for ignored in zope.component.subscribers(event, None):
  File "/usr/local/zenoss/python/lib/python2.6/site-packages/zope.component-3.7.1-py2.6.egg/zope/component/_api.py", line 138, in subscribers
    return sitemanager.subscribers(objects, interface)
  File "/usr/local/zenoss/python/lib/python2.6/site-packages/zope.component-3.7.1-py2.6.egg/zope/component/registry.py", line 323, in subscribers
    return self.adapters.subscribers(objects, provided)
  File "/usr/local/zenoss/python/lib/python2.6/site-packages/zope.interface-3.5.2-py2.6-linux-x86_64.egg/zope/interface/adapter.py", line 579, in subscribers
    subscription(*objects)
  File "/usr/local/zenoss/python/lib/python2.6/site-packages/zope.component-3.7.1-py2.6.egg/zope/component/event.py", line 33, in objectEventNotify
    adapters = zope.component.subscribers((event.object, event), None)
  File "/usr/local/zenoss/python/lib/python2.6/site-packages/zope.component-3.7.1-py2.6.egg/zope/component/_api.py", line 138, in subscribers
    return sitemanager.subscribers(objects, interface)
  File "/usr/local/zenoss/python/lib/python2.6/site-packages/zope.component-3.7.1-py2.6.egg/zope/component/registry.py", line 323, in subscribers
    return self.adapters.subscribers(objects, provided)
  File "/usr/local/zenoss/python/lib/python2.6/site-packages/zope.interface-3.5.2-py2.6-linux-x86_64.egg/zope/interface/adapter.py", line 579, in subscribers
    subscription(*objects)
  File "/usr/local/zenoss/python/lib/python2.6/site-packages/Zope2-2.12.1-py2.6-linux-x86_64.egg/OFS/subscribers.py", line 107, in dispatchObjectWillBeMovedEvent
    dispatchToSublocations(ob, event)
  File "/usr/local/zenoss/python/lib/python2.6/site-packages/zope.container-3.9.1-py2.6-linux-x86_64.egg/zope/container/contained.py", line 148, in dispatchToSublocations
    for ignored in zope.component.subscribers((sub, event), None):
  File "/usr/local/zenoss/python/lib/python2.6/site-packages/zope.component-3.7.1-py2.6.egg/zope/component/_api.py", line 138, in subscribers
    return sitemanager.subscribers(objects, interface)
  File "/usr/local/zenoss/python/lib/python2.6/site-packages/zope.component-3.7.1-py2.6.egg/zope/component/registry.py", line 323, in subscribers
    return self.adapters.subscribers(objects, provided)
  File "/usr/local/zenoss/python/lib/python2.6/site-packages/zope.interface-3.5.2-py2.6-linux-x86_64.egg/zope/interface/adapter.py", line 579, in subscribers
    subscription(*objects)
  File "/usr/local/zenoss/zenoss/Products/ZenRelations/subscribers.py", line 24, in cleanUpRelationships
    ob._remoteRemove()
  File "/usr/local/zenoss/zenoss/Products/ZenRelations/ToOneRelationship.py", line 102, in _remoteRemove
    remoteRel = getattr(aq_base(self.obj), self.remoteName())
AttributeError: 'ZenPack' object has no attribute 'packables'

So I'm at the bottom of the rabbit hole .. please tell me you have a bottle that says "Drink me"
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/71563#71563]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Shane Scott
2013-02-18 19:14:22 UTC
Permalink
Shane Scott [http://community.zenoss.org/people/hackman238] created the discussion

"Re: Cannot uninstall Zenoss Zenpack .."

To view the discussion, visit: http://community.zenoss.org/message/71557#71557

--------------------------------------------------------------
Gerald:

Yikes.  Let's reinstall them one after another in order of dependancy then restart zenoss and do a zenchkrels -x1 -r.

Best,
--Shane Scott (Hackman238)
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/71557#71557]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Gerald Talton
2013-02-18 19:43:27 UTC
Permalink
Gerald Talton [http://community.zenoss.org/people/gtalton] created the discussion

"Re: Cannot uninstall Zenoss Zenpack .."

To view the discussion, visit: http://community.zenoss.org/message/71565#71565

--------------------------------------------------------------
Yikes is right .... I just now did a reinstall of ZenPacks.community.ZenODBC, a restart of zenoss-stack as root followed by a zenpack remove .. and the error is the same:

$ zenpack --remove=ZenPacks.community.ZenODBC
INFO:zen.Relations:Ignoring unresolvable object ''
ERROR:zen.ZenPackCmd:zenpack command failed
Traceback (most recent call last):
  File "/usr/local/zenoss/zenoss/Products/ZenUtils/zenpack.py", line 406, in     zp.run()
  File "/usr/local/zenoss/zenoss/Products/ZenUtils/zenpack.py", line 168, in run
    self.options.removePackName)
  File "/usr/local/zenoss/zenoss/Products/ZenUtils/ZenPackCmd.py", line 812, in RemoveZenPack
    zp.remove(dmd, leaveObjects)
  File "/usr/local/zenoss/zenoss/Products/ZenModel/ZenPack.py", line 294, in remove
    self.removeCatalogedObjects(app)
  File "/usr/local/zenoss/zenoss/Products/ZenModel/ZenPack.py", line 396, in removeCatalogedObjects
    parent._delObject(o.id)
  File "/usr/local/zenoss/zenoss/Products/ZenRelations/ToManyRelationshipBase.py", line 79, in _delObject
    self.removeRelation(obj, suppress_events)
  File "/usr/local/zenoss/zenoss/Products/ZenRelations/RelationshipBase.py", line 110, in removeRelation
    self._remove(obj, suppress_events=suppress_events)
  File "/usr/local/zenoss/zenoss/Products/ZenRelations/ToManyContRelationship.py", line 164, in _remove
    notify(ObjectWillBeRemovedEvent(robj, self, robj.getId()))
  File "/usr/local/zenoss/python/lib/python2.6/site-packages/zope.event-3.4.1-py2.6.egg/zope/event/__init__.py", line 23, in notify
    subscriber(event)
  File "/usr/local/zenoss/python/lib/python2.6/site-packages/zope.component-3.7.1-py2.6.egg/zope/component/event.py", line 26, in dispatch
    for ignored in zope.component.subscribers(event, None):
  File "/usr/local/zenoss/python/lib/python2.6/site-packages/zope.component-3.7.1-py2.6.egg/zope/component/_api.py", line 138, in subscribers
    return sitemanager.subscribers(objects, interface)
  File "/usr/local/zenoss/python/lib/python2.6/site-packages/zope.component-3.7.1-py2.6.egg/zope/component/registry.py", line 323, in subscribers
    return self.adapters.subscribers(objects, provided)
  File "/usr/local/zenoss/python/lib/python2.6/site-packages/zope.interface-3.5.2-py2.6-linux-x86_64.egg/zope/interface/adapter.py", line 579, in subscribers
    subscription(*objects)
  File "/usr/local/zenoss/python/lib/python2.6/site-packages/zope.component-3.7.1-py2.6.egg/zope/component/event.py", line 33, in objectEventNotify
    adapters = zope.component.subscribers((event.object, event), None)
  File "/usr/local/zenoss/python/lib/python2.6/site-packages/zope.component-3.7.1-py2.6.egg/zope/component/_api.py", line 138, in subscribers
    return sitemanager.subscribers(objects, interface)
  File "/usr/local/zenoss/python/lib/python2.6/site-packages/zope.component-3.7.1-py2.6.egg/zope/component/registry.py", line 323, in subscribers
    return self.adapters.subscribers(objects, provided)
  File "/usr/local/zenoss/python/lib/python2.6/site-packages/zope.interface-3.5.2-py2.6-linux-x86_64.egg/zope/interface/adapter.py", line 579, in subscribers
    subscription(*objects)
  File "/usr/local/zenoss/python/lib/python2.6/site-packages/Zope2-2.12.1-py2.6-linux-x86_64.egg/OFS/subscribers.py", line 107, in dispatchObjectWillBeMovedEvent
    dispatchToSublocations(ob, event)
  File "/usr/local/zenoss/python/lib/python2.6/site-packages/zope.container-3.9.1-py2.6-linux-x86_64.egg/zope/container/contained.py", line 148, in dispatchToSublocations
    for ignored in zope.component.subscribers((sub, event), None):
  File "/usr/local/zenoss/python/lib/python2.6/site-packages/zope.component-3.7.1-py2.6.egg/zope/component/_api.py", line 138, in subscribers
    return sitemanager.subscribers(objects, interface)
  File "/usr/local/zenoss/python/lib/python2.6/site-packages/zope.component-3.7.1-py2.6.egg/zope/component/registry.py", line 323, in subscribers
    return self.adapters.subscribers(objects, provided)
  File "/usr/local/zenoss/python/lib/python2.6/site-packages/zope.interface-3.5.2-py2.6-linux-x86_64.egg/zope/interface/adapter.py", line 579, in subscribers
    subscription(*objects)
  File "/usr/local/zenoss/zenoss/Products/ZenRelations/subscribers.py", line 24, in cleanUpRelationships
    ob._remoteRemove()
  File "/usr/local/zenoss/zenoss/Products/ZenRelations/ToOneRelationship.py", line 102, in _remoteRemove
    remoteRel = getattr(aq_base(self.obj), self.remoteName())
AttributeError: 'ZenPack' object has no attribute 'packables'
[***@mmsbnemon01 ~]$

I'll try doing the same with SQLDataSource .. but I'm not hopeful.
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/71565#71565]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Shane Scott
2013-02-19 17:23:39 UTC
Permalink
Shane Scott [http://community.zenoss.org/people/hackman238] created the discussion

"Re: Cannot uninstall Zenoss Zenpack .."

To view the discussion, visit: http://community.zenoss.org/message/71586#71586

--------------------------------------------------------------
Gerald:

Oh wow. Is it possible to post the original pack that cuased the instability?

Best,
--Shane Scott (Hackman238)
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/71586#71586]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Gerald Talton
2013-02-19 17:45:10 UTC
Permalink
Gerald Talton [http://community.zenoss.org/people/gtalton] created the discussion

"Re: Cannot uninstall Zenoss Zenpack .."

To view the discussion, visit: http://community.zenoss.org/message/71570#71570

--------------------------------------------------------------
This all started with a bad zenpack install of ZenPacks.community.MsSQLMon and right now it's worse.

A 'zenpack --list' command shows this:


$ zenpack --list
ERROR:zen.ZenossStartup:Error encountered while processing ZenPacks.community.MsSQLMon_ODBC
Traceback (most recent call last):
  File "/usr/local/zenoss/zenoss/Products/ZenossStartup/__init__.py", line 25, in     pkg_path = zpkg.load().__path__[0]
  File "/usr/local/zenoss/python/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg/pkg_resources.py", line 1953, in load
    if require: self.require(env, installer)
  File "/usr/local/zenoss/python/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg/pkg_resources.py", line 1966, in require
    working_set.resolve(self.dist.requires(self.extras),env,installer))
  File "/usr/local/zenoss/python/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg/pkg_resources.py", line 565, in resolve
    raise DistributionNotFound(req)  # XXX put more info here
DistributionNotFound: ZenPacks.community.RDBMS>=2.0
ZenPacks.OndrejJakubcik.OracleHwMonitoring (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.OndrejJakubcik.OracleHwMonitoring-1.1-py2.6.egg)
ZenPacks.RomanTykhonov.OracleDB (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.RomanTykhonov.OracleDB-2.0-py2.6.egg)
ZenPacks.Test.Ellipse (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.Test.Ellipse)
ZenPacks.community.AIX (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.community.AIX-1.1-py2.6.egg)
ZenPacks.community.CiscoEnvMon (/usr/local/zenoss/python/lib/python2.6/site-packages/ZenPacks.community.CiscoEnvMon-1.0-py2.6.egg)
ZenPacks.community.DellMon (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.community.DellMon-2.4.egg)
ZenPacks.community.DistributedCollectors (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.community.DistributedCollectors-1.7.egg)
ZenPacks.community.HPMon (/usr/local/zenoss/python/lib/python2.6/site-packages/ZenPacks.community.HPMon-2.2-py2.6.egg)
ZenPacks.community.HPUXMonitor (/usr/local/zenoss/python/lib/python2.6/site-packages/ZenPacks.community.HPUXMonitor-2.2-py2.6.egg)
ZenPacks.community.IBM3584Mon (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.community.IBM3584Mon-1.1-py2.6.egg)
ZenPacks.community.IBMSystemxIMM (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.community.IBMSystemxIMM-1.0.0-py2.6.egg)
ZenPacks.community.MsSQLMon (broken)
ZenPacks.community.PointThreshold (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.community.PointThreshold-1.1-py2.6.egg)
ZenPacks.community.SQLDataSource (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.community.SQLDataSource-1.6-py2.6.egg)
ZenPacks.community.SunMibMonitor (/usr/local/zenoss/python/lib/python2.6/site-packages/ZenPacks.community.SunMibMonitor-1.0-py2.6.egg)
ZenPacks.community.VMwareDataSource (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.community.VMwareDataSource-1.1.2.egg)
ZenPacks.community.VMwareESXiMonitor (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.community.VMwareESXiMonitor-1.2.egg)
ZenPacks.community.WMIDataSource (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.community.WMIDataSource-2.11.egg)
ZenPacks.community.WMIPerf_MSSQL (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.community.WMIPerf_MSSQL-2.0.1-py2.6.egg)
ZenPacks.community.WMIPerf_Windows (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.community.WMIPerf_Windows-2.5.80.egg)
ZenPacks.community.ZenODBC (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.community.ZenODBC-3.2.egg)
ZenPacks.community.deviceAdvDetail (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.community.deviceAdvDetail-2.7.egg)
ZenPacks.community.libvirt (/usr/local/zenoss/python/lib/python2.6/site-packages/ZenPacks.community.libvirt-1.96-py2.6.egg)
ZenPacks.community.mib_browser (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.community.mib_browser-2.0-py2.6.egg)
ZenPacks.community.zenAppProfiler (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.community.zenAppProfiler-1.7-py2.6.egg)
ZenPacks.vaibhav.brocadeswitches (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.vaibhav.brocadeswitches-1.0-py2.6.egg)
ZenPacks.vmware.VirtualMachines (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.vmware.VirtualMachines-2.0.0.2-py2.6.egg)
ZenPacks.zenoss.DellMonitor (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.zenoss.DellMonitor-2.1.0-py2.6.egg)
ZenPacks.zenoss.DeviceSearch (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.zenoss.DeviceSearch-1.0.0-py2.6.egg)
ZenPacks.zenoss.EsxTop (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.zenoss.EsxTop-1.0.3-py2.6.egg)
ZenPacks.zenoss.HttpMonitor (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.zenoss.HttpMonitor-2.0.3-py2.6.egg)
ZenPacks.zenoss.LDAPMonitor (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.zenoss.LDAPMonitor-1.2.3-py2.6.egg)
ZenPacks.zenoss.LinuxMonitor (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.zenoss.LinuxMonitor-1.1.5-py2.6.egg)
ZenPacks.zenoss.MySqlMonitor (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.zenoss.MySqlMonitor-2.1.2-py2.6.egg)
ZenPacks.zenoss.ZenJMX (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.zenoss.ZenJMX-3.5.3-py2.6.egg)
ZenPacks.zenoss.ZenossVirtualHostMonitor (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.zenoss.ZenossVirtualHostMonitor-2.3.6-py2.6.egg)
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/71570#71570]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Shane Scott
2013-02-19 17:46:23 UTC
Permalink
Shane Scott [http://community.zenoss.org/people/hackman238] created the discussion

"Re: Cannot uninstall Zenoss Zenpack .."

To view the discussion, visit: http://community.zenoss.org/message/71588#71588

--------------------------------------------------------------
Gerald:

Can you install ZenPacks.community.RDBMS?

--Shane Scott (Hackman238)
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/71588#71588]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Gerald Talton
2013-02-19 17:51:06 UTC
Permalink
Gerald Talton [http://community.zenoss.org/people/gtalton] created the discussion

"Re: Cannot uninstall Zenoss Zenpack .."

To view the discussion, visit: http://community.zenoss.org/message/71571#71571

--------------------------------------------------------------
Yep just did that now:


$ zenpack --install=ZenPacks.community.RDBMS-2.2.egg
INFO:zen.Relations:Ignoring unresolvable object ''
2013-02-20 03:47:49,481 INFO zen.HookReportLoader: loading reports from:/home/zenoss/ZenPacks.community.RDBMS-2.2.egg/ZenPacks/community/RDBMS/reports
$

Now zenpack --list doesn't puke but I still have a broken zenpack I can't uninstall:
$ zenpack --list
ZenPacks.OndrejJakubcik.OracleHwMonitoring (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.OndrejJakubcik.OracleHwMonitoring-1.1-py2.6.egg)
ZenPacks.RomanTykhonov.OracleDB (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.RomanTykhonov.OracleDB-2.0-py2.6.egg)
ZenPacks.Test.Ellipse (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.Test.Ellipse)
ZenPacks.community.AIX (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.community.AIX-1.1-py2.6.egg)
ZenPacks.community.CiscoEnvMon (/usr/local/zenoss/python/lib/python2.6/site-packages/ZenPacks.community.CiscoEnvMon-1.0-py2.6.egg)
ZenPacks.community.DellMon (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.community.DellMon-2.4.egg)
ZenPacks.community.DistributedCollectors (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.community.DistributedCollectors-1.7.egg)
ZenPacks.community.HPMon (/usr/local/zenoss/python/lib/python2.6/site-packages/ZenPacks.community.HPMon-2.2-py2.6.egg)
ZenPacks.community.HPUXMonitor (/usr/local/zenoss/python/lib/python2.6/site-packages/ZenPacks.community.HPUXMonitor-2.2-py2.6.egg)
ZenPacks.community.IBM3584Mon (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.community.IBM3584Mon-1.1-py2.6.egg)
ZenPacks.community.IBMSystemxIMM (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.community.IBMSystemxIMM-1.0.0-py2.6.egg)
ZenPacks.community.MsSQLMon (broken)
ZenPacks.community.PointThreshold (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.community.PointThreshold-1.1-py2.6.egg)
ZenPacks.community.RDBMS (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.community.RDBMS-2.2.egg)
ZenPacks.community.SQLDataSource (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.community.SQLDataSource-1.6-py2.6.egg)
ZenPacks.community.SunMibMonitor (/usr/local/zenoss/python/lib/python2.6/site-packages/ZenPacks.community.SunMibMonitor-1.0-py2.6.egg)
ZenPacks.community.VMwareDataSource (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.community.VMwareDataSource-1.1.2.egg)
ZenPacks.community.VMwareESXiMonitor (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.community.VMwareESXiMonitor-1.2.egg)
ZenPacks.community.WMIDataSource (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.community.WMIDataSource-2.11.egg)
ZenPacks.community.WMIPerf_MSSQL (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.community.WMIPerf_MSSQL-2.0.1-py2.6.egg)
ZenPacks.community.WMIPerf_Windows (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.community.WMIPerf_Windows-2.5.80.egg)
ZenPacks.community.ZenODBC (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.community.ZenODBC-3.2.egg)
ZenPacks.community.deviceAdvDetail (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.community.deviceAdvDetail-2.7.egg)
ZenPacks.community.libvirt (/usr/local/zenoss/python/lib/python2.6/site-packages/ZenPacks.community.libvirt-1.96-py2.6.egg)
ZenPacks.community.mib_browser (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.community.mib_browser-2.0-py2.6.egg)
ZenPacks.community.zenAppProfiler (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.community.zenAppProfiler-1.7-py2.6.egg)
ZenPacks.vaibhav.brocadeswitches (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.vaibhav.brocadeswitches-1.0-py2.6.egg)
ZenPacks.vmware.VirtualMachines (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.vmware.VirtualMachines-2.0.0.2-py2.6.egg)
ZenPacks.zenoss.DellMonitor (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.zenoss.DellMonitor-2.1.0-py2.6.egg)
ZenPacks.zenoss.DeviceSearch (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.zenoss.DeviceSearch-1.0.0-py2.6.egg)
ZenPacks.zenoss.EsxTop (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.zenoss.EsxTop-1.0.3-py2.6.egg)
ZenPacks.zenoss.HttpMonitor (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.zenoss.HttpMonitor-2.0.3-py2.6.egg)
ZenPacks.zenoss.LDAPMonitor (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.zenoss.LDAPMonitor-1.2.3-py2.6.egg)
ZenPacks.zenoss.LinuxMonitor (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.zenoss.LinuxMonitor-1.1.5-py2.6.egg)
ZenPacks.zenoss.MySqlMonitor (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.zenoss.MySqlMonitor-2.1.2-py2.6.egg)
ZenPacks.zenoss.ZenJMX (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.zenoss.ZenJMX-3.5.3-py2.6.egg)
ZenPacks.zenoss.ZenossVirtualHostMonitor (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.zenoss.ZenossVirtualHostMonitor-2.3.6-py2.6.egg)
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/71571#71571]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Shane Scott
2013-02-19 17:54:25 UTC
Permalink
Shane Scott [http://community.zenoss.org/people/hackman238] created the discussion

"Re: Cannot uninstall Zenoss Zenpack .."

To view the discussion, visit: http://community.zenoss.org/message/71589#71589

--------------------------------------------------------------
Gerald:

Let's try something. On another ZenOSS instance, create a new zenpack. Call it ZenPacks.community.MsSQLMon. Export and download it. On the broken system, move $ZENHOME/ZenPacks/ZenPacks.community.MsSQLMon out of $ZENHOME/ZenPacks. Next, zenpack --install ZenPacks.community.MsSQLMon-1.0.0-py2.7.egg (the one just created) on the broken box. The first attempt will complain because the directory is missing, that's okay. Issue the same command a second time to install the pack. The first attempt will extract the pack, the second will install it. Next restart zope and do a zenpack --list.

Best,
--Shane Scott (Hackman238)
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/71589#71589]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Gerald Talton
2013-02-19 18:12:27 UTC
Permalink
Gerald Talton [http://community.zenoss.org/people/gtalton] created the discussion

"Re: Cannot uninstall Zenoss Zenpack .."

To view the discussion, visit: http://community.zenoss.org/message/71572#71572

--------------------------------------------------------------
This is great .. it will take some time to get an empty Zenoss version installed that I can do this with but I will post the results once this is done.
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/71572#71572]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Gerald Talton
2013-02-19 19:43:38 UTC
Permalink
Gerald Talton [http://community.zenoss.org/people/gtalton] created the discussion

"Re: Cannot uninstall Zenoss Zenpack .."

To view the discussion, visit: http://community.zenoss.org/message/71574#71574

--------------------------------------------------------------
Sorry that didn't seem to work .. and interestingly enough there were two MsSQLMon directories in the ZenPack directory:


$ cd ZenPacks
$ ls
easy-install.pth                                  ZenPacks.community.WMIPerf_MSSQL-2.0.1-py2.6.egg
ZenPacks.community.AIX-1.1-py2.6.egg              ZenPacks.community.WMIPerf_Windows-2.5.80.egg
ZenPacks.community.CiscoEnvMon-1.0-py2.6.egg      ZenPacks.community.zenAppProfiler-1.7-py2.6.egg
ZenPacks.community.DellMon-2.4.egg                ZenPacks.community.ZenODBC-3.2.egg
ZenPacks.community.deviceAdvDetail-2.7.egg        ZenPacks.dnalley.VMwareESXi-1.0-py2.4.egg
ZenPacks.community.DistributedCollectors-1.7.egg  ZenPacks.HP.Proliant.MIBs-1.0-py2.6.egg
ZenPacks.community.HPMon-2.2-py2.6.egg            ZenPacks.Nova.Cisco.Mibs-1.1-py2.6.egg
ZenPacks.community.HPUXMonitor-2.2-py2.4.egg      ZenPacks.OndrejJakubcik.OracleHwMonitoring-1.1-py2.6.egg
ZenPacks.community.HPUXMonitor-2.2-py2.6.egg      ZenPacks.RomanTykhonov.OracleDB-2.0-py2.6.egg
ZenPacks.community.IBM3584Mon-1.1-py2.6.egg       ZenPacks.Test.Ellipse
ZenPacks.community.IBMSystemxIMM-1.0.0-py2.6.egg  ZenPacks.Test.Ellipse.egg-link
ZenPacks.community.libvirt-1.96-py2.6.egg         ZenPacks.turner.CiscoMDS-1.2.2-py2.6.egg
ZenPacks.community.mib_browser-2.0-py2.6.egg      ZenPacks.vaibhav.brocadeswitches-1.0-py2.6.egg
ZenPacks.community.MsSQLMon-3.2.egg               ZenPacks.vmware.VirtualMachines-2.0.0.2-py2.6.egg
ZenPacks.community.MsSQLMon-3.3.egg               ZenPacks.zenoss.DellMonitor-2.1.0-py2.6.egg
ZenPacks.community.MsSQLMon_ODBC-3.1.1-py2.6.egg  ZenPacks.zenoss.DeviceSearch-1.0.0-py2.6.egg
ZenPacks.community.MsSQLMon_ODBC-3.1.egg          ZenPacks.zenoss.EsxTop-1.0.3-py2.6.egg
ZenPacks.community.PointThreshold-1.1-py2.6.egg   ZenPacks.zenoss.HttpMonitor-2.0.3-py2.6.egg
ZenPacks.community.RDBMS-2.2.egg                  ZenPacks.zenoss.LDAPMonitor-1.2.3-py2.6.egg
ZenPacks.community.SQLDataSource-1.6-py2.6.egg    ZenPacks.zenoss.LinuxMonitor-1.1.5-py2.6.egg
ZenPacks.community.SunMibMonitor-1.0-py2.6.egg    ZenPacks.zenoss.MySqlMonitor-2.1.2-py2.6.egg
ZenPacks.community.VMwareDataSource-1.1.2.egg     ZenPacks.zenoss.ZenJMX-3.5.3-py2.6.egg
ZenPacks.community.VMwareESXiMonitor-1.2.egg      ZenPacks.zenoss.ZenossVirtualHostMonitor-2.3.6-py2.6.egg
ZenPacks.community.WMIDataSource-2.11.egg
$ mv ZenPacks.community.MsSQLMon-3.2.egg ZenPacks.community.MsSQLMon-3.3.egg ..
$ ls
easy-install.pth                                  ZenPacks.community.WMIPerf_Windows-2.5.80.egg
ZenPacks.community.AIX-1.1-py2.6.egg              ZenPacks.community.zenAppProfiler-1.7-py2.6.egg
ZenPacks.community.CiscoEnvMon-1.0-py2.6.egg      ZenPacks.community.ZenODBC-3.2.egg
ZenPacks.community.DellMon-2.4.egg                ZenPacks.dnalley.VMwareESXi-1.0-py2.4.egg
ZenPacks.community.deviceAdvDetail-2.7.egg        ZenPacks.HP.Proliant.MIBs-1.0-py2.6.egg
ZenPacks.community.DistributedCollectors-1.7.egg  ZenPacks.Nova.Cisco.Mibs-1.1-py2.6.egg
ZenPacks.community.HPMon-2.2-py2.6.egg            ZenPacks.OndrejJakubcik.OracleHwMonitoring-1.1-py2.6.egg
ZenPacks.community.HPUXMonitor-2.2-py2.4.egg      ZenPacks.RomanTykhonov.OracleDB-2.0-py2.6.egg
ZenPacks.community.HPUXMonitor-2.2-py2.6.egg      ZenPacks.Test.Ellipse
ZenPacks.community.IBM3584Mon-1.1-py2.6.egg       ZenPacks.Test.Ellipse.egg-link
ZenPacks.community.IBMSystemxIMM-1.0.0-py2.6.egg  ZenPacks.turner.CiscoMDS-1.2.2-py2.6.egg
ZenPacks.community.libvirt-1.96-py2.6.egg         ZenPacks.vaibhav.brocadeswitches-1.0-py2.6.egg
ZenPacks.community.mib_browser-2.0-py2.6.egg      ZenPacks.vmware.VirtualMachines-2.0.0.2-py2.6.egg
ZenPacks.community.MsSQLMon_ODBC-3.1.1-py2.6.egg  ZenPacks.zenoss.DellMonitor-2.1.0-py2.6.egg
ZenPacks.community.MsSQLMon_ODBC-3.1.egg          ZenPacks.zenoss.DeviceSearch-1.0.0-py2.6.egg
ZenPacks.community.PointThreshold-1.1-py2.6.egg   ZenPacks.zenoss.EsxTop-1.0.3-py2.6.egg
ZenPacks.community.RDBMS-2.2.egg                  ZenPacks.zenoss.HttpMonitor-2.0.3-py2.6.egg
ZenPacks.community.SQLDataSource-1.6-py2.6.egg    ZenPacks.zenoss.LDAPMonitor-1.2.3-py2.6.egg
ZenPacks.community.SunMibMonitor-1.0-py2.6.egg    ZenPacks.zenoss.LinuxMonitor-1.1.5-py2.6.egg
ZenPacks.community.VMwareDataSource-1.1.2.egg     ZenPacks.zenoss.MySqlMonitor-2.1.2-py2.6.egg
ZenPacks.community.VMwareESXiMonitor-1.2.egg      ZenPacks.zenoss.ZenJMX-3.5.3-py2.6.egg
ZenPacks.community.WMIDataSource-2.11.egg         ZenPacks.zenoss.ZenossVirtualHostMonitor-2.3.6-py2.6.egg
ZenPacks.community.WMIPerf_MSSQL-2.0.1-py2.6.egg
$ zenpack --list
ZenPacks.OndrejJakubcik.OracleHwMonitoring (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.OndrejJakubcik.OracleHwMonitoring-1.1-py2.6.egg)
ZenPacks.RomanTykhonov.OracleDB (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.RomanTykhonov.OracleDB-2.0-py2.6.egg)
ZenPacks.Test.Ellipse (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.Test.Ellipse)
ZenPacks.community.AIX (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.community.AIX-1.1-py2.6.egg)
ZenPacks.community.CiscoEnvMon (/usr/local/zenoss/python/lib/python2.6/site-packages/ZenPacks.community.CiscoEnvMon-1.0-py2.6.egg)
ZenPacks.community.DellMon (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.community.DellMon-2.4.egg)
ZenPacks.community.DistributedCollectors (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.community.DistributedCollectors-1.7.egg)
ZenPacks.community.HPMon (/usr/local/zenoss/python/lib/python2.6/site-packages/ZenPacks.community.HPMon-2.2-py2.6.egg)
ZenPacks.community.HPUXMonitor (/usr/local/zenoss/python/lib/python2.6/site-packages/ZenPacks.community.HPUXMonitor-2.2-py2.6.egg)
ZenPacks.community.IBM3584Mon (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.community.IBM3584Mon-1.1-py2.6.egg)
ZenPacks.community.IBMSystemxIMM (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.community.IBMSystemxIMM-1.0.0-py2.6.egg)
ZenPacks.community.MsSQLMon (broken)
ZenPacks.community.PointThreshold (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.community.PointThreshold-1.1-py2.6.egg)
ZenPacks.community.RDBMS (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.community.RDBMS-2.2.egg)
ZenPacks.community.SQLDataSource (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.community.SQLDataSource-1.6-py2.6.egg)
ZenPacks.community.SunMibMonitor (/usr/local/zenoss/python/lib/python2.6/site-packages/ZenPacks.community.SunMibMonitor-1.0-py2.6.egg)
ZenPacks.community.VMwareDataSource (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.community.VMwareDataSource-1.1.2.egg)
ZenPacks.community.VMwareESXiMonitor (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.community.VMwareESXiMonitor-1.2.egg)
ZenPacks.community.WMIDataSource (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.community.WMIDataSource-2.11.egg)
ZenPacks.community.WMIPerf_MSSQL (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.community.WMIPerf_MSSQL-2.0.1-py2.6.egg)
ZenPacks.community.WMIPerf_Windows (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.community.WMIPerf_Windows-2.5.80.egg)
ZenPacks.community.ZenODBC (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.community.ZenODBC-3.2.egg)
ZenPacks.community.deviceAdvDetail (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.community.deviceAdvDetail-2.7.egg)
ZenPacks.community.libvirt (/usr/local/zenoss/python/lib/python2.6/site-packages/ZenPacks.community.libvirt-1.96-py2.6.egg)
ZenPacks.community.mib_browser (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.community.mib_browser-2.0-py2.6.egg)
ZenPacks.community.zenAppProfiler (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.community.zenAppProfiler-1.7-py2.6.egg)
ZenPacks.vaibhav.brocadeswitches (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.vaibhav.brocadeswitches-1.0-py2.6.egg)
ZenPacks.vmware.VirtualMachines (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.vmware.VirtualMachines-2.0.0.2-py2.6.egg)
ZenPacks.zenoss.DellMonitor (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.zenoss.DellMonitor-2.1.0-py2.6.egg)
ZenPacks.zenoss.DeviceSearch (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.zenoss.DeviceSearch-1.0.0-py2.6.egg)
ZenPacks.zenoss.EsxTop (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.zenoss.EsxTop-1.0.3-py2.6.egg)
ZenPacks.zenoss.HttpMonitor (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.zenoss.HttpMonitor-2.0.3-py2.6.egg)
ZenPacks.zenoss.LDAPMonitor (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.zenoss.LDAPMonitor-1.2.3-py2.6.egg)
ZenPacks.zenoss.LinuxMonitor (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.zenoss.LinuxMonitor-1.1.5-py2.6.egg)
ZenPacks.zenoss.MySqlMonitor (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.zenoss.MySqlMonitor-2.1.2-py2.6.egg)
ZenPacks.zenoss.ZenJMX (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.zenoss.ZenJMX-3.5.3-py2.6.egg)
ZenPacks.zenoss.ZenossVirtualHostMonitor (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.zenoss.ZenossVirtualHostMonitor-2.3.6-py2.6.egg)
$ zenpack --install /tmp/ZenPacks.community.MsSQLMon-1.0-py2.6.egg
ERROR:zen.ZenPackCmd:zenpack command failed
Traceback (most recent call last):
  File "/usr/local/zenoss/zenoss/Products/ZenUtils/zenpack.py", line 406, in     zp.run()
  File "/usr/local/zenoss/zenoss/Products/ZenUtils/zenpack.py", line 134, in run
    previousVersion= self.options.previousVersion)
  File "/usr/local/zenoss/zenoss/Products/ZenUtils/ZenPackCmd.py", line 249, in InstallEggAndZenPack
    forceRunExternal=forceRunExternal)
  File "/usr/local/zenoss/zenoss/Products/ZenUtils/ZenPackCmd.py", line 348, in InstallDistAsZenPack
    existing = dmd.ZenPackManager.packs._getOb(packName, None)
  File "/usr/local/zenoss/zenoss/Products/ZenRelations/ToManyContRelationship.py", line 199, in _getOb
    return self._objects[id].__of__(self)
AttributeError: 'ZenPack' object has no attribute '__of__'
$ zenpack --install /tmp/ZenPacks.community.MsSQLMon-1.0-py2.6.egg
ERROR:zen.ZenPackCmd:zenpack command failed
Traceback (most recent call last):
  File "/usr/local/zenoss/zenoss/Products/ZenUtils/zenpack.py", line 406, in     zp.run()
  File "/usr/local/zenoss/zenoss/Products/ZenUtils/zenpack.py", line 134, in run
    previousVersion= self.options.previousVersion)
  File "/usr/local/zenoss/zenoss/Products/ZenUtils/ZenPackCmd.py", line 249, in InstallEggAndZenPack
    forceRunExternal=forceRunExternal)
  File "/usr/local/zenoss/zenoss/Products/ZenUtils/ZenPackCmd.py", line 348, in InstallDistAsZenPack
    existing = dmd.ZenPackManager.packs._getOb(packName, None)
  File "/usr/local/zenoss/zenoss/Products/ZenRelations/ToManyContRelationship.py", line 199, in _getOb
    return self._objects[id].__of__(self)
AttributeError: 'ZenPack' object has no attribute '__of__'
$ cd ZenPacks
$ ls
easy-install.pth                                  ZenPacks.community.WMIPerf_MSSQL-2.0.1-py2.6.egg
ZenPacks.community.AIX-1.1-py2.6.egg              ZenPacks.community.WMIPerf_Windows-2.5.80.egg
ZenPacks.community.CiscoEnvMon-1.0-py2.6.egg      ZenPacks.community.zenAppProfiler-1.7-py2.6.egg
ZenPacks.community.DellMon-2.4.egg                ZenPacks.community.ZenODBC-3.2.egg
ZenPacks.community.deviceAdvDetail-2.7.egg        ZenPacks.dnalley.VMwareESXi-1.0-py2.4.egg
ZenPacks.community.DistributedCollectors-1.7.egg  ZenPacks.HP.Proliant.MIBs-1.0-py2.6.egg
ZenPacks.community.HPMon-2.2-py2.6.egg            ZenPacks.Nova.Cisco.Mibs-1.1-py2.6.egg
ZenPacks.community.HPUXMonitor-2.2-py2.4.egg      ZenPacks.OndrejJakubcik.OracleHwMonitoring-1.1-py2.6.egg
ZenPacks.community.HPUXMonitor-2.2-py2.6.egg      ZenPacks.RomanTykhonov.OracleDB-2.0-py2.6.egg
ZenPacks.community.IBM3584Mon-1.1-py2.6.egg       ZenPacks.Test.Ellipse
ZenPacks.community.IBMSystemxIMM-1.0.0-py2.6.egg  ZenPacks.Test.Ellipse.egg-link
ZenPacks.community.libvirt-1.96-py2.6.egg         ZenPacks.turner.CiscoMDS-1.2.2-py2.6.egg
ZenPacks.community.mib_browser-2.0-py2.6.egg      ZenPacks.vaibhav.brocadeswitches-1.0-py2.6.egg
ZenPacks.community.MsSQLMon-1.0-py2.6.egg         ZenPacks.vmware.VirtualMachines-2.0.0.2-py2.6.egg
ZenPacks.community.MsSQLMon_ODBC-3.1.1-py2.6.egg  ZenPacks.zenoss.DellMonitor-2.1.0-py2.6.egg
ZenPacks.community.MsSQLMon_ODBC-3.1.egg          ZenPacks.zenoss.DeviceSearch-1.0.0-py2.6.egg
ZenPacks.community.PointThreshold-1.1-py2.6.egg   ZenPacks.zenoss.EsxTop-1.0.3-py2.6.egg
ZenPacks.community.RDBMS-2.2.egg                  ZenPacks.zenoss.HttpMonitor-2.0.3-py2.6.egg
ZenPacks.community.SQLDataSource-1.6-py2.6.egg    ZenPacks.zenoss.LDAPMonitor-1.2.3-py2.6.egg
ZenPacks.community.SunMibMonitor-1.0-py2.6.egg    ZenPacks.zenoss.LinuxMonitor-1.1.5-py2.6.egg
ZenPacks.community.VMwareDataSource-1.1.2.egg     ZenPacks.zenoss.MySqlMonitor-2.1.2-py2.6.egg
ZenPacks.community.VMwareESXiMonitor-1.2.egg      ZenPacks.zenoss.ZenJMX-3.5.3-py2.6.egg
ZenPacks.community.WMIDataSource-2.11.egg         ZenPacks.zenoss.ZenossVirtualHostMonitor-2.3.6-py2.6.egg
$ zenpack --list
ZenPacks.OndrejJakubcik.OracleHwMonitoring (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.OndrejJakubcik.OracleHwMonitoring-1.1-py2.6.egg)
ZenPacks.RomanTykhonov.OracleDB (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.RomanTykhonov.OracleDB-2.0-py2.6.egg)
ZenPacks.Test.Ellipse (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.Test.Ellipse)
ZenPacks.community.AIX (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.community.AIX-1.1-py2.6.egg)
ZenPacks.community.CiscoEnvMon (/usr/local/zenoss/python/lib/python2.6/site-packages/ZenPacks.community.CiscoEnvMon-1.0-py2.6.egg)
ZenPacks.community.DellMon (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.community.DellMon-2.4.egg)
ZenPacks.community.DistributedCollectors (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.community.DistributedCollectors-1.7.egg)
ZenPacks.community.HPMon (/usr/local/zenoss/python/lib/python2.6/site-packages/ZenPacks.community.HPMon-2.2-py2.6.egg)
ZenPacks.community.HPUXMonitor (/usr/local/zenoss/python/lib/python2.6/site-packages/ZenPacks.community.HPUXMonitor-2.2-py2.6.egg)
ZenPacks.community.IBM3584Mon (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.community.IBM3584Mon-1.1-py2.6.egg)
ZenPacks.community.IBMSystemxIMM (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.community.IBMSystemxIMM-1.0.0-py2.6.egg)
ZenPacks.community.MsSQLMon (broken)
ZenPacks.community.PointThreshold (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.community.PointThreshold-1.1-py2.6.egg)
ZenPacks.community.RDBMS (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.community.RDBMS-2.2.egg)
ZenPacks.community.SQLDataSource (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.community.SQLDataSource-1.6-py2.6.egg)
ZenPacks.community.SunMibMonitor (/usr/local/zenoss/python/lib/python2.6/site-packages/ZenPacks.community.SunMibMonitor-1.0-py2.6.egg)
ZenPacks.community.VMwareDataSource (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.community.VMwareDataSource-1.1.2.egg)
ZenPacks.community.VMwareESXiMonitor (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.community.VMwareESXiMonitor-1.2.egg)
ZenPacks.community.WMIDataSource (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.community.WMIDataSource-2.11.egg)
ZenPacks.community.WMIPerf_MSSQL (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.community.WMIPerf_MSSQL-2.0.1-py2.6.egg)
ZenPacks.community.WMIPerf_Windows (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.community.WMIPerf_Windows-2.5.80.egg)
ZenPacks.community.ZenODBC (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.community.ZenODBC-3.2.egg)
ZenPacks.community.deviceAdvDetail (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.community.deviceAdvDetail-2.7.egg)
ZenPacks.community.libvirt (/usr/local/zenoss/python/lib/python2.6/site-packages/ZenPacks.community.libvirt-1.96-py2.6.egg)
ZenPacks.community.mib_browser (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.community.mib_browser-2.0-py2.6.egg)
ZenPacks.community.zenAppProfiler (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.community.zenAppProfiler-1.7-py2.6.egg)
ZenPacks.vaibhav.brocadeswitches (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.vaibhav.brocadeswitches-1.0-py2.6.egg)
ZenPacks.vmware.VirtualMachines (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.vmware.VirtualMachines-2.0.0.2-py2.6.egg)
ZenPacks.zenoss.DellMonitor (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.zenoss.DellMonitor-2.1.0-py2.6.egg)
ZenPacks.zenoss.DeviceSearch (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.zenoss.DeviceSearch-1.0.0-py2.6.egg)
ZenPacks.zenoss.EsxTop (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.zenoss.EsxTop-1.0.3-py2.6.egg)
ZenPacks.zenoss.HttpMonitor (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.zenoss.HttpMonitor-2.0.3-py2.6.egg)
ZenPacks.zenoss.LDAPMonitor (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.zenoss.LDAPMonitor-1.2.3-py2.6.egg)
ZenPacks.zenoss.LinuxMonitor (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.zenoss.LinuxMonitor-1.1.5-py2.6.egg)
ZenPacks.zenoss.MySqlMonitor (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.zenoss.MySqlMonitor-2.1.2-py2.6.egg)
ZenPacks.zenoss.ZenJMX (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.zenoss.ZenJMX-3.5.3-py2.6.egg)
ZenPacks.zenoss.ZenossVirtualHostMonitor (/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.zenoss.ZenossVirtualHostMonitor-2.3.6-py2.6.egg)
$


Rolling back the directory move change. Is there anything in the fact that there are two versions of the Zenpack in the ZenPack directory?
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/71574#71574]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Shane Scott
2013-02-19 19:45:51 UTC
Permalink
Shane Scott [http://community.zenoss.org/people/hackman238] created the discussion

"Re: Cannot uninstall Zenoss Zenpack .."

To view the discussion, visit: http://community.zenoss.org/message/71592#71592

--------------------------------------------------------------
Gerald:

Is this zenoss v4? If so, rename that pack to ZenPacks.community.MsSQLMon-1.0-py2.7.egg and try again.

--Shane Scott (Hackman238)
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/71592#71592]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Gerald Talton
2013-02-19 19:52:35 UTC
Permalink
Gerald Talton [http://community.zenoss.org/people/gtalton] created the discussion

"Re: Cannot uninstall Zenoss Zenpack .."

To view the discussion, visit: http://community.zenoss.org/message/71575#71575

--------------------------------------------------------------
No, we are planning on upgrading this year. Right now we are running Zenoss 3.1.0. 

Is there any action I can take with 3.1.0?
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/71575#71575]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Shane Scott
2013-02-19 19:53:44 UTC
Permalink
Shane Scott [http://community.zenoss.org/people/hackman238] created the discussion

"Re: Cannot uninstall Zenoss Zenpack .."

To view the discussion, visit: http://community.zenoss.org/message/71593#71593

--------------------------------------------------------------
Gerald:

Ah okay. Let me think a little.

--Shane Scott (Hackman238)
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/71593#71593]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Shane Scott
2013-02-19 21:46:20 UTC
Permalink
Shane Scott [http://community.zenoss.org/people/hackman238] created the discussion

"Re: Cannot uninstall Zenoss Zenpack .."

To view the discussion, visit: http://community.zenoss.org/message/71596#71596

--------------------------------------------------------------
Gerald:

Let's try some DMD voodoo. As the zenoss user on the master, zendmd.

Paste the following:

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()

What feedback does it give you?

Best,
--Shane Scott (Hackman238)
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/71596#71596]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Gerald Talton
2013-02-19 22:34:43 UTC
Permalink
Gerald Talton [http://community.zenoss.org/people/gtalton] created the discussion

"Re: Cannot uninstall Zenoss Zenpack .."

To view the discussion, visit: http://community.zenoss.org/message/71608#71608

--------------------------------------------------------------
Not sure if this worked but here is the output:

zendmd
Welcome to the Zenoss dmd command shell!
'dmd' is bound to the DataRoot. 'zhelp()' to get a list of commands.
Use TAB-TAB to see a list of zendmd related commands.
Tab completion also works for objects -- hit tab after an object name and '.'
(eg dmd. + tab-key).
Post by Shane Scott
packs = None
...      packs = dmd.ZenPackManager.packs
... else:
...      packs = dmd.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)
...
2013-02-20 08:31:43 WARNING OFS.Uninstalled Could not import class 'ZenPack' from module 'ZenPacks.community.MsSQLMon'
ZenPacks.OndrejJakubcik.OracleHwMonitoring is fine.
ZenPacks.RomanTykhonov.OracleDB is fine.
ZenPacks.Test.Ellipse is fine.
ZenPacks.community.AIX is fine.
ZenPacks.community.CiscoEnvMon is fine.
ZenPacks.community.DellMon is fine.
ZenPacks.community.DistributedCollectors is fine.
ZenPacks.community.HPMon is fine.
ZenPacks.community.HPUXMonitor is fine.
ZenPacks.community.IBM3584Mon is fine.
ZenPacks.community.IBMSystemxIMM is fine.
Problem with broken ZenPack. Forcing removal.
Traceback (most recent call last):
  File "", line 10, in   File "/usr/local/zenoss/zenoss/Products/ZenRelations/ToManyContRelationship.py", line 170, in _remove
    obj.getPrimaryId(), self.getPrimaryId()))
AttributeError: getPrimaryId
Post by Shane Scott
commit()
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/71608#71608]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Gerald Talton
2013-02-20 15:23:45 UTC
Permalink
Gerald Talton [http://community.zenoss.org/people/gtalton] created the discussion

"Re: Cannot uninstall Zenoss Zenpack .."

To view the discussion, visit: http://community.zenoss.org/message/71611#71611

--------------------------------------------------------------
Any new ideas? <he asks hopefully>
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/71611#71611]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Gerald Talton
2013-02-20 16:01:48 UTC
Permalink
Gerald Talton [http://community.zenoss.org/people/gtalton] created the discussion

"Re: Cannot uninstall Zenoss Zenpack .."

To view the discussion, visit: http://community.zenoss.org/message/71612#71612

--------------------------------------------------------------
...      print "[%s]" % (pack.id,)
...
[ZenPacks.OndrejJakubcik.OracleHwMonitoring]
[ZenPacks.RomanTykhonov.OracleDB]
[ZenPacks.Test.Ellipse]
[ZenPacks.community.AIX]
[ZenPacks.community.CiscoEnvMon]
[ZenPacks.community.DellMon]
[ZenPacks.community.DistributedCollectors]
[ZenPacks.community.HPMon]
[ZenPacks.community.HPUXMonitor]
[ZenPacks.community.IBM3584Mon]
[ZenPacks.community.IBMSystemxIMM]
[broken]
[ZenPacks.community.PointThreshold]
[ZenPacks.community.RDBMS]
[ZenPacks.community.SQLDataSource]
[ZenPacks.community.SunMibMonitor]
[ZenPacks.community.VMwareDataSource]
[ZenPacks.community.VMwareESXiMonitor]
[ZenPacks.community.WMIDataSource]
[ZenPacks.community.WMIPerf_MSSQL]
[ZenPacks.community.WMIPerf_Windows]
[ZenPacks.community.ZenODBC]
[ZenPacks.community.deviceAdvDetail]
[ZenPacks.community.libvirt]
[ZenPacks.community.mib_browser]
[ZenPacks.community.zenAppProfiler]
[ZenPacks.vaibhav.brocadeswitches]
[ZenPacks.vmware.VirtualMachines]
[ZenPacks.zenoss.DellMonitor]
[ZenPacks.zenoss.DeviceSearch]
[ZenPacks.zenoss.EsxTop]
[ZenPacks.zenoss.HttpMonitor]
[ZenPacks.zenoss.LDAPMonitor]
[ZenPacks.zenoss.LinuxMonitor]
[ZenPacks.zenoss.MySqlMonitor]
[ZenPacks.zenoss.ZenJMX]
[ZenPacks.zenoss.ZenossVirtualHostMonitor]
...      if pack.id == "broken":
...           dir(pack)
...
['COPY', 'COPY__roles__', 'DELETE', 'DELETE__roles__', 'HEAD', 'HEAD__roles__', 'LOCK', 'LOCK__roles__', 'MKCOL', 'MOVE', 'MOVE__roles__', 'OPTIONS', 'OPTIONS__roles__', 'PROPFIND', 'PROPFIND__roles__', 'PROPPATCH', 'PROPPATCH__roles__', 'PUT', 'REQUEST', 'TRACE', 'TRACE__roles__', 'UNLOCK', 'UNLOCK__roles__', '__ac_permissions__', '__allow_access_to_unprotected_subobjects__', '__class__', '__class_init__', '__dav_resource__', '__delattr__', '__dict__', '__doc__', '__format__', '__getattr__', '__getattribute__', '__getnewargs__', '__getstate__', '__hash__', '__http_methods__', '__implemented__', '__init__', '__len__', '__module__', '__name__', '__new__', '__of__', '__propsets__', '__providedBy__', '__provides__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__setstate__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', '_canCopy', '_deleteOwnershipAfterAdd', '_getCopy', '_manage_editedDialog', '_notifyOfCopyTo', '_p_activate', '_p_changed', '_p_deactivate', '_p_delattr', '_p_estimated_size', '_p_getattr', '_p_invalidate', '_p_jar', '_p_mtime', '_p_oid', '_p_serial', '_p_setattr', '_p_state', '_postCopy', '_setId', 'absolute_url', 'absolute_url__roles__', 'absolute_url_path', 'absolute_url_path__roles__', 'bobobase_modification_time', 'cb_isCopyable', 'cb_isMoveable', 'cb_userHasCopyOrMovePermission', 'changeOwnership', 'changeOwnership__roles__', 'dav__init', 'dav__simpleifhandler', 'dav__validate', 'filtered_manage_options', 'filtered_manage_options__roles__', 'getAttribute', 'getAttributeNode', 'getAttributeNode__roles__', 'getAttribute__roles__', 'getAttributes', 'getAttributes__roles__', 'getChildNodes', 'getChildNodes__roles__', 'getElementsByTagName', 'getElementsByTagName__roles__', 'getFirstChild', 'getFirstChild__roles__', 'getId', 'getId__roles__', 'getLastChild', 'getLastChild__roles__', 'getNextSibling', 'getNextSibling__roles__', 'getNodeName', 'getNodeName__roles__', 'getNodeType', 'getNodeValue', 'getNodeValue__roles__', 'getOwner', 'getOwnerDocument', 'getOwnerDocument__roles__', 'getOwnerTuple', 'getOwnerTuple__roles__', 'getOwner__roles__', 'getParentNode', 'getParentNode__roles__', 'getPhysicalPath', 'getPhysicalPath__roles__', 'getPhysicalRoot', 'getPhysicalRoot__roles__', 'getPreviousSibling', 'getPreviousSibling__roles__', 'getTagName', 'getTagName__roles__', 'getWrappedOwner', 'getWrappedOwner__roles__', 'get_request_var_or_attr', 'hasChildNodes', 'hasChildNodes__roles__', 'http__etag', 'http__parseMatchList', 'http__processMatchHeaders', 'http__refreshEtag', 'icon', 'id', 'info', 'isPrincipiaFolderish', 'isTopLevelPrincipiaApplicationObject', 'listDAVObjects', 'listDAVObjects__roles__', 'manage', 'manage_DAVget', 'manage_DAVget__roles__', 'manage_FTPlist', 'manage_FTPlist__roles__', 'manage_FTPstat', 'manage_FTPstat__roles__', 'manage_UndoForm', 'manage_UndoForm__roles__', 'manage__roles__', 'manage_afterAdd', 'manage_afterAdd__roles__', 'manage_afterClone', 'manage_afterClone__roles__', 'manage_beforeDelete', 'manage_beforeDelete__roles__', 'manage_changeOwnershipType', 'manage_changeOwnershipType__roles__', 'manage_editedDialog', 'manage_editedDialog__roles__', 'manage_fixupOwnershipAfterAdd', 'manage_fixupOwnershipAfterAdd__roles__', 'manage_main', 'manage_main__roles__', 'manage_options', 'manage_owner', 'manage_owner__roles__', 'manage_page_footer', 'manage_page_header', 'manage_tabs', 'manage_tabs__roles__', 'manage_takeOwnership', 'manage_takeOwnership__roles__', 'manage_undo_transactions', 'manage_undo_transactions__roles__', 'manage_workspace', 'manage_workspace__roles__', 'meta_type', 'objectIds', 'objectItems', 'objectValues', 'owner_info', 'owner_info__roles__', 'product_name', 'raise_standardErrorMessage', 'restrictedTraverse', 'restrictedTraverse__roles__', 'tabs_path_default', 'tabs_path_info', 'this', 'title', 'title_and_id', 'title_or_id', 'tpURL', 'tpValues', 'undoable_transactions', 'undoable_transactions__roles__', 'unrestrictedTraverse', 'unrestrictedTraverse__roles__', 'userCanTakeOwnership', 'virtual_url_path', 'virtual_url_path__roles__', 'wl_clearLocks', 'wl_clearLocks__roles__', 'wl_delLock', 'wl_delLock__roles__', 'wl_getLock', 'wl_getLock__roles__', 'wl_hasLock', 'wl_isLocked', 'wl_isLockedByUser__roles__', 'wl_isLocked__roles__', 'wl_lockItems', 'wl_lockItems__roles__', 'wl_lockTokens', 'wl_lockTokens__roles__', 'wl_lockValues', 'wl_lockValues__roles__', 'wl_lockmapping', 'wl_lockmapping__roles__', 'wl_setLock', 'wl_setLock__roles__']
...      if pack.id == "broken":
...           badpack = pack
...
badpack.__dict__
{'_p_changed': None}
badpack
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/71612#71612]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Gerald Talton
2013-02-20 17:12:25 UTC
Permalink
Gerald Talton [http://community.zenoss.org/people/gtalton] created the discussion

"Re: Cannot uninstall Zenoss Zenpack .."

To view the discussion, visit: http://community.zenoss.org/message/71613#71613

--------------------------------------------------------------
Trying to hone in on this exact problem .. when I run the command: "zenpack --remove ZenPacks.community.MsSQLMon" I get this output:
zenpack --remove ZenPacks.community.MsSQLMon
ERROR:zen.ZenPackCmd:zenpack command failed
Traceback (most recent call last):
  File "/usr/local/zenoss/zenoss/Products/ZenUtils/zenpack.py", line 406, in     zp.run()
  File "/usr/local/zenoss/zenoss/Products/ZenUtils/zenpack.py", line 162, in run
    self.options.removePackName, None)
  File "/usr/local/zenoss/zenoss/Products/ZenRelations/ToManyContRelationship.py", line 199, in _getOb
    return self._objects[id].__of__(self)
AttributeError: 'ZenPack' object has no attribute '__of__'

Now checking the source zenpack.py I see:
160         elif self.options.removePackName:
161             pack = self.dmd.ZenPackManager.packs._getOb(
162                                         self.options.removePackName, None)
163             if not pack:
164                 raise ZenPackException('ZenPack %s is not installed.' %
165                                         self.options.removePackName)
166             if pack.isEggPack():
167                 return EggPackCmd.RemoveZenPack(self.dmd,
168                                                 self.options.removePackName)
169             RemoveZenPack(self.dmd, self.options.removePackName, self.log)
170

So trying to recreate this error in zendmd is easy:
$ zendmd
Welcome to the Zenoss dmd command shell!
'dmd' is bound to the DataRoot. 'zhelp()' to get a list of commands.
Use TAB-TAB to see a list of zendmd related commands.
Tab completion also works for objects -- hit tab after an object name and '.'
(eg dmd. + tab-key).
pack = dmd.ZenPackManager.packs._getOb("ZenPacks.community.MsSQLMon", None)
2013-02-21 02:57:30 WARNING OFS.Uninstalled Could not import class 'ZenPack' from module 'ZenPacks.community.MsSQLMon'
And there is that annoying and possibly telling OFS.Uninstalled error that I suspect .. is at the heart of the problem though I can't be sure .. the other thing that continues to bother me here is the multilple zenpack dirs in the ZenPacks directory for MsSQLMon:
$ ls ZenPacks/ZenPacks.community.MsSQLMon*
ZenPacks/ZenPacks.community.MsSQLMon-3.2.egg:
EGG-INFO  ZenPacks

ZenPacks/ZenPacks.community.MsSQLMon-3.3.egg:
EGG-INFO  ZenPacks

ZenPacks/ZenPacks.community.MsSQLMon_ODBC-3.1.1-py2.6.egg:
EGG-INFO  ZenPacks

ZenPacks/ZenPacks.community.MsSQLMon_ODBC-3.1.egg:
EGG-INFO  ZenPacks
[***@mmsbnemon01 zenoss]$

Maybe this is nothing .... but maybe it is.
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/71613#71613]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Gerald Talton
2013-02-20 20:18:56 UTC
Permalink
Gerald Talton [http://community.zenoss.org/people/gtalton] created the discussion

"Re: Cannot uninstall Zenoss Zenpack .."

To view the discussion, visit: http://community.zenoss.org/message/71616#71616

--------------------------------------------------------------
Just did a zenpack.py command and retried the 'zenchkrels -x1 -r' command still getting this output:  INFO:zen.Relations:checking relations on object /zport/dmd/Devices/Server/Windows/rrdTemplates/MsSqlDatabase Traceback (most recent call last):   File "/usr/local/zenoss/zenoss/Products/ZenUtils/CheckRelations.py", line 72, in     tmbk.rebuild()   File "/usr/local/zenoss/zenoss/Products/ZenUtils/CheckRelations.py", line 40, in rebuild     object.checkRelations(repair=repair)   File "/usr/local/zenoss/zenoss/Products/ZenRelations/RelationshipManager.py", line 262, in checkRelations     rel.checkRelation(repair)   File "/usr/local/zenoss/zenoss/Products/ZenRelations/ToOneRelationship.py", line 201, in checkRelation     ppath = self.obj.getPrimaryPath() AttributeError: 'ZenPack' object has no attribute 'getPrimaryPath'  What is the normal way of correcting this?  If I try a delete operation from the /zport/manage interface it fails.
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/71616#71616]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Shane Scott
2013-02-21 18:12:23 UTC
Permalink
Shane Scott [http://community.zenoss.org/people/hackman238] created the discussion

"Re: Cannot uninstall Zenoss Zenpack .."

To view the discussion, visit: http://community.zenoss.org/message/71633#71633

--------------------------------------------------------------
Solution Ended up being to create a copy of the pack and increment the version number to v3.4, then remove it. This let the system reclass the pack object which had an invalid schema.

--Shane Scott (Hackman238)
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/71633#71633]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Loading...