<div dir="ltr">OK I seem to be having some fundamental confusion about this migration.<div><br></div><div><br></div><div>I have an existing ovirt 3.5 (upgraded from 3.4) setup with a Data Center containing four clusters, 3 VM clusters for 3 differenc classes of CPU hosts (Penryn, Nehalem, and SandyBridge). I also have a gluster storage cluster.</div><div><br></div><div>There are 4 storage domains, an Export domain (Export-Dom1) nfs v1, and ISO domain (Gluster-ISOs) posix FS v1, a Data domain (Gluster Data) GlusterFS V3, and a Data (Master) (Gluster-VM-Store) GlusterFS v3.</div><div><br></div><div>As Gluster replica 2 is not considered adequate for the hosted-engine storage I created a volume in the gluster store and exported it as NFS. This is what I planned to use as the storage pool for the hosted engine. So far so good.</div><div><br></div><div>I have tried the deployment several times now, and it fails with the following:</div><div><br></div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">[ ERROR ] Cannot automatically add the host to cluster None: HTTP Status 401 <br>[ ERROR ] Failed to execute stage 'Closing up': Cannot add the host to cluster None</blockquote></div><div><br></div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">2014-10-29 15:26:11 DEBUG otopi.plugins.ovirt_hosted_engine_setup.engine.add_host add_host._closeup:502 Cannot add the host to cluster None<br>Traceback (most recent call last):<br> File "/usr/share/ovirt-hosted-engine-setup/scripts/../plugins/ovirt-hosted-engine-setup/engine/add_host.py", line 426, in _closeup<br> ca_file=self.cert,<br> File "/usr/lib/python2.6/site-packages/ovirtsdk/api.py", line 154, in __init__<br> url=''<br> File "/usr/lib/python2.6/site-packages/ovirtsdk/infrastructure/proxy.py", line 118, in request<br> persistent_auth=self._persistent_auth)<br> File "/usr/lib/python2.6/site-packages/ovirtsdk/infrastructure/proxy.py", line 146, in __doRequest<br> persistent_auth=persistent_auth<br> File "/usr/lib/python2.6/site-packages/ovirtsdk/web/connection.py", line 134, in doRequest<br> raise RequestError, response<br>RequestError: <br>status: 401<br>reason: Unauthorized<br>detail: HTTP Status 401<br>2014-10-29 15:26:11 ERROR otopi.plugins.ovirt_hosted_engine_setup.engine.add_host add_host._closeup:510 Cannot automatically add the host to <br>cluster None:<br>HTTP Status 401<br>2014-10-29 15:26:11 DEBUG otopi.context context._executeMethod:152 method exception<br>Traceback (most recent call last):<br> File "/usr/lib/python2.6/site-packages/otopi/context.py", line 142, in _executeMethod<br> method['method']()<br> File "/usr/share/ovirt-hosted-engine-setup/scripts/../plugins/ovirt-hosted-engine-setup/engine/add_host.py", line 517, in _closeup<br> cluster=cluster_name,<br>RuntimeError: Cannot add the host to cluster None</blockquote></div><div><br></div><div><br></div><div>The hosted-engine host cluster name it seems is set to "None", and then fails to add the host as there is no cluster "None" in the restored engine. Presumably the storage domain would need to be added too, however I don't ever seem to see any message about this</div><div><br></div><div>I recall being prompted for a data-center name and even a storage-domain name, but not a cluster name, so am I missing a step. I could use some guidance as I am stumped. Is there some pre-migration tasks I am failing to do in the original engine?</div><div> </div><div><br></div><div><br></div><div><br></div><div>.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 29 October 2014 03:10, Jiri Moskovcak <span dir="ltr"><<a href="mailto:jmoskovc@redhat.com" target="_blank">jmoskovc@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 10/27/2014 06:22 PM, Alastair Neil wrote:<br>
</span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
After belatedly realising that no engine for EL7 is planned for 3.5 I<br>
tried using FC20:<br>
<br>
I used a database called engine with user engine on the VM to restore to.<br>
The engine-backup restore appeared to complete with no errors save the<br>
canonical complaint about less that 16GB of memory being available.<br>
However on completion the host the hosted-engine-deploy threw this error:<br>
<br>
Failed to execute stage 'Closing up': The host name<br>
"<a href="http://ovirt-admin-hosted.xxxxx.xxx.edu" target="_blank">ovirt-admin-hosted.xxxxx.xxx.<u></u>edu</a><br></span>
<<a href="http://ovirt-admin-hosted.vsnet.gmu.edu" target="_blank">http://ovirt-admin-hosted.<u></u>vsnet.gmu.edu</a>>" contained in the URL<div><div class="h5"><br>
doesn't match any of the names in the server certificate.<br>
<br>
<br>
from the setup log<br>
<br>
2014-10-27 12:55:49 DEBUG<br>
otopi.ovirt_hosted_engine_<u></u>setup.check_liveliness<br>
check_liveliness.isEngineUp:46 Checking for Engine health status<br>
2014-10-27 12:55:50 INFO<br>
otopi.ovirt_hosted_engine_<u></u>setup.check_liveliness<br>
check_liveliness.isEngineUp:64 Engine replied: DB Up!Welcome to<br>
Health Status!<br>
2014-10-27 12:55:50 DEBUG otopi.context context._executeMethod:138<br>
Stage closeup METHOD<br>
otopi.plugins.ovirt_hosted_<u></u>engine_setup.engine.add_host.<u></u>Plugin._closeup<br>
2014-10-27 12:55:50 DEBUG<br>
otopi.plugins.ovirt_hosted_<u></u>engine_setup.engine.add_host<br>
add_host._getPKICert:89 Acquiring ca.crt from the engine<br>
2014-10-27 12:55:50 DEBUG<br>
otopi.plugins.ovirt_hosted_<u></u>engine_setup.engine.add_host<br>
add_host._getPKICert:101 -----BEGIN CERTIFICATE-----<br>
MIID3DCCAsSgAwIBAgICEAAwDQYJKo<u></u>ZIhvcNAQEFBQAwTzELMAkGA1UEBhMC<u></u>VVMxFjAUBgNVBAoT<br>
DXZzbmV0LmdtdS5lZHUxKDAmBgNVBA<u></u>MTH292aXJ0LWFkbWluLnZzbmV0Lmdt<u></u>dS5lZHUuNzIyNDcw<br>
IhcRMTMxMTExMTk1NTQ1KzAwMDAXDT<u></u>IzMTExMDE5NTU0NVowTzELMAkGA1UE<u></u>BhMCVVMxFjAUBgNV<br>
BAoTDXZzbmV0LmdtdS5lZHUxKDAmBg<u></u>NVBAMTH292aXJ0LWFkbWluLnZzbmV0<u></u>LmdtdS5lZHUuNzIy<br>
NDcwggEiMA0GCSqGSIb3DQEBAQUAA4<u></u>IBDw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Pe<br>
UgpyVDXH11c+j+<u></u>Bp8IKUvNLLw6gjBkDkPa6oS7qKIP9D<u></u>aVuroJyUO7OQOes3Uz54+QGc1A+<u></u>Zewv+<br>
2mgdbFVYcsm1qpxBYL6R5fK2ThMz4r<u></u>8=<br>
-----END CERTIFICATE-----<br>
2014-10-27 12:55:50 DEBUG<br>
otopi.plugins.ovirt_hosted_<u></u>engine_setup.engine.add_host<br>
add_host._getSSHkey:111 Acquiring SSH key from the engine<br>
2014-10-27 12:55:50 DEBUG<br>
otopi.plugins.ovirt_hosted_<u></u>engine_setup.engine.add_host<br>
add_host._getSSHkey:123 ssh-rsa<br>
AAAAB3NzaC1yc2EAAAADAQABAAABAQ<u></u>CpmyaDlP8Kt/yDb/<u></u>kB4OaIdPx2sgH8T5Ra6hBRGHMxnTty<u></u>kajnDj9WMannNc0F3d0htvVQXPKZYx<u></u>xsXxNeHq00Ga/<u></u>agnCjsYM9EjzujdsBqvyOTjlVX3BVW<u></u>hWGZu5yNxYwpvdQBRCzhHibgqaafWN<u></u>RvaixUeO1VAlU+q5W4bZDxJwKui+<u></u>Bf1dLuZw94zHKs3jiGFcQOegJUVYmW<u></u>uLVh5GH6SNLMLdbJdr4B5MwlK8ItiO<u></u>C9XgUdH0RxN56Y1PEUkLserNOW/<u></u>FxsXuf+<u></u>cbWRsMtVa5xj82AlDWQUjyQleC91Nl<u></u>7FT3OHGU1nJf289EjzujdsBqvyOTjl<u></u>VX3BV5<br>
ovirt-engine<br>
2014-10-27 12:55:50 DEBUG otopi.transaction transaction._prepare:77<br>
preparing 'File transaction for '/root/.ssh/authorized_keys''<br>
2014-10-27 12:55:50 DEBUG otopi.filetransaction<br>
filetransaction.prepare:194 file '/root/.ssh/authorized_keys' missing<br>
2014-10-27 12:55:50 DEBUG otopi.transaction transaction.commit:159<br>
committing 'File transaction for '/root/.ssh/authorized_keys''<br>
2014-10-27 12:55:50 DEBUG otopi.filetransaction<br>
filetransaction.commit:327 Executing restorecon for /root/.ssh<br>
2014-10-27 12:55:50 DEBUG otopi.filetransaction<br>
filetransaction.commit:341 restorecon result rc=0, stdout=, stderr=<br>
2014-10-27 12:55:50 DEBUG<br>
otopi.plugins.ovirt_hosted_<u></u>engine_setup.engine.add_host<br>
plugin.executeRaw:785 execute: ('/sbin/restorecon', '-r',<br>
'/root/.ssh'), executable='None', cwd='None', env=None<br>
2014-10-27 12:55:50 DEBUG<br>
otopi.plugins.ovirt_hosted_<u></u>engine_setup.engine.add_host<br>
plugin.executeRaw:803 execute-result: ('/sbin/restorecon', '-r',<br>
'/root/.ssh'), rc=0<br>
2014-10-27 12:55:50 DEBUG<br>
otopi.plugins.ovirt_hosted_<u></u>engine_setup.engine.add_host<br>
plugin.execute:861 execute-output: ('/sbin/restorecon', '-r',<br>
'/root/.ssh') stdout:<br>
<br>
2014-10-27 12:55:50 DEBUG<br>
otopi.plugins.ovirt_hosted_<u></u>engine_setup.engine.add_host<br>
plugin.execute:866 execute-output: ('/sbin/restorecon', '-r',<br>
'/root/.ssh') stderr:<br>
<br>
2014-10-27 12:55:50 DEBUG<br>
otopi.plugins.ovirt_hosted_<u></u>engine_setup.engine.add_host<br>
add_host._closeup:415 Connecting to the Engine<br>
2014-10-27 12:55:50 DEBUG otopi.context context._executeMethod:152<br>
method exception<br>
Traceback (most recent call last):<br>
File "/usr/lib/python2.6/site-<u></u>packages/otopi/context.py", line<br>
142, in _executeMethod<br>
method['method']()<br>
File<br>
"/usr/share/ovirt-hosted-<u></u>engine-setup/scripts/../<u></u>plugins/ovirt-hosted-engine-<u></u>setup/engine/add_host.py",<br>
line 426, in _closeup<br>
ca_file=self.cert,<br>
File "/usr/lib/python2.6/site-<u></u>packages/ovirtsdk/api.py", line<br>
154, in __init__<br>
url=''<br>
File<br>
"/usr/lib/python2.6/site-<u></u>packages/ovirtsdk/<u></u>infrastructure/proxy.py",<br>
line 118, in request<br>
persistent_auth=self._<u></u>persistent_auth)<br>
File<br>
"/usr/lib/python2.6/site-<u></u>packages/ovirtsdk/<u></u>infrastructure/proxy.py",<br>
line 146, in __doRequest<br>
persistent_auth=persistent_<u></u>auth<br>
File<br>
"/usr/lib/python2.6/site-<u></u>packages/ovirtsdk/web/<u></u>connection.py", line<br>
118, in doRequest<br>
self.__manager.getCookiesJar()<br>
File "/usr/lib64/python2.6/httplib.<u></u>py", line 914, in request<br>
self._send_request(method, url, body, headers)<br>
File "/usr/lib64/python2.6/httplib.<u></u>py", line 951, in _send_request<br>
self.endheaders()<br>
File "/usr/lib64/python2.6/httplib.<u></u>py", line 908, in endheaders<br>
self._send_output()<br>
File "/usr/lib64/python2.6/httplib.<u></u>py", line 780, in _send_output<br>
self.send(msg)<br>
File "/usr/lib64/python2.6/httplib.<u></u>py", line 739, in send<br>
self.connect()<br>
File<br>
"/usr/lib/python2.6/site-<u></u>packages/ovirtsdk/web/<u></u>httpsconnection.py",<br>
line 72, in connect<br>
"any of the names in the server certificate." % self.host)<br>
HTTPException: The host name "<a href="http://ovirt-admin-hosted.xxxxx.xxx.edu" target="_blank">ovirt-admin-hosted.xxxxx.xxx.<u></u>edu</a><br></div></div>
<<a href="http://ovirt-admin-hosted.xxvsnet.gmu.edu" target="_blank">http://ovirt-admin-hosted.<u></u>xxvsnet.gmu.edu</a>>" contained in the URL<span class=""><br>
doesn't match any of the names in the server certificate.<br>
2014-10-27 12:55:50 ERROR otopi.context context._executeMethod:161<br>
Failed to execute stage 'Closing up': The host name<br>
"<a href="http://ovirt-admin-hosted.xxxxx.xxx.edu" target="_blank">ovirt-admin-hosted.xxxxx.xxx.<u></u>edu</a><br></span>
<<a href="http://ovirt-admin-hosted.vsnet.gmu.edu" target="_blank">http://ovirt-admin-hosted.<u></u>vsnet.gmu.edu</a>>" contained in the URL<span class=""><br>
doesn't match any of the names in the server certificate.<br>
<br>
<br>
I have a functional copy of my original engine in the VM but it is not<br>
hosted.<br>
<br>
Any ideas/Pointers?<br>
<br>
</span></blockquote>
<br>
- seems like you're restoring the engine on machine with different URL, so the certificates from the backup don't match<br>
<br>
--Jirka<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
-Alastair<br>
<br>
<br>
<br>
<br>
<br>
<br>
______________________________<u></u>_________________<br>
Users mailing list<br>
<a href="mailto:Users@ovirt.org" target="_blank">Users@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/users" target="_blank">http://lists.ovirt.org/<u></u>mailman/listinfo/users</a><br>
<br>
</blockquote>
<br>
</blockquote></div><br></div>