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

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

Merged
merged 1 commit into from
Nov 22, 2019

Conversation

WeiZhang555
Copy link
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 [email protected]

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 <[email protected]>
@WeiZhang555
Copy link
Member Author

/test

Copy link
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

@@ -33,7 +33,7 @@ RUNTIME_PATH=$(command -v $RUNTIME)
# The place where virtcontainers keeps its active pod info
# 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
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