Filter fuel tasks with non numeric ID shoud return significant error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fuel for OpenStack |
Invalid
|
Medium
|
Andrey Tykhonov | ||
6.1.x |
Won't Fix
|
Medium
|
MOS Maintenance |
Bug Description
I am trying to filter fuel Tasks.
When I passed task ID as a character then empty dictionary is returned. Its seems misleading.
Please find command below -
[root@fuel www]# fuel task
DEPRECATION WARNING: /etc/fuel/
id | status | name | cluster | progress | uuid
---|---
60 | ready | verify_networks | 6 | 100 | 9bea2319-
65 | ready | check_networks | 6 | 100 | 375a1470-
69 | ready | deployment | 6 | 100 | 803d73c8-
61 | ready | check_dhcp | 6 | 100 | d5540ddc-
62 | ready | check_repo_
63 | ready | check_repo_
68 | ready | provision | 6 | 100 | 7b056cc4-
64 | ready | deploy | 6 | 100 | 61de6f38-
[root@fuel www]# fuel task --task 60
DEPRECATION WARNING: /etc/fuel/
id | status | name | cluster | progress | uuid
---|---
60 | ready | verify_networks | 6 | 100 | 9bea2319-
[root@fuel www]#
[root@fuel www]# fuel task --task z
DEPRECATION WARNING: /etc/fuel/
{}
[root@fuel www]# fuel task --delete --task z
DEPRECATION WARNING: /etc/fuel/
{}
[root@fuel www]#
For Non numeric task IDs it should return a valid significant error message.
tags: | added: python-fuelclient |
tags: | removed: python-fuelclient |
Changed in fuel: | |
assignee: | Fuel Python Team (fuel-python) → Andrey Tykhonov (atykhonov) |
Changed in fuel: | |
status: | Confirmed → Incomplete |
tags: | added: area-python |
Looks like nailgun suffers from missing task ID validation.