Security Group empty protocol defaults to TCP

Bug #1716789 reported by German Eichberger
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
python-openstackclient
Confirmed
Undecided
Brian Haley

Bug Description

When leaving the protocol field blank for security group it defaults to TCP. In previous versions (e.g. Liberty) this allowed *any* protocol by leaving it blank.

Revision history for this message
Reedip (reedip-banerjee-deactivatedaccount) wrote :

Are you using curl/shade/OSC/neutron client?
Some example would be great :)

Changed in neutron:
status: New → Incomplete
Revision history for this message
Brian Haley (brian-haley) wrote :

German - this looks like it's intended behavior, the help message in the openstack client actually says the default is TCP:

  --protocol <protocol>
                        IP protocol (ah, dccp, egp, esp, gre, icmp, igmp,
                        ipv6-encap, ipv6-frag, ipv6-icmp, ipv6-nonxt,
                        ipv6-opts, ipv6-route, ospf, pgm, rsvp, sctp, tcp,
                        udp, udplite, vrrp and integer representations
                        [0-255]; default: tcp)

But I'm not sure I agree that was a good choice, especially given it was not discussed, and not even in the commit message of the change that did it.

I'll propose a change for it and see what happens.

Revision history for this message
Brian Haley (brian-haley) wrote :
Changed in neutron:
status: Incomplete → Confirmed
assignee: nobody → Brian Haley (brian-haley)
affects: neutron → python-openstackclient
Revision history for this message
Brian Haley (brian-haley) wrote :

https://review.openstack.org/#/c/518954/ is the fix for this German it's just stuck in limbo.

Revision history for this message
Rudolf Vriend (rudolf-vriend-deactivatedaccount) wrote :

The issue is actually that currently it is not possible to specify 'Any' (or None) as protocol by omitting the --protocol argument (since it defaults to tcp).

But that is definitely required, since it is a very valid setup (required to have a decent default security group rule)

Revision history for this message
Brian Haley (brian-haley) wrote :

https://review.opendev.org/#/c/518954/ has merged, changing the default back to protocol 'any'.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-openstackclient 4.0.0

This issue was fixed in the openstack/python-openstackclient 4.0.0 release.

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.