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

(POOLER-47) Send clone errors up #175

Merged
merged 2 commits into from
Dec 1, 2016

Conversation

mattkirby
Copy link
Contributor

This commit updates vmpooler to ensure clone errors, and other pool manager errors are raised to the parent method. Without this change vmpooler gets stuck after a connection fails during clone operations and will not attempt to clone again.

This commit updates vmpooler to ensure clone errors, and other pool manager errors are raised to the parent method. Without this change vmpooler gets stuck after a connection fails during clone operations and will not attempt to clone again.
@mattkirby mattkirby force-pushed the send_clone_errors_up branch from a8ac3f5 to f859826 Compare December 1, 2016 20:41
Copy link
Contributor

@rick rick left a comment

Choose a reason for hiding this comment

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

👍

@@ -621,11 +627,12 @@ def _check_pool(pool, vsphere)
if inventory[vm]
begin
destroy_vm(vm, pool['name'], vsphere)
rescue
rescue => err
$logger.log('s', "[!] [#{pool['name']}] '#{vm}' destroy appears to have failed")
Copy link
Contributor

Choose a reason for hiding this comment

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

Might be able to consolidate this log line with the new one below.

@waynr
Copy link
Contributor

waynr commented Dec 1, 2016

I'm pretty much +1 on this, for whatever that's worth given my general lack of familiarity with vmpooler code base. If the code were a little easier to work with in the first place and if there wasn't a somewhat urgent need to deploy this I might suggest writing tests to validate the logging and follow-up attempts to clone again.

@waynr waynr merged commit b1d1b6f into puppetlabs:master Dec 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants