Alon Bar-Lev has posted comments on this change. Change subject: Avoiding legacy health servlet usage ......................................................................
Patch Set 1: (2 comments) http://gerrit.ovirt.org/#/c/26090/1/packaging/setup/plugins/ovirt-engine-setup/ovirt-engine/all-in-one/vdsm.py File packaging/setup/plugins/ovirt-engine-setup/ovirt-engine/all-in-one/vdsm.py: Line 100: return isUp Line 101: Line 102: def _waitEngineUp(self): Line 103: self.logger.debug('Waiting for API to check Engine health status') Line 104: api_url = 'http://{fqdn}:{port}/ovirt-engine/api'.format( you cannot use http for api. you must use https. also please use localhost to avoid issues. and set the insecue flag. Line 105: fqdn=self.environment[osetupcons.ConfigEnv.FQDN], Line 106: port=self.environment[osetupcons.ConfigEnv.PUBLIC_HTTP_PORT], Line 107: ) Line 108: tries = self.ENGINE_RETRIES Line 109: isUp = False Line 110: while not isUp and tries > 0: Line 111: tries -= 1 Line 112: try: Line 113: with contextlib.closing(urllib2.urlopen(api_url)) as urlObj: Oh! why don't you use the python-sdk? Line 114: content = urlObj.read() Line 115: if content: Line 116: if self.PI_RE.match(content) is None: Line 117: raise RuntimeError( -- To view, visit http://gerrit.ovirt.org/26090 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: I48225db31b57f70687887f4c06fb923648bfe9f6 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Simone Tiraboschi <[email protected]> Gerrit-Reviewer: Alon Bar-Lev <[email protected]> Gerrit-Reviewer: David Caro <[email protected]> Gerrit-Reviewer: Sandro Bonazzola <[email protected]> Gerrit-Reviewer: Yedidyah Bar David <[email protected]> Gerrit-Reviewer: [email protected] Gerrit-HasComments: Yes _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
