Eucalyptus should not run 'sudo'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Eucalyptus |
Fix Released
|
Undecided
|
Dmitrii Zagorodnov | ||
eucalyptus (Ubuntu) |
Fix Released
|
High
|
Dave Walker | ||
Maverick |
Fix Released
|
High
|
Dave Walker |
Bug Description
On 2.0~bzr1219-
13:04:18 DEBUG [SystemUtil:main] Running command: sudo tgtadm --help
13:04:18 DEBUG [SystemUtil:main] Running command: sudo tgtadm --lld iscsi --mode target --op show
13:04:18 WARN [ISCSIManager:main] Unable to connect to tgt daemon. Is tgtd loaded?
13:04:18 INFO [ISCSIManager:main] Attempting to start tgtd ISCSI daemon
13:04:18 DEBUG [SystemUtil:main] Running command: sudo tgtd
This is not good. Since eucalyptus is running in the background (via 'start'), it does not have a pseudo-terminal allocated. As a result, we get a fatal error on startup:
sudo: no tty present and no askpass program specified
and eucalyptus dies.
I temporarily bypassed this by adding the following line to /etc/sudoers:
eucalyptus ALL=(ALL) NOPASSWD: ALL
Instead, these calls should be rootwrapped.
Changed in eucalyptus (Ubuntu Maverick): | |
milestone: | none → ubuntu-10.10-beta |
assignee: | nobody → Dave Walker (davewalker) |
Changed in eucalyptus: | |
status: | New → Fix Released |
assignee: | nobody → Dmitrii Zagorodnov (dmitrii) |
Dmitrii has a modified version of Canonical patch for euca_rootwrap which eliminates the need of sudo. We are waiting for the resolve of license issue.