using sudo requires tty and other unwanted side effects if already running as root. for example using vdsm-tool vdsm-id under root produces an error as sudo fails because of lack of tty. unsure if there are other issues similar to this one. see bug#1054759
fixed. vdsm-4.14.1-3.el6.x86_64. [root@green-vdsb ~]# vdsm-tool vdsm-id 1ec5e5ca-0d06-4ebc-964a-ba6ec71742ff [root@green-vdsb ~]#
Andrew, this fix doesn't enhance anything, it fixes a bug which caused by wrong execution of sudo statement. if user already root and we're adding "sudo" to the command we run, it requires specific configuration under /etc/sudoers which vdsm doesn't configure. the fix here just prevents this bug by not adding "sudo" if user is already root (which how vdsm-tool execute some commands, such as vdsm-id). only if running as vdsm user we configure specific sudoers entries for specific commands during vdsm installation. thanks for filling the doc-text!
Hi Yaniv, Thank you for your feedback and for the explanation! I have updated the doct text now - would you be able to take a quick look at let me know if you feel it is more accurate now? Kind regards, Andrew
Great now. thanks!
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2014-0504.html