Skip to content
This repository has been archived by the owner on Aug 29, 2018. It is now read-only.

Purge command doesn't delete units #190

Open
davidpelaez opened this issue Jun 12, 2014 · 3 comments
Open

Purge command doesn't delete units #190

davidpelaez opened this issue Jun 12, 2014 · 3 comments

Comments

@davidpelaez
Copy link

The recently added purge command won't delete file in /var/lib/containers/units/* this results in that gear purge will stop and disable all containers. However since the unit remains, doing gear start on one of the recently purged containers, results on the container being started and enabled again, similar to gear install. This seems like a strange behavior where start and install are overlapping and the behavior of purge seems to "soft" for it's name.

@smarterclayton do you think it's just an issue of clarification in the docs or indeed a strange functionality collision?

@smarterclayton
Copy link
Contributor

Kind of a halfway place right now - gear clean will automatically gc those items at a certain point, but purge does give the impression it deletes them.

The original idea was that disabled units cost us nothing, so that having them there for administrators to debug gives a but more safety. It's possible we should make purge have the option of triggering a clean for that type, or otherwise running to completion.

@davidpelaez
Copy link
Author

OK, so purge is more like a disable/freeze and clean would have the responsibility of removing them.
The flags sounds good, like a soft or hard version of purge based on the command. Probably for safety, the most destructive command should be the one requiring the flag, but I'm not entirely convinced of that because it makes the word 'purge' sound bigger than it is :P

@smarterclayton
Copy link
Contributor

Fair point - got any better suggestions for names?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants