[ovirt-users] hosted engine deploy failed 3.5 centos 6.5 host FC20 vm

Alastair Neil ajneil.tech at gmail.com
Wed Oct 29 19:58:57 UTC 2014


OK I seem to be having some fundamental confusion about this migration.


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.

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.

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.

I have tried the deployment several times now,  and it fails with the
following:

[ ERROR ] Cannot automatically add the host to cluster None: HTTP Status
> 401
> [ ERROR ] Failed to execute stage 'Closing up': Cannot add the host to
> cluster None


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
> Traceback (most recent call last):
>   File
> "/usr/share/ovirt-hosted-engine-setup/scripts/../plugins/ovirt-hosted-engine-setup/engine/add_host.py",
> line 426, in _closeup
>     ca_file=self.cert,
>   File "/usr/lib/python2.6/site-packages/ovirtsdk/api.py", line 154, in
> __init__
>     url=''
>   File
> "/usr/lib/python2.6/site-packages/ovirtsdk/infrastructure/proxy.py", line
> 118, in request
>     persistent_auth=self._persistent_auth)
>   File
> "/usr/lib/python2.6/site-packages/ovirtsdk/infrastructure/proxy.py", line
> 146, in __doRequest
>     persistent_auth=persistent_auth
>   File "/usr/lib/python2.6/site-packages/ovirtsdk/web/connection.py", line
> 134, in doRequest
>     raise RequestError, response
> RequestError:
> status: 401
> reason: Unauthorized
> detail: HTTP Status 401
> 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
> cluster None:
> HTTP Status 401
> 2014-10-29 15:26:11 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-hosted-engine-setup/scripts/../plugins/ovirt-hosted-engine-setup/engine/add_host.py",
> line 517, in _closeup
>     cluster=cluster_name,
> RuntimeError: Cannot add the host to cluster None



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

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?




.

On 29 October 2014 03:10, Jiri Moskovcak <jmoskovc at redhat.com> wrote:

