Fabriceli opened a new issue, #1534:
URL: https://github.com/apache/apisix-ingress-controller/issues/1534
### Issue description
update apisix version from 2.15.1 to 3.0.0 in helm values file, in
controller container got ssl is null error:
```sh
2022-12-16T17:05:30+08:00 debug apisix/ssl.go:112 try to list
ssl in APISIX {"url":
"http://apisix-admin.apisix.svc.cluster.local:9180/apisix/admin/ssl",
"cluster": "default"}
2022-12-16T17:05:30+08:00 debug apisix/cluster.go:598 list
resource in cluster {"cluster_name": "default", "name": "ssl", "url":
"http://apisix-admin.apisix.svc.cluster.local:9180/apisix/admin/ssl"}
2022-12-16T17:05:30+08:00 debug apisix/resource.go:161 got ssl:
2022-12-16T17:05:30+08:00 error apisix/ssl.go:128 failed to
convert ssl item {"url":
"http://apisix-admin.apisix.svc.cluster.local:9180/apisix/admin/ssl",
"ssl_key": "/apisix/ssls/", "error": "unexpected end of JSON input"}
2022-12-16T17:05:30+08:00 error apisix/cluster.go:232 failed to
list ssl in APISIX: unexpected end of JSON input
```
and I run `kubectl exec -it -n apisix
apisix-ingress-controller-64d754567b-7z24j -- /bin/bash` and do ` curl
http://apisix-admin.apisix.svc.cluster.local:9180/apisix/admin/ssl -H
'X-API-Key:edd1c9f034335f136f87ad84b625c8f1'` I can get result:
```sh
[root@apisix-ingress-controller-64d754567b-7z24j ingress-apisix]# curl
http://apisix-admin.apisix.svc.cluster.local:9180/apisix/admin/ssl -H
'X-API-Key:edd1c9f034335f136f87ad84b625c8f1'
{"count":1,"action":"get","node":{"nodes":[{"modifiedIndex":6077,"key":"\/apisix\/ssls\/","createdIndex":119}],"key":"\/apisix\/ssl","dir":true}}
```
### Environment
- your apisix-ingress-controller version (output of
apisix-ingress-controller version --long):
```sh
Version: 1.5.0
Git SHA: no-git-module
Go Version: go1.19.4
Building OS/Arch: linux/amd64
Running OS/Arch: linux/amd64
```
- your Kubernetes cluster version (output of kubectl version):
```sh
Client Version: version.Info{Major:"1", Minor:"25", GitVersion:"v1.25.2",
GitCommit:"5835544ca568b757a8ecae5c153f317e5736700e", GitTreeState:"clean",
BuildDate:"2022-09-21T14:33:49Z", GoVersion:"go1.19.1", Compiler:"gc",
Platform:"darwin/amd64"}
Kustomize Version: v4.5.7
Server Version: version.Info{Major:"1", Minor:"25", GitVersion:"v1.25.2",
GitCommit:"5835544ca568b757a8ecae5c153f317e5736700e", GitTreeState:"clean",
BuildDate:"2022-09-21T14:27:13Z", GoVersion:"go1.19.1", Compiler:"gc",
Platform:"linux/amd64"}
```
- if you run apisix-ingress-controller in Bare-metal environment, also show
your OS version (uname -a):
```sh
Darwin fabricedeMacBook-Pro.local 22.2.0 Darwin Kernel Version 22.2.0: Fri
Nov 11 02:08:47 PST 2022; root:xnu-8792.61.2~4/RELEASE_X86_64 x86_64
```
### Minimal test code / Steps to reproduce
1. update `apisix/valuesyaml` file, I got these files from `helm fetch
apisix/apisix`
```yaml
image:
repository: apache/apisix
pullPolicy: IfNotPresent
# Overrides the image tag whose default is the chart appVersion.
tag: 3.0.0-debian
```
2. run helm upgrade
3. run kubectl logs to show controller logs
### Actual result
```sh
2022-12-16T17:05:30+08:00 debug apisix/ssl.go:112 try to list
ssl in APISIX {"url":
"http://apisix-admin.apisix.svc.cluster.local:9180/apisix/admin/ssl",
"cluster": "default"}
2022-12-16T17:05:30+08:00 debug apisix/cluster.go:598 list
resource in cluster {"cluster_name": "default", "name": "ssl", "url":
"http://apisix-admin.apisix.svc.cluster.local:9180/apisix/admin/ssl"}
2022-12-16T17:05:30+08:00 debug apisix/resource.go:161 got ssl:
2022-12-16T17:05:30+08:00 error apisix/ssl.go:128 failed to
convert ssl item {"url":
"http://apisix-admin.apisix.svc.cluster.local:9180/apisix/admin/ssl",
"ssl_key": "/apisix/ssls/", "error": "unexpected end of JSON input"}
2022-12-16T17:05:30+08:00 error apisix/cluster.go:232 failed to
list ssl in APISIX: unexpected end of JSON input
```
### Error log
```sh
2022-12-16T17:05:30+08:00 debug apisix/ssl.go:112 try to list
ssl in APISIX {"url":
"http://apisix-admin.apisix.svc.cluster.local:9180/apisix/admin/ssl",
"cluster": "default"}
2022-12-16T17:05:30+08:00 debug apisix/cluster.go:598 list
resource in cluster {"cluster_name": "default", "name": "ssl", "url":
"http://apisix-admin.apisix.svc.cluster.local:9180/apisix/admin/ssl"}
2022-12-16T17:05:30+08:00 debug apisix/resource.go:161 got ssl:
2022-12-16T17:05:30+08:00 error apisix/ssl.go:128 failed to
convert ssl item {"url":
"http://apisix-admin.apisix.svc.cluster.local:9180/apisix/admin/ssl",
"ssl_key": "/apisix/ssls/", "error": "unexpected end of JSON input"}
2022-12-16T17:05:30+08:00 error apisix/cluster.go:232 failed to
list ssl in APISIX: unexpected end of JSON input
```
### Expected result
no error
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]