[ovirt-users] rename ovirt-engine

Yedidyah Bar David didi at redhat.com
Mon Jan 12 13:25:17 UTC 2015


----- Original Message -----
> From: "Koen Vanoppen" <vanoppen.koen at gmail.com>
> To: users at ovirt.org
> Sent: Monday, January 12, 2015 2:58:06 PM
> Subject: Re: [ovirt-users] rename ovirt-engine
> 
> Oh yeah, we are using ovirt 3.5 :-)
> 
> 2015-01-12 13:57 GMT+01:00 Koen Vanoppen < vanoppen.koen at gmail.com > :
> 
> 
> 
> Dear all,
> 
> A while ago we migrated our engine to a new host with a new name.
> But now, we come to realistion that our certificate is still using the old
> name of the host.
> I tried to run the ovirt-engine-rename script, but after typed the new
> hostname I get this output:
> 
> [ INFO ] The following files will be updated:
> 
> /etc/ovirt-engine/engine.conf.d/10-setup-protocols.conf
> /etc/ovirt-engine/imageuploader.conf.d/10-engine-setup.conf
> /etc/ovirt-engine/isouploader.conf.d/10-engine-setup.conf
> /etc/ovirt-engine/logcollector.conf.d/10-engine-setup.conf
> /etc/pki/ovirt-engine/cert.conf
> /etc/pki/ovirt-engine/cert.template
> /etc/pki/ovirt-engine/certs/apache.cer
> /etc/pki/ovirt-engine/keys/apache.key.nopass
> /etc/pki/ovirt-engine/keys/apache.p12
> 
> [ INFO ] Stage: Transaction setup
> [ INFO ] Stopping engine service
> [ INFO ] Stopping ovirt-fence-kdump-listener service
> [ INFO ] Stopping websocket-proxy service
> [ INFO ] Stage: Misc configuration
> [ INFO ] Stage: Package installation
> [ INFO ] Stage: Misc configuration
> [ ERROR ] Failed to execute stage 'Misc configuration': invalid literal for
> int() with base 10: 'None'
> [ INFO ] Stage: Clean up
> Log file is located at
> /var/log/ovirt-engine/setup/ovirt-engine-rename-20150112135225-wfbear.log
> [ INFO ] Generating answer file
> '/var/lib/ovirt-engine/setup/answers/20150112135247-rename.conf'
> [ INFO ] Stage: Pre-termination
> [ INFO ] Stage: Termination
> [ ERROR ] Execution of rename failed
> 
> 
> From the log file:
> 
> 2015-01-12 13:52:46 DEBUG otopi.plugins.otopi.services.rhel
> plugin.executeRaw:785 execute: ('/sbin/service', 'ovirt-websocket-proxy',
> 'stop'), executable='None', cwd='None', env=None
> 2015-01-12 13:52:47 DEBUG otopi.plugins.otopi.services.rhel
> plugin.executeRaw:803 execute-result: ('/sbin/service',
> 'ovirt-websocket-proxy', 'stop'), rc=0
> 2015-01-12 13:52:47 DEBUG otopi.plugins.otopi.services.rhel
> plugin.execute:861 execute-output: ('/sbin/service',
> 'ovirt-websocket-proxy', 'stop') stdout:
> Stopping oVirt Engine websockets proxy: [ OK ]
> 
> 2015-01-12 13:52:47 DEBUG otopi.plugins.otopi.services.rhel
> plugin.execute:866 execute-output: ('/sbin/service',
> 'ovirt-websocket-proxy', 'stop') stderr:
> 
> 
> 2015-01-12 13:52:47 INFO otopi.context context.runSequence:417 Stage: Misc
> configuration
> 2015-01-12 13:52:47 DEBUG otopi.context context.runSequence:421 STAGE
> early_misc
> 2015-01-12 13:52:47 DEBUG otopi.context context._executeMethod:138 Stage
> early_misc METHOD otopi.plugins.otopi.network.firewalld.Plugin._early_misc
> 2015-01-12 13:52:47 DEBUG otopi.context context._executeMethod:144 condition
> False
> 2015-01-12 13:52:47 INFO otopi.context context.runSequence:417 Stage: Package
> installation
> 2015-01-12 13:52:47 DEBUG otopi.context context.runSequence:421 STAGE
> packages
> 2015-01-12 13:52:47 DEBUG otopi.context context._executeMethod:138 Stage
> packages METHOD otopi.plugins.otopi.network.iptables.Plugin._packages
> 2015-01-12 13:52:47 DEBUG otopi.context context._executeMethod:144 condition
> False
> 2015-01-12 13:52:47 DEBUG otopi.context context._executeMethod:138 Stage
> packages METHOD otopi.plugins.otopi.packagers.yumpackager.Plugin._packages
> 2015-01-12 13:52:47 DEBUG otopi.context context._executeMethod:144 condition
> False
> 2015-01-12 13:52:47 INFO otopi.context context.runSequence:417 Stage: Misc
> configuration
> 2015-01-12 13:52:47 DEBUG otopi.context context.runSequence:421 STAGE misc
> 2015-01-12 13:52:47 DEBUG otopi.context context._executeMethod:138 Stage misc
> METHOD otopi.plugins.otopi.system.command.Plugin._misc
> 2015-01-12 13:52:47 DEBUG otopi.context context._executeMethod:138 Stage misc
> METHOD otopi.plugins.otopi.network.firewalld.Plugin._misc
> 2015-01-12 13:52:47 DEBUG otopi.context context._executeMethod:144 condition
> False
> 2015-01-12 13:52:47 DEBUG otopi.context context._executeMethod:138 Stage misc
> METHOD otopi.plugins.otopi.network.iptables.Plugin._store_iptables
> 2015-01-12 13:52:47 DEBUG otopi.context context._executeMethod:144 condition
> False
> 2015-01-12 13:52:47 DEBUG otopi.context context._executeMethod:138 Stage misc
> METHOD otopi.plugins.otopi.network.ssh.Plugin._append_key
> 2015-01-12 13:52:47 DEBUG otopi.context context._executeMethod:144 condition
> False
> 2015-01-12 13:52:47 DEBUG otopi.context context._executeMethod:138 Stage misc
> METHOD otopi.plugins.otopi.system.clock.Plugin._set_clock
> 2015-01-12 13:52:47 DEBUG otopi.context context._executeMethod:144 condition
> False
> 2015-01-12 13:52:47 DEBUG otopi.context context._executeMethod:138 Stage misc
> METHOD otopi.plugins.ovirt_engine_common.ovirt_engine.db.pgpass.Plugin._misc
> 2015-01-12 13:52:47 DEBUG otopi.context context.dumpEnvironment:490
> ENVIRONMENT DUMP - BEGIN
> 2015-01-12 13:52:47 DEBUG otopi.context context.dumpEnvironment:500 ENV
> OVESETUP_DB/pgPassFile=str:'/tmp/tmpHWoEfz'
> 2015-01-12 13:52:47 DEBUG otopi.context context.dumpEnvironment:504
> ENVIRONMENT DUMP - END
> 2015-01-12 13:52:47 DEBUG otopi.context context._executeMethod:138 Stage misc
> METHOD
> otopi.plugins.ovirt_engine_rename.ovirt-engine.database.Plugin._connection
> 2015-01-12 13:52:47 DEBUG otopi.context context.dumpEnvironment:490
> ENVIRONMENT DUMP - BEGIN
> 2015-01-12 13:52:47 DEBUG otopi.context context.dumpEnvironment:500 ENV
> OVESETUP_DB/connection=connection:'<connection object at 0x2977e50; dsn:
> 'dbname=engine host=localhost port=5432 user=engine password=xxxxxxxx
> sslmode=allow', closed: 0>'
> 2015-01-12 13:52:47 DEBUG otopi.context context.dumpEnvironment:500 ENV
> OVESETUP_DB/statement=Statement:'<ovirt_engine_setup.engine_common.database.Statement
> object at 0x2ab0850>'
> 2015-01-12 13:52:47 DEBUG otopi.context context.dumpEnvironment:504
> ENVIRONMENT DUMP - END
> 2015-01-12 13:52:47 DEBUG otopi.context context._executeMethod:138 Stage misc
> METHOD otopi.plugins.ovirt_engine_rename.ovirt-engine.database.Plugin._misc
> 2015-01-12 13:52:47 DEBUG otopi.ovirt_engine_setup.engine_common.database
> database.execute:164 Database: 'None', Statement: '
> select version, option_value
> from vdc_options
> where option_name = %(name)s
> ', args: {'name': 'RedirectServletReportsPage'}
> 2015-01-12 13:52:47 DEBUG otopi.ovirt_engine_setup.engine_common.database
> database.execute:214 Result: [{'version': 'general', 'option_value':
> '//ovirtmgmt01prod.brusselsairport.aero:None/ovirt-engine-reports'}]
> 2015-01-12 13:52:47 DEBUG otopi.context context._executeMethod:152 method
> exception
> Traceback (most recent call last):
> File "/usr/lib/python2.6/site-packages/otopi/context.py", line 142, in
> _executeMethod
> method['method']()
> File
> "/usr/share/ovirt-engine/setup/bin/../plugins/ovirt-engine-rename/ovirt-engine/database.py",
> line 176, in _misc
> ulist[1] = newfqdn + ":" + str(u.port)
> File "/usr/lib64/python2.6/urlparse.py", line 105, in port
> return int(port, 10)
> ValueError: invalid literal for int() with base 10: 'None'
> 2015-01-12 13:52:47 ERROR otopi.context context._executeMethod:161 Failed to
> execute stage 'Misc configuration': invalid literal for int() with base 10:
> 'None'
> 2015-01-12 13:52:47 DEBUG otopi.transaction transaction.abort:131 aborting
> 'Database Transaction'
> 2015-01-12 13:52:47 DEBUG otopi.context context.dumpEnvironment:490
> ENVIRONMENT DUMP - BEGIN
> 2015-01-12 13:52:47 DEBUG otopi.context context.dumpEnvironment:500 ENV
> BASE/error=bool:'True'
> 2015-01-12 13:52:47 DEBUG otopi.context context.dumpEnvironment:500 ENV
> BASE/exceptionInfo=list:'[(<type 'exceptions.ValueError'>,
> ValueError("invalid literal for int() with base 10: 'None'",), <traceback
> object at 0x2ae7ea8>)]'
> 2015-01-12 13:52:47 DEBUG otopi.context context.dumpEnvironment:500 ENV
> OVESETUP_DB/connection=NoneType:'None'
> 2015-01-12 13:52:47 DEBUG otopi.context context.dumpEnvironment:504
> ENVIRONMENT DUMP - END
> 2015-01-12 13:52:47 INFO otopi.context context.runSequence:417 Stage: Clean
> up
> 2015-01-12 13:52:47 DEBUG otopi.context context.runSequence:421 STAGE cleanup
> 
> 
> Any ideas?

Fixed by [1], will be included in 3.5.1.

[1] http://gerrit.ovirt.org/#/q/If22134524c7699d53fb944b9b26dc158ac71ea49,n,z
-- 
Didi



More information about the Users mailing list