Skip to content

Cannot list QoS Network policies #1576

@dmbuil

Description

@dmbuil

I am getting an error when using the openstack_sdk::api::network::v2::qos::policy::list::Request or even its equivalent osc network qos policy list.

Can't see which field isn't being parsed correctly to propose a fix :(

Error

Error: 
   0: failed to deserialize data to json. Try using `-o json` to still see the data. 
      	[{"created_at":"2025-11-05T14:39:56Z","description":"","id":"0d137889-4ced-47df-8ce7-e82b0b364f40","is_default":false,"name":"router-xl","project_id":"8c4804db98b940998ac18c589f3f880a","revision_number":4,"rules":[{"direction":"egress","id":"69e02e06-b575-46ff-af0f-68214da86201","max_burst_kbps":100000,"max_kbps":100000,"qos_policy_id":"0d137889-4ced-47df-8ce7-e82b0b364f40","type":"bandwidth_limit"},{"direction":"ingress","id":"19a48651-c3c4-4335-aaf2-e8eca2f5bb28","max_burst_kbps":100000,"max_kbps":100000,"qos_policy_id":"0d137889-4ced-47df-8ce7-e82b0b364f40","type":"bandwidth_limit"}],"shared":true,"tags":[],"tenant_id":"8c4804db98b940998ac18c589f3f880a","updated_at":"2025-12-18T23:38:08Z"},{"created_at":"2025-12-18T23:05:13Z","description":"","id":"110a2e54-8c8b-42fd-9023-4c40a320a430","is_default":false,"name":"router-xl","project_id":"01e9b4a6cd364feb8411f229f635346b","revision_number":0,"rules":[],"shared":true,"tags":[],"tenant_id":"01e9b4a6cd364feb8411f229f635346b","updated_at":"2025-12-18T23:05:13Z"},{"created_at":"2025-12-09T09:43:01Z","description":"","id":"1d6c7b7e-3207-4054-8cae-47d15170567e","is_default":false,"name":"router-m","project_id":"8c4804db98b940998ac18c589f3f880a","revision_number":2,"rules":[{"direction":"egress","id":"57cad9a3-1742-461f-9e3b-7ef669ac0d7b","max_burst_kbps":80000,"max_kbps":80000,"qos_policy_id":"1d6c7b7e-3207-4054-8cae-47d15170567e","type":"bandwidth_limit"},{"direction":"ingress","id":"a97311ec-fca6-47c1-8218-fe83588439e7","max_burst_kbps":80000,"max_kbps":80000,"qos_policy_id":"1d6c7b7e-3207-4054-8cae-47d15170567e","type":"bandwidth_limit"}],"shared":false,"tags":[],"tenant_id":"8c4804db98b940998ac18c589f3f880a","updated_at":"2025-12-09T09:43:56Z"},{"created_at":"2025-12-15T13:17:33Z","description":"","id":"72067b8a-8afc-4105-92de-fcfd5f59600a","is_default":false,"name":"xxl-public","project_id":"01e9b4a6cd364feb8411f229f635346b","revision_number":0,"rules":[],"shared":true,"tags":[],"tenant_id":"01e9b4a6cd364feb8411f229f635346b","updated_at":"2025-12-15T13:17:33Z"},{"created_at":"2025-11-21T11:36:30Z","description":"","id":"db33cfef-8fbd-44f5-b732-86ad07e10455","is_default":false,"name":"qos-policy-qacert","project_id":"0dcad4f5f52d4338bc94e74e42ea9971","revision_number":3,"rules":[{"direction":"egress","id":"743bf847-fd76-4283-91e6-9798853eba3b","max_burst_kbps":0,"max_kbps":5000,"qos_policy_id":"db33cfef-8fbd-44f5-b732-86ad07e10455","type":"bandwidth_limit"},{"direction":"ingress","id":"a1ab098a-24ab-4746-8090-6eee84a037d9","max_burst_kbps":0,"max_kbps":50000,"qos_policy_id":"db33cfef-8fbd-44f5-b732-86ad07e10455","type":"bandwidth_limit"}],"shared":false,"tags":[],"tenant_id":"0dcad4f5f52d4338bc94e74e42ea9971","updated_at":"2025-11-25T14:40:15Z"}]
   1: invalid type: sequence, expected a string

Metadata

key value
version 0.13.2
command osc+network+qos+policy+list

The Prettitfied version of the JSON:

[
  {
    "created_at": "2025-11-05T14:39:56Z",
    "description": "",
    "id": "0d137889-4ced-47df-8ce7-e82b0b364f40",
    "is_default": false,
    "name": "router-xl",
    "project_id": "8c4804db98b940998ac18c589f3f880a",
    "revision_number": 4,
    "rules": [
      {
        "direction": "egress",
        "id": "69e02e06-b575-46ff-af0f-68214da86201",
        "max_burst_kbps": 100000,
        "max_kbps": 100000,
        "qos_policy_id": "0d137889-4ced-47df-8ce7-e82b0b364f40",
        "type": "bandwidth_limit"
      },
      {
        "direction": "ingress",
        "id": "19a48651-c3c4-4335-aaf2-e8eca2f5bb28",
        "max_burst_kbps": 100000,
        "max_kbps": 100000,
        "qos_policy_id": "0d137889-4ced-47df-8ce7-e82b0b364f40",
        "type": "bandwidth_limit"
      }
    ],
    "shared": true,
    "tags": [],
    "tenant_id": "8c4804db98b940998ac18c589f3f880a",
    "updated_at": "2025-12-18T23:38:08Z"
  },
  {
    "created_at": "2025-12-18T23:05:13Z",
    "description": "",
    "id": "110a2e54-8c8b-42fd-9023-4c40a320a430",
    "is_default": false,
    "name": "router-xl",
    "project_id": "01e9b4a6cd364feb8411f229f635346b",
    "revision_number": 0,
    "rules": [],
    "shared": true,
    "tags": [],
    "tenant_id": "01e9b4a6cd364feb8411f229f635346b",
    "updated_at": "2025-12-18T23:05:13Z"
  },
  {
    "created_at": "2025-12-09T09:43:01Z",
    "description": "",
    "id": "1d6c7b7e-3207-4054-8cae-47d15170567e",
    "is_default": false,
    "name": "router-m",
    "project_id": "8c4804db98b940998ac18c589f3f880a",
    "revision_number": 2,
    "rules": [
      {
        "direction": "egress",
        "id": "57cad9a3-1742-461f-9e3b-7ef669ac0d7b",
        "max_burst_kbps": 80000,
        "max_kbps": 80000,
        "qos_policy_id": "1d6c7b7e-3207-4054-8cae-47d15170567e",
        "type": "bandwidth_limit"
      },
      {
        "direction": "ingress",
        "id": "a97311ec-fca6-47c1-8218-fe83588439e7",
        "max_burst_kbps": 80000,
        "max_kbps": 80000,
        "qos_policy_id": "1d6c7b7e-3207-4054-8cae-47d15170567e",
        "type": "bandwidth_limit"
      }
    ],
    "shared": false,
    "tags": [],
    "tenant_id": "8c4804db98b940998ac18c589f3f880a",
    "updated_at": "2025-12-09T09:43:56Z"
  },
  {
    "created_at": "2025-12-15T13:17:33Z",
    "description": "",
    "id": "72067b8a-8afc-4105-92de-fcfd5f59600a",
    "is_default": false,
    "name": "xxl-public",
    "project_id": "01e9b4a6cd364feb8411f229f635346b",
    "revision_number": 0,
    "rules": [],
    "shared": true,
    "tags": [],
    "tenant_id": "01e9b4a6cd364feb8411f229f635346b",
    "updated_at": "2025-12-15T13:17:33Z"
  },
  {
    "created_at": "2025-11-21T11:36:30Z",
    "description": "",
    "id": "db33cfef-8fbd-44f5-b732-86ad07e10455",
    "is_default": false,
    "name": "qos-policy-qacert",
    "project_id": "0dcad4f5f52d4338bc94e74e42ea9971",
    "revision_number": 3,
    "rules": [
      {
        "direction": "egress",
        "id": "743bf847-fd76-4283-91e6-9798853eba3b",
        "max_burst_kbps": 0,
        "max_kbps": 5000,
        "qos_policy_id": "db33cfef-8fbd-44f5-b732-86ad07e10455",
        "type": "bandwidth_limit"
      },
      {
        "direction": "ingress",
        "id": "a1ab098a-24ab-4746-8090-6eee84a037d9",
        "max_burst_kbps": 0,
        "max_kbps": 50000,
        "qos_policy_id": "db33cfef-8fbd-44f5-b732-86ad07e10455",
        "type": "bandwidth_limit"
      }
    ],
    "shared": false,
    "tags": [],
    "tenant_id": "0dcad4f5f52d4338bc94e74e42ea9971",
    "updated_at": "2025-11-25T14:40:15Z"
  }
]

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions