fix container fail to start#331
fix container fail to start#331Ace-Tang wants to merge 1 commit intokata-containers:masterfrom Ace-Tang:fix_start_fail
Conversation
|
@Ace-Tang Plz use |
|
/cc @devimc |
|
@jshachm , thanks for reminding, I have update commit message. |
|
CI is not happy and this patch makes me wonder if we need integration tests for pouch |
the data should copy from |
copyParentCPUSet copies the cpuset.cpus and cpuset.mems from the parent, but if parent directory's file content is also zero, it will make pid write into cpuset cgroup error. So recursive copy data from parent directory until cpuset cgroup root path. Modify variable cgroupsDirPath to cgroupsRootPath(cli/oci.go), make it more reasonable and not conflict with cgroupsDirPath(cli/create.go). Fixes #330 Signed-off-by: Ace-Tang <aceapril@126.com>
|
PSS Measurement: Memory inside container: |
Codecov Report
@@ Coverage Diff @@
## master #331 +/- ##
==========================================
- Coverage 63.89% 63.78% -0.12%
==========================================
Files 87 87
Lines 8623 8640 +17
==========================================
+ Hits 5510 5511 +1
- Misses 2529 2545 +16
Partials 584 584
Continue to review full report at Codecov.
|
|
PSS Measurement: Memory inside container: |
|
@devimc I don't follow why you approved this PR while your comment on the corresponding issue #330 (comment) was saying that you could not reproduce ? |
|
@sboeuf read the description of the problem
I couldn't produce it because of I'm using docker not pouch #330 (comment), this patch doesn't impact the compatibility with docker but fixes the compatibility with pouch, right @Ace-Tang ? |
|
No, @devimc , the error has not related whether you use pouch or mody, I also re-produce it with mody, as I comment in #330 . Maybe it is linux distro related, could you try again on a centos mechine, @devimc , I make a simple test on ubuntu machine, seems like ubuntu will inherit here is my test with moby the moby version is : the kata version is |
|
sorry @Ace-Tang I can't reproduce it in centOS centOS info docker info |
|
What's the status on this ? |
|
@Ace-Tang - any updates here? |
|
@Ace-Tang - I appreciate your efforts, but see this has gone very stale. I'm going to close the PR. If you have updates, please reopen! Thanks for the contributions. |
agent: add support for online memory and cpu separately
Fixes: #0 Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
copyParentCPUSet copies the cpuset.cpus and cpuset.mems
from the parent, but if parent directory's file content
is also zero, it will fail. Recursive copy data from
parent directory until cpuset cgroup root path.
Modify variable cgroupsDirPath to cgroupsRootPath(cli/oci.go),
make it more reasonable and not conflict with cgroupsDirPath(cli/create.go).
fixes: #330
Signed-off-by: Ace-Tang aceapril@126.com