Sandro Bonazzola has posted comments on this change.
Change subject: packaging: setup: added FQDN validation to engine-setup-2
......................................................................
Patch Set 10: (2 inline comments)
....................................................
File packaging/setup/plugins/ovirt-engine-setup/config/protocols.py
Line 212: addresses=prettyString
Line 213: )
Line 214: )
Line 215: resolvedByDNS = self._resolvedByDNS(fqdn)
Line 216: source = ('DNS' if resolvedByDNS else _('host file'))
maybe because it only check about style rules defined by pep 8 and doesn't know
anything about pep 308.
Line 217: #compare found IP with list of local IPs and match.
Line 218: if not resolvedAddresses.issubset(ipAddresses):
Line 219: raise RuntimeError(
Line 220: _(
Line 226: addresses=prettyString
Line 227: )
Line 228: )
Line 229:
Line 230: if not resolvedByDNS:
I still feel better having warned the administrator that the fqdn provided did
not resolve with DNS. I would like to leave this as is.
Line 231: self.logger.warning(
Line 232: _(
Line 233: 'Failed to resolve {fqdn} using DNS, '
Line 234: 'it can be resolved only locally'
--
To view, visit http://gerrit.ovirt.org/14699
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: Ie9764f32ba5e30062532bf11c67756677333c44f
Gerrit-PatchSet: 10
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Sandro Bonazzola <[email protected]>
Gerrit-Reviewer: Alex Lourie <[email protected]>
Gerrit-Reviewer: Alon Bar-Lev <[email protected]>
Gerrit-Reviewer: Ofer Schreiber <[email protected]>
Gerrit-Reviewer: Sandro Bonazzola <[email protected]>
Gerrit-Reviewer: Yedidyah Bar David <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches