Skip to content

Bug: Formatting issue with load_module directives #2135

@dcherniv

Description

@dcherniv

NGINX Ingress controller version:
0.11.0

Kubernetes version (use kubectl version):
1.9.2

Environment:
GCP
container OS:
4.4.86+ #1 SMP Thu Dec 7 20:11:11 PST 2017 x86_64 GNU/Linux

What happened:
Upon updating the controller from 0.10.2 to 0.11.0, started seeing the below errors:

-------------------------------------------------------------------------------                                                                                                                
W0223 14:12:11.809571       7 queue.go:113] requeuing , err                                                                                                                                    
-------------------------------------------------------------------------------                                                                                                                
Error: exit status 1                                                                                                                                                                           
2018/02/23 14:12:11 [emerg] 1550#1550: unknown directive "load_module/etc/nginx/modules/ngx_http_opentracing_module.so" in /tmp/nginx-cfg821408788:2                                           
nginx: [emerg] unknown directive "load_module/etc/nginx/modules/ngx_http_opentracing_module.so" in /tmp/nginx-cfg821408788:2                                                                   
nginx: configuration file /tmp/nginx-cfg821408788 test failed                                                                                                                                  
                                                                                                                                                                                               
-------------------------------------------------------------------------------       

Looking at the /tmp/nginx config file i saw that the load_module directives were all mashed together on a single line with no spaces.

What you expected to happen:
opentracing enabled and zipkin working.

How to reproduce it (as minimally and precisely as possible):
Install 0.11.0 controller and add the following to configmap:

enable-opentracing: "true"
zipkin-collector-host: dev-zipkin-service

Anything else we need to know:
none.

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.kind/bugCategorizes issue or PR as related to a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions