Alex Lourie has posted comments on this change. Change subject: packaging: setup: stop and notify if setup is not run as root ......................................................................
Patch Set 1: (1 comment) .................................................... File packaging/ovirt-engine-dwh-setup.py Line 70: 'Error: insufficient permissions for user {user}, ' Line 71: 'you must run with user root.'.format( Line 72: user=username Line 73: ) Line 74: ) Additionally, we can't log it as only root/ovirt user can initiate and write logs. Running this utility with any other user would fail on logger initialization if uid is not tested before log is initialized. Line 75: Line 76: def dbExists(db_dict): Line 77: logging.debug("checking if %s db already exists" % db_dict["name"]) Line 78: (output, rc) = utils.execSqlCmd( -- To view, visit http://gerrit.ovirt.org/18753 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: Id1a46f817cad72bd0de7752a2a90db3d3fe77512 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-dwh Gerrit-Branch: master Gerrit-Owner: Alex Lourie <alou...@redhat.com> Gerrit-Reviewer: Alex Lourie <alou...@redhat.com> Gerrit-Reviewer: Sandro Bonazzola <sbona...@redhat.com> Gerrit-Reviewer: Yaniv Dary <yd...@redhat.com> Gerrit-HasComments: Yes _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches