Douglas Schilling Landgraf has uploaded a new change for review. Change subject: engine_page: catch exception from vdscli.connect() ......................................................................
engine_page: catch exception from vdscli.connect() After the node installation and before the registration there are no .pem files in /etc/pki/vdsm/certs so vdscli.connect() will raise an exception when users login as admin to TUI access. This patch catches and log the exception. Change-Id: I5a0333837a3aec2364362728951b1623b46065a0 Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1100226 Signed-off-by: Douglas Schilling Landgraf <dougsl...@redhat.com> --- M src/engine_page.py 1 file changed, 5 insertions(+), 0 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-node-plugin-vdsm refs/changes/69/28069/1 diff --git a/src/engine_page.py b/src/engine_page.py index 79d8a90..66df4e2 100644 --- a/src/engine_page.py +++ b/src/engine_page.py @@ -65,6 +65,11 @@ LOGGER.debug("Connection refused with VDSM", exc_info=True) else: raise + except Exception as err: + if 'No permission to read file:' in str(err): + LOGGER.debug("pem files not available yet!", exc_info=True) + else: + raise if cfg["server"] is not None: server_url = [unicode(info) for info in [cfg["server"], cfg["port"]] if info] -- To view, visit http://gerrit.ovirt.org/28069 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I5a0333837a3aec2364362728951b1623b46065a0 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-node-plugin-vdsm Gerrit-Branch: node-3.0 Gerrit-Owner: Douglas Schilling Landgraf <dougsl...@redhat.com> _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches