Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ssh check to check_nova-instance.py #49

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add ssh check to check_nova-instance.py #49

wants to merge 1 commit into from

Conversation

cs-travis
Copy link

This commit enhances check_nova-instance.py with an optional additional check and fixes some proofreading items in the whole script.

  • The check attempts to SSH into the created instance using the provided keypair details.
  • It assumes SSH can reach the instance on the first IP in self.instance.networks.itervalues().next().
  • It has a configurable timeout (45 seconds by default).

Apologies for lack of granularity, I wasn't tracking the file when I made changes. This should really be two commits.

timer = 0
start = totimestamp()
ssh_status = ''
test_host = self.instance.networks.itervalues().next()[0],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if this is the private IP and if yes, how can you reach it?
Are you using nova-network?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, this is the private IP. Yes, I am using nova-network. If we add fixed IP association to VM provisioning, we can optionally use that. The current incarnation works for my purposes.

@sileht sileht force-pushed the master branch 3 times, most recently from d61eaf9 to b299ce3 Compare September 30, 2014 10:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants