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

Alastair Neil ajneil.tech at gmail.com
Sun Nov 2 04:37:23 UTC 2014


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.


On Fri Oct 31 2014 at 4:35:27 AM Jiri Moskovcak <jmoskovc at redhat.com> wrote:

> Hi Alastair,
> I need the engine.log to debug it, because the actual problem is logged
> there.
>
> Thanks,
> Jirka
>
> On 10/29/2014 08:58 PM, Alastair Neil wrote:
> > 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
> > <mailto: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.xxxxx.xxx.edu>
> >              <http://ovirt-admin-hosted.__vsnet.gmu.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-----
> >
> >         MIID3DCCAsSgAwIBAgICEAAwDQYJKo__ZIhvcNAQEFBQAwTzELMAkGA1UEBhMC
> __VVMxFjAUBgNVBAoT
> >
> >         DXZzbmV0LmdtdS5lZHUxKDAmBgNVBA__MTH292aXJ0LWFkbWluLnZzbmV0Lmdt
> __dS5lZHUuNzIyNDcw
> >
> >         IhcRMTMxMTExMTk1NTQ1KzAwMDAXDT__IzMTExMDE5NTU0NVowTzELMAkGA1UE
> __BhMCVVMxFjAUBgNV
> >
> >         BAoTDXZzbmV0LmdtdS5lZHUxKDAmBg__NVBAMTH292aXJ0LWFkbWluLnZzbmV0
> __LmdtdS5lZHUuNzIy
> >
> >         NDcwggEiMA0GCSqGSIb3DQEBAQUAA4__IBDwAwggEKAoIBAQDAzjsdTOPIhruA
> __/TvupQ+syMdVu8GT
> >
> >         VJ9IlFdqc/__RhiV9YB6snYAF6MIeWKnW0eOL9jY/_
> _5TmfIqY/+rvYvLhPui1/__612KoW9kEcZXUw0k-2
> >
> >         ntz1i+wHv5PEq1Cvn/__G8mI9b56EFiiYPfAzcdKGbJ8iqafFP
> __W71/612KoW9kEcZXUwyUXLHF01Yo
> >
> >         nQGAtjL+VGgY6jWaaFD4j/__5XTkzfcybI8jAW8o97vfTrnmqe+__
> 2cvIUyip9l5KQJjblO6FDjpJJUC
> >
> >         MhyDEjJPCKAT1kW1f3E/__t8lHD4UUsMpX4rB142oGwBo5st3sGl
> __Uks5fFLHtYjFTUYSSmTwOlnq+t
> >
> >         D8HFr01lAgMBAAGjgb0wgbowHQYDVR__0OBBYEFFpdSy5ACG6PC8YtE8vGRYvS
> __YyI6MHgGA1UdIwRx
> >
> >         MG+__AFFpdSy5ACG6PC8YtE8vGRYvSYyI6o__
> VOkUTBPMQswCQYDVQQGEwJVUzEWMBQ__GA1UEChMNdnNu
> >
> >         ZXQuZ211LmVkdTEoMCYGA1UEAxMfb3__ZpcnQtYWRtaW4udnNuZXQuZ211LmVk
> __dS43MjI0N4ICEAAw
> >
> >         DwYDVR0TAQH/BAUwAwEB/__zAOBgNVHQ8BAf8EBAMCAQYwDQYJKoZ
> __IhvcNAQEFBQADggEBAKqhXoL/
> >
> >         jlVhw9qasoqMnJw6ypHjJQCVAukCHv__wioHVz+XwvIcIGuod+__
> rHOcvexPZyCkacU2sOaIPjnyv8mJ
> >
> >         sNQ4nKW/oGwUfiKBgsvjv+__cHAaqcQNn7MI0VDL71ulYq8UpW0bX3
> __n5fafbstbdN1K2uad3UZH0ae
> >
> >         pv+__gLiCXIKTmTtRtHCiKAxVw7Nx48rN8j__JyzbP0FoK0+__
> uddrI4TSJDfa5F3USdiYCk/__bPCLThDPe
> >
> >         UgpyVDXH11c+j+__Bp8IKUvNLLw6gjBkDkPa6oS7qKIP9D
> __aVuroJyUO7OQOes3Uz54+QGc1A+__Zewv+
> >              2mgdbFVYcsm1qpxBYL6R5fK2ThMz4r__8=
> >              -----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
> >
> >         AAAAB3NzaC1yc2EAAAADAQABAAABAQ__CpmyaDlP8Kt/yDb/__
> kB4OaIdPx2sgH8T5Ra6hBRGHMxnTty__kajnDj9WMannNc0F3d0htvVQXPKZYx
> __xsXxNeHq00Ga/__agnCjsYM9EjzujdsBqvyOTjlVX3BVW__
> hWGZu5yNxYwpvdQBRCzhHibgqaafWN__RvaixUeO1VAlU+q5W4bZDxJwKui+__
> Bf1dLuZw94zHKs3jiGFcQOegJUVYmW__uLVh5GH6SNLMLdbJdr4B5MwlK8ItiO
> __C9XgUdH0RxN56Y1PEUkLserNOW/__FxsXuf+__cbWRsMtVa5xj82AlDWQUjyQleC91Nl__
> 7FT3OHGU1nJf289EjzujdsBqvyOTjl__VX3BV5
> >              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.xxxxx.xxx.edu>
> >              <http://ovirt-admin-hosted.__xxvsnet.gmu.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.xxxxx.xxx.edu>
> >              <http://ovirt-admin-hosted.__vsnet.gmu.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 <mailto:Users at ovirt.org>
> >         http://lists.ovirt.org/__mailman/listinfo/users
> >         <http://lists.ovirt.org/mailman/listinfo/users>
> >
> >
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ovirt.org/pipermail/users/attachments/20141102/fcd40802/attachment-0001.html>


More information about the Users mailing list