← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1643121] [NEW] The Result is different from API document about 'qos-policy-show'

 

Public bug reported:

The rules descriptions In response of 'qos-policy-show' is different from actual result.
In API document,the response of 'qos-policy-show' is follow:
{
    "policy": {
        "project_id": "8d4c70a21fed4aeba121a1a429ba0d04",
        "tenant_id": "8d4c70a21fed4aeba121a1a429ba0d04",
        "id": "46ebaec0-0570-43ac-82f6-60d2b03168c4",
        "name": "10Mbit",
        "description": "This policy limits the ports to 10Mbit max.",
        "shared": false,
        "bandwidth_limit_rules": [
            {
                "id": "5f126d84-551a-4dcf-bb01-0e9c0df0c793",
                "policy_id": "46ebaec0-0570-43ac-82f6-60d2b03168c4",
                "max_kbps": "10000",
                "max_burst_kbps": "0"
            }
        ],
        "dscp_marking_rules": [
            {
                "id": "5f126d84-551a-4dcf-bb01-0e9c0df0c794",
                "policy_id": "46ebaec0-0570-43ac-82f6-60d2b03168c4",
                "dscp_mark": "26"
            }
        ]
    }
}

but the result in fact is:
{"policy":
     {"name": "p1", 
     "rules": [
          {"max_kbps": 10000, 
          "type": "bandwidth_limit",
          "id": "25352eaa-0651-4c3d-b0e0-f1eb5857d4b7",
          "max_burst_kbps": 0, 
          "qos_policy_id": "d92847df-38b2-48db-bf56-d12288e9cdbb"},
          {"dscp_mark": 20, 
          "type": "dscp_marking", 
          "id": "4c31a158-73ff-484f-aef4-7cfb14035009", 
          "qos_policy_id": "d92847df-38b2-48db-bf56-d12288e9cdbb"}
              ], 
      "tenant_id": "9a5b27e4da8b4aec99df42b222a8a696", 
      "created_at": "2016-11-19T03:48:05Z", 
      "updated_at": "2016-11-19T03:49:30Z", 
      "revision_number": 3,
      "shared": false, 
      "project_id": "9a5b27e4da8b4aec99df42b222a8a696", 
      "id": "d92847df-38b2-48db-bf56-d12288e9cdbb", 
      "description": ""}
 }

** Affects: neutron
     Importance: Undecided
     Assignee: QunyingRan (ran-qunying)
         Status: New

** Changed in: neutron
     Assignee: (unassigned) => QunyingRan (ran-qunying)

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

Title:
  The Result is different from API document about 'qos-policy-show'

Status in neutron:
  New

Bug description:
  The rules descriptions In response of 'qos-policy-show' is different from actual result.
  In API document,the response of 'qos-policy-show' is follow:
  {
      "policy": {
          "project_id": "8d4c70a21fed4aeba121a1a429ba0d04",
          "tenant_id": "8d4c70a21fed4aeba121a1a429ba0d04",
          "id": "46ebaec0-0570-43ac-82f6-60d2b03168c4",
          "name": "10Mbit",
          "description": "This policy limits the ports to 10Mbit max.",
          "shared": false,
          "bandwidth_limit_rules": [
              {
                  "id": "5f126d84-551a-4dcf-bb01-0e9c0df0c793",
                  "policy_id": "46ebaec0-0570-43ac-82f6-60d2b03168c4",
                  "max_kbps": "10000",
                  "max_burst_kbps": "0"
              }
          ],
          "dscp_marking_rules": [
              {
                  "id": "5f126d84-551a-4dcf-bb01-0e9c0df0c794",
                  "policy_id": "46ebaec0-0570-43ac-82f6-60d2b03168c4",
                  "dscp_mark": "26"
              }
          ]
      }
  }

  but the result in fact is:
  {"policy":
       {"name": "p1", 
       "rules": [
            {"max_kbps": 10000, 
            "type": "bandwidth_limit",
            "id": "25352eaa-0651-4c3d-b0e0-f1eb5857d4b7",
            "max_burst_kbps": 0, 
            "qos_policy_id": "d92847df-38b2-48db-bf56-d12288e9cdbb"},
            {"dscp_mark": 20, 
            "type": "dscp_marking", 
            "id": "4c31a158-73ff-484f-aef4-7cfb14035009", 
            "qos_policy_id": "d92847df-38b2-48db-bf56-d12288e9cdbb"}
                ], 
        "tenant_id": "9a5b27e4da8b4aec99df42b222a8a696", 
        "created_at": "2016-11-19T03:48:05Z", 
        "updated_at": "2016-11-19T03:49:30Z", 
        "revision_number": 3,
        "shared": false, 
        "project_id": "9a5b27e4da8b4aec99df42b222a8a696", 
        "id": "d92847df-38b2-48db-bf56-d12288e9cdbb", 
        "description": ""}
   }

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


Follow ups