Merge pull request #45027 from MaciekPytel/ca_test_gcloud_log

Automatic merge from submit-queue (batch tested with PRs 41106, 44346, 44929, 44979, 45027)

Log error before failing in autoscaling e2e

The gcloud alpha command in e2e fails, but no useful information (error message) is logged.
This commit is contained in:
Kubernetes Submit Queue 2017-04-27 12:11:08 -07:00 committed by GitHub
commit 33f51926f6

View File

@ -458,7 +458,7 @@ var _ = framework.KubeDescribe("Cluster size autoscaling [Slow]", func() {
})
func execCmd(args ...string) *exec.Cmd {
glog.Info("Executing: %s", strings.Join(args, " "))
glog.Infof("Executing: %s", strings.Join(args, " "))
return exec.Command(args[0], args[1:]...)
}
@ -627,8 +627,8 @@ func addNodePool(name string, machineType string, numNodes int) {
"--project="+framework.TestContext.CloudConfig.ProjectID,
"--zone="+framework.TestContext.CloudConfig.Zone,
"--cluster="+framework.TestContext.CloudConfig.Cluster).CombinedOutput()
framework.ExpectNoError(err)
glog.Infof("Creating node-pool %s: %s", name, output)
framework.ExpectNoError(err)
}
func deleteNodePool(name string) {