Martijn Marty [http://community.zenoss.org/people/m.lijesen] created the discussion
"Re: AttributeError __call__ error"
To view the discussion, visit: http://community.zenoss.org/message/69301#69301
--------------------------------------------------------------
Hi Shane,
Thanks for your reply!
I will try to explain the situation.
Goal is to upgrade zenoss to the a newer version.
Zenoss 3.1.0 64bit is running in a production environment. this installation has been upgraded more times then I can trace back in history, but since version 2.5 this is the path.
2.5 32bit -> 2.5 64bit -> 3.0.3 64bit -> 3.1.0 64bit
Zenoss is installed on a virtual server running debian and an exact copy is in our test environment.
There is a difference in hardware (memory and cores).
The production environment seems to work good, also in the test environment.
I've done a lot of tries to upgrade this version, but never succeeded in running without errors!
This is what I've done in my last try:
1) stop zenoss production environment
2) ps -ef (check for still running zenoss processes)
2) tar cfvB /root/zenossbackup.tar /opt/zenoss/production
3) /etc/init.d/zenoss-stack start
4) scp zenossbackup.tar zenoss-test:/opt/zenoss
5) login on zenoss-test and unpack the tar
6) start zenoss
7) remove alerting rules (we don't want alert mails from our test environment)
8) remove all zenpacks
    # su - zenoss
    # /opt/zenoss/production/zenoss/bin/zenpack --list | cut -d ' ' -f1 | while read line ; do /opt/zenoss/production/zenoss/bin/zenpack --remove $line ; done
8) remove all directories under /opt/zenoss/production/zenoss/ZenPacks
9) remove custom reports
10) remove monitoring templates
11) start zenoss
All zenoss daemons seems to be running fine when I open infrastructure tab I get:
Server exception
The server reported the following error:
AttributeError __call__
The system has encountered an error. Please reload the page.
12) Trying to fix the catalog
  # su - zenoss
  # ***@zenoss-test:/opt/zenoss/zenossstuff$ /opt/zenoss/production/python/bin/python ./zenfixit.py
  #Cleaning up invalid entries from catalogs:
* deviceSearch
* componentSearch
* layer3_catalog
  - removing /zport/dmd/Devices/Printer/Laser/devices/<I renamed this>/os/interfaces/ncmac0/ipaddresses/122.30.30.12.
  - removing /zport/dmd/Devices/Printer/devices/<I renamed this>/os/interfaces/sie0/ipaddresses/10.30.30.13.
  - removing /zport/dmd/Devices/Printer/Laser/devices/<I renamed this>/os/interfaces/sie0/ipaddresses/122.30.30.10.
  - removing /zport/dmd/Devices/Printer/Laser/devices/<I renamed this>/os/interfaces/ncmac0/ipaddresses/122.30.30.11.
  - removing /zport/dmd/Devices/Server/Linux/devices/<I renamed this>/os/interfaces/eth2/ipaddresses/122.11.11.11.
  - removing /zport/dmd/Devices/Server/Solaris/devices/<I renamed this>/os/interfaces/ce0/ipaddresses/122.30.20.33.
  - removing /zport/dmd/Devices/Server/Linux/devices/secura/os/interfaces/eth1/ipaddresses/192.168.117.228.
  - removing /zport/dmd/Devices/Network/Accesspoint/devices/ap-l3008/os/interfaces/eth0/ipaddresses/222.168.10.203.
  - removing /zport/dmd/Devices/Network/Accesspoint/devices/ap-l3008/os/interfaces/eth0/ipaddresses/222.168.10.201.
* maintenanceWindowSearch
* zenPackPersistence
  - removing /zport/MsSqlSrvInst/datasources/LockRequests.
  - removing /zport/MsSqlSrvInst/datasources/LockWaitTime.
  - removing /zport/MsSqlSrvInst/datasources/SQL Errors.
  - removing MsSqlSrvInst/datasources/LockRequests.
  - removing MsSqlSrvInst/datasources/LockWaitTime.
  - removing MsSqlSrvInst/datasources/SQL Errors.
  - removing /zport/MsSqlDatabase/datasources/sysperfinfo.
  - removing /zport/WMIPerfExchange2003/datasources/Address List Queue Length.
  - removing /zport/WMIPerfExchange2003/datasources/Exchange Mailbox Queues.
  - removing /zport/WMIPerfExchange2003/datasources/Exchange Public Queues.
  - removing /zport/WMIPerfExchange2003/datasources/Exchange User Statistics.
  - removing WMIPerfExchange2003/datasources/Address List Queue Length.
  - removing WMIPerfExchange2003/datasources/Exchange Mailbox Queues.
  - removing WMIPerfExchange2003/datasources/Exchange Public Queues.
  - removing WMIPerfExchange2003/datasources/Exchange User Statistics.
  - removing /zport/MsSqlSrvInst/datasources/LockTimeouts.
  - removing /zport/MsSqlSrvInst/datasources/sysperfinfo.
  - removing MsSqlSrvInst/datasources/NumberOfDeadlocks.
  - removing MsSqlDatabase/datasources/sysperfinfo.
  - removing /zport/WMIPerfExchange2003/datasources/Exchange Public Delivery.
  - removing /zport/WMIPerfExchange2003/datasources/RPC Averaged Latency.
  - removing WMIPerfExchange2003/datasources/Exchange Public Delivery.
  - removing WMIPerfExchange2003/datasources/RPC Averaged Latency.
  - removing /zport/MsSqlSrvInst/datasources/NumberOfDeadlocks.
  - removing MsSqlSrvInst/datasources/sysperfinfo.
  - removing /zport/WMIPerfExchange2003/datasources/Exchange SMTP Queues.
  - removing WMIPerfExchange2003/datasources/Exchange SMTP Queues.
  - removing MsSqlSrvInst/datasources/LockTimeouts.
  - removing WMIPerfExchange2003/datasources/Exchange Mailbox Delivery.
  - removing /zport/WMIPerfExchange2003/datasources/Exchange Mailbox Delivery.
