New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix handling of /dev/shm mounting inside of containers #1545
Conversation
@mrunalp @umohnani8 PTAL, I think if this test passes, it proves that we are sharing /dev/shm between containers. For some reason tests are not currently running locally on my host. |
0a9ad8d
to
f83d074
Compare
test/shm.bats
Outdated
echo "$output" | ||
[ "$status" -eq 0 ] | ||
pod_id="$output" | ||
run crictl create "$pod_id" "$TESTDIR"/container_sleep.json "$TESTDATA"/sandbox_config.json |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be $TESTDATA/container_sleep.json
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for hitting me with a clue bat.
test/shm.bats
Outdated
echo "$output" | ||
[ "$status" -eq 0 ] | ||
|
||
run crictl create "$pod_id" "$TESTDIR"/container_redis.json "$TESTDATA"/sandbox_config.json |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be $TESTDATA/container_redis.json
Tests are blowing up because it is looking in the wrong place for the json files. |
test/testdata/container_sleep.json
Outdated
{ | ||
"key": "PATH", | ||
"value": "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rhatdan the comma is causing the tests to blow up
Add test to make sure /dev/shm is shared between containers in CRI-O Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
/test all |
@mrunalp @umohnani8 @wking @runcom PTAL |
LGTM |
/test kata-containers |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
All Green Merging. |
Signed-off-by: Daniel J Walsh dwalsh@redhat.com
- What I did
- How I did it
- How to verify it
- Description for the changelog