CLI client tries to find meter-label-rule by using name even though name attribute is not supported in meter-label-rule.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Invalid
|
Low
|
Kengo Hobo |
Bug Description
Behavior of Show/Delete meter-label-rule is odd.
Case1. There is more than one meter-label-rule in system.
ubuntu@
+------
| id | excluded | direction | remote_ip_prefix |
+------
| 4b8cc074-
| ba880ef9-
+------
-Request and Response
===============
ubuntu@
Multiple metering_label_rule matches found for name 'a', use an ID to be more specific.
================
Error above is returned even though there is no meter-label-rule with name 'a'.
Case2. There is a meter-label-rule in system.
ubuntu@
+------
| id | excluded | direction | remote_ip_prefix |
+------
| ba880ef9-
+------
-Request and Response
ubuntu@
Deleted metering_
The resource is deleted even though name of the meter-label-rule is not 'a'.
Changed in neutron: | |
assignee: | nobody → Kengo Hobo (hobo-kengo) |
tags: | added: metering |
Deleting metering rules should be only accept valid IDs. In this case, if there is only one metering rule it will be removed even if the ID is invalid.