-
Notifications
You must be signed in to change notification settings - Fork 218
pkg/util/etcdutil: improve etcd migration logs #481
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM after nit
pkg/util/etcdutil/migrate.go
Outdated
|
||
if err := waitEtcdClusterRunning(restClient); err != nil { | ||
return fmt.Errorf("wait etcd cluster running failed: %v", err) | ||
return fmt.Errorf("failed to wait for etcd cluster to be running: %v", err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"etcd cluster's status"
pkg/util/etcdutil/migrate.go
Outdated
@@ -158,7 +158,7 @@ func waitEtcdClusterRunning(restclient restclient.Interface) error { | |||
err := wait.Poll(10*time.Second, waitEtcdClusterRunningTime, func() (bool, error) { | |||
b, err := restclient.Get().RequestURI(makeEtcdClusterURI(etcdClusterName)).DoRaw() | |||
if err != nil { | |||
return false, fmt.Errorf("fail to get etcdcluster: %v", err) | |||
return false, fmt.Errorf("failed to get etcd cluster: %v", err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
etcd cluster TPR
pkg/util/etcdutil/migrate.go
Outdated
@@ -195,12 +195,12 @@ func waitBootEtcdRemoved(etcdServiceIP string) error { | |||
cancel() | |||
etcdcli.Close() | |||
if err != nil { | |||
glog.Errorf("fail to list member, will retry: %v", err) | |||
glog.Errorf("failed to list members, will retry: %v", err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
etcd members
lgtm after addressing the minor issues hongchao pointed out. thanks! |
After running into issues deploying self-hosted etcd on Tectonic, I saw lots of error logs. I thought the logs could be improved and be more consistent.
Thanks, @hongchaodeng and @xiang90. I addressed the nits. @yifan-gu or @pbx0 can someone with rights plz merge? |
After running into issues deploying self-hosted etcd on Tectonic, I saw
lots of error logs. I thought the logs could be improved and be more
consistent.
cc @hongchaodeng