Skip to content

Commit c1de45a

Browse files
author
Cheng Pan
committed
Update log message for help debugging
1 parent a8d9d8d commit c1de45a

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

pkg/controller/topology.go

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,19 @@ package controller
1818

1919
import (
2020
"fmt"
21+
"hash/fnv"
22+
"math/rand"
23+
"sort"
24+
"strconv"
25+
"strings"
26+
2127
"github.com/container-storage-interface/spec/lib/go/csi/v0"
2228
"github.com/golang/glog"
23-
"hash/fnv"
2429
"k8s.io/api/core/v1"
2530
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
2631
"k8s.io/client-go/kubernetes"
2732
csiv1alpha1 "k8s.io/csi-api/pkg/apis/csi/v1alpha1"
2833
csiclientset "k8s.io/csi-api/pkg/client/clientset/versioned"
29-
"math/rand"
30-
"sort"
31-
"strconv"
32-
"strings"
3334
)
3435

3536
// topologyTerm represents a single term where its topology key value pairs are AND'd together.
@@ -128,7 +129,7 @@ func GenerateAccessibilityRequirements(
128129
// constraint.
129130
// - Otherwise, the aggregated topology is guaranteed to contain topology information from the
130131
// selected node.
131-
return nil, fmt.Errorf("topology %v from selected node %q is not in requisite", selectedTopology, selectedNode.Name)
132+
return nil, fmt.Errorf("topology %v from selected node %q is not in requisite: %v", selectedTopology, selectedNode.Name, requisiteTerms)
132133
}
133134
}
134135
requirement.Preferred = toCSITopology(preferredTerms)

0 commit comments

Comments
 (0)