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