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

fixes #12397 - properly detect pulp task failures again #5567

Merged
merged 1 commit into from
Nov 10, 2015

Conversation

jlsherrill
Copy link
Member

No description provided.

@jlsherrill
Copy link
Member Author

@iNecas curious about your thoughts on this, i believe it was caused by this change: Dynflow/dynflow@6f56df9#diff-15e875d53193085cf195d9fe4e81e5b2R84

wanted to make sure this i the right place to add this check, as it worked fine before but now treats these exceptions as 'failed polls'

@jlsherrill jlsherrill changed the title fixes #1246054 - properly detect pulp task failures again fixes #12397 - properly detect pulp task failures again Nov 5, 2015
@iNecas
Copy link
Member

iNecas commented Nov 9, 2015

I'm not sure this change really helps, as the done? method is still called from within the block catched for errors, I think overriding rescue_poll_external_task(error) from Dynflow/dynflow@6f56df9#diff-15e875d53193085cf195d9fe4e81e5b2R98 and raising the error immediately on ::Katello::Errors::PulpError is what you want

@jlsherrill
Copy link
Member Author

@iNecas at that commit done? is still caught, but in master it isn't:

https://github.com/Dynflow/dynflow/blob/master/lib/dynflow/action/polling.rb#L28

Overriding rescue_poll_external_task is an option, id' rather not have to reproduce all of that logic, but it seems like a better place than sticking the exception in done?. Will give that a try.

@iNecas
Copy link
Member

iNecas commented Nov 9, 2015

@jlsherrill right, this works then… :) 👍

@bbuckingham
Copy link
Member

ACK

jlsherrill added a commit that referenced this pull request Nov 10, 2015
fixes #12397 - properly detect pulp task failures again
@jlsherrill jlsherrill merged commit 859cfad into Katello:master Nov 10, 2015
@jlsherrill jlsherrill deleted the 1246054 branch November 10, 2015 20:22
jlsherrill added a commit to jlsherrill/katello that referenced this pull request Mar 15, 2016
The root cause of this is that this commit:

Katello#5567

made it so that resume_external_action no longer threw an exception. Due
to a recent change in dynflow it is needed to throw an exception in the case of
a non-network error.  So this change returns the functionality of checking for
pulp task errors on polling, but overrides poll_external_task_with_rescue to not
treat pulp errors as poll errors.

Conflicts:
	app/lib/actions/pulp/abstract_async_task.rb
jlsherrill added a commit to jlsherrill/katello that referenced this pull request Mar 16, 2016
The root cause of this is that this commit:

Katello#5567

made it so that resume_external_action no longer threw an exception. Due
to a recent change in dynflow it is needed to throw an exception in the case of
a non-network error.  So this change returns the functionality of checking for
pulp task errors on polling, but overrides poll_external_task_with_rescue to not
treat pulp errors as poll errors.
jlsherrill added a commit that referenced this pull request May 16, 2016
The root cause of this is that this commit:

#5567

made it so that resume_external_action no longer threw an exception. Due
to a recent change in dynflow it is needed to throw an exception in the case of
a non-network error.  So this change returns the functionality of checking for
pulp task errors on polling, but overrides poll_external_task_with_rescue to not
treat pulp errors as poll errors.

Conflicts:
	app/lib/actions/pulp/abstract_async_task.rb
ehelms pushed a commit to ehelms/katello that referenced this pull request Jun 10, 2016
The root cause of this is that this commit:

Katello#5567

made it so that resume_external_action no longer threw an exception. Due
to a recent change in dynflow it is needed to throw an exception in the case of
a non-network error.  So this change returns the functionality of checking for
pulp task errors on polling, but overrides poll_external_task_with_rescue to not
treat pulp errors as poll errors.

(cherry picked from commit 86de639)
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