> On 10/27/2014 06:22 PM, Alastair Neil wrote:
>
>> After belatedly realising that no engine for EL7 is planned for 3.5 I
>> tried using FC20:
>>
>> I used a database called engine with user engine on the VM to restore to.
>> The engine-backup restore appeared to complete with no errors save the
>> canonical complaint about less that 16GB of memory being available.
>> However on completion the host the hosted-engine-deploy threw this error:
>>
>>     Failed to execute stage 'Closing up': The host name
>>     "ovirt-admin-hosted.xxxxx.xxx.edu
>>     <http://ovirt-admin-hosted.vsnet.gmu.edu>" contained in the URL
>>
>>     doesn't match any of the names in the server certificate.
>>
>>
>> from the setup log
>>
>>     2014-10-27 12:55:49 DEBUG
>>     otopi.ovirt_hosted_engine_setup.check_liveliness
>>     check_liveliness.isEngineUp:46 Checking for Engine health status
>>     2014-10-27 12:55:50 INFO
>>     otopi.ovirt_hosted_engine_setup.check_liveliness
>>     check_liveliness.isEngineUp:64 Engine replied: DB Up!Welcome to
>>     Health Status!
>>     2014-10-27 12:55:50 DEBUG otopi.context context._executeMethod:138
>>     Stage closeup METHOD
>>     otopi.plugins.ovirt_hosted_engine_setup.engine.add_host.
>> Plugin._closeup
>>     2014-10-27 12:55:50 DEBUG
>>     otopi.plugins.ovirt_hosted_engine_setup.engine.add_host
>>     add_host._getPKICert:89 Acquiring ca.crt from the engine
>>     2014-10-27 12:55:50 DEBUG
>>     otopi.plugins.ovirt_hosted_engine_setup.engine.add_host
>>     add_host._getPKICert:101 -----BEGIN CERTIFICATE-----
>>     MIID3DCCAsSgAwIBAgICEAAwDQYJKoZIhvcNAQEFBQAwTzELMAkGA1UEBhMC
>> VVMxFjAUBgNVBAoT
>>     DXZzbmV0LmdtdS5lZHUxKDAmBgNVBAMTH292aXJ0LWFkbWluLnZzbmV0Lmdt
>> dS5lZHUuNzIyNDcw
>>     IhcRMTMxMTExMTk1NTQ1KzAwMDAXDTIzMTExMDE5NTU0NVowTzELMAkGA1UE
>> BhMCVVMxFjAUBgNV
>>     BAoTDXZzbmV0LmdtdS5lZHUxKDAmBgNVBAMTH292aXJ0LWFkbWluLnZzbmV0
>> LmdtdS5lZHUuNzIy
>>     NDcwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDAzjsdTOPIhruA
>> /TvupQ+syMdVu8GT
>>     VJ9IlFdqc/RhiV9YB6snYAF6MIeWKnW0eOL9jY/5TmfIqY/+rvYvLhPui1/
>> 612KoW9kEcZXUw0k-2
>>     ntz1i+wHv5PEq1Cvn/G8mI9b56EFiiYPfAzcdKGbJ8iqafFP
>> W71/612KoW9kEcZXUwyUXLHF01Yo
>>     nQGAtjL+VGgY6jWaaFD4j/5XTkzfcybI8jAW8o97vfTrnmqe+
>> 2cvIUyip9l5KQJjblO6FDjpJJUC
>>     MhyDEjJPCKAT1kW1f3E/t8lHD4UUsMpX4rB142oGwBo5st3sGl
>> Uks5fFLHtYjFTUYSSmTwOlnq+t
>>     D8HFr01lAgMBAAGjgb0wgbowHQYDVR0OBBYEFFpdSy5ACG6PC8YtE8vGRYvS
>> YyI6MHgGA1UdIwRx
>>     MG+AFFpdSy5ACG6PC8YtE8vGRYvSYyI6oVOkUTBPMQswCQYDVQQGEwJVUzEWMBQ
>> GA1UEChMNdnNu
>>     ZXQuZ211LmVkdTEoMCYGA1UEAxMfb3ZpcnQtYWRtaW4udnNuZXQuZ211LmVk
>> dS43MjI0N4ICEAAw
>>     DwYDVR0TAQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMCAQYwDQYJKoZ
>> IhvcNAQEFBQADggEBAKqhXoL/
>>     jlVhw9qasoqMnJw6ypHjJQCVAukCHvwioHVz+XwvIcIGuod+
>> rHOcvexPZyCkacU2sOaIPjnyv8mJ
>>     sNQ4nKW/oGwUfiKBgsvjv+cHAaqcQNn7MI0VDL71ulYq8UpW0bX3
>> n5fafbstbdN1K2uad3UZH0ae
>>     pv+gLiCXIKTmTtRtHCiKAxVw7Nx48rN8jJyzbP0FoK0+uddrI4TSJDfa5F3USdiYCk/
>> bPCLThDPe
>>     UgpyVDXH11c+j+Bp8IKUvNLLw6gjBkDkPa6oS7qKIP9D
>> aVuroJyUO7OQOes3Uz54+QGc1A+Zewv+
>>     2mgdbFVYcsm1qpxBYL6R5fK2ThMz4r8=
>>     -----END CERTIFICATE-----
>>     2014-10-27 12:55:50 DEBUG
>>     otopi.plugins.ovirt_hosted_engine_setup.engine.add_host
>>     add_host._getSSHkey:111 Acquiring SSH key from the engine
>>     2014-10-27 12:55:50 DEBUG
>>     otopi.plugins.ovirt_hosted_engine_setup.engine.add_host
>>     add_host._getSSHkey:123 ssh-rsa
>>     AAAAB3NzaC1yc2EAAAADAQABAAABAQCpmyaDlP8Kt/yDb/
>> kB4OaIdPx2sgH8T5Ra6hBRGHMxnTtykajnDj9WMannNc0F3d0htvVQXPKZYxxsXxNeHq00Ga/
>> agnCjsYM9EjzujdsBqvyOTjlVX3BVWhWGZu5yNxYwpvdQBRCzhHibgqaafWN
>> RvaixUeO1VAlU+q5W4bZDxJwKui+Bf1dLuZw94zHKs3jiGFcQOegJUVYmW
>> uLVh5GH6SNLMLdbJdr4B5MwlK8ItiOC9XgUdH0RxN56Y1PEUkLserNOW/FxsXuf+
>> cbWRsMtVa5xj82AlDWQUjyQleC91Nl7FT3OHGU1nJf289EjzujdsBqvyOTjlVX3BV5
>>     ovirt-engine
>>     2014-10-27 12:55:50 DEBUG otopi.transaction transaction._prepare:77
>>     preparing 'File transaction for '/root/.ssh/authorized_keys''
>>     2014-10-27 12:55:50 DEBUG otopi.filetransaction
>>     filetransaction.prepare:194 file '/root/.ssh/authorized_keys' missing
>>     2014-10-27 12:55:50 DEBUG otopi.transaction transaction.commit:159
>>     committing 'File transaction for '/root/.ssh/authorized_keys''
>>     2014-10-27 12:55:50 DEBUG otopi.filetransaction
>>     filetransaction.commit:327 Executing restorecon for /root/.ssh
>>     2014-10-27 12:55:50 DEBUG otopi.filetransaction
>>     filetransaction.commit:341 restorecon result rc=0, stdout=, stderr=
>>     2014-10-27 12:55:50 DEBUG
>>     otopi.plugins.ovirt_hosted_engine_setup.engine.add_host
>>     plugin.executeRaw:785 execute: ('/sbin/restorecon', '-r',
>>     '/root/.ssh'), executable='None', cwd='None', env=None
>>     2014-10-27 12:55:50 DEBUG
>>     otopi.plugins.ovirt_hosted_engine_setup.engine.add_host
>>     plugin.executeRaw:803 execute-result: ('/sbin/restorecon', '-r',
>>     '/root/.ssh'), rc=0
>>     2014-10-27 12:55:50 DEBUG
>>     otopi.plugins.ovirt_hosted_engine_setup.engine.add_host
>>     plugin.execute:861 execute-output: ('/sbin/restorecon', '-r',
>>     '/root/.ssh') stdout:
>>
>>     2014-10-27 12:55:50 DEBUG
>>     otopi.plugins.ovirt_hosted_engine_setup.engine.add_host
>>     plugin.execute:866 execute-output: ('/sbin/restorecon', '-r',
>>     '/root/.ssh') stderr:
>>
>>     2014-10-27 12:55:50 DEBUG
>>     otopi.plugins.ovirt_hosted_engine_setup.engine.add_host
>>     add_host._closeup:415 Connecting to the Engine
>>     2014-10-27 12:55:50 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-hosted-engine-setup/scripts/../
>> plugins/ovirt-hosted-engine-setup/engine/add_host.py",
>>     line 426, in _closeup
>>          ca_file=self.cert,
>>        File "/usr/lib/python2.6/site-packages/ovirtsdk/api.py", line
>>     154, in __init__
>>          url=''
>>        File
>>     "/usr/lib/python2.6/site-packages/ovirtsdk/infrastructure/proxy.py",
>>     line 118, in request
>>          persistent_auth=self._persistent_auth)
>>        File
>>     "/usr/lib/python2.6/site-packages/ovirtsdk/infrastructure/proxy.py",
>>     line 146, in __doRequest
>>          persistent_auth=persistent_auth
>>        File
>>     "/usr/lib/python2.6/site-packages/ovirtsdk/web/connection.py", line
>>     118, in doRequest
>>          self.__manager.getCookiesJar()
>>        File "/usr/lib64/python2.6/httplib.py", line 914, in request
>>          self._send_request(method, url, body, headers)
>>        File "/usr/lib64/python2.6/httplib.py", line 951, in _send_request
>>          self.endheaders()
>>        File "/usr/lib64/python2.6/httplib.py", line 908, in endheaders
>>          self._send_output()
>>        File "/usr/lib64/python2.6/httplib.py", line 780, in _send_output
>>          self.send(msg)
>>        File "/usr/lib64/python2.6/httplib.py", line 739, in send
>>          self.connect()
>>        File
>>     "/usr/lib/python2.6/site-packages/ovirtsdk/web/httpsconnection.py",
>>     line 72, in connect
>>          "any of the names in the server certificate." % self.host)
>>     HTTPException: The host name "ovirt-admin-hosted.xxxxx.xxx.edu
>>     <http://ovirt-admin-hosted.xxvsnet.gmu.edu>" contained in the URL
>>     doesn't match any of the names in the server certificate.
>>     2014-10-27 12:55:50 ERROR otopi.context context._executeMethod:161
>>     Failed to execute stage 'Closing up': The host name
>>     "ovirt-admin-hosted.xxxxx.xxx.edu
>>     <http://ovirt-admin-hosted.vsnet.gmu.edu>" contained in the URL
>>     doesn't match any of the names in the server certificate.
>>
>>
>>   I have a functional copy of my original engine in the VM but it is not
>> hosted.
>>
>> Any ideas/Pointers?
>>
>>
> - seems like you're restoring the engine on machine with different URL, so
> the certificates from the backup don't match
>
> --Jirka
>
>
>> -Alastair
>>
>>
>>
>>
>>
>>
>> _______________________________________________
>> Users mailing list
>> Users at ovirt.org
>> http://lists.ovirt.org/mailman/listinfo/users
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ovirt.org/pipermail/users/attachments/20141029/535efbbb/attachment-0001.html>


More information about the Users mailing list