Archived community.zenoss.org | full text search
Skip navigation
94894 Views 10 Replies Latest reply: Dec 10, 2009 9:48 AM by Pedro Almeida RSS
Pedro Almeida Rank: White Belt 7 posts since
Nov 24, 2009
Currently Being Moderated

Nov 24, 2009 3:04 PM

Error in zenmigrate from 2.4.2 to 2.5.1

Hi,

After upgrading our Zenoss instalation using rpm's on a RHEL5 we noticed 'titleOrId' problems. Further investigation revealed we also had a migration error:

Migrating data...
INFO:zen.migrate:Database going to version Zenoss 2.5.1
INFO:zen.migrate:Installing AddConfigTimeDataPoints (2.5.0)
INFO:zen.migrate:Installing AddEventQueueLength (2.5.0)
INFO:zen.migrate:Installing AddFilesystemAndInterfaceDataPointAliases (2.5.0)
Recovering
Traceback (most recent call last):
  File "/opt/zenoss/Products/ZenModel/migrate/zenmigrate.py", line 21, in ?
    main()
  File "/opt/zenoss/Products/ZenModel/migrate/zenmigrate.py", line 18, in main
    m.main()
  File "/opt/zenoss/Products/ZenModel/migrate/Migrate.py", line 425, in main
    self.cutover()
  File "/opt/zenoss/Products/ZenModel/migrate/Migrate.py", line 305, in cutover
    self.migrate()
  File "/opt/zenoss/Products/ZenModel/migrate/Migrate.py", line 281, in migrate
    m.cutover(self.dmd)
  File "/opt/zenoss/Products/ZenModel/migrate/addFilesystemAndInterfaceDataPoint
Aliases.py", line 30, in cutover
    {'ifInOctets' : ('inputOctets__bytes',),
  File "/opt/zenoss/Products/ZenModel/migrate/addFilesystemAndInterfaceDataPoint
Aliases.py", line 22, in attachAliases
    dp.addAlias( *aliasMap[dp.id] )
  File "/opt/zenoss/Products/ZenModel/RRDDataPoint.py", line 178, in addAlias
    manage_addDataPointAlias( self, id, formula )
  File "/opt/zenoss/Products/ZenModel/RRDDataPointAlias.py", line 39, in manage_
addDataPointAlias
    context.aliases._setObject( id, alias )
AttributeError: 'function' object has no attribute '_setObject'

Running zenmigrate from the prompt gets the same results.

Any ideias?

Thank you and best regards, Pedro Almeida.
  • Ryan Matte ZenossMaster 653 posts since
    Mar 26, 2009
    Currently Being Moderated
    1. Nov 24, 2009 4:12 PM (in response to Pedro Almeida)
    Re: Error in zenmigrate from 2.4.2 to 2.5.1
    Are you able to successfully run the zenpack command or do you get an error with that as well?
  • Ryan Matte ZenossMaster 653 posts since
    Mar 26, 2009
    Currently Being Moderated
    3. Nov 25, 2009 11:19 AM (in response to Pedro Almeida)
    Re: Error in zenmigrate from 2.4.2 to 2.5.1
    It is, I just want to know if you're able to successfully do a "zenpack --list", it's just a step in diagnosing the issue.  Let me know if it errors out.
  • Ryan Matte ZenossMaster 653 posts since
    Mar 26, 2009
    Currently Being Moderated
    5. Nov 25, 2009 6:13 PM (in response to Pedro Almeida)
    Re: Error in zenmigrate from 2.4.2 to 2.5.1

    I passed it on to Matt Ray, they'll be looking in to it:

     

    [05:46pm] <rmatte> I've seen a few people having zenmigrate errors too: message/42575#42575
    [05:46pm] <rmatte> not sure if you could look in to that?
    [05:46pm] <adytum-bot> Title: Open Source Network Monitoring and Systems Management - Error in zenmigrate from 2.4.2 to 2.5.1 (at community.zenoss.org)
    [05:47pm] <@mrayzenoss> passed it on to our QA manager⦠I'm way behind on my forum reading since I was out 2 weeks
    [05:47pm] <@mrayzenoss> he asked me to forward him any new 2.5.1 issues

  • pthoma Newbie 3 posts since
    Sep 9, 2009
    Currently Being Moderated
    7. Dec 3, 2009 9:32 AM (in response to Pedro Almeida)
    Re: Error in zenmigrate from 2.4.2 to 2.5.1

    I'm having exactly the same problem. Is there a fix?

     

    I had a couple of errors installing the zenoss-zenpack-core rpm too.

     

    One coming back was: KeyError: 'titleOrId'

     

    Now, when I go to my Dashboard and try to get a 'Device List', I see there is no communication with the server.

     

    event.log shows me this error:

     

    2009-12-03T15:30:07 ERROR Zope.SiteErrorLog http://zenoss:8080/zport/dmd/Devices/getJSONDeviceInfo

    Traceback (innermost last):

      Module ZPublisher.Publish, line 119, in publish

      Module ZPublisher.mapply, line 88, in mapply

      Module ZPublisher.Publish, line 42, in call_object

      Module Products.ZenUtils.Utils, line 1290, in inner

      Module Products.ZenModel.browser.DeviceList, line 70, in __call__

      Module Products.ZenUtils.json, line 41, in inner

      Module Products.ZenModel.browser.DeviceList, line 85, in _getJSONDeviceInfo

      Module Products.ZenModel.browser.DeviceList, line 35, in __call__

      Module Products.ZenModel.browser.DeviceList, line 56, in _getAdvancedQueryDeviceList

      Module Products.AdvancedQuery.eval, line 40, in eval

      Module Products.AdvancedQuery.eval, line 16, in _eval

      Module Products.AdvancedQuery.AdvancedQuery, line 220, in _eval

      Module Products.AdvancedQuery.AdvancedQuery, line 233, in _eval

      Module Products.AdvancedQuery.AdvancedQuery, line 84, in _eval

      Module Products.AdvancedQuery.AdvancedQuery, line 278, in _applyIndex

    KeyError: 'titleOrId'

  • nxumdon Rank: White Belt 65 posts since
    Oct 27, 2008
    Currently Being Moderated
    8. Dec 4, 2009 3:26 PM (in response to pthoma)
    Re: Error in zenmigrate from 2.4.2 to 2.5.1

    Hello,

    Has anyone found a fix to this issue yet?  I'm having the exact same problem after the upgrade...no more Events Console and Error Server Connection Error is reported.  I'm running Ubuntu Server 8.04 and the only difference is that I upgraded from zenoss-stack-2.4.1-linux.bin  to zenoss-stack-2.5.1-linux.bin.

     

    Thanks so much.

     

    J

  • nxumdon Rank: White Belt 65 posts since
    Oct 27, 2008
    Currently Being Moderated
    9. Dec 4, 2009 3:40 PM (in response to nxumdon)
    Re: Error in zenmigrate from 2.4.2 to 2.5.1

    WOOT!  Fixed!  Found this in another thread;

     

    message/42796#42796

     

    zenmigrate --step=AddTitleOrIdToCatalogs
    INFO:zen.migrate:Database going to version Zenoss 2.5.0
    INFO:zen.migrate:Installing AddTitleOrIdToCatalogs (2.5.0)
    INFO:zen.migrate:Reindexing devices.  This may take a while...
    INFO:zen.migrate:committing
    INFO:zen.migrate:Migration successful

     

    And just clicked on the Events link and all works again, no more errors!!!

     

    Just to be sure, I also ran zenmigrate -v 10 and it came back with no errors!

     

    Thanks again and Cheers!

     

    J

More Like This

  • Retrieving data ...

Legend

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