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

Provide a command to purge environments #744

Closed
rnelson0 opened this issue May 30, 2017 · 10 comments
Closed

Provide a command to purge environments #744

rnelson0 opened this issue May 30, 2017 · 10 comments

Comments

@rnelson0
Copy link
Contributor

When a branch is deleted from the controlrepo, it appears the only way to purge that is to run r10k deploy environment [$environment]. There is no command to simply check and purge environments. In order to purge deleted environments, this could cause side effects where some external content in the deployed environment(s) is updated - for instance, a module pointing at HEAD or a branch name that has been updated since the last deploy. This could be avoided by adding a --purge-only, undeploy, or similar command to r10k.

See voxpupuli/puppet-r10k#374 for some of the side effects of the current implementation.

@github-actions
Copy link

This issue has been marked stale because it has had no activity for 60 days. The Puppet Team is actively prioritizing existing bugs and new features, if this issue is still important to you please comment and we will add this to our backlog to complete. Otherwise, it will be closed in 7 days.

@github-actions github-actions bot added the stale label May 11, 2021
@rnelson0
Copy link
Contributor Author

This still has value for me and my current employer.

@Magisus
Copy link
Collaborator

Magisus commented May 11, 2021

We're actually actively planning to add something like this, because we're having issues in PE with running r10k in parallel to deploy environments, so some threads are purging while others are deploying, which can sometimes result in errors. See https://tickets.puppetlabs.com/browse/RK-367. If I remember right, the deployment level purging is what cleans up deleted envs (which is what's causing problems for us), so that work should solve this for you! I'll make sure to tag you on the PR. We're planning to start that work in the next month or so.

@github-actions
Copy link

This issue has been marked stale because it has had no activity for 60 days. The Puppet Team is actively prioritizing existing bugs and new features, if this issue is still important to you please comment and we will add this to our backlog to complete. Otherwise, it will be closed in 7 days.

@github-actions github-actions bot added the stale label Jul 12, 2021
@rnelson0
Copy link
Contributor Author

Is there a way to tell the bot this is in planning/development and to stop marking it stale? Other than updates like this, that is.

@mwaggett
Copy link
Contributor

mwaggett commented Aug 5, 2021

We ended up going in a different direction to solve the issue of parallel deployment/purging processes clobbering each other, but this still seems like it would be a helpful feature to y'all. We're working on prioritizing r10k maintenance, so we will hopefully get a chance to look into this in the not-too-distant-future.

@github-actions
Copy link

This issue has been marked stale because it has had no activity for 60 days. The Puppet Team is actively prioritizing existing bugs and new features, if this issue is still important to you please comment and we will add this to our backlog to complete. Otherwise, it will be closed in 7 days.

@github-actions github-actions bot added the stale label Nov 25, 2021
@rnelson0
Copy link
Contributor Author

Still need this

@prolixalias
Copy link

I'm on an OSP engagement at the moment, this would be a win for them. What we've begun rolling/testing hasn't gone well yet.

@mwaggett
Copy link
Contributor

Hi @rnelson0, thanks for opening this! r10k is now considered to be feature complete and we are unfortunately discontinuing development. As a result, we are closing all open issues and pull requests. I sincerely apologize that we’re unable to address this issue.

@mwaggett mwaggett closed this as not planned Won't fix, can't repro, duplicate, stale Nov 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants