#4125 ipatests: Remove sudo calls from tasks
Closed: Fixed None Opened 10 years ago by tbabej.

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

Metadata Update from @tbabej:
- Issue assigned to tbabej
- Issue set to the milestone: FreeIPA 3.3.x - 2014/01 (bug fixing)

7 years ago

Login to comment on this ticket.

Metadata