Skip to content
This repository has been archived by the owner on Dec 13, 2018. It is now read-only.

Do not fail cgroups setup if parent cgroup does not exist. #453

Merged
merged 1 commit into from
Mar 16, 2015

Conversation

vishh
Copy link
Contributor

@vishh vishh commented Mar 16, 2015

As of now if the parent cgroup path is absolute, we expect the cgroups to exist. If it is not absolute, everything works as expected.

@mrunalp
Copy link
Contributor

mrunalp commented Mar 16, 2015

Build failed -- exec_test.go:297: [8] System error: mountpoint for devices not found

} else {
return err
}
return err
Copy link
Contributor

Choose a reason for hiding this comment

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

Why this change only in cpuset?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The rest of the cgroup setups use data.path() and cpuset does something different. This change makes sure it stays in sync.

Docker-DCO-1.1-Signed-off-by: Vishnu Kannan <vishnuk@google.com> (github: vishh)
@vishh
Copy link
Contributor Author

vishh commented Mar 16, 2015

Fixed the cause for the test failure. PTAL.

@vmarmol
Copy link
Contributor

vmarmol commented Mar 16, 2015

LGTM

vmarmol added a commit that referenced this pull request Mar 16, 2015
Do not fail cgroups setup if parent cgroup does not exist.
@vmarmol vmarmol merged commit 52a8c00 into docker-archive:master Mar 16, 2015
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.

3 participants