Open vincentmli opened 3 years ago
The module did not install. The image was not complete. Use the IP of the Controller machine as your target not the DNS name.
PE Matthew mentioned this could be versioning mismatch between controller and agent which I agree
upgrade controller to 3.21.0 resolved the issue
/opt/nginx-controller/helper.sh version
Installed version: 3.21.0
[sudo] password for admin:
Running version: 3.21.0
kubectl logs nginx-agent | head -30
starting nginx ...
waiting for nginx workers ...
2021/11/04 00:13:37 [notice] 8#8: using the "epoll" event method
2021/11/04 00:13:37 [notice] 8#8: nginx/1.21.3 (nginx-plus-r25)
2021/11/04 00:13:37 [notice] 8#8: built by gcc 7.5.0 (Ubuntu 7.5.0-3ubuntu1~18.04)
2021/11/04 00:13:37 [notice] 8#8: OS: Linux 5.12.0-051200-generic
2021/11/04 00:13:37 [notice] 8#8: getrlimit(RLIMIT_NOFILE): 1048576:1048576
2021/11/04 00:13:37 [notice] 8#8: start worker processes
2021/11/04 00:13:37 [notice] 8#8: start worker process 11
2021/11/04 00:13:37 [notice] 8#8: start worker process 12
2021/11/04 00:13:37 [notice] 8#8: start worker process 13
2021/11/04 00:13:37 [notice] 8#8: start worker process 14
2021/11/04 00:13:37 [notice] 8#8: start worker process 15
2021/11/04 00:13:37 [notice] 8#8: start worker process 16
2021/11/04 00:13:37 [notice] 8#8: start worker process 17
2021/11/04 00:13:37 [notice] 8#8: start worker process 18
updating /etc/controller-agent/agent.conf ...
---> using api_key = fad72ba0cde99e2fa62ef69e465912be
---> using instance_name = cilium-worker
starting controller-agent ...
time="Nov 4 2021 00:13:39.677" level="info" msg="Starting NGINX Controller (Go) Agent. Version: 3.21.8-392329409.release-3-21..." feature="main"
time="Nov 4 2021 00:13:39.683" level="info" msg="Number of NGINX instances discovered" count="1" feature="main"
time="Nov 4 2021 00:13:41.210" level="info" msg="Running 11 agent feature(s)"
time="Nov 4 2021 00:13:41.210" level="info" msg="Loading avrdmgmt"
time="Nov 4 2021 00:13:41.210" level="info" msg="Loading eventsmgr"
time="Nov 4 2021 00:13:41.210" level="info" msg="Loading cloudcfgmgmt"
time="Nov 4 2021 00:13:41.210" level="info" msg="Loading metrics-aggregator"
time="Nov 4 2021 00:13:41.210" level="info" msg="Loading meta"
time="Nov 4 2021 00:13:41.210" level="info" msg="Loading commander"
time="Nov 4 2021 00:13:41.210" level="info" msg="Loading nginxmgmt"
PE Matthew mentioned this could be versioning mismatch between controller and agent which I agree
N+ R25 support for the metrics module is in 3.20.1 and greater.
PE Matthew mentioned this could be versioning mismatch between controller and agent which I agree
N+ R25 support for the metrics module is in 3.20.1 and greater.
@mattdesmarais @brianehlert
the problem is the docker build seems always pull the newest nginx plus version, in this case R25
, but customer could be running an old controller version < 3.20.1
, this result in mismatch, maybe the Dockerfile could be modified to allow build nginx plus version in image to match controller version? or add documents to always run most recent controller version in order to use docker build image?
If there is need for a documentation enhancement around versions ( here for example https://github.com/nginxinc/docker-nginx-controller#21-building-an-nginx-controller-enabled-image-with-nginx-plus ) - please fork create the pull request.
I thought version pinning of NGINX Plus was an option at one time. Since you are internal, please reach out to the PM team with your request. However, modifying your clone of the examples and setting a version on line 30 here: https://github.com/nginxinc/docker-nginx-controller/blob/master/ubuntu/examples/nginx-plus/Dockerfile
Could satisfy your need to version pin nginx plus.
@mattdesmarais Do we have some sort of matrix with controller version and nginx plus version match? give a command line environment variable with docker build command should do it, like https://vsupalov.com/docker-build-pass-environment-variables/
Facing this issue with latest R26 N+ instance and 3.22.1 controller combination.
So it will be great if we can prioritize this issue.. ![Uploading bug2.JPG…]()
I am hitting the same thing when building with NAP even though the Dockerfile ARG mentions that version 25 should be installed the part that installs NAP has no version and by default installs the latest and oversides anything previously installed by the agent and the Nginx plus version.
As per my knowledge latest controller release 3.22.1 supports only till R25 and dev updated there will be a new controller release 3.22.2 planned which supports R26..
the controller could discover the controller agent, but when adding gateway, it complains error from controller UI
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