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

chore: bump NGINX version v1.21.4 #8889

Merged
merged 5 commits into from
Oct 28, 2022
Merged

Conversation

tao12345666333
Copy link
Member

Signed-off-by: Jintao Zhang [email protected]

What this PR does / why we need it:

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation only

Which issue/s this PR fixes

fixes: #8799

How Has This Been Tested?

Checklist:

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I've read the CONTRIBUTION guide
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@k8s-ci-robot k8s-ci-robot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. needs-kind Indicates a PR lacks a `kind/foo` label and requires one. needs-priority size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Jul 30, 2022
@k8s-ci-robot k8s-ci-robot requested review from rikatz and strongjz July 30, 2022 17:51
@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 30, 2022
@strongjz
Copy link
Member

strongjz commented Aug 1, 2022

/kind feature
/priority important-soon
/triage accepted
/ok-to-test

@k8s-ci-robot k8s-ci-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. kind/feature Categorizes issue or PR as related to a new feature. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. triage/accepted Indicates an issue or PR is ready to be actively worked on. and removed needs-kind Indicates a PR lacks a `kind/foo` label and requires one. needs-priority needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. labels Aug 1, 2022
@strongjz
Copy link
Member

strongjz commented Aug 6, 2022

@tao12345666333 we need to merge this to kick of the cloud build or are you doing that on your own?

@tao12345666333
Copy link
Member Author

@strongjz Actually I haven't finished this PR
I would test locally first

@loveRhythm1990
Copy link
Contributor

loveRhythm1990 commented Aug 22, 2022

hi, I want to upgrade NGINX to 1.22.0,will it work if i only change "export NGINX_VERSION=1.19.10" to "export NGINX_VERSION=1.22.0" and change its sha256 hash value ? I always build failure and never success,the common error is following:
#26 1694.1 objs/ngx_http_auth_digest_module_modules.c #26 1694.2 /tmp/build/nginx_ajp_module-a964a0bcc6a9f2bfb82a13752d7794a36319ffac/ngx_http_ajp.c: In function 'sc_for_req_get_uri': #26 1694.2 /tmp/build/nginx_ajp_module-a964a0bcc6a9f2bfb82a13752d7794a36319ffac/ngx_http_ajp.c:139:29: error: 'ngx_http_request_t' {aka 'struct ngx_http_request_s'} has no member named 'space_in_uri'; did you mean 'plus_in_uri'? #26 1694.2 139 | if (r->quoted_uri || r->space_in_uri || r->internal) { #26 1694.2 | ^~~~~~~~~~~~ #26 1694.2 | plus_in_uri #26 1694.2 make[1]: *** [objs/Makefile:2818: objs/addon/nginx_ajp_module-a964a0bcc6a9f2bfb82a13752d7794a36319ffac/ngx_http_ajp.o] Error 1 #26 1694.2 make[1]: *** Waiting for unfinished jobs.... #26 1695.0 make[1]: Leaving directory '/tmp/build/nginx-1.22.0' #26 1695.0 make: *** [Makefile:10: build] Error 2
I need some help, plz, @tao12345666333

@tao12345666333
Copy link
Member Author

hi, I want to upgrade NGINX to 1.22.0,will it work if i only change "export NGINX_VERSION=1.19.10" to "export NGINX_VERSION=1.22.0" and change its sha256 hash value ?

no, also need to change all module dependencies.
As I am modifying other modules in this PR

@loveRhythm1990
Copy link
Contributor

hi, I want to upgrade NGINX to 1.22.0,will it work if i only change "export NGINX_VERSION=1.19.10" to "export NGINX_VERSION=1.22.0" and change its sha256 hash value ?

no, also need to change all module dependencies. As I am modifying other modules in this PR

Are there any hints to find the target versions of dependencies ? I am not work on NGINX and this seems hard to me

@tao12345666333
Copy link
Member Author

@loveRhythm1990
Copy link
Contributor

Signed-off-by: Jintao Zhang <[email protected]>
@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Oct 14, 2022
@tao12345666333
Copy link
Member Author

Next I just need to update the patch

Signed-off-by: Jintao Zhang <[email protected]>
@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Oct 25, 2022
Signed-off-by: Jintao Zhang <[email protected]>
@tao12345666333 tao12345666333 changed the title [WIP] chore: bump NGINX version v1.21.4 chore: bump NGINX version v1.21.4 Oct 25, 2022
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Oct 25, 2022
Signed-off-by: Jintao Zhang <[email protected]>
@tao12345666333
Copy link
Member Author

