Skip to content

question: 1.5 is not compatible with APISIX 3.0 #1534

@Fabriceli

Description

@Fabriceli

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:

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:

[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):
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):
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):
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
  image:
    repository: apache/apisix
    pullPolicy: IfNotPresent
    # Overrides the image tag whose default is the chart appVersion.
    tag: 3.0.0-debian
  1. run helm upgrade
  2. run kubectl logs to show controller logs

Actual result

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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    wontfixThis will not be worked on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions