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

SSH Command respects ABS now and tests should fail if the API changes… #61

Merged
merged 1 commit into from
Jan 28, 2020

Conversation

mikkergimenez
Copy link
Contributor

@mikkergimenez mikkergimenez commented Jan 27, 2020

… again

Proof

❰mikker❙~/Dev/vmfloaty(git:fix_ssh_command_breaking)❱✔≻ bin/floaty ssh ubuntu-1604-x86_64 --trace --service vmpooler
The authenticity of host 'blocky-armor.delivery.puppetlabs.net (10.16.115.120)' can't be established.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'blocky-armor.delivery.puppetlabs.net,10.16.115.120' (ECDSA) to the list of known hosts.
[email protected]'s password:
❰mikker❙~/Dev/vmfloaty(git:fix_ssh_command_breaking)❱✘≻ bin/floaty ssh ubuntu-1604-x86_64 --trace --service abs
Requesting VMs with job_id: 1580167494644. Will retry for up to an hour.
Waiting 1 seconds to check if ABS request has been filled. Queue Position: 144... (x1)
Waiting 2 seconds to check if ABS request has been filled. Queue Position: 144... (x2)
Waiting 3 seconds to check if ABS request has been filled. Queue Position: 143... (x3)
The authenticity of host 'close-poison.delivery.puppetlabs.net (10.16.118.16)' can't be established.
Are you sure you want to continue connecting (yes/no)? no

Status

Ready for Merge

Description

The SSH Command was broken because the vmpooler api changed but it wasn't changed in the ssh command. This PR:

  • changes the ssh command to use the service object instead of the vmpooler object so it will work with ABS
  • adds tests to ensure that this code path will alert if an API changes again.

Related Issues

Todos

  • Tests
  • Documentation

Reviewers

@demophoon
@briancain

Copy link
Contributor

@highb highb left a comment

Choose a reason for hiding this comment

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

👍 Works in my testing.

@highb highb merged commit 5fa9c12 into puppetlabs:master Jan 28, 2020
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.

2 participants