mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-04 18:00:08 +00:00
Merge pull request #36051 from zdj6373/server-log
Automatic merge from submit-queue improve and modify log 1, the content of a unified writing, compared to the following line of failure (314th lines) 2, “instance” should be “node”
This commit is contained in:
commit
6c5e0269d3
@ -309,7 +309,7 @@ func run(s *options.KubeletServer, kubeDeps *kubelet.KubeletDeps) (err error) {
|
|||||||
|
|
||||||
done := make(chan struct{})
|
done := make(chan struct{})
|
||||||
if s.LockFilePath != "" {
|
if s.LockFilePath != "" {
|
||||||
glog.Infof("acquiring lock on %q", s.LockFilePath)
|
glog.Infof("acquiring file lock on %q", s.LockFilePath)
|
||||||
if err := flock.Acquire(s.LockFilePath); err != nil {
|
if err := flock.Acquire(s.LockFilePath); err != nil {
|
||||||
return fmt.Errorf("unable to acquire file lock on %q: %v", s.LockFilePath, err)
|
return fmt.Errorf("unable to acquire file lock on %q: %v", s.LockFilePath, err)
|
||||||
}
|
}
|
||||||
@ -500,7 +500,7 @@ func getNodeName(cloud cloudprovider.Interface, hostname string) (types.NodeName
|
|||||||
|
|
||||||
nodeName, err := instances.CurrentNodeName(hostname)
|
nodeName, err := instances.CurrentNodeName(hostname)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "", fmt.Errorf("error fetching current instance name from cloud provider: %v", err)
|
return "", fmt.Errorf("error fetching current node name from cloud provider: %v", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
glog.V(2).Infof("cloud provider determined current node name to be %s", nodeName)
|
glog.V(2).Infof("cloud provider determined current node name to be %s", nodeName)
|
||||||
|
Loading…
Reference in New Issue
Block a user