Second host detection broken in hosted-engine --deplot

This is a multi-part message in MIME format. --------------020002080300070006070002 Content-Type: text/plain; charset=utf-8; format=flowed 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=utf-8 Content-Transfer-Encoding: 8bit <html> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"> </head> <body bgcolor="#FFFFFF" text="#000000"> It seems like something broke recently, because now, when deploying hosted-engine to the second host, setup is saying:<br> <blockquote>[ INFO ] GlusterFS replica 3 Volume detected<br> [ INFO ] Installing on first host<br> </blockquote> How can I diagnose/fix the problem?<br> </body> </html> --------------020002080300070006070002--

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. You can also send us the logs so we can help with the debugging.
_______________________________________________ Devel mailing list Devel@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

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 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. 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=str:'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_customization 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'}]}

----- Original Message -----
From: "Sandro Bonazzola" <sbonazzo@redhat.com> To: "Christopher Pereira" <kripper@imatronix.cl>, devel@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@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@ovirt.org http://lists.ovirt.org/mailman/listinfo/devel
Best, -- Didi

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 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. 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-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'}} 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=1213307
_______________________________________________ Devel mailing list Devel@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
participants (3)
-
Christopher Pereira
-
Sandro Bonazzola
-
Yedidyah Bar David