No need turned out to be pebkac, I had been using my domain account for so long I had the wrong admin account thus the hosted-engine failed to authenticate I have resolved the issue.<br><div><br></div><br><div class="gmail_quote">On Fri Oct 31 2014 at 4:35:27 AM Jiri Moskovcak <<a href="mailto:jmoskovc@redhat.com">jmoskovc@redhat.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Alastair,<br>
I need the engine.log to debug it, because the actual problem is logged<br>
there.<br>
<br>
Thanks,<br>
Jirka<br>
<br>
On 10/29/2014 08:58 PM, Alastair Neil wrote:<br>
> OK I seem to be having some fundamental confusion about this migration.<br>
><br>
><br>
> I have an existing ovirt 3.5 (upgraded from 3.4) setup with a Data<br>
> Center containing four clusters, 3 VM clusters for 3 differenc classes<br>
> of CPU hosts (Penryn, Nehalem, and SandyBridge). I also have a gluster<br>
> storage cluster.<br>
><br>
> There are 4 storage domains, an Export domain (Export-Dom1) nfs v1, and<br>
> ISO domain (Gluster-ISOs) posix FS v1, a Data domain (Gluster Data)<br>
> GlusterFS V3, and a Data (Master) (Gluster-VM-Store) GlusterFS v3.<br>
><br>
> As Gluster replica 2 is not considered adequate for the hosted-engine<br>
> storage I created a volume in the gluster store and exported it as NFS.<br>
> This is what I planned to use as the storage pool for the hosted<br>
> engine. So far so good.<br>
><br>
> I have tried the deployment several times now, and it fails with the<br>
> following:<br>
><br>
> [ ERROR ] Cannot automatically add the host to cluster None: HTTP<br>
> Status 401<br>
> [ ERROR ] Failed to execute stage 'Closing up': Cannot add the host<br>
> to cluster None<br>
><br>
><br>
> 2014-10-29 15:26:11 DEBUG<br>
> otopi.plugins.ovirt_hosted_<u></u>engine_setup.engine.add_host<br>
> add_host._closeup:502 Cannot add the host to cluster None<br>
> Traceback (most recent call last):<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>
> 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<br>
> otopi.plugins.ovirt_hosted_<u></u>engine_setup.engine.add_host<br>
> 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<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 517, in _closeup<br>
> cluster=cluster_name,<br>
> RuntimeError: Cannot add the host to cluster None<br>
><br>
><br>
><br>
> The hosted-engine host cluster name it seems is set to "None", and then<br>
> fails to add the host as there is no cluster "None" in the restored<br>
> engine. Presumably the storage domain would need to be added too,<br>
> however I don't ever seem to see any message about this<br>
><br>
> I recall being prompted for a data-center name and even a storage-domain<br>
> name, but not a cluster name, so am I missing a step. I could use some<br>
> guidance as I am stumped. Is there some pre-migration tasks I am<br>
> failing to do in the original engine?<br>
><br>
><br>
><br>
> .<br>
><br>
> On 29 October 2014 03:10, Jiri Moskovcak <<a href="mailto:jmoskovc@redhat.com" target="_blank">jmoskovc@redhat.com</a><br>
> <mailto:<a href="mailto:jmoskovc@redhat.com" target="_blank">jmoskovc@redhat.com</a>>> wrote:<br>
><br>
> On 10/27/2014 06:22 PM, Alastair Neil wrote:<br>
><br>
> After belatedly realising that no engine for EL7 is planned for<br>
> 3.5 I<br>
> tried using FC20:<br>
><br>
> I used a database called engine with user engine on the VM to<br>
> restore to.<br>
> The engine-backup restore appeared to complete with no errors<br>
> save the<br>
> canonical complaint about less that 16GB of memory being available.<br>
> However on completion the host the hosted-engine-deploy threw<br>
> this error:<br>
><br>
> Failed to execute stage 'Closing up': The host name<br>
> "ovirt-admin-hosted.xxxxx.xxx.<u></u>__edu<br>
> <<a href="http://ovirt-admin-hosted.xxxxx.xxx.edu" target="_blank">http://ovirt-admin-hosted.<u></u>xxxxx.xxx.edu</a>><br>
> <<a href="http://ovirt-admin-hosted." target="_blank">http://ovirt-admin-hosted.</a>__<a href="http://vsnet.gmu.edu" target="_blank">v<u></u>snet.gmu.edu</a><br>
> <<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<br>
><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<br>
> 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<br>
> context._executeMethod:138<br>
> Stage closeup METHOD<br>
><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>
><br>
> MIID3DCCAsSgAwIBAgICEAAwDQYJKo<u></u>__<u></u>ZIhvcNAQEFBQAwTzELMAkGA1UEBhMC<u></u>__VVMxFjAUBgNVBAoT<br>
><br>
> DXZzbmV0LmdtdS5lZHUxKDAmBgNVBA<u></u>__<u></u>MTH292aXJ0LWFkbWluLnZzbmV0Lmdt<u></u>__dS5lZHUuNzIyNDcw<br>
><br>
> IhcRMTMxMTExMTk1NTQ1KzAwMDAXDT<u></u>__<u></u>IzMTExMDE5NTU0NVowTzELMAkGA1UE<u></u>__BhMCVVMxFjAUBgNV<br>
><br>
> BAoTDXZzbmV0LmdtdS5lZHUxKDAmBg<u></u>__<u></u>NVBAMTH292aXJ0LWFkbWluLnZzbmV0<u></u>__LmdtdS5lZHUuNzIy<br>
><br>
> NDcwggEiMA0GCSqGSIb3DQEBAQUAA4<u></u>__<u></u>IBDwAwggEKAoIBAQDAzjsdTOPIhruA<u></u>__/TvupQ+syMdVu8GT<br>
><br>
> VJ9IlFdqc/__<u></u>RhiV9YB6snYAF6MIeWKnW0eOL9jY/_<u></u>_5TmfIqY/+rvYvLhPui1/__<u></u>612KoW9kEcZXUw0k-2<br>
><br>
> ntz1i+wHv5PEq1Cvn/__<u></u>G8mI9b56EFiiYPfAzcdKGbJ8iqafFP<u></u>__W71/612KoW9kEcZXUwyUXLHF01Yo<br>
><br>
> nQGAtjL+VGgY6jWaaFD4j/__<u></u>5XTkzfcybI8jAW8o97vfTrnmqe+__<u></u>2cvIUyip9l5KQJjblO6FDjpJJUC<br>
><br>
> MhyDEjJPCKAT1kW1f3E/__<u></u>t8lHD4UUsMpX4rB142oGwBo5st3sGl<u></u>__Uks5fFLHtYjFTUYSSmTwOlnq+t<br>
><br>
> D8HFr01lAgMBAAGjgb0wgbowHQYDVR<u></u>__<u></u>0OBBYEFFpdSy5ACG6PC8YtE8vGRYvS<u></u>__YyI6MHgGA1UdIwRx<br>
><br>
> MG+__<u></u>AFFpdSy5ACG6PC8YtE8vGRYvSYyI6o<u></u>__<u></u>VOkUTBPMQswCQYDVQQGEwJVUzEWMBQ<u></u>__GA1UEChMNdnNu<br>
><br>
> ZXQuZ211LmVkdTEoMCYGA1UEAxMfb3<u></u>__<u></u>ZpcnQtYWRtaW4udnNuZXQuZ211LmVk<u></u>__dS43MjI0N4ICEAAw<br>
><br>
> DwYDVR0TAQH/BAUwAwEB/__<u></u>zAOBgNVHQ8BAf8EBAMCAQYwDQYJKoZ<u></u>__IhvcNAQEFBQADggEBAKqhXoL/<br>
><br>
> jlVhw9qasoqMnJw6ypHjJQCVAukCHv<u></u>__wioHVz+XwvIcIGuod+__<u></u>rHOcvexPZyCkacU2sOaIPjnyv8mJ<br>
><br>
> sNQ4nKW/oGwUfiKBgsvjv+__<u></u>cHAaqcQNn7MI0VDL71ulYq8UpW0bX3<u></u>__n5fafbstbdN1K2uad3UZH0ae<br>
><br>
> pv+__<u></u>gLiCXIKTmTtRtHCiKAxVw7Nx48rN8j<u></u>__JyzbP0FoK0+__<u></u>uddrI4TSJDfa5F3USdiYCk/__<u></u>bPCLThDPe<br>
><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>
><br>
> AAAAB3NzaC1yc2EAAAADAQABAAABAQ<u></u>__CpmyaDlP8Kt/yDb/__<u></u>kB4OaIdPx2sgH8T5Ra6hBRGHMxnTty<u></u>__<u></u>kajnDj9WMannNc0F3d0htvVQXPKZYx<u></u>__xsXxNeHq00Ga/__<u></u>agnCjsYM9EjzujdsBqvyOTjlVX3BVW<u></u>__<u></u>hWGZu5yNxYwpvdQBRCzhHibgqaafWN<u></u>__RvaixUeO1VAlU+q5W4bZDxJwKui+<u></u>__<u></u>Bf1dLuZw94zHKs3jiGFcQOegJUVYmW<u></u>__<u></u>uLVh5GH6SNLMLdbJdr4B5MwlK8ItiO<u></u>__C9XgUdH0RxN56Y1PEUkLserNOW/_<u></u>_FxsXuf+__<u></u>cbWRsMtVa5xj82AlDWQUjyQleC91Nl<u></u>__<u></u>7FT3OHGU1nJf289EjzujdsBqvyOTjl<u></u>__VX3BV5<br>
> ovirt-engine<br>
> 2014-10-27 12:55:50 DEBUG otopi.transaction<br>
> 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<br>
> '/root/.ssh/authorized_keys' missing<br>
> 2014-10-27 12:55:50 DEBUG otopi.transaction<br>
> 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=,<br>
> 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',<br>
> '-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<br>
> context._executeMethod:152<br>
> method exception<br>
> Traceback (most recent call last):<br>
> File<br>
> "/usr/lib/python2.6/site-__<u></u>packages/otopi/context.py", line<br>
> 142, in _executeMethod<br>
> method['method']()<br>
> File<br>
><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<br>
> "/usr/lib/python2.6/site-__<u></u>packages/ovirtsdk/api.py", line<br>
> 154, in __init__<br>
> url=''<br>
> File<br>
><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>
><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>
><br>
> "/usr/lib/python2.6/site-__<u></u>packages/ovirtsdk/web/__<u></u>connection.py",<br>
> line<br>
> 118, in doRequest<br>
> self.__manager.getCookiesJar()<br>
> File "/usr/lib64/python2.6/httplib.<u></u>__py", line 914, in<br>
> request<br>
> self._send_request(method, url, body, headers)<br>
> File "/usr/lib64/python2.6/httplib.<u></u>__py", line 951, in<br>
> _send_request<br>
> self.endheaders()<br>
> File "/usr/lib64/python2.6/httplib.<u></u>__py", line 908, in<br>
> endheaders<br>
> self._send_output()<br>
> File "/usr/lib64/python2.6/httplib.<u></u>__py", line 780, in<br>
> _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>
><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<br>
> "ovirt-admin-hosted.xxxxx.xxx.<u></u>__edu<br>
> <<a href="http://ovirt-admin-hosted.xxxxx.xxx.edu" target="_blank">http://ovirt-admin-hosted.<u></u>xxxxx.xxx.edu</a>><br>
> <<a href="http://ovirt-admin-hosted." target="_blank">http://ovirt-admin-hosted.</a>__<a href="http://xxvsnet.gmu.edu" target="_blank">x<u></u>xvsnet.gmu.edu</a><br>
> <<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<br>
> doesn't match any of the names in the server certificate.<br>
> 2014-10-27 12:55:50 ERROR otopi.context<br>
> context._executeMethod:161<br>
> Failed to execute stage 'Closing up': The host name<br>
> "ovirt-admin-hosted.xxxxx.xxx.<u></u>__edu<br>
> <<a href="http://ovirt-admin-hosted.xxxxx.xxx.edu" target="_blank">http://ovirt-admin-hosted.<u></u>xxxxx.xxx.edu</a>><br>
> <<a href="http://ovirt-admin-hosted." target="_blank">http://ovirt-admin-hosted.</a>__<a href="http://vsnet.gmu.edu" target="_blank">v<u></u>snet.gmu.edu</a><br>
> <<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<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<br>
> it is not<br>
> hosted.<br>
><br>
> Any ideas/Pointers?<br>
><br>
><br>
> - seems like you're restoring the engine on machine with different<br>
> URL, so the certificates from the backup don't match<br>
><br>
> --Jirka<br>
><br>
><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> <mailto:<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>
> <<a href="http://lists.ovirt.org/mailman/listinfo/users" target="_blank">http://lists.ovirt.org/<u></u>mailman/listinfo/users</a>><br>
><br>
><br>
><br>
<br>
</blockquote></div>