tao@moelove:~$ docker run  --entrypoint sh --rm -it gcr.io/k8s-staging-ingress-nginx/nginx:12345 
/ # nginx -V
nginx version: nginx/1.21.4
built by gcc 11.2.1 20220219 (Alpine 11.2.1_git20220219) 
built with OpenSSL 1.1.1q  5 Jul 2022
TLS SNI support enabled
configure arguments: --prefix=/usr/local/nginx --conf-path=/etc/nginx/nginx.conf --modules-path=/etc/nginx/modules --http-log-path=/var/log/nginx/access.log --error-log-path=/var/log/nginx/error.log --lock-path=/var/lock/nginx.lock --pid-path=/run/nginx.pid --http-client-body-temp-path=/var/lib/nginx/body --http-fastcgi-temp-path=/var/lib/nginx/fastcgi --http-proxy-temp-path=/var/lib/nginx/proxy --http-scgi-temp-path=/var/lib/nginx/scgi --http-uwsgi-temp-path=/var/lib/nginx/uwsgi --with-debug --with-compat --with-pcre-jit --with-http_ssl_module --with-http_stub_status_module --with-http_realip_module --with-http_auth_request_module --with-http_addition_module --with-http_geoip_module --with-http_gzip_static_module --with-http_sub_module --with-http_v2_module --with-stream --with-stream_ssl_module --with-stream_realip_module --with-stream_ssl_preread_module --with-threads --with-http_secure_link_module --with-http_gunzip_module --with-file-aio --without-mail_pop3_module --without-mail_smtp_module --without-mail_imap_module --without-http_uwsgi_module --without-http_scgi_module --with-cc-opt='-g -O2 -fPIE -fstack-protector-strong -Wformat -Werror=format-security -Wno-deprecated-declarations -fno-strict-aliasing -D_FORTIFY_SOURCE=2 --param=ssp-buffer-size=4 -DTCP_FASTOPEN=23 -fPIC -I/root/.hunter/_Base/d45d77d/d0c447a/3b7ee27/Install/include -Wno-cast-function-type -m64 -mtune=generic' --with-ld-opt='-fPIE -fPIC -pie -Wl,-z,relro -Wl,-z,now -L/root/.hunter/_Base/d45d77d/d0c447a/3b7ee27/Install/lib' --user=www-data --group=www-data --add-module=/tmp/build/ngx_devel_kit-0.3.1 --add-module=/tmp/build/set-misc-nginx-module-0.33 --add-module=/tmp/build/headers-more-nginx-module-0.33 --add-module=/tmp/build/ngx_http_substitutions_filter_module-b8a71eacc7f986ba091282ab8b1bbbc6ae1807e0 --add-module=/tmp/build/lua-nginx-module-0.10.21 --add-module=/tmp/build/stream-lua-nginx-module-0.0.11 --add-module=/tmp/build/lua-upstream-nginx-module-8aa93ead98ba2060d4efd594ae33a35d153589bf --add-module=/tmp/build/nginx_ajp_module-fcbb2ccca4901d317ecd7a9dabb3fec9378ff40f --add-dynamic-module=/tmp/build/nginx-http-auth-digest-1.0.0 --add-dynamic-module=/tmp/build/nginx-influxdb-module-5b09391cb7b9a889687c0aa67964c06a2d933e8b --add-dynamic-module=/tmp/build/nginx-opentracing-0.19.0/opentracing --add-dynamic-module=/tmp/build/ModSecurity-nginx-1.0.2 --add-dynamic-module=/tmp/build/ngx_http_geoip2_module-a26c6beed77e81553686852dceb6c7fdacc5970d --add-dynamic-module=/tmp/build/ngx_brotli

@rikatz
Copy link
Contributor

rikatz commented Oct 25, 2022

@tao12345666333 ready for some review? let me know, we can do live review! :D

@tao12345666333
Copy link
Member Author

yes!

@@ -18,13 +18,13 @@ set -o errexit
set -o nounset
set -o pipefail

export NGINX_VERSION=1.19.10
export NGINX_VERSION=1.21.4
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

question: should we stick with v1.21.4 even 1.21.6 existing? should we cherry pick 21.6 patches?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As Openresty hasn't been updated to 1.21.6, although not much has changed between 1.21.4 and 1.21.6. But I want to merge this first, to test this. Then update to 1.21.6 in subsequent PRs

/unhold

@rikatz
Copy link
Contributor

rikatz commented Oct 26, 2022

yey nice. I guess this is good. I only wanted to know if we can use the last nginx patch :D

@rikatz
Copy link
Contributor

rikatz commented Oct 26, 2022

/lgtm
/hold
Saw the changes from v1.21.6, not a big deal.

Unhold as you wish! Thanks Jintao!

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Oct 26, 2022
@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Oct 26, 2022
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: rikatz, tao12345666333

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Oct 28, 2022
@tao12345666333
Copy link
Member Author

As Openresty hasn't been updated to 1.21.6, although not much has changed between 1.21.4 and 1.21.6. But I want to merge this first, to test this. Then update to 1.21.6 in subsequent PRs

/unhold

@tao12345666333
Copy link
Member Author

/hold cancel

@k8s-ci-robot k8s-ci-robot merged commit bf8362c into kubernetes:main Oct 28, 2022
@priyesh2609
Copy link

Hi @tao12345666333, @rikatz, the version upgrade in this PR 1.21.4 has reached an end of support since long time.

Is there any plan to upgrade to currently supported version like 1.22.1 or 1.23.2. As mentioned here

jaehnri pushed a commit to jaehnri/ingress-nginx that referenced this pull request Jan 2, 2023
* chore: bump NGINX version v1.21.4

Signed-off-by: Jintao Zhang <[email protected]>

* chore: bump all others

Signed-off-by: Jintao Zhang <[email protected]>

* apply all patches

Signed-off-by: Jintao Zhang <[email protected]>

* fix files hash

Signed-off-by: Jintao Zhang <[email protected]>

* fix ajp module

Signed-off-by: Jintao Zhang <[email protected]>

Signed-off-by: Jintao Zhang <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/feature Categorizes issue or PR as related to a new feature. lgtm "Looks good to me", indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. triage/accepted Indicates an issue or PR is ready to be actively worked on.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update NGINX and OpenResty to v1.21.4
6 participants