Uploaded image for project: 'Red Hat 3scale API Management'
  1. Red Hat 3scale API Management
  2. THREESCALE-10662

APIcast failed to start on aarch64 (arm64)

    • False
    • None
    • False
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started

      Steps to Reproduce

      • Create apicast config
      cat <<EOF >config.json
      {
        "services": [
          {
            "backend_version": "1",
            "proxy": {
              "hosts": [
                "example.com"
              ],
              "api_backend": "https://echo-api.3scale.net",
              "backend": {
                "endpoint": "http://127.0.0.1:8081",
                "host": "backend"
              },
              "proxy_rules": [
                {
                  "http_method": "GET",
                  "pattern": "/",
                  "metric_system_name": "hits",
                  "delta": 1,
                  "parameters": [],
                  "querystring_parameters": {}
                }
              ],
              "policy_chain": [
                {
                  "name": "apicast.policy.apicast"
                }
              ]
            }
          }
        ]
      }
      EOF
      • Run APIcast custom build for arm64 on OS running arm64 arch
      docker run -ti --name apicast --rm -v $PWD/config.json:/opt/app/config.json:ro --env THREESCALE_CONFIG_FILE=/opt/app/config.json --env APICAST_LOG_LEVEL=debug --env APICAST_CONFIGURATION_LOADER=lazy --env APICAST_CONFIGURATION_CACHE=0 --env THREESCALE_DEPLOYMENT_ENV=staging --env APICAST_WORKERS=1 registry-proxy.engineering.redhat.com/rh-osbs/3scale-amp2-apicast-gateway-rhel8@sha256:ee70615fc28cd795e5c7d10947011de29e2226137c2595e51d970865d3d2beb9
       

      The observed error message

       2024/01/11 11:21:23 [notice] 10#10: using the "epoll" event method
      2024/01/11 11:21:23 [notice] 10#10: openresty/1.19.3.1
      2024/01/11 11:21:23 [notice] 10#10: OS: Linux 6.6.8-200.fc39.aarch64
      2024/01/11 11:21:23 [notice] 10#10: getrlimit(RLIMIT_NOFILE): 1048576:1048576
      2024/01/11 11:21:23 [debug] 10#10: *2 [lua] env.lua:86: fetch(): env: APICAST_VALIDATE_POLICY_CONFIGS = nil
      2024/01/11 11:21:23 [debug] 10#10: *2 [lua] env.lua:86: fetch(): env: TEST_NGINX_BINARY = nil
      2024/01/11 11:21:23 [debug] 10#10: *2 [lua] env.lua:86: fetch(): env: APICAST_POLICY_LOAD_PATH = nil
      2024/01/11 11:21:23 [debug] 10#10: *2 [lua] env.lua:86: fetch(): env: APICAST_DIR = /opt/app-root/src
      2024/01/11 11:21:23 [debug] 10#10: *2 [lua] env.lua:86: fetch(): env: APICAST_BUILTIN_POLICY_LOAD_PATH = /opt/app-root/src/src/apicast/policy
      2024/01/11 11:21:23 [debug] 10#10: *2 [lua] policy_loader.lua:150: loading policy: apicast version: builtin
      2024/01/11 11:21:23 [debug] 10#10: *2 [lua] policy_loader.lua:150: loading policy: load_configuration version: builtin
      2024/01/11 11:21:23 [debug] 10#10: *2 [lua] env.lua:86: fetch(): env: APICAST_PATH_ROUTING = nil
      2024/01/11 11:21:23 [debug] 10#10: *2 [lua] env.lua:86: fetch(): env: APICAST_PATH_ROUTING_ENABLED = nil
      2024/01/11 11:21:23 [debug] 10#10: *2 [lua] env.lua:86: fetch(): env: APICAST_PATH_ROUTING_ONLY = nil
      2024/01/11 11:21:23 [debug] 10#10: *2 [lua] env.lua:86: fetch(): env: APICAST_SERVICE_CACHE_SIZE = nil
      2024/01/11 11:21:23 [debug] 10#10: *2 [lua] evp.lua:142: openssl11=true err=nil
      2024/01/11 11:21:23 [debug] 10#10: *2 [lua] env.lua:86: fetch(): env: PWD = /opt/app-root
      2024/01/11 11:21:23 [debug] 10#10: *2 [lua] env.lua:86: fetch(): env: all_proxy = nil
      2024/01/11 11:21:23 [debug] 10#10: *2 [lua] env.lua:86: fetch(): env: ALL_PROXY = nil
      2024/01/11 11:21:23 [debug] 10#10: *2 [lua] env.lua:86: fetch(): env: http_proxy = nil
      2024/01/11 11:21:23 [debug] 10#10: *2 [lua] env.lua:86: fetch(): env: HTTP_PROXY = nil
      2024/01/11 11:21:23 [debug] 10#10: *2 [lua] env.lua:86: fetch(): env: https_proxy = nil
      2024/01/11 11:21:23 [debug] 10#10: *2 [lua] env.lua:86: fetch(): env: HTTPS_PROXY = nil
      2024/01/11 11:21:23 [debug] 10#10: *2 [lua] env.lua:86: fetch(): env: no_proxy = nil
      2024/01/11 11:21:23 [debug] 10#10: *2 [lua] env.lua:86: fetch(): env: NO_PROXY = nil
      2024/01/11 11:21:23 [debug] 10#10: *2 [lua] env.lua:86: fetch(): env: APICAST_OIDC_LOG_LEVEL = nil
      2024/01/11 11:21:23 [debug] 10#10: *2 [lua] env.lua:86: fetch(): env: OPENSSL_VERIFY = nil
      2024/01/11 11:21:23 [debug] 10#10: *2 [lua] env.lua:86: fetch(): env: APICAST_CONFIGURATION_LOADER = lazy
      2024/01/11 11:21:23 [info] 10#10: *2 [lua] configuration_loader.lua:272: new(): using lazy configuration loader, context: ngx.timer
      2024/01/11 11:21:23 [debug] 10#10: *2 [lua] policy_loader.lua:150: loading policy: find_service version: builtin
      2024/01/11 11:21:23 [debug] 10#10: *2 [lua] find_service.lua:23: find_service_func(): Using host-based routing
      2024/01/11 11:21:23 [debug] 10#10: *2 [lua] policy_loader.lua:150: loading policy: local_chain version: builtin
      2024/01/11 11:21:23 [debug] 10#10: *2 [lua] env.lua:86: fetch(): env: APICAST_CUSTOM_CONFIG = nil
      2024/01/11 11:21:23 [debug] 10#10: *2 [lua] env.lua:86: fetch(): env: BACKEND_ENDPOINT_OVERRIDE = nil
      2024/01/11 11:21:23 [debug] 10#10: *2 [lua] env.lua:86: fetch(): env: APICAST_RESPONSE_CODES = nil
      2024/01/11 11:21:23 [debug] 10#10: *2 [lua] env.lua:86: fetch(): env: APICAST_REPORTING_THREADS = nil
      2024/01/11 11:21:23 [debug] 10#10: *2 [lua] env.lua:86: fetch(): env: APICAST_MODULE = nil
      2024/01/11 11:21:23 [debug] 10#10: *2 [lua] policy_loader.lua:150: loading policy: apicast version: builtin
      2024/01/11 11:21:23 [debug] 10#10: *2 [lua] policy_loader.lua:150: loading policy: nginx_metrics version: builtin
      2024/01/11 11:21:23 [debug] 10#10: *2 [lua] env.lua:86: fetch(): env: APICAST_EXTENDED_METRICS = nil
      2024/01/11 11:21:23 [debug] 10#10: *2 [lua] env.lua:86: fetch(): env: NGINX_METRICS_MAX_LOGS = nil
      2024/01/11 11:21:23 [debug] 10#10: *2 [lua] policy_loader.lua:150: loading policy: clear_context version: builtin
      2024/01/11 11:21:23 [debug] 10#10: *2 [lua] env.lua:86: fetch(): env: OPENTRACING_TRACER = nil
      2024/01/11 11:21:23 [debug] 10#10: *2 [lua] policy_loader.lua:150: loading policy: load_configuration version: builtin
      2024/01/11 11:21:23 [debug] 10#10: *2 [lua] policy_loader.lua:150: loading policy: find_service version: builtin
      2024/01/11 11:21:23 [debug] 10#10: *2 [lua] find_service.lua:23: find_service_func(): Using host-based routing
      2024/01/11 11:21:23 [debug] 10#10: *2 [lua] policy_loader.lua:150: loading policy: local_chain version: builtin
      2024/01/11 11:21:23 [debug] 10#10: *2 [lua] policy_loader.lua:150: loading policy: nginx_metrics version: builtin
      2024/01/11 11:21:23 [debug] 10#10: *2 [lua] policy_loader.lua:150: loading policy: clear_context version: builtin
      2024/01/11 11:21:23 [debug] 10#10: *2 [lua] resolver.lua:115: parse_nameservers(): /etc/resolv.conf:
      search redhat.com
      nameserver 192.168.127.1
      
      2024/01/11 11:21:23 [debug] 10#10: *2 [lua] env.lua:86: fetch(): env: RESOLVER = nil
      2024/01/11 11:21:23 [debug] 10#10: *2 [lua] resolver.lua:136: parse_nameservers(): search redhat.com
      2024/01/11 11:21:23 [debug] 10#10: *2 [lua] resolver.lua:140: parse_nameservers(): search domain: redhat.com
      2024/01/11 11:21:23 [info] 10#10: *2 [lua] resolver.lua:161: init_nameservers(): adding 192.168.127.1:53 as default nameserver, context: ngx.timer
      2024/01/11 11:21:23 [info] 10#10: *2 [lua] resolver.lua:166: init_nameservers(): adding redhat.com as search domain, context: ngx.timer
      ERROR: /usr/local/share/lua/5.1/lfs.lua:921: TODO support other Linux architectures
      stack traceback:
      	/usr/local/share/lua/5.1/lfs.lua:921: in function 'func'
      	/usr/local/share/lua/5.1/lfs.lua:1082: in function 'attrib'
      	/usr/local/share/lua/5.1/pl/path.lua:92: in function 'exists'
      	/opt/app-root/src/src/apicast/cli/environment.lua:53: in function 'cpu_shares'
      	/opt/app-root/src/src/apicast/cli/environment.lua:81: in function 'cpus'
      	/opt/app-root/src/src/apicast/cli/environment.lua:154: in main chunk
      	[C]: in function 'require'
      	/opt/app-root/src/src/apicast/cli/command/start.lua:18: in main chunk
      	[C]: in function 'require'
      	/opt/app-root/src/src/apicast/cli.lua:18: in function 'load_commands'
      	/opt/app-root/src/src/apicast/cli.lua:23: in main chunk
      	[C]: in function 'require'
      	/opt/app-root/src/bin/apicast_cli.lua:47: in function 'file_gen'
      	init_worker_by_lua:45: in function <init_worker_by_lua:43>
      	[C]: in function 'xpcall'
      	init_worker_by_lua:52: in function <init_worker_by_lua:50>

              Unassigned Unassigned
              eguzki Eguzki Astiz Lezaun
              Matej Dujava Matej Dujava
              An Tran An Tran
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated: