runtime icon indicating copy to clipboard operation
runtime copied to clipboard

Acorn install fails to check NginX Ingress Controller IngressCapability

Open denist-huma opened this issue 3 years ago • 3 comments

$ acorn install --cluster-domain sbx.huma.com --ingress-class-name nginx --acorn-dns disabled
  ✔  Running Pre-install Checks                                                                                                                                                                               
  ✔  Installing ClusterRoles                                                                                                                                                                                  
  ✔  Installing APIServer and Controller (image ghcr.io/acorn-io/acorn:v0.2.0)                                                                                                                                
  ✔  Waiting for controller deployment to be available                                                                                                                                                        
  ✔  Waiting for API server deployment to be available                                                                                                                                                        
  •  WARNING:  Post-install checks failed. Use `acorn check` to debug or `acorn install --checks=false` to skip                                                                                               
                 IngressCapability: Ingress not ready (test timed out)
  ✔  Installation done
$ acorn --version
acorn version v0.2.0+8dd7a3bb

ingress-nginx-controller log:

I0906 10:55:26.861215       8 event.go:282] Event(v1.ObjectReference{Kind:"Pod", Namespace:"external-system", Name:"ingress-nginx-controller-568764d844-wkbf8", UID:"4a6cd3d9-5fbc-42ca-9782-d651484f9642", AP
IVersion:"v1", ResourceVersion:"531066", FieldPath:""}): type: 'Normal' reason: 'RELOAD' NGINX reload triggered due to a change in configuration                                                              
W0906 10:56:05.525960       8 controller.go:1083] Service "acorn-system/acorn-ingress-test" does not have any active Endpoint.                                                                                
I0906 10:56:05.572188       8 admission.go:149] processed ingress via admission controller {testedIngressLength:1 testedIngressTime:0.047s renderingIngressLength:1 renderingIngressTime:0s admissionTime:18.6
kBs testedConfigurationSize:0.047}                                                                                                                                                                            
I0906 10:56:05.572229       8 main.go:101] "successfully validated configuration, accepting" ingress="acorn-system/acorn-ingress-test"                                                                        
I0906 10:56:05.579031       8 store.go:420] "Ignoring ingress because of error while validating ingress class" ingress="acorn-system/acorn-ingress-test" error="ingress does not contain a valid IngressClass"
I0906 10:57:02.175674       8 store.go:390] "Ignoring ingress because of error while validating ingress class" ingress="acorn-system/acorn-ingress-test" error="ingress does not contain a valid IngressClass"

Versions:

  • K8s Rev: v1.23.8-gke.400
  • acorn version v0.2.0+8dd7a3bb
  • k8s.gcr.io/ingress-nginx/controller:v1.1.1 CHART ingress-nginx-4.0.15

denist-huma avatar Sep 06 '22 11:09 denist-huma

@iwilltry42 assigning this to you. If a --ingress-class-name is passed as part of the install, it should be used/respected in the ingress test

cjellick avatar Sep 06 '22 15:09 cjellick

Thanks for the report @denist-huma!

cjellick avatar Sep 06 '22 15:09 cjellick

Thanks for the headsup! Unfortunately, in my tests, ingress-nginx was quite slow to configure an IP, so I also had to raise the test timeout to 1 minute (took ~40s in my tests). PR incoming :+1:

iwilltry42 avatar Sep 09 '22 09:09 iwilltry42

validation: PASS

meldafrawi avatar Oct 04 '22 00:10 meldafrawi