Configuring APIcast with OpenTracing in 3scale fails

Solution Verified - Updated -

Issue

We are trying to enable support for OpenTracing as described in https://access.redhat.com/documentation/en-us/red_hat_3scale_api_management/2.9/html/administering_the_api_gateway/operating-apicast#configuring_apicast_with_opentracing

If we start APIcast with the environment variable OPENTRACING_TRACER set to Jaeger, we get the following error during startup:

ERROR: /usr/local/share/lua/5.1/liquid.lua:2437: error when getting template "conf.d/opentracing/Jaeger.conf.liquid": /opt/app-root/src/conf.d/opentracing/Jaeger.conf.liquid: No such file or directory
stack traceback:
    /usr/local/share/lua/5.1/liquid.lua:2437: in function 'visit'
    /usr/local/share/lua/5.1/liquid.lua:2018: in function 'visit'
    /usr/local/share/lua/5.1/liquid.lua:2018: in function 'render'
    /opt/app-root/src/src/apicast/cli/command/start.lua:57: in function 'nginx_config'
    /opt/app-root/src/src/apicast/cli/command/start.lua:171: in function 'start'
    /opt/app-root/src/src/apicast/cli.lua:50: in function </opt/app-root/src/src/apicast/cli.lua:30>
    /tmp/HSTSbW4Psd:60: in function 'file_gen'
    init_worker_by_lua:49: in function <init_worker_by_lua:47>
    [C]: in function 'xpcall'
    init_worker_by_lua:56: in function <init_worker_by_lua:54>

A quick look into the APIcast container revealed that the file in the container is all lowercase: /opt/app-root/src/conf.d/opentracing/jaeger.conf.liquid

As far as the documentation tells, we don't need to configure anything related to that jaeger.conf.liquid file.

Please provide assistance in resolving this issue. Thank you!

Environment

  • Red Hat 3scale API Management
    • 2.9 On-Premises

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content