Skip to content

Commit

Permalink
add logs when root container does not exist
Browse files Browse the repository at this point in the history
Signed-off-by: Harshal Patil <harpatil@redhat.com>
  • Loading branch information
harche committed Feb 22, 2024
1 parent 2eba5a9 commit c88bde2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/kubelet/cm/qos_container_manager_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,9 @@ func (m *qosContainerManagerImpl) Start(getNodeAllocatable func() v1.ResourceLis
cm := m.cgroupManager
rootContainer := m.cgroupRoot
if !cm.Exists(rootContainer) {
return fmt.Errorf("root container %v doesn't exist", rootContainer)
err := fmt.Errorf("root container %v doesn't exist", rootContainer)
klog.V(2).ErrorS(err, "root container does exist : ", rootContainer)
return err
}

// Top level for Qos containers are created only for Burstable
Expand Down

0 comments on commit c88bde2

Please sign in to comment.