euca-authorize and euca-revoke throws unknown error for invalid port range
Bug #739815 reported by
Tushar Patil
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Low
|
John Tran | ||
python-boto (Ubuntu) |
Invalid
|
Low
|
Unassigned |
Bug Description
If I provide invalid port range not in the range of 1 to 65535 to euca-authorize and euca-revoke, then it gives error message as "UnknownError: An unknown error has occurred. Please try your request again.".
$euca-authorize -P tcp -p -222222 -s 0.0.0.0/0 default
$euca-revoke -P tcp -p -222222 -s 0.0.0.0/0 default
/nova/api/
Related branches
lp:~jtran/nova/lp739815
- Jesse Andrews (community): Approve
- Devin Carlen (community): Approve
-
Diff: 14 lines (+4/-0)1 file modifiednova/api/ec2/__init__.py (+4/-0)
Changed in nova: | |
importance: | Undecided → Low |
status: | New → Confirmed |
Changed in nova: | |
assignee: | nobody → John Tran (jtran) |
Changed in nova: | |
status: | Confirmed → Fix Committed |
Changed in nova: | |
milestone: | none → diablo-4 |
Changed in nova: | |
milestone: | diablo-4 → 2011.3 |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Using boto 2.0, this doesn't seem to reach nova and returns a less than desirable error. Therefore opening a boto task, as this should be resolved with both client and server.
$ euca-authorize -P tcp -p -222222 -s 0.0.0.0/0 default euca-authorize" , line 198, in <module> euca-authorize" , line 112, in main
Traceback (most recent call last):
File "/usr/bin/
main()
File "/usr/bin/
from_port = int(ports[0])
ValueError: invalid literal for int() with base 10: ''
$ euca-revoke -P tcp -p -222222 -s 0.0.0.0/0 default euca-revoke" , line 201, in <module> euca-revoke" , line 111, in main
Traceback (most recent call last):
File "/usr/bin/
main()
File "/usr/bin/
from_port = int(ports[0])
ValueError: invalid literal for int() with base 10: ''