Skip to content
This repository was archived by the owner on Jun 28, 2024. It is now read-only.

tests: replace "/var/lib/vc" with "/run/vc"#2113

Merged
chavafg merged 1 commit intokata-containers:masterfrom
WeiZhang555:no-use-var-lib
Nov 22, 2019
Merged

tests: replace "/var/lib/vc" with "/run/vc"#2113
chavafg merged 1 commit intokata-containers:masterfrom
WeiZhang555:no-use-var-lib

Conversation

@WeiZhang555
Copy link
Copy Markdown
Member

Fixes #2112

Checking "/run/vc" can also get active pods so we don't have to use
"/var/lib/vc", also I'm working on removing "/var/lib/vc" dir from
persistent data, we should remove "/var/lib/vc" from tests repo first.

Signed-off-by: Wei Zhang weizhang555.zw@gmail.com

Fixes kata-containers#2112

Checking "/run/vc" can also get active pods so we don't have to use
"/var/lib/vc", also I'm working on removing "/var/lib/vc" dir from
persistent data, we should remove "/var/lib/vc" from tests repo first.

Signed-off-by: Wei Zhang <weizhang555.zw@gmail.com>
@WeiZhang555
Copy link
Copy Markdown
Member Author

/test

Copy link
Copy Markdown
Contributor

@grahamwhaley grahamwhaley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've not checked the details of the relationship between our use of /var and /run, but presuming you are correct....
lgtm

# This is ultimately what 'kata-runtime list' uses to get its info, but
# we can also check it for sanity directly
VC_POD_DIR="${VC_POD_DIR:-/var/lib/vc/sbs}"
VC_POD_DIR="${VC_POD_DIR:-/run/vc/sbs}"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was going to suggest we could change the code to get the directory from kata-runtime kata-env - but, I don't think we print that information (our workdir) in kata-env.... maybe we should? :-)

@grahamwhaley grahamwhaley requested a review from chavafg November 22, 2019 09:41
@chavafg chavafg merged commit 5facc21 into kata-containers:master Nov 22, 2019
@WeiZhang555 WeiZhang555 deleted the no-use-var-lib branch November 23, 2019 07:21
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.

replace "/var/lib/vc" with "/run/vc"

4 participants