Skip to content
This repository has been archived by the owner on Aug 30, 2024. It is now read-only.

If instance user is not root, try to execute commands at instance using sudo/su by default #251

Closed
wants to merge 1 commit into from

Conversation

ws-kimmo-helsing
Copy link
Contributor

Currently none of the commands in euinstance.py are tried to be run using sudo/su. So in case your instance user is not root, the tests will fail miserably.

@nephomaniac
Copy link
Contributor

Thanks kto. 'I think' there was some final work to be done in the sshconnection class to allow this to work across the board. Some OS/images were failing when using sudo in the last round of testing due to an error(s) which gets lumped in with stdout. This work was started, but I'm not 100% sure where this was left off. I opened #252 to track the remaining work to be done.
A possible/temporary workaround for testing cloud features while using an image that doesn't permit root login is to enable root login via user-data in the instance run request. For example see:
https://github.com/eucalyptus/eutester/blob/testing/eucaops/ec2ops.py#L76

Thanks,
-M

@ws-kimmo-helsing
Copy link
Contributor Author

Thanks for your comment @bigschwan. Maybe this change can then be implemented when the sshconnection class has been fixed.

This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants