← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 2020552] [NEW] trunk_details missing sub port MAC addresses for LIST

 

Public bug reported:

When returning port details, trunk_details.sub_ports should contain:
* segmentation_id
* segmentation_type
* port_id
* mac_address

This is the case when GETting a single port, but when listing ports
mac_address is missing.

In the following:
* Parent port: a47df912-1cba-458c-9bb9-00cd3d71b9e6
* Trunk: 70f314f8-5577-4b98-be9c-68bbe3791d7f
* Sub port: d11793a9-8862-4378-a1fe-045f04dad841

GET request:

> curl -s -H "X-Auth-Token: $OS_TOKEN" "https://rhos-d.infra.prod.upshift.rdu2.redhat.com:13696/v2.0/ports/a47df912-1cba-458c-9bb9-00cd3d71b9e6"; | jq
{
  "port": {
    ...
    "trunk_details": {
      "trunk_id": "70f314f8-5577-4b98-be9c-68bbe3791d7f",
      "sub_ports": [
        {
          "segmentation_id": 100,
          "segmentation_type": "vlan",
          "port_id": "d11793a9-8862-4378-a1fe-045f04dad841",
          "mac_address": "fa:16:3e:88:29:a0"
        }
      ]
    },
    ...
  }
}

LIST request returning the same port:

> curl -s -H "X-Auth-Token: $OS_TOKEN" "https://rhos-d.infra.prod.upshift.rdu2.redhat.com:13696/v2.0/ports?id=a47df912-1cba-458c-9bb9-00cd3d71b9e6"; | jq
{
  "ports": [
    {
      ...
      "trunk_details": {
        "trunk_id": "70f314f8-5577-4b98-be9c-68bbe3791d7f",
        "sub_ports": [
          {
            "segmentation_id": 100,
            "segmentation_type": "vlan",
            "port_id": "d11793a9-8862-4378-a1fe-045f04dad841"
          }
        ]
      },
      ...
    }
  }
}

Note that mac_address is missing for the LIST request.

* Version: Little bit of guesswork going on here, but Nova reports a
latest microversion of 2.79, which corresponds to Train.

** Affects: neutron
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/2020552

Title:
  trunk_details missing sub port MAC addresses for LIST

Status in neutron:
  New

Bug description:
  When returning port details, trunk_details.sub_ports should contain:
  * segmentation_id
  * segmentation_type
  * port_id
  * mac_address

  This is the case when GETting a single port, but when listing ports
  mac_address is missing.

  In the following:
  * Parent port: a47df912-1cba-458c-9bb9-00cd3d71b9e6
  * Trunk: 70f314f8-5577-4b98-be9c-68bbe3791d7f
  * Sub port: d11793a9-8862-4378-a1fe-045f04dad841

  GET request:

  > curl -s -H "X-Auth-Token: $OS_TOKEN" "https://rhos-d.infra.prod.upshift.rdu2.redhat.com:13696/v2.0/ports/a47df912-1cba-458c-9bb9-00cd3d71b9e6"; | jq
  {
    "port": {
      ...
      "trunk_details": {
        "trunk_id": "70f314f8-5577-4b98-be9c-68bbe3791d7f",
        "sub_ports": [
          {
            "segmentation_id": 100,
            "segmentation_type": "vlan",
            "port_id": "d11793a9-8862-4378-a1fe-045f04dad841",
            "mac_address": "fa:16:3e:88:29:a0"
          }
        ]
      },
      ...
    }
  }

  LIST request returning the same port:

  > curl -s -H "X-Auth-Token: $OS_TOKEN" "https://rhos-d.infra.prod.upshift.rdu2.redhat.com:13696/v2.0/ports?id=a47df912-1cba-458c-9bb9-00cd3d71b9e6"; | jq
  {
    "ports": [
      {
        ...
        "trunk_details": {
          "trunk_id": "70f314f8-5577-4b98-be9c-68bbe3791d7f",
          "sub_ports": [
            {
              "segmentation_id": 100,
              "segmentation_type": "vlan",
              "port_id": "d11793a9-8862-4378-a1fe-045f04dad841"
            }
          ]
        },
        ...
      }
    }
  }

  Note that mac_address is missing for the LIST request.

  * Version: Little bit of guesswork going on here, but Nova reports a
  latest microversion of 2.79, which corresponds to Train.

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/2020552/+subscriptions