Skip to content
This repository was archived by the owner on Oct 10, 2020. It is now read-only.

Stop reading/writing "install data" in /var/lib/atomic#969

Closed
cgwalters wants to merge 1 commit intoprojectatomic:masterfrom
cgwalters:stop-doing-install-json
Closed

Stop reading/writing "install data" in /var/lib/atomic#969
cgwalters wants to merge 1 commit intoprojectatomic:masterfrom
cgwalters:stop-doing-install-json

Conversation

@cgwalters
Copy link
Copy Markdown
Member

@cgwalters cgwalters commented Apr 13, 2017

This reverts: #950
See: #966

The idea here originally was good, but we have to be a lot more
careful in introducing data stores than this. They need "schema design",
documentation, and most importantly IMO: lifecycle coupling.

If I e.g. rm -rf /var/lib/docker (as a lot of documentation tells
people to do), this install data would stick around. Similarly
for deleting content directly in /ostree/repo. You could say
that's a bug, but it'll happen.

The best way to do metadata is to use the underlying store. OSTree
in particular already has an API for storing metadata. Any containers
we write there should use that.

I'm not sure offhand if we can do something similar with Docker.
But basically I don't think it's worth carrying another data store
just to show a warning.

This reverts: projectatomic#950
See: projectatomic#966

The idea here originally was good, but we have to be a *lot* more
careful in introducing data stores than this.  They need "schema design",
documentation, and most importantly IMO: lifecycle coupling.

If I e.g. `rm -rf /var/lib/docker` (as a lot of documentation tells
people to do, this install data would stick around.  Similarly
for deleting content directly in `/ostree/repo`.  You could say
that's a bug, but it'll happen.

The best way to do metadata is to use the underlying store.  OSTree
in particular already has an API for storing metadata.  Any containers
we write there should use that.

I'm not sure offhand if we can do something similar with Docker.
But basically I don't think it's worth carrying another data store
*just* to show a warning.
@baude
Copy link
Copy Markdown
Member

baude commented Apr 13, 2017

This was not something invented for just a warning. This was a user-based request. We have people trying to run containers before installing them and then reporting that as a bug. The openscap image is a perfect example.

We knew this implementation was going to be imperfect but it was better that doing nothing.

@cgwalters
Copy link
Copy Markdown
Member Author

OK. We can close this and return to fixing the existing implementation.

@cgwalters cgwalters closed this Apr 13, 2017
@baude
Copy link
Copy Markdown
Member

baude commented Apr 13, 2017

I'd like your ideas on how it can be improved. Prefer to work this as an issue?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants