Skip to content

Issues/30643 merge forward fixes - #31525

Merged
cachedout merged 2 commits into
saltstack:2015.8from
DSRCorporation:issues/30643_merge_forward_fixes
Feb 29, 2016
Merged

cachedout merged 2 commits into
saltstack:2015.8from
DSRCorporation:issues/30643_merge_forward_fixes

Conversation

@DmitryKuzmenko

Copy link
Copy Markdown
Contributor

What does this PR do?

Merge forward #31512 and #30796 into 2015.8

What issues does this PR fix or reference?

This is for @Ch3LL to check #30643.

skizunov and others added 2 commits February 27, 2016 11:08
salt/minion.py:
- In the `__master_disconnected` case, it originally set
`self.opts['master']` to the result of `self.eval_master`. This
makes no sense since `self.eval_master` returns a future. Now we
yield on `self.eval_master` and store both return values.
- Just like in `Minion.destroy`, we clear `self.pub_channel.on_recv`.
Also, if `self.pub_channel` has a `close`, it is invoked. This
resolves a circular reference issue with the TCP transport. The
`SaltMessageClient` contains function references to the
`connect_callback` and `disconnect_callback` functions in
`AsyncTCPPubChannel`. This circular reference prevents the `del` from
deallocating the `AsyncTCPPubChannel` object.

salt/transport/tcp.py:
- In `SaltMessageClient.close`, reset the function references
`self.connect_callback` and `self.disconnect_callback`. This allows a
subsequent `del` on `AsyncTCPPubChannel` to actually deallocate the
object.

Signed-off-by: Sergey Kizunov <[email protected]>
Fork executes finally section triple times.
@DmitryKuzmenko

Copy link
Copy Markdown
Contributor Author

I'll check what's wrong with the tests on Monday.

@DmitryKuzmenko

Copy link
Copy Markdown
Contributor Author

Sorry, had no time today to check this. Will do tomorrow.

@cachedout

Copy link
Copy Markdown
Contributor

I don't believe the test failures here are related to this PR. Merging.

cachedout pushed a commit that referenced this pull request Feb 29, 2016
@cachedout
cachedout merged commit d5a4daa into saltstack:2015.8 Feb 29, 2016
@DmitryKuzmenko

Copy link
Copy Markdown
Contributor Author

Thank you!

@DmitryKuzmenko
DmitryKuzmenko deleted the issues/30643_merge_forward_fixes branch August 15, 2016 14:10
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