提交 1176aa46 编写于 作者: T Thomas Stromberg

More status logging

上级 cee9448f
......@@ -138,6 +138,7 @@ func status(api libmachine.API, name string) (*Status, error) {
}
hs, err := cluster.GetHostStatus(api, name)
glog.Infof("%s host status = %q (err=%v)", name, hs, err)
if err != nil {
return st, errors.Wrap(err, "host")
}
......@@ -162,6 +163,8 @@ func status(api libmachine.API, name string) (*Status, error) {
}
stk, err := kverify.KubeletStatus(cr)
glog.Infof("%s kubelet status = %s (err=%v)", stk, err)
if err != nil {
glog.Warningf("kubelet err: %v", err)
st.Kubelet = state.Error.String()
......@@ -183,6 +186,8 @@ func status(api libmachine.API, name string) (*Status, error) {
}
sta, err := kverify.APIServerStatus(cr, ip, port)
glog.Infof("%s apiserver status = %s (err=%v)", stk, err)
if err != nil {
glog.Errorln("Error apiserver status:", err)
st.APIServer = state.Error.String()
......@@ -192,6 +197,8 @@ func status(api libmachine.API, name string) (*Status, error) {
st.Kubeconfig = Misconfigured
ks, err := kubeconfig.IsClusterInConfig(ip, name)
glog.Infof("%s kubeconfig status = %s (err=%v)", ks, err)
if err != nil {
glog.Errorln("Error kubeconfig status:", err)
}
......
......@@ -127,6 +127,7 @@ func (d *Driver) GetURL() (string, error) {
// GetState returns the state that the host is in (running, stopped, etc)
func (d *Driver) GetState() (state.State, error) {
glog.Infof("GetState called")
ip, err := d.GetIP()
if err != nil {
return state.Error, err
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册