There are two reasons:
1.) We already login as root anyway 2.) Sudo, by default, requires tty (when using OpenSSH transport, we do not acquire tty)
[2014-01-20T06:59:57Z ipa.ipatests.test_integration.host.Host.hp-bl280cg6-01.OpenSSHTransport] <INFO>: RUN ['sudo', 'systemctl', 'stop', 'ntpd'] [2014-01-20T06:59:57Z ipa.ipatests.test_integration.host.Host.hp-bl280cg6-01.cmd30] <DEBUG>: RUN ['sudo', 'systemctl', 'stop', 'ntpd'] [2014-01-20T06:59:58Z ipa.ipatests.test_integration.host.Host.hp-bl280cg6-01.cmd30.err] <DEBUG>: sudo: sorry, you must have a tty to run sudo No handlers could be found for logger "IPA" [2014-01-20T06:59:58Z ipa.ipatests.test_integration.host.Host.hp-bl280cg6-01.cmd30] <ERROR>: Exit code: 1
master: 5403648[[BR]] ipa-3-3: dc1a118
Metadata Update from @tbabej: - Issue assigned to tbabej - Issue set to the milestone: FreeIPA 3.3.x - 2014/01 (bug fixing)
Login to comment on this ticket.