tacker vnfd-create with empty vnfd-file or vnfd argument throws a non meaningful error
Bug #1490067 reported by
Sripriya
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-tackerclient |
Fix Released
|
Undecided
|
dharmendra | ||
tacker |
Fix Released
|
Low
|
dharmendra |
Bug Description
Actual scenario:
tacker vnfd-create --vnfd-file ""
local variable 'vnfd' referenced before assignment
tacker vnfd-create --vnfd-file None
[Errno 2] No such file or directory: u'None'
tacker vnfd-create --vnfd ""
local variable 'vnfd' referenced before assignment
tacker vnfd-create --vnfd None
Request Failed: internal server error while processing your request.
Expected scenario:
tacker vnfd-create with empty arguments should error out gracefully.
Changed in tacker: | |
assignee: | nobody → Sripriya (sseetha) |
Changed in tacker: | |
assignee: | Sripriya (sseetha) → dharmendra (dharmendra-kushwaha) |
Changed in python-tackerclient: | |
assignee: | nobody → dharmendra (dharmendra-kushwaha) |
status: | New → In Progress |
Changed in tacker: | |
status: | Confirmed → Fix Released |
To post a comment you must log in.
In the current code .. the above invalid commands goes an created a dummy vnfd... that is bad too and need to be fixed.
stack@tacker- dev:~/tacker/ templates$ tacker vnfd-create --vnfd-file "" ------- --+---- ------- ------- ------- ------- ------- ------- ------- ------- ------- -----+ ------- --+---- ------- ------- ------- ------- ------- ------- ------- ------- ------- -----+ 7d48-4001- 8155-2a0e38f9b2 18 | c20e-4d49- bb8c-6fb33d920b ea"} | d8d72c3189a9782 89 | ------- --+---- ------- ------- ------- ------- ------- ------- ------- ------- ------- -----+ dev:~/tacker/ templates$ tacker vnfd-create --vnfd "" ------- --+---- ------- ------- ------- ------- ------- ------- ------- ------- ------- -----+ ------- --+---- ------- ------- ------- ------- ------- ------- ------- ------- ------- -----+ 522f-41c9- 87fb-c21144ff5e 58 | 855c-4dcb- 9436-5753ef6ab4 9d"} | d8d72c3189a9782 89 | ------- --+---- ------- ------- ------- ------- ------- ------- ------- ------- ------- -----+
Created a new vnfd:
+------
| Field | Value |
+------
| description | |
| id | 27df2ff4-
| infra_driver | heat |
| mgmt_driver | noop |
| name | |
| service_types | {"service_type": "vnfd", "id": "b7a31d9b-
| tenant_id | d56ff2e585f34f1
+------
stack@tacker-
Created a new vnfd:
+------
| Field | Value |
+------
| description | |
| id | 1325f99e-
| infra_driver | heat |
| mgmt_driver | noop |
| name | |
| service_types | {"service_type": "vnfd", "id": "e8bda48b-
| tenant_id | d56ff2e585f34f1
+------