Skip to content

Commit

Permalink
Merge pull request #158 from leakingtapan/add-log
Browse files Browse the repository at this point in the history
Update log message for help debugging
  • Loading branch information
k8s-ci-robot authored Nov 14, 2018
2 parents 1cd1c20 + e763965 commit 5038544
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,9 @@ flycheck_*.el
# ignore build directory
_output/


# vim
*.swp

# bin
bin/
13 changes: 7 additions & 6 deletions pkg/controller/topology.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,19 @@ package controller

import (
"fmt"
"hash/fnv"
"math/rand"
"sort"
"strconv"
"strings"

"github.com/container-storage-interface/spec/lib/go/csi/v0"
"github.com/golang/glog"
"hash/fnv"
"k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/client-go/kubernetes"
csiv1alpha1 "k8s.io/csi-api/pkg/apis/csi/v1alpha1"
csiclientset "k8s.io/csi-api/pkg/client/clientset/versioned"
"math/rand"
"sort"
"strconv"
"strings"
)

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

0 comments on commit 5038544

Please sign in to comment.