Open
Description
the controller could discover the controller agent, but when adding gateway, it complains error from controller UI
Error: {"key": "instance:cilium-worker:unspecified::", "type": "failed", "Message": "Failed testing config before applying: nginx: [emerg] dlopen() \"/etc/nginx/modules/ngx_http_f5_metrics_module.so\" failed (/etc/nginx/modules/ngx_http_f5_metrics_module.so: cannot open shared object file: No such file or directory) in /etc/nginx/nginx.conf:7\nnginx: configuration file /etc/nginx/nginx.conf test failed\n", "contributions": ["gateway:test_gw::test_env:"]}
empty log in agent.log, this is not helpful as we expect to see something logged in agent.log
and indeed the ngx_http_f5_metrics_module.so
is missing in /usr/lib/nginx/modules
# kubectl exec -it nginx-agent -- /bin/sh
# cd /etc/nginx
# ls
conf.d fastcgi_params mime.types modules nginx.conf scgi_params uwsgi_params
# ls -l modules
lrwxrwxrwx 1 root root 22 Sep 5 23:00 modules -> /usr/lib/nginx/modules
# ls -l /usr/lib/nginx/modules
total 3384
-rw-r--r-- 1 root root 874624 Oct 20 20:30 ngx_http_js_module-debug.so
-rw-r--r-- 1 root root 870528 Oct 20 20:30 ngx_http_js_module.so
-rw-r--r-- 1 root root 856288 Oct 20 20:30 ngx_stream_js_module-debug.so
-rw-r--r-- 1 root root 852192 Oct 20 20:30 ngx_stream_js_module.so
Metadata
Metadata
Assignees
Labels
No labels