ec2 authorize with source group and no protocol only adds tcp

Bug #965671 reported by Vish Ishaya
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Invalid
Undecided
Unassigned

Bug Description

to reproduce:

vagrant@devstack:~/devstack$ euca-authorize default -o default

expected:

GROUP default
PERMISSION default ALLOWS icmp GRPNAME default FROM CIDR 0.0.0.0/0
PERMISSION default ALLOWS tcp GRPNAME default FROM CIDR 0.0.0.0/0
PERMISSION default ALLOWS udp GRPNAME default FROM CIDR 0.0.0.0/0
vagrant@devstack:~/devstack$ euca-describe-groups
GROUP b9b27bb898084602bce552d327a13dcf default default
PERMISSION b9b27bb898084602bce552d327a13dcf default ALLOWS icmp -1 -1 GRPNAME default
PERMISSION b9b27bb898084602bce552d327a13dcf default ALLOWS tcp 1 65535 GRPNAME default
PERMISSION b9b27bb898084602bce552d327a13dcf default ALLOWS udp 1 65535 GRPNAME default

actual:

GROUP default
PERMISSION default ALLOWS tcp GRPNAME default FROM CIDR 0.0.0.0/0
vagrant@devstack:~/devstack$ euca-describe-groups
GROUP b9b27bb898084602bce552d327a13dcf default default
PERMISSION b9b27bb898084602bce552d327a13dcf default ALLOWS tcp 1 65535 GRPNAME default

This correctly works in the openstack api

Revision history for this message
Vish Ishaya (vishvananda) wrote :

Turns out this is actaully euca defaulting the value of the flag to tcp:

40 Options = [Param(name='protocol', short_name='P', long_name='protocol',
 41 optional=True, ptype='string', default='tcp',
 42 choices=['tcp', 'udp', 'icmp', '6', '17', '1'],
 43 doc='The protocol.'),

Changed in nova:
status: New → Invalid
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.