Skip to content

Conversation

@wking
Copy link
Member

@wking wking commented Oct 5, 2018

We want to spit these out right away, instead of asking the caller to re-run with --log-level=debug.

The -no-color additions work around hashicorp/terraform#15264; without them stripping newlines doesn't work, because there are color escapes in the way.

Inserting a bug to test:

$ git diff -U1
diff --git a/pkg/tfvars/tfvars.go b/pkg/tfvars/tfvars.go
index d5f5543..8f44646 100644
--- a/pkg/tfvars/tfvars.go
+++ b/pkg/tfvars/tfvars.go
@@ -19,3 +19,3 @@ type config struct {
 	 Name       string `json:"tectonic_cluster_name,omitempty"`
-	 BaseDomain string `json:"tectonic_base_domain,omitempty"`
+	 BaseDomain string `json:"xtectonic_base_domain,omitempty"`
 	 Masters    int    `json:"tectonic_master_count,omitempty"`
$ hack/build.sh
$ openshift-install cluster
INFO Fetching OS image...
INFO Using Terraform to create cluster...
ERROR Failed to read tfstate ("/tmp/openshift-install-122374392/terraform.tfstate"): open /tmp/openshift-install-122374392/terraform.tfstate: no such file or directory
ERROR Error: Error asking for user input: missing required value for "tectonic_base_domain"
FATAL Failed to generate Cluster: failed to generate asset Cluster: failed to run terraform: failed to execute Terraform: exit status 1

@openshift-ci-robot openshift-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Oct 5, 2018
@abhinavdahiya
Copy link
Contributor

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Oct 5, 2018
@wking
Copy link
Member Author

wking commented Oct 5, 2018

e2e:

Oct  5 19:31:03.807: Couldn't delete ns: "e2e-tests-secrets-hr526": timed out waiting for the condition (&errors.errorString{s:"timed out waiting for the condition"})

Same as here. Should be fixed with #425 landed.

/retest

We want to spit these out right away, instead of asking the caller to
re-run with --log-level=debug.

The -no-color additions work around [1]; without them stripping
newlines doesn't work, because there are color escapes in the way.

Inserting a bug to test:

  $ git diff -U1
  diff --git a/pkg/tfvars/tfvars.go b/pkg/tfvars/tfvars.go
  index d5f5543..8f44646 100644
  --- a/pkg/tfvars/tfvars.go
  +++ b/pkg/tfvars/tfvars.go
  @@ -19,3 +19,3 @@ type config struct {
   	 Name       string `json:"tectonic_cluster_name,omitempty"`
  -	 BaseDomain string `json:"tectonic_base_domain,omitempty"`
  +	 BaseDomain string `json:"xtectonic_base_domain,omitempty"`
   	 Masters    int    `json:"tectonic_master_count,omitempty"`
  $ hack/build.sh
  $ openshift-install cluster
  INFO Fetching OS image...
  INFO Using Terraform to create cluster...
  ERROR Failed to read tfstate ("/tmp/openshift-install-122374392/terraform.tfstate"): open /tmp/openshift-install-122374392/terraform.tfstate: no such file or directory
  ERROR Error: Error asking for user input: missing required value for "tectonic_base_domain"
  FATAL Failed to generate Cluster: failed to generate asset Cluster: failed to run terraform: failed to execute Terraform: exit status 1

[1]: hashicorp/terraform#15264
@wking wking force-pushed the terraform-errors branch from 8dc2d7c to aa01311 Compare October 5, 2018 20:33
@openshift-ci-robot openshift-ci-robot removed the lgtm Indicates that a PR is ready to be merged. label Oct 5, 2018
@wking
Copy link
Member Author

wking commented Oct 5, 2018

Rebased around 00850ee (#344) with 8dc2d7c -> aa01311.

@abhinavdahiya
Copy link
Contributor

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Oct 5, 2018
@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: abhinavdahiya, wking

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:
  • OWNERS [abhinavdahiya,wking]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-robot openshift-merge-robot merged commit edc4d97 into openshift:master Oct 5, 2018
@wking wking deleted the terraform-errors branch October 5, 2018 21:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants