Katello / katello-packaging

[DEPRECATED] Packaging for Katello
7 stars 33 forks source link

Improve katello-remove to preserve pulp repos? #247

Open CalvinHartwell opened 8 years ago

CalvinHartwell commented 8 years ago

Hey all, I've had a couple of issues over the last year with Satellite 6 which have required the use of katello-remove. When you do this however, it removes all of repositories (and perhaps other content) which pulp has synchronized (sometimes several hundred gig).

My suggestion is that an option is added to katello-remove which allows the user to preserve the pulp repositories (and RPMS) but removes everything else, so the user does not need to resync everything when they re-run the installer?

How does this suggestion sound? Obviously this will involve preserving the mongo database as well. My suggestion is to basically make this an optional option.

Cheers,

ehelms commented 8 years ago

I think this makes sense @CalvinHartwell. The mongodb would need to still be wiped because all of the repositories are also being removed from Katello so the "structure" of repositories wouldn't make sense anymore. However, as you say, persisting the content on disk would speed up a rebuild.

For better visibility, I would recommend re-filling this issue here [1].

[1] http://projects.theforeman.org/projects/katello/issues/new

chris1984 commented 7 years ago

@CalvinHartwell did you create a redmine issue, I can add it to the next sprint since i have been doing a lot of work with katello/capsule remove.