Cleaning up any admin roles associated to invalid users.
Updating component catalog with monitor state from database.
Verifying that all devices have a deviceClass relation.
Removing invalid devices from collectors.
Converting important values from unicode to string.
Unbinding component templates from devices.
- removing ethernetCsmacd template from Router.
- removing ethernetCsmacd template from Switch.
Removing IP addresses linked to invalid devices.
# /opt/zenoss/production/python/bin/python ../production/zenoss/Products/ZenUtils/zencatalog.py --forceindex --createcatalog
2012-10-17 11:55:37,037 INFO zen.Catalog: Global catalog already exists.
2012-10-17 11:55:37,064 INFO zen.Catalog: Reindexing your system. This may take some time.
/opt/zenoss/production/python/lib/python2.6/site-packages/Products.CMFCore-2.2.0_alpha-py2.6.egg/Products/CMFCore/DirectoryView.py:489: UserWarning: DirectoryView HttpMonitor refers to a non-existing path '/space/opt/zenoss/2.2.0/zenoss/ZenPacks/ZenPacks.zenoss.HttpMonitor-2.0.0-py2.4.egg/ZenPacks/zenoss/HttpMonitor/skins/HttpMonitor'
(self.id, reg_key), UserWarning)
/opt/zenoss/production/python/lib/python2.6/site-packages/Products.CMFCore-2.2.0_alpha-py2.6.egg/Products/CMFCore/DirectoryView.py:489: UserWarning: DirectoryView ZenPacks.Jcolon.NortelMibs refers to a non-existing path '/space/opt/zenoss/production/zenoss/ZenPacks/ZenPacks.Jcolon.NortelMibs-1.0- py2.4.egg/ZenPacks/Jcolon/NortelMibs/skins/ZenPacks.Jcolon.NortelMibs'
(self.id, reg_key), UserWarning)
/opt/zenoss/production/python/lib/python2.6/site-packages/Products.CMFCore-2.2.0_alpha-py2.6.egg/Products/CMFCore/DirectoryView.py:489: UserWarning: DirectoryView  ZenPacks.TijmenvandenBrink.Juniper IVE refers to a non-existing path '/space/opt/zenoss/production/zenoss/ZenPacks/ZenPacks.TijmenvandenBrink.JuniperIVE-1.0- py2.4.egg/ZenPacks/TijmenvandenBri nk/JuniperIVE/skins/ZenPacks.TijmenvandenBrink.JuniperIVE'
(self.id, reg_key), UserWarning )
/opt/zenoss/production/python/lib/python2.6/site-packages/Products.CMFCore-2.2.0_alpha-py2.6.egg/Products/CMFCore/DirectoryView.py:489: UserWarning: DirectoryView  ZenPacks.ers8600.custom refers to a non-existing path '/space/opt/zenoss/production/zeno ss/ZenPacks/ZenPacks.ers8600.custom/ZenPacks/ers8600/custom/skins/ZenPacks.ers8600.custom'
(self.id, reg_key), UserWarning)
/opt/zenoss/production/python/lib/python2.6/site-packages/Products.CMFCore-2.2.0_alpha-py2.6.egg/Products/CMFCore/DirectoryView.py:489: UserWarning: DirectoryView Squid refers to a non-existing path 'Products.Squid:skins/Squid'
 (self.id, reg_key), UserWarning)
2012-10-17 11:55:39,197 ERROR zen.Catalog: [Failure instance: Traceback: <type 'exceptions.AttributeError'>: 'GlobalCatalog' object has no attribute 'catalog_object'
/opt/zenoss/production/python/lib/python2.6/site-packages/Twisted-8.1.0-py2.6-linux-x86_64.egg/twisted/internet/defer.py:737:_inlineCallbacks
../production/zenoss/Products/ZenUtils/zencatalog.py:97:inner
/opt/zenoss/production/python/lib/python2.6/site-packages/Twisted-8.1.0-py2.6-linux-x86_64.egg/twisted/internet/defer.py:243:callback
/opt/zenoss/production/python/lib/python2.6/site-packages/Twisted-8.1.0-py2.6-linux-x86_64.egg/twisted/internet/defer.py:312:_startRunCallbacks
--- <exception caught here> ---
/opt/zenoss/production/python/lib/python2.6/site-packages/Twisted-8.1.0-py2.6-linux-x86_64.egg/twisted/internet/defer.py:328:_runCallbacks
../production/zenoss/Products/ZenUtils/zencatalog.py:243:handle_chunk
../production/zenoss/Products/ZenUtils/zencatalog.py:223:catalog_object
]
None
# ./zenmigrate run --step='GlobalCatalog'
Use of "run" is deprecated.
INFO:zen.migrate:Will execute these steps: GlobalCatalog
INFO:zen.migrate:Installing GlobalCatalog (3.0.0)
INFO:zen.migrate:Installing SpeedUpGlobalCatalog (3.0.3)
INFO:zen.migrate:Removing Software and Operating Systems from catalog
WARNING:zen.migrate:Recovering
Traceback (most recent call last):
File "/opt/zenoss/production/zenoss/Products/ZenModel/migrate/zenmigrate.py", line 21, in <module>
  main()
File "/opt/zenoss/production/zenoss/Products/ZenModel/migrate/zenmigrate.py", line 18, in main
  m.main()
File "/opt/zenoss/production/zenoss/Products/ZenModel/migrate/Migrate.py", line 417, in main
  self.cutover()
File "/opt/zenoss/production/zenoss/Products/ZenModel/migrate/Migrate.py", line 304, in cutover
  self.migrate()
File "/opt/zenoss/production/zenoss/Products/ZenModel/migrate/Migrate.py", line 280, in migrate
  m.cutover(self.dmd)
File "/opt/zenoss/production/zenoss/Products/ZenModel/migrate/SpeedUpGlobalCatalog.py", line 136, in cutover
  self.removeSoftwareAndOperatingSystems(dmd)
File "/opt/zenoss/production/zenoss/Products/ZenModel/migrate/SpeedUpGlobalCatalog.py", line 127, in removeSoftwareAndOperatingSystems
  cat = ICatalogTool(dmd)
File "/opt/zenoss/production/python/lib/python2.6/site-packages/zope.site-3.7.0-py2.6.egg/zope/site/hooks.py", line 95, in adapter_hook
  return siteinfo.adapter_hook(interface, object, name, default)
File "/opt/zenoss/production/zenoss/Products/Zuul/tree.py", line 191, in __init__
  self.catalog._v_caches = getattr(self.catalog, "_v_caches", OOBTree())
File "/opt/zenoss/production/python/lib/python2.6/site-packages/ZODB3-3.9.3-py2.6-linux-x86_64.egg/ZODB/broken.py", line 317, in __setattr__
  raise BrokenModified("Can't change broken objects")
ZODB.broken.BrokenModified: Can't change broken objects
# /opt/zenoss/production/zenoss/bin/zenchkrels -x1 -r
INFO:zen.Relations:checking relations on object /zport/dmd/ZenUsers/admin
INFO:zen.Relations:checking relations on object /zport/dmd/ZenUsers/admin/test
INFO:zen.Relations:checking relations on object /zport/dmd/ZenUsers/admin/messages/msg
ERROR:zen.Relations:remote relation /zport/dmd/ZenUsers/admin/messages/msg/messageQueue doesn't point back to /zport/dmd/ZenUsers/admin/messages/msg/messageQueue
WARNING:zen.Relations:reconnecting relation /zport/dmd/ZenUsers/admin/messages/msg/messageQueue to relation /zport/dmd/ZenUsers/admin/messages/msg/messageQueue
Traceback (most recent call last):
File "/opt/zenoss/production/zenoss/Products/ZenUtils/CheckRelations.py", line 72, in <module>
  tmbk.rebuild()
File "/opt/zenoss/production/zenoss/Products/ZenUtils/CheckRelations.py", line 40, in rebuild
  object.checkRelations(repair=repair)
File "/opt/zenoss/production/zenoss/Products/ZenRelations/RelationshipManager.py", line 262, in checkRelations
  rel.checkRelation(repair)
File "/opt/zenoss/production/zenoss/Products/ZenRelations/ToOneRelationship.py", line 223, in checkRelation
  rrel._add(parobj)
File "/opt/zenoss/production/zenoss/Products/ZenRelations/ToOneRelationship.py", line 80, in _add
  self._remoteRemove()
File "/opt/zenoss/production/zenoss/Products/ZenRelations/ToOneRelationship.py", line 102, in _remoteRemove
  remoteRel = getattr(aq_base(self.obj), self.remoteName())
AttributeError: messageQueue
# su - zenoss
# ./zenpatch /opt/zenoss/zenossstuff/changeset_r25791.diff
# zendmd
...    user.messages.removeRelation()
...
commit()Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â
commit()
--------------------------------------------------------------
Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/69301#69301]
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]