[Engine-devel] Setup in latest master apparently broken

Martin Perina mperina at redhat.com
Mon Jan 6 10:35:22 UTC 2014


----- Original Message -----
> From: "Alon Bar-Lev" <alonbl at redhat.com>
> To: "Roy Golan" <rgolan at redhat.com>
> Cc: "Juan Hernandez" <jhernand at redhat.com>, engine-devel at ovirt.org
> Sent: Monday, January 6, 2014 9:23:12 AM
> Subject: Re: [Engine-devel] Setup in latest master apparently broken
> 
> 
> 
> ----- Original Message -----
> > From: "Roy Golan" <rgolan at redhat.com>
> > To: "Yedidyah Bar David" <didi at redhat.com>
> > Cc: "Juan Hernandez" <jhernand at redhat.com>, engine-devel at ovirt.org
> > Sent: Monday, January 6, 2014 10:10:49 AM
> > Subject: Re: [Engine-devel] Setup in latest master apparently broken
> > 
> > On Mon 06 Jan 2014 08:54:47 AM IST, Yedidyah Bar David wrote:
> > > ----- Original Message -----
> > >> From: "Juan Hernandez" <jhernand at redhat.com>
> > >> To: engine-devel at ovirt.org
> > >> Sent: Monday, January 6, 2014 12:47:09 AM
> > >> Subject: [Engine-devel] Setup in latest master apparently broken
> > >>
> > >> The setup tool in the latest master (hash e992aa) is apparently broken,
> > >> it fails with the following message:
> > >>
> > >> [ ERROR ] Failed to execute stage 'Misc configuration': 'module' object
> > >> has no attribute 'processTemplate'
> > >>
> > >> Traceback (most recent call last):
> > >>    File "/usr/lib/python2.7/site-packages/otopi/context.py", line 142,
> > >>    in
> > >> _executeMethod
> > >>      method['method']()
> > >>    File
> > >> "/usr/share/ovirt-engine/setup/bin/../plugins/ovirt-engine-setup/ovirt-engine/apache/ovirt_engine.py",
> > >> line 67, in _misc
> > >>      content=outil.processTemplate(
> > >> AttributeError: 'module' object has no attribute 'processTemplate'
> > >>
> > >> The code there is importing "util" from "ovirt_engine", but printing the
> > >
> > > Are you sure it does not 'from ovirt_engine import util as outil'?
> > >
> > >> value of the "util" result gives the following:
> > >>
> > >> <module 'otopi.util' from
> > >> '/usr/lib/python2.7/site-packages/otopi/util.pyc'>
> > >
> > > You are probably referring to http://gerrit.ovirt.org/22827 .
> > > This change did not touch the spec file/requirements, so you need to
> > > manually
> > > make sure you have latest relevant packages.
> > >
> > > I didn't try that, though - I might be wrong...
> > 
> > worked around with:
> > 
> > git revert 6aee0c5d0eb9b0229950bb9f02aa3d206a0bd0a7
> > and
> > make -e install-dev EXTRA_BUILD_FLAGS="-pl
> > org.ovirt.engine:engine-server-ear"
> > 
> > Alon?
> 
> Please do not revert.
> 
> Try:
> $ rm -fr $HOME/ovirt-engine/share/ovirt-engine/setup
> $ make install-dev PREFIX=$HOME/ovirt-engine DEV_REBUILD=0
> 

Same problem appears also to me, when trying to setup engine installed
from newly created RPMs on F19. Installation log contains:

2014-01-06 11:28:31 DEBUG otopi.context context._executeMethod:138 Stage misc METHOD otopi.plugins.ovirt_engine_setup.base.network.firewall_manager.Plugin._prepare_examples
2014-01-06 11:28:31 DEBUG otopi.transaction transaction._prepare:77 preparing 'File transaction for '/etc/ovirt-engine/firewalld/ovirt-postgres.xml''
2014-01-06 11:28:31 DEBUG otopi.filetransaction filetransaction.prepare:189 file '/etc/ovirt-engine/firewalld/ovirt-postgres.xml' missing
2014-01-06 11:28:32 DEBUG otopi.transaction transaction._prepare:77 preparing 'File transaction for '/etc/ovirt-engine/firewalld/ovirt-websocket-proxy.xml''
2014-01-06 11:28:32 DEBUG otopi.filetransaction filetransaction.prepare:189 file '/etc/ovirt-engine/firewalld/ovirt-websocket-proxy.xml' missing
2014-01-06 11:28:32 DEBUG otopi.transaction transaction._prepare:77 preparing 'File transaction for '/etc/ovirt-engine/firewalld/ovirt-http.xml''
2014-01-06 11:28:32 DEBUG otopi.filetransaction filetransaction.prepare:189 file '/etc/ovirt-engine/firewalld/ovirt-http.xml' missing
2014-01-06 11:28:32 DEBUG otopi.transaction transaction._prepare:77 preparing 'File transaction for '/etc/ovirt-engine/firewalld/ovirt-https.xml''
2014-01-06 11:28:32 DEBUG otopi.filetransaction filetransaction.prepare:189 file '/etc/ovirt-engine/firewalld/ovirt-https.xml' missing
2014-01-06 11:28:32 DEBUG otopi.transaction transaction._prepare:77 preparing 'File transaction for '/etc/ovirt-engine/iptables.example''
2014-01-06 11:28:32 DEBUG otopi.filetransaction filetransaction.prepare:189 file '/etc/ovirt-engine/iptables.example' missing
2014-01-06 11:28:32 DEBUG otopi.context context._executeMethod:138 Stage misc METHOD otopi.plugins.ovirt_engine_setup.ovirt_engine.all-in-one.core.Plugin._misc
2014-01-06 11:28:32 DEBUG otopi.context context._executeMethod:144 condition False
2014-01-06 11:28:32 DEBUG otopi.context context._executeMethod:138 Stage misc METHOD otopi.plugins.ovirt_engine_setup.ovirt_engine.all-in-one.storage.Plugin._misc
2014-01-06 11:28:32 DEBUG otopi.context context._executeMethod:144 condition False
2014-01-06 11:28:32 DEBUG otopi.context context._executeMethod:138 Stage misc METHOD otopi.plugins.ovirt_engine_setup.ovirt_engine.all-in-one.vdsm.Plugin._misc
2014-01-06 11:28:32 DEBUG otopi.context context._executeMethod:144 condition False
2014-01-06 11:28:32 DEBUG otopi.context context._executeMethod:138 Stage misc METHOD otopi.plugins.ovirt_engine_setup.ovirt_engine.apache.ovirt_engine.Plugin._misc
2014-01-06 11:28:32 DEBUG otopi.context context._executeMethod:152 method exception
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/otopi/context.py", line 142, in _executeMethod
    method['method']()
  File "/usr/share/ovirt-engine/setup/bin/../plugins/ovirt-engine-setup/ovirt-engine/apache/ovirt_engine.py", line 67, in _misc
    content=outil.processTemplate(
AttributeError: 'module' object has no attribute 'processTemplate'
2014-01-06 11:28:32 ERROR otopi.context context._executeMethod:161 Failed to execute stage 'Misc configuration': 'module' object has no attribute 'processTemplate'
2014-01-06 11:28:32 DEBUG otopi.transaction transaction.abort:131 aborting 'Database Transaction'
2014-01-06 11:28:32 DEBUG otopi.transaction transaction.abort:131 aborting 'Yum Transaction'
2014-01-06 11:28:32 INFO otopi.plugins.otopi.packagers.yumpackager yumpackager.info:92 Yum Performing yum transaction rollback
Loaded plugins: langpacks, refresh-packagekit, versionlock


Latest available otopi packages installed:

otopi-1.2.0-0.0.master.20131229.gitb973086.fc19.noarch
otopi-java-1.2.0-0.0.master.20131229.gitb973086.fc19.noarch





More information about the Engine-devel mailing list