Skip to content
This repository was archived by the owner on Nov 24, 2025. It is now read-only.
This repository was archived by the owner on Nov 24, 2025. It is now read-only.

ORT: unavailable_server_retry_responses having parsing issues #5150

@smalenfant

Description

@smalenfant

I'm submitting a ...

  • bug report

Traffic Control components affected ...

  • Traffic Ops ORT

Current behavior:

Only quotes string with 2 parameters are valid for unavailable_server_retry_responses. Other valid string get ignored and parameters are not been written into the parent.config.

Expected behavior:

Setting unavailable_server_retry_responses to 503 should work. Shouldn't need to be quoted either.

Minimal reproduction of the problem with instructions:

set mso.unavailable_server_retry_responses to 503.
Result: ERROR: parentdotconfig.go:251: 2020-10-14T15:13:03.917552091Z: Malformed unavailable_server_retry_responses parameter '503', not using!

set mso.unavailable_server_retry_responses to "503".
Result: ERROR: parentdotconfig.go:251: 2020-10-14T15:49:28.583433821Z: Malformed unavailable_server_retry_responses parameter '"503"', not using!

set mso.unavailable_server_retry_responses to 502,503.
Result: ERROR: parentdotconfig.go:251: 2020-10-14T15:13:03.917599943Z: Malformed unavailable_server_retry_responses parameter '502,503', not using!

set mso.unavailable_server_retry_responses to "502,503".
Works.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugsomething isn't working as intendedcache-configCache config generation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions