diff --git a/node/masterserver/node/cluster.go b/node/masterserver/node/cluster.go index fdcfb8e89..8f14a1c3d 100644 --- a/node/masterserver/node/cluster.go +++ b/node/masterserver/node/cluster.go @@ -316,10 +316,13 @@ func (n *Cluster) handleNodeStatus(v *client.HostNode) { } } } - + logrus.Info("start delete.......") v.DeleteCondition("OutOfDisk") + logrus.Info("Conditions...", v.NodeStatus.Conditions) v.DeleteCondition("MemoryPressure") + logrus.Info("Conditions...", v.NodeStatus.Conditions) v.DeleteCondition("DiskPressure") + logrus.Info("Conditions...", v.NodeStatus.Conditions) logrus.Debugf("delete condiction type OutOfDisk and MemoryPressure and DiskPressure") //var haveready bool diff --git a/node/nodem/client/node.go b/node/nodem/client/node.go index 0fbdd4121..de87d62ee 100644 --- a/node/nodem/client/node.go +++ b/node/nodem/client/node.go @@ -226,6 +226,7 @@ func (n *HostNode) DeleteCondition(types ...NodeConditionType) { for _, t := range types { for i, c := range n.NodeStatus.Conditions { if c.Type.Compare(t) { + logrus.Debugf(string(c.Type)) n.NodeStatus.Conditions = append(n.NodeStatus.Conditions[:i], n.NodeStatus.Conditions[i+1:]...) break }