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

chroot: add apply_, sls and highstate for state execution #55345

Merged
merged 12 commits into from Dec 3, 2019

Conversation

aplanas
Copy link
Collaborator

@aplanas aplanas commented Nov 18, 2019

What does this PR do?

Based on the code from the SSH client wrapper, add apply_, sls and highstate for the execution of Salt states inside a chroot environment.

Tests written?

Yes

@aplanas aplanas requested a review from as a code owner Nov 18, 2019
@ghost ghost requested a review from twangboy Nov 18, 2019
@aplanas aplanas changed the title Support the execution of Salt states inside chroot chroot: add apply_, sls and highstate for state execution Nov 18, 2019
@aplanas
Copy link
Collaborator Author

@aplanas aplanas commented Nov 18, 2019

This commit is on top of #54959. If this gets merged, I will rebase this one.

@aplanas aplanas force-pushed the fix_chroot branch 2 times, most recently from a42e4fe to a239990 Compare Nov 18, 2019
@Akm0d Akm0d added the Feature label Nov 20, 2019
@Akm0d Akm0d added this to the Approved milestone Nov 20, 2019
@Akm0d Akm0d added this to Backlog in Neon Nov 20, 2019
@Akm0d
Copy link
Contributor

@Akm0d Akm0d commented Nov 20, 2019

re-run full pycryptodomex

tests/unit/modules/test_chroot.py Show resolved Hide resolved
tests/unit/modules/test_chroot.py Show resolved Hide resolved
tests/unit/modules/test_chroot.py Show resolved Hide resolved
@Akm0d
Copy link
Contributor

@Akm0d Akm0d commented Nov 20, 2019

I don't imagine the chroot module works on windows so we can probably just add a @skipIf(salt.utils.platform.is_windows()) to the top of the test class.

@aplanas
Copy link
Collaborator Author

@aplanas aplanas commented Nov 21, 2019

I don't imagine the chroot module works on windows so we can probably just add a @skipIf(salt.utils.platform.is_windows()) to the top of the test class.

I will do this. Thanks for the reviews!!!!

aplanas added 5 commits Nov 21, 2019
Also reformulate one test to avoid random ordering of kwargs parameters.
Some bug in Salt is preventing to use `archive.tar` inside chroot, we we
want to untar the salt_thin.tgz.

This bug is related with how much deep is the stack of __salt__ calls,
and do not clossing some connections to the master.

Tracking the AsyncZeroMQChannel connections to master:4506, we can see
that one is not closed once the actions ends, hanging the salt-call CLI.

This commit will be reverted once the root cause in found, and the bug
fixed.
Based on the code from the SSH client wrapper, add apply_, sls and
highstate for the execution of Salt states inside a chroot environment.
dwoz
dwoz approved these changes Dec 3, 2019
@dwoz dwoz merged commit 6986d03 into saltstack:master Dec 3, 2019
49 checks passed
@aplanas
Copy link
Collaborator Author

@aplanas aplanas commented Dec 3, 2019

Thanks!

@aplanas aplanas deleted the fix_chroot branch Dec 3, 2019
@sagetherage sagetherage moved this from Backlog to Done in Neon Jan 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature
Projects
No open projects
Neon
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

3 participants