Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Contour fails to reconcile (step-by-step / management cluster / step 6) #184

Open
adamesch opened this issue Aug 12, 2021 · 3 comments
Open

Comments

@adamesch
Copy link

I hope it's ok I submit something -- I've been following your lab setup guide (it's generally fantastic), and I ran into an issue setting up Contour on the management cluster. I figured out what was going on, but I don't know what actually needs to be changed in the instructions / scripts to resolve what I found.

Running ./scripts/generate-and-apply-contour-yaml.sh $(yq e .management-cluster.name $PARAMS_YAML) results in an infinite loop. Running kubectl describe app contour -n tanzu-system-ingress reveals the following error:

image

I managed to fix this by 1) editing the values.yaml file (generated/.../contour/contour-data-values.yaml, 2) recreating the contour-data-values secret manually, and 3) re-applying the contour extension. An extra doc separator ended up being the cause of the initial failure (more screenshots below):

This is a copy of the contour-data-values.yaml file that caused the failure:

image

I removed one of the doc separators, and reran the commands in /scripts/generate-and-apply-contour-yaml.sh

image

... which worked:

image

I'm in the process of learning kubernetes / tanzu, so I'm not entirely sure why having an extra doc separator breaks things, but just thought I would let you know (the original file copied from /tkg-extensions/extensions/ingress/contour/vsphere/contour-data-values.yaml.example does not contain the extra separator)

image

@jaimegag
Copy link
Collaborator

Hi @adamesch , thanks for the feedback!
Just to confirm, a quick question, what system were you using to run the Lab commands? Is it a Linux machine?

/cc @doddatpivotal

@adamesch
Copy link
Author

@jaimegag - In the environment I'm working in, I'm running the commands from an Ubuntu 18.04 VM

@jaimegag
Copy link
Collaborator

jaimegag commented Sep 29, 2021

Hi @adamesch . The recent bump in the lab to align with TKG 1.4 and use yq v4.12+ (https://github.com/Tanzu-Solutions-Engineering/tkg-lab#required-clis) should prevent any issue with those yaml separators.
Please let us know if re-testing with the updated versions works better

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants