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.

Traffic Ops Topology with Secondary Parent returns error #4772

@rob05c

Description

@rob05c

I attempted to create the following Topology in Traffic Portal:

{
  "name": "Foo",
  "description": "bar",
  "nodes": [
    {
      "cachegroup": "mid-west",
      "parent": "",
      "secParent": "",
      "parents": []
    },
    {
      "cachegroup": "sacramento-ca-usa",
      "parent": "mid-west",
      "secParent": "mid-east",
      "parents": [
        0,
        2
      ]
    },
    {
      "cachegroup": "mid-east",
      "parent": "",
      "secParent": "",
      "parents": []
    },
    {
      "cachegroup": "albany-ny-usa",
      "parent": "mid-east",
      "secParent": "mid-west",
      "parents": [
        2,
        0
      ]
    },
    {
      "cachegroup": "tallahassee-fl-usa",
      "parent": "mid-east",
      "secParent": "mid-west",
      "parents": [
        2,
        0
      ]
    }
  ]
}

And Traffic Ops returned the error message

parent 'sacramento-ca-usa' edge type' cachegroup sacramento-ca-usa's type is EDGE_LOC; it cannot be a parent of sacramento-ca-usa

Note in the JSON, sacramento-ca-usa is not a parent of itself. I also sometimes get error messages for the other edges, thinking other edges are parented to edges, when they're not.

It seems to fail with any Secondary CacheGroup assignment. When I remove the secondaries, it succeeds.

I'm submitting a ...

  • bug report

Traffic Control components affected ...

  • Traffic Ops
  • Traffic Portal

Current behavior:

Cannot create Topology with Secondary Parents. See above.

Expected / new behavior:

Ability to create Topology with Secondary Parents.

Minimal reproduction of the problem with instructions:

In Traffic Portal, attempt to create a topology with multiple Mids and multiple Edges, where the edges' secondary is a different Mid.

Anything else:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Traffic Opsrelated to Traffic Opsbugsomething isn't working as intended

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions