QoS CLI - “network qos policy delete” command fails and description field is empty (reason unknown)

Bug #1778392 reported by Arkady Shtempler
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openstack (Ubuntu)
New
Undecided
Unassigned

Bug Description

Scenario:
1) Create QoS policy
openstack network qos policy create bw-limiter
Save <Ploicy_ID>
2) Create QoS rulem assitiated to pcreated previously policy
openstack network qos rule create --type bandwidth-limit --max-kbps 3000 --max-burst-kbits 2400 --egress bw-limiter
3) Delete Policy
openstack network qos policy delete --debug <Policy_ID>

Actual Result:
Description field inside the error is empty, therefore the reason for command failure is unknown.
(overcloud) [stack@undercloud-0 ~]$ openstack network qos policy delete c2920eed-a25f-4d8d-a8f1-5edcfd8ed778
Failed to delete QoS policy name or ID 'c2920eed-a25f-4d8d-a8f1-5edcfd8ed778': Unable to delete QoSPolicy for openstack.network.v2.qos_policy.QoSPolicy(name=bw-limiter, rules=[{u'max_kbps': 10000, u'direction': u'egress', u'qos_policy_id': u'c2920eed-a25f-4d8d-a8f1-5edcfd8ed778', u'type': u'bandwidth_limit', u'id': u'9fc86255-3149-4957-a926-6280eab761ab', u'max_burst_kbps': 10000}], tenant_id=f3f03848a45746c7bcbe95b625d7e1d8, is_default=False, shared=False, id=c2920eed-a25f-4d8d-a8f1-5edcfd8ed778, description=)
1 of 1 QoS policies failed to delete.

Expected Result:
Description field shouldn’t be empty and at least must have the same message as in executed API.
When the same command is executed with “--debug” option (openstack network qos policy delete --debug c2920eed-a25f-4d8d-a8f1-5edcfd8ed778) it’s possible to see that HTTP Status Code 409 is received with body, that contains “QoS Policy c2920eed-a25f-4d8d-a8f1-5edcfd8ed778 is used by port 535da8b9-fbce-4921-9ce7-3fa26ca8a698”
The above message is not forwarded to CLI.
GET call to network for http://10.0.0.105:9696/v2.0/qos/policies/c2920eed-a25f-4d8d-a8f1-5edcfd8ed778 used request id req-1a31e6c0-d58e-4bae-b992-4f27182e658a
Manager unknown ran task network.GET.qos.c2920eed-a25f-4d8d-a8f1-5edcfd8ed778 in 0.867774009705s
Manager unknown running task network.DELETE.qos.c2920eed-a25f-4d8d-a8f1-5edcfd8ed778
REQ: curl -g -i -X DELETE http://10.0.0.105:9696/v2.0/qos/policies/c2920eed-a25f-4d8d-a8f1-5edcfd8ed778 -H "User-Agent: osc-lib/1.9.0 keystoneauth1/3.4.0 python-requests/2.14.2 CPython/2.7.5" -H "Accept: " -H "X-Auth-Token: {SHA1}1d4e9ce3cf3e5d34b283fd33ee005c1809537cf1"
http://10.0.0.105:9696 "DELETE /v2.0/qos/policies/c2920eed-a25f-4d8d-a8f1-5edcfd8ed778 HTTP/1.1" 409 174
RESP: [409] Content-Type: application/json Content-Length: 174 X-Openstack-Request-Id: req-b1dbbbb2-dc3a-4f90-a7ce-dbfa633c8c6a Date: Sun, 24 Jun 2018 08:37:01 GMT
RESP BODY: {"NeutronError": {"message": "QoS Policy c2920eed-a25f-4d8d-a8f1-5edcfd8ed778 is used by port 535da8b9-fbce-4921-9ce7-3fa26ca8a698.", "type": "QosPolicyInUse", "detail": ""}}

Revision history for this message
Tim Coalson (coalsont) wrote :

connectome-workbench is a viewer and analysis tool for neuroimaging data, this bug was assigned to the wrong package.

Revision history for this message
Tim Coalson (coalsont) wrote :

Taking a guess that openstack is the intended package for this bug.

affects: connectome-workbench (Ubuntu) → openstack (Ubuntu)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.