From kripper at imatronix.cl Mon Apr 20 04:56:43 2015 Content-Type: multipart/mixed; boundary="===============3602189343189930992==" MIME-Version: 1.0 From: Christopher Pereira To: devel at ovirt.org Subject: [ovirt-devel] Second host detection broken in hosted-engine --deplot Date: Mon, 20 Apr 2015 05:56:40 -0300 Message-ID: <5534BF48.5050403@imatronix.cl> --===============3602189343189930992== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable This is a multi-part message in MIME format. --------------020002080300070006070002 Content-Type: text/plain; charset=3Dutf-8; format=3Dflowed Content-Transfer-Encoding: 7bit It seems like something broke recently, because now, when deploying = hosted-engine to the second host, setup is saying: [ INFO ] GlusterFS replica 3 Volume detected [ INFO ] Installing on first host How can I diagnose/fix the problem? --------------020002080300070006070002 Content-Type: text/html; charset=3Dutf-8 Content-Transfer-Encoding: 8bit It seems like something broke recently, because now, when deploying hosted-engine to the second host, setup is saying:
[ INFO=C2=A0 ] GlusterFS replica 3 Volume detected
[ INFO=C2=A0 ] Installing on first host
How can I diagnose/fix the problem?
--------------020002080300070006070002-- --===============3602189343189930992== Content-Type: multipart/alternative MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="attachment.bin" VGhpcyBpcyBhIG11bHRpLXBhcnQgbWVzc2FnZSBpbiBNSU1FIGZvcm1hdC4KLS0tLS0tLS0tLS0t LS0wMjAwMDIwODAzMDAwNzAwMDYwNzAwMDIKQ29udGVudC1UeXBlOiB0ZXh0L3BsYWluOyBjaGFy c2V0PXV0Zi04OyBmb3JtYXQ9Zmxvd2VkCkNvbnRlbnQtVHJhbnNmZXItRW5jb2Rpbmc6IDdiaXQK Ckl0IHNlZW1zIGxpa2Ugc29tZXRoaW5nIGJyb2tlIHJlY2VudGx5LCBiZWNhdXNlIG5vdywgd2hl biBkZXBsb3lpbmcgCmhvc3RlZC1lbmdpbmUgdG8gdGhlIHNlY29uZCBob3N0LCBzZXR1cCBpcyBz YXlpbmc6CgogICAgWyBJTkZPICBdIEdsdXN0ZXJGUyByZXBsaWNhIDMgVm9sdW1lIGRldGVjdGVk CiAgICBbIElORk8gIF0gSW5zdGFsbGluZyBvbiBmaXJzdCBob3N0CgpIb3cgY2FuIEkgZGlhZ25v c2UvZml4IHRoZSBwcm9ibGVtPwoKLS0tLS0tLS0tLS0tLS0wMjAwMDIwODAzMDAwNzAwMDYwNzAw MDIKQ29udGVudC1UeXBlOiB0ZXh0L2h0bWw7IGNoYXJzZXQ9dXRmLTgKQ29udGVudC1UcmFuc2Zl ci1FbmNvZGluZzogOGJpdAoKPGh0bWw+CiAgPGhlYWQ+CgogICAgPG1ldGEgaHR0cC1lcXVpdj0i Y29udGVudC10eXBlIiBjb250ZW50PSJ0ZXh0L2h0bWw7IGNoYXJzZXQ9dXRmLTgiPgogIDwvaGVh ZD4KICA8Ym9keSBiZ2NvbG9yPSIjRkZGRkZGIiB0ZXh0PSIjMDAwMDAwIj4KICAgIEl0IHNlZW1z IGxpa2Ugc29tZXRoaW5nIGJyb2tlIHJlY2VudGx5LCBiZWNhdXNlIG5vdywgd2hlbiBkZXBsb3lp bmcKICAgIGhvc3RlZC1lbmdpbmUgdG8gdGhlIHNlY29uZCBob3N0LCBzZXR1cCBpcyBzYXlpbmc6 PGJyPgogICAgPGJsb2NrcXVvdGU+WyBJTkZPwqAgXSBHbHVzdGVyRlMgcmVwbGljYSAzIFZvbHVt ZSBkZXRlY3RlZDxicj4KICAgICAgWyBJTkZPwqAgXSBJbnN0YWxsaW5nIG9uIGZpcnN0IGhvc3Q8 YnI+CiAgICA8L2Jsb2NrcXVvdGU+CiAgICBIb3cgY2FuIEkgZGlhZ25vc2UvZml4IHRoZSBwcm9i bGVtPzxicj4KICA8L2JvZHk+CjwvaHRtbD4KCi0tLS0tLS0tLS0tLS0tMDIwMDAyMDgwMzAwMDcw MDA2MDcwMDAyLS0K --===============3602189343189930992==-- From sbonazzo at redhat.com Mon Apr 20 05:03:22 2015 Content-Type: multipart/mixed; boundary="===============6637917851999387879==" MIME-Version: 1.0 From: Sandro Bonazzola To: devel at ovirt.org Subject: Re: [ovirt-devel] Second host detection broken in hosted-engine --deplot Date: Mon, 20 Apr 2015 11:02:55 +0200 Message-ID: <5534C0BF.4000808@redhat.com> In-Reply-To: 5534BF48.5050403@imatronix.cl --===============6637917851999387879== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Il 20/04/2015 10:56, Christopher Pereira ha scritto: > It seems like something broke recently, because now, when deploying hoste= d-engine to the second host, setup is saying: > = > [ INFO ] GlusterFS replica 3 Volume detected > [ INFO ] Installing on first host > = > How can I diagnose/fix the problem? The flag determining if an host is the first one or an additional one is oh= ostedcons.CoreEnv.IS_ADDITIONAL_HOST You can check the logs to see the env variables dumps on each plugin activa= tion and see the code where the variable is set. You can also send us the logs so we can help with the debugging. > = > = > _______________________________________________ > Devel mailing list > Devel(a)ovirt.org > http://lists.ovirt.org/mailman/listinfo/devel > = -- = Sandro Bonazzola Better technology. Faster innovation. Powered by community collaboration. See how it works at redhat.com --===============6637917851999387879==-- From kripper at imatronix.cl Mon Apr 20 05:21:14 2015 Content-Type: multipart/mixed; boundary="===============1133054774875876938==" MIME-Version: 1.0 From: Christopher Pereira To: devel at ovirt.org Subject: Re: [ovirt-devel] Second host detection broken in hosted-engine --deplot Date: Mon, 20 Apr 2015 06:21:06 -0300 Message-ID: <5534C502.2070404@imatronix.cl> In-Reply-To: 5534C0BF.4000808@redhat.com --===============1133054774875876938== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable On 20-04-2015 6:02, Sandro Bonazzola wrote: > Il 20/04/2015 10:56, Christopher Pereira ha scritto: >> It seems like something broke recently, because now, when deploying host= ed-engine to the second host, setup is saying: >> >> [ INFO ] GlusterFS replica 3 Volume detected >> [ INFO ] Installing on first host >> >> How can I diagnose/fix the problem? > The flag determining if an host is the first one or an additional one is = ohostedcons.CoreEnv.IS_ADDITIONAL_HOST > You can check the logs to see the env variables dumps on each plugin acti= vation and see the code where the variable is set. > You can also send us the logs so we can help with the debugging. This one? 2015-04-20 06:16:20 DEBUG otopi.context context.dumpEnvironment:499 = ENVIRONMENT DUMP - BEGIN 2015-04-20 06:16:20 DEBUG otopi.context context.dumpEnvironment:509 ENV = OVEHOSTED_STORAGE/storageDomainConnection=3Dstr:'h4.imatronix.com:engine' 2015-04-20 06:16:20 DEBUG otopi.context context.dumpEnvironment:513 = ENVIRONMENT DUMP - END 2015-04-20 06:16:20 DEBUG otopi.context context._executeMethod:141 Stage = customization METHOD = otopi.plugins.ovirt_hosted_engine_setup.storage.blockd.Plugin._customization 2015-04-20 06:16:20 DEBUG otopi.context context._executeMethod:147 = condition False 2015-04-20 06:16:20 DEBUG otopi.context context._executeMethod:141 Stage = customization METHOD = otopi.plugins.ovirt_hosted_engine_setup.storage.storage.Plugin._late_custom= ization 2015-04-20 06:16:20 DEBUG = otopi.plugins.ovirt_hosted_engine_setup.storage.storage = storage._storageServerConnection:446 connectStorageServer 2015-04-20 06:16:20 DEBUG = otopi.plugins.ovirt_hosted_engine_setup.storage.storage = storage._storageServerConnection:504 {'status': {'message': 'OK', = 'code': 0}, 'statuslist': [{'status': 0, 'id': = 'ae40054b-1fff-4848-8c43-8f8123fe4682'}]} 2015-04-20 06:16:20 DEBUG = otopi.plugins.ovirt_hosted_engine_setup.storage.storage = storage._getStorageDomainsList:403 getStorageDomainsList 2015-04-20 06:16:20 DEBUG = otopi.plugins.ovirt_hosted_engine_setup.storage.storage = storage._getStorageDomainsList:406 {'status': {'message': 'OK', 'code': = 0}, 'domlist': ['c54f691c-fc83-4a74-9c02-a68ef87e68b3']} 2015-04-20 06:16:20 DEBUG = otopi.plugins.ovirt_hosted_engine_setup.storage.storage = storage._getStorageDomainInfo:421 getStorageDomainInfo 2015-04-20 06:16:20 DEBUG = otopi.plugins.ovirt_hosted_engine_setup.storage.storage = storage._getStorageDomainInfo:424 {'status': {'message': 'OK', 'code': = 0}, 'info': {'uuid': 'c54f691c-fc83-4a74-9c02-a68ef87e68b3', 'version': = '3', 'role': 'Master', 'remotePath': 'h4.imatronix.com:engine', 'type': = 'GLUSTERFS', 'class': 'Data', 'pool': = ['61e2d6d0-f798-428d-a07e-397fc7a4f10f'], 'name': 'hosted_storage'}} 2015-04-20 06:16:20 INFO = otopi.plugins.ovirt_hosted_engine_setup.storage.storage = storage._handleHostId:119 Installing on first host 2015-04-20 06:16:20 DEBUG = otopi.plugins.ovirt_hosted_engine_setup.storage.storage = storage._storageServerConnection:446 disconnectStorageServer 2015-04-20 06:16:20 DEBUG = otopi.plugins.ovirt_hosted_engine_setup.storage.storage = storage._storageServerConnection:504 {'status': {'message': 'OK', = 'code': 0}, 'statuslist': [{'status': 0, 'id': = 'ae40054b-1fff-4848-8c43-8f8123fe4682'}]} --===============1133054774875876938==-- From didi at redhat.com Mon Apr 20 05:22:08 2015 Content-Type: multipart/mixed; boundary="===============5484151034477422482==" MIME-Version: 1.0 From: Yedidyah Bar David To: devel at ovirt.org Subject: Re: [ovirt-devel] Second host detection broken in hosted-engine --deplot Date: Mon, 20 Apr 2015 05:22:01 -0400 Message-ID: <1527649150.3203006.1429521721965.JavaMail.zimbra@redhat.com> In-Reply-To: 5534C0BF.4000808@redhat.com --===============5484151034477422482== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable ----- Original Message ----- > From: "Sandro Bonazzola" > To: "Christopher Pereira" , devel(a)ovirt.org > Sent: Monday, April 20, 2015 12:02:55 PM > Subject: Re: [ovirt-devel] Second host detection broken in hosted-engine = --deplot > = > Il 20/04/2015 10:56, Christopher Pereira ha scritto: > > It seems like something broke recently, because now, when deploying > > hosted-engine to the second host, setup is saying: > > = > > [ INFO ] GlusterFS replica 3 Volume detected > > [ INFO ] Installing on first host > > = > > How can I diagnose/fix the problem? > = > The flag determining if an host is the first one or an additional one is > ohostedcons.CoreEnv.IS_ADDITIONAL_HOST > You can check the logs to see the env variables dumps on each plugin > activation and see the code where the variable is set. Search for 'OVEHOSTED_CORE/isAdditionalHost' > You can also send us the logs so we can help with the debugging. > = > = > > = > > = > > _______________________________________________ > > Devel mailing list > > Devel(a)ovirt.org > > http://lists.ovirt.org/mailman/listinfo/devel > > = > = > = > -- > Sandro Bonazzola > Better technology. Faster innovation. Powered by community collaboration. > See how it works at redhat.com > _______________________________________________ > Devel mailing list > Devel(a)ovirt.org > http://lists.ovirt.org/mailman/listinfo/devel > = Best, -- = Didi --===============5484151034477422482==-- From sbonazzo at redhat.com Mon Apr 20 06:04:02 2015 Content-Type: multipart/mixed; boundary="===============5449629295477715347==" MIME-Version: 1.0 From: Sandro Bonazzola To: devel at ovirt.org Subject: Re: [ovirt-devel] Second host detection broken in hosted-engine --deploy Date: Mon, 20 Apr 2015 12:03:58 +0200 Message-ID: <5534CF0E.90305@redhat.com> In-Reply-To: 5534C0BF.4000808@redhat.com --===============5449629295477715347== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Il 20/04/2015 11:02, Sandro Bonazzola ha scritto: > Il 20/04/2015 10:56, Christopher Pereira ha scritto: >> It seems like something broke recently, because now, when deploying host= ed-engine to the second host, setup is saying: >> >> [ INFO ] GlusterFS replica 3 Volume detected >> [ INFO ] Installing on first host >> >> How can I diagnose/fix the problem? > = > The flag determining if an host is the first one or an additional one is = ohostedcons.CoreEnv.IS_ADDITIONAL_HOST > You can check the logs to see the env variables dumps on each plugin acti= vation and see the code where the variable is set. > You can also send us the logs so we can help with the debugging. The issue here was caused by VDSM answering : {'status': {'message': 'OK', 'code': 0}, 'info': {'uuid': 'c54f691c-fc83-4a= 74-9c02-a68ef87e68b3', 'version': '3', 'role': 'Master', 'remotePath': 'h4.imatronix.com:engine', 'type': 'GLUSTERFS', 'class': 'Data', 'pool': ['= 61e2d6d0-f798-428d-a07e-397fc7a4f10f'], 'name': 'hosted_storage'}} to getStorageDomainInfo call. As far as I know 'type' used to be an integer and gluster value was 7. The API doc of getStorageDomainInfo says: :returns: a dict containing the information about the domain. :rtype: dict so it looks quite flexible on what it may or may not return. Do we have a more stricter API documentation I can rely on? Current workaround for those who are testing glusterfs support is to add in= storage.py (rpm -ql ovirt-hosted-engine-setup|grep storage.py) a third value 'GLUSTERFS' in the if at line 339 Opened https://bugzilla.redhat.com/show_bug.cgi?id=3D1213307 > = > = >> >> >> _______________________________________________ >> Devel mailing list >> Devel(a)ovirt.org >> http://lists.ovirt.org/mailman/listinfo/devel >> > = > = -- = Sandro Bonazzola Better technology. Faster innovation. Powered by community collaboration. See how it works at redhat.com --===============5449629295477715347==--