For wrong ethertype exception message is hard coded

Bug #1508106 reported by Manjeet Singh Bhatia
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
Low
Sreekumar S

Bug Description

if you give any wrong ethertype while creating security group rule.
it will always mention reason None in exception message

Invalid input for ethertype. Reason: 'None' is not in ['IPv4', 'IPv6'].

try

neutron security-group-rule-create --ethertype ip --protocol icmp <group-id>

it will print
Invalid input for ethertype. Reason: 'None' is not in ['IPv4', 'IPv6'].

but actually it should be Invalid input for ethertype. Reason: 'ip' is not in ['IPv4', 'IPv6'].

Changed in neutron:
assignee: nobody → Manjeet Singh Bhatia (manjeet-s-bhatia)
Revision history for this message
Armando Migliaccio (armando-migliaccio) wrote :

Confirmed on master

Changed in neutron:
status: New → Confirmed
importance: Undecided → Low
tags: added: liberty-backport-potential
tags: added: api
Revision history for this message
Armando Migliaccio (armando-migliaccio) wrote :

IMO, we could simply say that input must be either IPv4 or IPv6, there's really no need to parrot back to the user who knows what he/she put on the CLI :)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (master)

Fix proposed to branch: master
Review: https://review.openstack.org/258971

Changed in neutron:
assignee: Manjeet Singh Bhatia (manjeet-s-bhatia) → Sreekumar S (sreesiv)
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (master)

Reviewed: https://review.openstack.org/258971
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=be14e905419f0927539e939c1f979430a6e44d42
Submitter: Jenkins
Branch: master

commit be14e905419f0927539e939c1f979430a6e44d42
Author: Sreekumar S <email address hidden>
Date: Thu Dec 17 02:34:33 2015 +0530

    Corrected wrong ethertype exception message

    This patch resolves the issue where wrong message was being
    shown when ethertype input parameter was not amongst one of
    the types supported. New message made akin to other input
    parameters like 'protocol'.

    Change-Id: I5636f3582c9d9877dad4d091a374284b656923f4
    Closes-Bug: #1508106

Changed in neutron:
status: In Progress → Fix Released
Revision history for this message
Thierry Carrez (ttx) wrote : Fix included in openstack/neutron 8.0.0.0b2

This issue was fixed in the openstack/neutron 8.0.0.0b2 development milestone.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (stable/liberty)

Fix proposed to branch: stable/liberty
Review: https://review.openstack.org/270261

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (stable/liberty)

Reviewed: https://review.openstack.org/270261
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=1e3ef494317e9ed68fc9f87ae52da0423faffb6d
Submitter: Jenkins
Branch: stable/liberty

commit 1e3ef494317e9ed68fc9f87ae52da0423faffb6d
Author: Sreekumar S <email address hidden>
Date: Thu Dec 17 02:34:33 2015 +0530

    Corrected wrong ethertype exception message

    This patch resolves the issue where wrong message was being
    shown when ethertype input parameter was not amongst one of
    the types supported. New message made akin to other input
    parameters like 'protocol'.

    Change-Id: I5636f3582c9d9877dad4d091a374284b656923f4
    Closes-Bug: #1508106
    (cherry picked from commit be14e905419f0927539e939c1f979430a6e44d42)

tags: added: in-stable-liberty
Revision history for this message
Thierry Carrez (ttx) wrote : Fix included in openstack/neutron 7.1.0

This issue was fixed in the openstack/neutron 7.1.0 release.

tags: removed: liberty-backport-potential
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.