Simone Tiraboschi has posted comments on this change. Change subject: packaging: setup: Use common code for remote engine pki ......................................................................
Patch Set 5: (2 comments) http://gerrit.ovirt.org/#/c/33024/5/packaging/setup/plugins/ovirt-engine-setup/ovirt-engine-reports/pki/apache.py File packaging/setup/plugins/ovirt-engine-setup/ovirt-engine-reports/pki/apache.py: Line 137: tries_left > 0 Line 138: ): Line 139: remote_engine_host = self.environment[ Line 140: oreportscons.EngineConfigEnv.ENGINE_FQDN Line 141: ] Do we need to ask again about the engine fqdn to prevent input errors or should we simply repeat util the engine host is reachable just to prevent network errors? Line 142: Line 143: with contextlib.closing( Line 144: urllib2.urlopen( Line 145: 'http://{engine_fqdn}/ovirt-engine/services/' Line 159: 'Please check access to the engine and its ' Line 160: 'status.' Line 161: ) Line 162: ) Line 163: time.sleep(10) Probably it's better to use a named constant here. Line 164: tries_left -= 1 Line 165: if self._need_ca_cert and self._apache_ca_cert is None: Line 166: raise RuntimeError(_('Failed to get CA Certificate from engine')) Line 167: -- To view, visit http://gerrit.ovirt.org/33024 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: Ia7a549d09dc85293beba24327ea44ef1dcaf4a55 Gerrit-PatchSet: 5 Gerrit-Project: ovirt-reports Gerrit-Branch: master Gerrit-Owner: Yedidyah Bar David <d...@redhat.com> Gerrit-Reviewer: Lev Veyde <lve...@redhat.com> Gerrit-Reviewer: Sandro Bonazzola <sbona...@redhat.com> Gerrit-Reviewer: Shirly Radco <sra...@redhat.com> Gerrit-Reviewer: Simone Tiraboschi <stira...@redhat.com> Gerrit-Reviewer: Yaniv Dary <yd...@redhat.com> Gerrit-Reviewer: Yedidyah Bar David <d...@redhat.com> Gerrit-Reviewer: automat...@ovirt.org Gerrit-HasComments: Yes _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches