mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 13:37:30 +00:00
Merge pull request #36995 from wojtek-t/extend_logging_for_schedulable_nodes
Automatic merge from submit-queue Extend logging for unschedulable nodes
This commit is contained in:
commit
4f69d7eda8
@ -2456,6 +2456,15 @@ func WaitForAllNodesSchedulable(c clientset.Interface, timeout time.Duration) er
|
|||||||
// won't install correctly), so we can't expect them to be ready at any point.
|
// won't install correctly), so we can't expect them to be ready at any point.
|
||||||
//
|
//
|
||||||
// However, we only allow non-ready nodes with some specific reasons.
|
// However, we only allow non-ready nodes with some specific reasons.
|
||||||
|
if len(notSchedulable) > 0 {
|
||||||
|
Logf("Unschedulable nodes:")
|
||||||
|
for i := range notSchedulable {
|
||||||
|
Logf("-> %s Ready=%t Network=%t",
|
||||||
|
notSchedulable[i].Name,
|
||||||
|
IsNodeConditionSetAsExpected(notSchedulable[i], api.NodeReady, true),
|
||||||
|
IsNodeConditionSetAsExpected(notSchedulable[i], api.NodeNetworkUnavailable, false))
|
||||||
|
}
|
||||||
|
}
|
||||||
if len(notSchedulable) > TestContext.AllowedNotReadyNodes {
|
if len(notSchedulable) > TestContext.AllowedNotReadyNodes {
|
||||||
return false, nil
|
return false, nil
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user