Skip to content

Commit

Permalink
Merge pull request #2459 from tedyu/linux-cont-set-cfg
Browse files Browse the repository at this point in the history
Set configs back when intelrdt configs cannot be set

LGTMS: @AkihiroSuda @kolyshkin
  • Loading branch information
kolyshkin authored Jun 19, 2020
2 parents e643db6 + 9d275d3 commit dff7685
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libcontainer/container_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,9 @@ func (c *linuxContainer) Set(config configs.Config) error {
if c.intelRdtManager != nil {
if err := c.intelRdtManager.Set(&config); err != nil {
// Set configs back
if err2 := c.cgroupManager.Set(c.config); err2 != nil {
logrus.Warnf("Setting back cgroup configs failed due to error: %v, your state.json and actual configs might be inconsistent.", err2)
}
if err2 := c.intelRdtManager.Set(c.config); err2 != nil {
logrus.Warnf("Setting back intelrdt configs failed due to error: %v, your state.json and actual configs might be inconsistent.", err2)
}
Expand Down

0 comments on commit dff7685

Please sign in to comment.