[fuelclient] 400 error on deployment-tasks command

Bug #1618476 reported by Denis Egorenko
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Committed
High
Ilya Kutukov

Bug Description

Unexpected error during running deployment-tasks command:

[root@fuel ~]# fuel --debug deployment-tasks --tid 2
GET http://10.20.0.2:8000/api/v1/transactions/2/deployment_history/?nodes=&statuses=&tasks_names
400 Client Error: Bad Request for url: http://10.20.0.2:8000/api/v1/transactions/2/deployment_history/?nodes=&statuses=&tasks_names (Statuses parameter could be only: pending, ready, running, error, skipped)

But this command will work if you will specified status manually:

[root@fuel ~]# fuel --debug deployment-tasks --tid 15 --status error
GET http://10.20.0.2:8000/api/v1/transactions/15/deployment_history/?nodes=&statuses=error&tasks_names
task_name | node_id | status | summary | time_start | time_end
----------+---------+--------+---------+------------+---------

Package versions:

Installed Packages
Name : python-fuelclient
Arch : noarch
Version : 9.0.0
Release : 1.mos341
Size : 1.6 M
Repo : installed
From repo : mos-new-updates
Summary : Console utility for working with fuel rest api
License : Apache
Description : Summary: Console utility for working with fuel rest api

Installed Packages
Name : fuel-nailgun
Arch : noarch
Version : 9.0.0
Release : 1.mos8790
Size : 8.8 M
Repo : installed
From repo : mos-new-updates
Summary : Nailgun package
License : Apache
Description : Nailgun package

Changed in fuel:
milestone: none → 9.1
importance: Undecided → Critical
importance: Critical → High
Ilya Kutukov (ikutukov)
Changed in fuel:
assignee: nobody → Ilya Kutukov (ikutukov)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-web (master)

Fix proposed to branch: master
Review: https://review.openstack.org/362907

Changed in fuel:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-web (master)

Reviewed: https://review.openstack.org/362907
Committed: https://git.openstack.org/cgit/openstack/fuel-web/commit/?id=dadc5c4e0d50e0cd050570a29a62bbd39166d9ec
Submitter: Jenkins
Branch: master

commit dadc5c4e0d50e0cd050570a29a62bbd39166d9ec
Author: Ilya Kutukov <email address hidden>
Date: Tue Aug 30 17:27:28 2016 +0300

    Now empty parameters is returned via get_param_as_set as empty set

    Previous behaviour with returning not empty set('') vas invalid

    Change-Id: I0a3c6aa41150d7557d29d2ca58f03f768112abce
    Closes-Bug: #1618476

Changed in fuel:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-web (stable/mitaka)

Fix proposed to branch: stable/mitaka
Review: https://review.openstack.org/365605

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-web (stable/mitaka)

Reviewed: https://review.openstack.org/365605
Committed: https://git.openstack.org/cgit/openstack/fuel-web/commit/?id=eb3195728e31abbaa703025d86070193d842af2b
Submitter: Jenkins
Branch: stable/mitaka

commit eb3195728e31abbaa703025d86070193d842af2b
Author: Ilya Kutukov <email address hidden>
Date: Tue Aug 30 17:27:28 2016 +0300

    Now empty parameters is returned via get_param_as_set as empty set

    Previous behaviour with returning not empty set('') vas invalid

    Change-Id: I0a3c6aa41150d7557d29d2ca58f03f768112abce
    Closes-Bug: #1618476

tags: added: in-stable-mitaka
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/fuel-web 10.0.0rc1

This issue was fixed in the openstack/fuel-web 10.0.0rc1 release candidate.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/fuel-web 10.0.0

This issue was fixed in the openstack/fuel-web 10.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.