trafficcontrol icon indicating copy to clipboard operation
trafficcontrol copied to clipboard

TODB tables cdni_host_limits and cdni_total_limits missing

Open serDrem opened this issue 2 years ago • 1 comments

This Bug Report affects these Traffic Control components:

  • Traffic Ops

Current behavior:

TODB tables cdni_host_limits and cdni_total_limits missing. They are required for OC/CI/configuration/request to work properly. Currently those return 500

Expected behavior:

be able to use OC/CI/configuration/request as defined in https://traffic-control-cdn.readthedocs.io/en/latest/api/v5/oc_ci_configuration_requests.html

Steps to reproduce:

Send an HTTP PUT request to the /OC/CI/configuration TO API endpoint

Example Request Body
{
    "type": "MI.HostMetadata",
    "host": "example.com",
    "metadata": [
        {
            "generic-metadata-type": "MI.RequestedCapacityLimits",
            "generic-metadata-value": {
                "requested-limits": [
                    {
                        "limit-type": "egress",
                        "limit-value": 20000,
                        "footprints": [
                            {
                                "footprint-type": "ipv4cidr",
                                "footprint-value": [
                                    "127.0.0.1",
                                    "127.0.0.2"
                                ]
                            }
                        ]
                    }
                ]
            }
        }
    ]
}

Be able to approve the request via an HTTP PUT request to the /OC/CI/configuration/request/{{ID}}/true endpoint

serDrem avatar Apr 05 '23 17:04 serDrem

able to reproduce at 904e2401ef7c485045ee0a0cf50747b68e573474 in the development environment

ocket8888 avatar Apr 05 '23 20:04 ocket8888