Mailing List Archive

Openflow product is broken on ZMI
Hi,



I just got OpenFlow1.1.0 downloaded. But didn't know the steps to
install.



But as I extracted Openflow source tar ball in Zope's
lib/python/Products directory, it created .pyc files for instance.py,
activity.py, openflow.py, process.py, transition.py & workitem.py. & so
because of that I thought that openflow is installed. But after that I
was not able to see that in the Products dir of Zope Management
Interface screen. So after that I implemented the solution that u gave
me in your last mail i.e. to change a line (from
Products.PageTemplates.Expressions import getEngine,
_SecureModuleImporter) in expression.py file. After doing this &
restarting zope now I am able to see the openflow on ZMI. Thanks a Lot
for Ur invaluable help.



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@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?



Thanks a lot In Advance!!!



Thanks & Regards,

Smita Kamdar








============================================================================================================================Disclaimer: This message and the information contained herein is proprietary and confidential and subject to the Tech Mahindra policy statement, you may review the policy at <a href="http://www.techmahindra.com/Disclaimer.html">http://www.techmahindra.com/Disclaimer.html</a> externally and <a href="http://tim.techmahindra.com/Disclaimer.html">http://tim.techmahindra.com/Disclaimer.html</a> internally within Tech Mahindra.============================================================================================================================
Re: Openflow product is broken on ZMI [ In reply to ]
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@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

_______________________________________________
Zope maillist - Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
https://mail.zope.org/mailman/listinfo/zope-announce
https://mail.zope.org/mailman/listinfo/zope-dev )
Re: Openflow product is broken on ZMI [ In reply to ]
Hi,



I am not aware of how to import the zexp in another folder? For now,
whenever I export the code from live server, it is saved in
/opt/zope/var directory on live server. (Pls note zope is installed at
/opt/zope & the INSTANCE_HOME of zope is also /opt/zope) How do I tell
it to import in some other dir?



About the Openflow installation on dev server, exclusively I haven't
executed any steps to install it. I just downloaded the source tar ball
& extracted it on development server. After extracting itself, it
automatically created (.pyc) files & so I thought that it is installed.
Also it is given proper permissions.Also OpenFlow product appears in
ZMI's Product list & add list.



But 1 thing that I was surprised is I was not able to find Openflow
-1.1.0 source tar ball on zope site i.e. on zope.org & also not on
(www.openflow.it) & so I downloaded it from sourceforge.net .



& the same problem is occurring for ZPsycopgDA also.

At live server, ZPygresqlDA is installed & at dev server ZPsycopgDA is
installed. Both of them are installed successfully & appears in add
list. But when I import my project code from live to dev server, on dev
server it is giving error as 'Pygresql_Database_Connection (This product
from ZPYgresqlDA product is broken).



Any idea, how do I solve this?

Also, Can u please suggest the steps to install OpenFlow-1.1.0??



Regards,

Smita Kamdar








============================================================================================================================Disclaimer: This message and the information contained herein is proprietary and confidential and subject to the Tech Mahindra policy statement, you may review the policy at <a href="http://www.techmahindra.com/Disclaimer.html">http://www.techmahindra.com/Disclaimer.html</a> externally and <a href="http://tim.techmahindra.com/Disclaimer.html">http://tim.techmahindra.com/Disclaimer.html</a> internally within Tech Mahindra.============================================================================================================================
Re: Openflow product is broken on ZMI [ In reply to ]
Do you really have to write your emails in large fonts and shocking pink? :-)

Anyway, it seems to me that the OpenFlow product has a rather special
way to be installed in Zope, with zexp imports and all. Maybe there is
an OpenFlow mailing list where people who are more used to the product
hangs out? I think very few people here are OpenFlow experts.

On Mon, Dec 6, 2010 at 10:57, Smita Kamdar <SK0054916@techmahindra.com> wrote:
>
>
>
> Hi,
>
>
>
> I am not aware of how to import the zexp in another folder? For now, whenever I export the code from live server, it is saved in /opt/zope/var directory on live server. (Pls note zope is installed at /opt/zope & the INSTANCE_HOME of zope is also /opt/zope) How do I tell it to import in some other dir?
>
>
>
> About the Openflow installation on dev server, exclusively I haven't executed any steps to install it. I just downloaded the source tar ball & extracted it on development server. After extracting itself, it automatically created (.pyc) files & so I thought that it is installed. Also it is given proper permissions.Also OpenFlow product appears in ZMI’s Product list & add list.
>
>
>
> But 1 thing that I was surprised is I was not able to find Openflow -1.1.0 source tar ball on zope site i.e. on zope.org & also not on (www.openflow.it) & so I downloaded it from sourceforge.net  .
>
>
>
> & the same problem is occurring for ZPsycopgDA also.
>
> At live server, ZPygresqlDA is installed & at dev server ZPsycopgDA is installed. Both of them are installed successfully & appears in add list. But when I import my project code from live to dev server, on dev server it is giving error as 'Pygresql_Database_Connection (This product from ZPYgresqlDA product is broken).
>
>
>
> Any idea, how do I solve this?
>
> Also, Can u please suggest the steps to install OpenFlow-1.1.0??
>
>
>
> Regards,
>
> Smita Kamdar
>
>
>
>
>
>
>
> ============================================================================================================================Disclaimer: This message and the information contained herein is proprietary and confidential and subject to the Tech Mahindra policy statement, you may review the policy at http://www.techmahindra.com/Disclaimer.html externally and http://tim.techmahindra.com/Disclaimer.html internally within Tech Mahindra.============================================================================================================================
>
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> https://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  https://mail.zope.org/mailman/listinfo/zope-announce
>  https://mail.zope.org/mailman/listinfo/zope-dev )
>
_______________________________________________
Zope maillist - Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
https://mail.zope.org/mailman/listinfo/zope-announce
https://mail.zope.org/mailman/listinfo/zope-dev )