← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1746526] [NEW] Incorrect message appears while creating duplicate qos-bandwidth-limit-rule

 

Public bug reported:

Improper error messages comes if user tries to create duplicate rule
under qos-policy.

In error message two things to correct:-
--> attribute_name
--> value

$ neutron qos-bandwidth-limit-rule-create  --max-kbps 1026 <qos-policy-id>
E.g.: neutron qos-bandwidth-limit-rule-create  --max-kbps 1026 f73cf8ea-92be-472d-aeef-3364319fc51e
neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
Failed to create a duplicate QosBandwidthLimitRule: for attribute(s) ['qos_bandwidth_rules0qos_policy_id0direction'] with value(s) f73cf8ea-92be-472d-aeef-3364319fc51e-egress
Neutron server returns request_ids: ['req-0447aa9e-acc0-4200-8ea7-5752edcab574']

Steps:-
1) Create qos-policy
   neutron qos-policy-create policy-1
2) Create qos-bandwidth-limit-rule
    neutron qos-bandwidth-limit-rule-create --max-kbps 1026 policy-1
3) Again create qos-bandwidth-limit-rule
   neutron qos-bandwidth-limit-rule-create --max-kbps 1026 policy-1

Can we correct error message?

** 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/1746526

Title:
  Incorrect message appears while creating duplicate qos-bandwidth-
  limit-rule

Status in neutron:
  New

Bug description:
  Improper error messages comes if user tries to create duplicate rule
  under qos-policy.

  In error message two things to correct:-
  --> attribute_name
  --> value

  $ neutron qos-bandwidth-limit-rule-create  --max-kbps 1026 <qos-policy-id>
  E.g.: neutron qos-bandwidth-limit-rule-create  --max-kbps 1026 f73cf8ea-92be-472d-aeef-3364319fc51e
  neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
  Failed to create a duplicate QosBandwidthLimitRule: for attribute(s) ['qos_bandwidth_rules0qos_policy_id0direction'] with value(s) f73cf8ea-92be-472d-aeef-3364319fc51e-egress
  Neutron server returns request_ids: ['req-0447aa9e-acc0-4200-8ea7-5752edcab574']

  Steps:-
  1) Create qos-policy
     neutron qos-policy-create policy-1
  2) Create qos-bandwidth-limit-rule
      neutron qos-bandwidth-limit-rule-create --max-kbps 1026 policy-1
  3) Again create qos-bandwidth-limit-rule
     neutron qos-bandwidth-limit-rule-create --max-kbps 1026 policy-1

  Can we correct error message?

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


Follow ups