[Zope] Openflow product is broken on ZMI
Riccardo Lemmi
riccardo at reflab.com
Sun Dec 5 05:33:08 EST 2010
Try to import the zexp in another folder on the server you done the export. If
the import goes correct the problem is in the other server (see below),
otherwise there is some incompatibilities due to the obsolete code.
Smita Kamdar wrote:
> Hi,
>
> I just got OpenFlow1.1.0 downloaded. But didn't know the steps to
> install.
> ...
> After all this, I imported my project's code from live server to the
> development server (Please note that now I am in the process of setting
> up development env set up). But after importing the entire project code
> from live to dev server, on ZMI for OpenFlow it is giving error as
> 'Openflow Product is broken', while on live server it works perfectly.
> Only after importing code on dev server ZMI it is showing this error.Pls
> note that I am importing my project code in binary form (i.e. in .zexp
> format).
>
> On LINUX dev server, I started zope as (./zopectl fg) while doing all
> the above stuff. It showed the below error -
> ...
>
> [test at test bin]$. /zopectl fg
>
> /opt/zope/bin/runzope -X debug-mode=on
>
> 2010-11-30 20:23:33 INFO ZServer HTTP server started at Tue Nov 30
> 20:23:33 2010
>
> Hostname: 0.0.0.0
>
> Port: 8080
>
> 2010-11-30 20:23:33 WARNING Init Class
> Products.openflow-engine.instance.instanc method 'History'
>
> 2010-11-30 20:23:33 WARNING Init Class
> Products.openflow-engine.instance.instanc method 'History'
>
> 2010-11-30 20:23:33 WARNING Init Class
> Products.openflow-engine.activity.activit method 'editActivity'
>
> 2010-11-30 20:23:33 WARNING Init Class
> Products.openflow-engine.transition.transent method 'editTransition'
>
> 2010-11-30 20:23:33 WARNING Init Class
> Products.openflow-engine.transition.transent method 'editTransition'
>
> 2010-11-30 20:23:33 WARNING Init Class
> Products.openflow-engine.process.process method 'Map'
>
> 2010-11-30 20:23:33 WARNING Init Class
> Products.openflow-engine.process.process method 'Map'
>
> /opt/zope/lib/python/OFS/Application.py:809: DeprecationWarning:
> __init__.py of mehods' attribute. 'methods' support might be removed in
> Zope 2.11 or a later feat of registerClass instead if the methods are
> constructors. Or refactor the prod DeprecationWarning)
>
> 2010-11-30 20:23:34 INFO Application New disk product detected,
> determining if w
>
> 2010-11-30 20:23:34 INFO Zope Ready to handle requests
>
>
>
> 2010-11-30 21:19:05 WARNING OFS.Uninstalled Could not import class
> 'openflow' from module 'Products.OpenFlow.openflow'
>
> 2010-11-30 21:19:05 WARNING OFS.Uninstalled Could not import class
> 'OpenFlowEditor' from module 'Products.OpenFlowEditor.OpenFlowEditor'
>
> 2010-11-30 21:19:05 WARNING OFS.Uninstalled Could not import class
> 'Connection'from module 'Products.ZPyGreSQLDA.DA'
>
> 2010-11-30 21:19:05 INFO PythonScripts Some of your Scripts have stale
> code cached. Since Zope cannot use this code, startup will be slightly
> slower until thes
>
> e Scripts are edited. You can automatically recompile all Scripts that
> have this problem by visiting /manage_addProduct/PythonScripts/recompile
> of your server i
>
> n a browser.
>
> 2010-11-30 21:19:09 WARNING OFS.Uninstalled Could not import class
> 'workitem' from module 'Products.OpenFlow.workitem'
>
> 2010-11-30 21:19:09 WARNING OFS.Uninstalled Could not import class
> 'instance' from module 'Products.OpenFlow.instance'
>
> 2010-11-30 21:19:09 WARNING OFS.Uninstalled Could not import class
> 'process' from module 'Products.OpenFlow.process'
>
> 2010-11-30 21:19:09 WARNING OFS.Uninstalled Could not import class
> 'transition'from module 'Products.OpenFlow.transition'
>
> 2010-11-30 21:19:09 WARNING OFS.Uninstalled Could not import class
> 'activity' from module 'Products.OpenFlow.activity'
>
> 2010-11-30 21:28:15 ERROR Zope.SiteErrorLog 1291132695.540.680391211014
> http://172.21.55.72:8080/BT/manage_importObject
>
> 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 OFS.ObjectManager, line 615, in manage_importObject
>
> Module OFS.ObjectManager, line 634, in _importObjectFromFile
>
> Module OFS.CopySupport, line 526, in _verifyObjectPaste
>
> 2010-11-30 21:28:35 ERROR Zope.SiteErrorLog 1291132715.960.0667235585295
> http://172.21.55.72:8080/BT/manage_importObject
>
> 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 OFS.ObjectManager, line 615, in manage_importObject
>
> Module OFS.ObjectManager, line 634, in _importObjectFromFile
>
> Module OFS.CopySupport, line 526, in _verifyObjectPaste
>
>
>
> ------------------------------------------------------------------------
> ------------------------------------------------------------------------
> ------------------------------------------------------------------------
> ------------------------------------------------------------------------
> --------------------------------------
>
>
>
> Does that mean that OpenFlow is not installed properly? If yes what
> steps should I follow to install it?
>
> Am I missing something?
>
The "Could not import class" message seems to suggest that OpenFlow is not
installed on this server (or maybe there is a permissions problem).
Are you sure the product appears in the Add list?
--
Riccardo Lemmi
More information about the Zope
mailing list