Configuration & Administration

Expand all | Collapse all

Upgrade to 6.1.0

  • 1.  Upgrade to 6.1.0

    Posted 01-31-2018 07:14 AM

    When trying to upgrade e get this error  " AttributeError: 'CiscoExpansionCard' object has no attribute '__of__'"

    Looks like is related to the zenpack "ZenPacks.community.CiscoEnvMon"
    In a attempt to bypass this problem  have already removed the zenpack  but must be, still, some residual file somewhere.


    upgrade from 5.3.3 to 6.1.0



    ./upgrade-core.sh
    snapshot does not exist
    Logging to logfile: /var/log/serviced/script-2018-01-31-123150-root.log
    Script started, file is /var/log/serviced/script-2018-01-31-123150-root.log
    time="2018-01-31T12:31:55Z" level=info msg="Loaded delegate keys from file" keyfile="/etc/serviced/delegate.keys" location="localkeys.go:320" logger=auth
    Script done, file is /var/log/serviced/script-2018-01-31-123150-root.log
    Logging to logfile: /var/log/serviced/script-2018-01-31-123158-root.log
    Script started, file is /var/log/serviced/script-2018-01-31-123158-root.log
    time="2018-01-31T12:32:07Z" level=info msg="Loaded delegate keys from file" keyfile="/etc/serviced/delegate.keys" location="localkeys.go:320" logger=auth
    /opt/zenoss/Products/ZenUtils/MySqlZodbFactory.py:172: UserWarning: poll_interval is ignored
    storage = relstorage.storage.RelStorage(adapter, **relstoreParams)
    2018-01-31 12:32:30 INFO zen.migrate: Will execute these steps: AddSolrService
    INFO:zen.migrate:Will execute these steps: AddSolrService
    2018-01-31 12:32:30 INFO zen.migrate: Installing AddSolrService (200.0.0)
    INFO:zen.migrate:Installing AddSolrService (200.0.0)
    2018-01-31 12:32:31 INFO zen.migrate: Found 0 services named 'Solr'.
    INFO:zen.migrate:Found 0 services named 'Solr'.
    2018-01-31 12:32:31 INFO zen.migrate: No Solr found; creating new service.
    INFO:zen.migrate:No Solr found; creating new service.
    2018-01-31 12:32:31 INFO zen.migrate: Updating log filter named solr
    INFO:zen.migrate:Updating log filter named solr
    INFO:zen.migrate:Committing changes
    2018-01-31 12:32:33 INFO zen.migrate: Committing changes
    2018-01-31 12:32:33 INFO zen.migrate: Migration successful
    INFO:zen.migrate:Migration successful
    time="2018-01-31T12:32:38Z" level=info msg="Loaded delegate keys from file" keyfile="/etc/serviced/delegate.keys" location="localkeys.go:320" logger=auth
    /opt/zenoss/Products/ZenUtils/MySqlZodbFactory.py:172: UserWarning: poll_interval is ignored
    storage = relstorage.storage.RelStorage(adapter, **relstoreParams)
    2018-01-31 12:33:04 INFO zen.migrate: Will execute these steps: RemoveProductClassInstancesRelationship
    INFO:zen.migrate:Will execute these steps: RemoveProductClassInstancesRelationship
    2018-01-31 12:33:04 INFO zen.migrate: Installing RemoveProductClassInstancesRelationship (200.0.0)
    INFO:zen.migrate:Installing RemoveProductClassInstancesRelationship (200.0.0)
    WARNING:zen.migrate:Recovering
    2018-01-31 12:33:08 WARNING zen.migrate: Recovering
    Traceback (most recent call last):
    File "/opt/zenoss/Products/ZenModel/migrate/zenmigrate.py", line 19, in <module>
    main()
    File "/opt/zenoss/Products/ZenModel/migrate/zenmigrate.py", line 16, in main
    m.main()
    File "/opt/zenoss/Products/ZenModel/migrate/Migrate.py", line 442, in main
    self.cutover()
    File "/opt/zenoss/Products/ZenModel/migrate/Migrate.py", line 318, in cutover
    self.migrate()
    File "/opt/zenoss/Products/ZenModel/migrate/Migrate.py", line 289, in migrate
    m.cutover(self.dmd)
    File "/opt/zenoss/Products/ZenModel/migrate/removeProductClassInstancesRelationship.py", line 33, in cutover
    instances = product.instances()
    File "/opt/zenoss/Products/ZenRelations/ToManyRelationship.py", line 71, in __call__
    return self.objectValuesAll()
    File "/opt/zenoss/Products/ZenRelations/ToManyRelationship.py", line 173, in objectValuesAll
    return list(self.objectValuesGen())
    File "/opt/zenoss/Products/ZenRelations/ToManyRelationship.py", line 178, in <genexpr>
    return (obj.__of__(self) for obj in self._objects)
    AttributeError: 'CiscoExpansionCard' object has no attribute '__of__'
    exit status 1
    ERRO[0070] Unable to execute step command=SVC_EXEC error=exit status 1 line=SVC_EXEC NO_COMMIT "Zenoss.core/Zenoss/User Interface/Zope" /opt/zenoss/bin/zenmigrate --step=RemoveProductClassInstancesRelationship --dont-bump location=runner.go:166 logger=script step=16
    exit status 1


    Any help appreciated
    Regards
    david





  • 2.  RE: Upgrade to 6.1.0

    Posted 01-31-2018 09:53 AM


    i've removed this line from the "upgrade-core.txt" ant the upgraed setup completed

    #SVC_EXEC NO_COMMIT "Zenoss.core/Zenoss/User Interface/Zope" /opt/zenoss/bin/zenmigrate --step=RemoveProductClassInstancesRelationship --dont-bump



    Not sure what will the consequences be ... will monitor the system.

    ------------------------------
    David de Sousa

    ------------------------------



  • 3.  RE: Upgrade to 6.1.0

    Posted 6 days ago
    Edited by FirstName LastName 6 days ago
    Did you have any issues after doing this? I'm running into the same problem.

    ------------------------------
    Luis

    ------------------------------