fuel cli --start post_deployment returns 500 Server Error

Bug #1551902 reported by Javeria Khan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Committed
Medium
Roman Prykhodchenko
7.0.x
Won't Fix
Medium
MOS Maintenance
8.0.x
Won't Fix
Medium
MOS Maintenance
Mitaka
Won't Fix
Medium
Fuel Python (Deprecated)

Bug Description

On Fuel 7.0, trying to run post_deployment tasks through the Fuel CLI:

fuel node --node 163 --start post_deployment

the following is received:

500 Server Error: Internal Server Error (u'post_deployment')

snippets from the nailgun app and api logs is below:

[pid: 685|app: 0|req: 1701/20624] 200.200.200.4 () {34 vars in 606 bytes} [Tue Mar 1 18:39:31 2016] GET /api/v1/clusters/44/deployment_tasks?start=post_deployment => generated 18 bytes in 83 msecs (HTTP/1.1 500) 4 headers in 197 bytes (2 switches on core 0)
[pid: 687|app: 0|req: 5589/20625] 192.168.10.4 () {44 vars in 954 bytes} [Tue Mar 1 18:39:37 2016] GET /api/logs?node=&source=astute&level=INFO&from=6776705&to=9812574&_=1456761762248 => generated 66 bytes in 4 msecs (HTTP/1.1 200) 4 headers in 185 bytes (2 switches on core 0)

2016-03-01 18:39:30.932 DEBUG [7f5dcf444740] (logger) Response code '200 OK' for PUT /api/nodes/agent/ from 200.200.200.8:42161
2016-03-01 18:39:31.306 DEBUG [7f5dcf444740] (logger) Request GET /api/logs?node=&source=astute&level=INFO&from=6776705&to=9812574&_=1456761762247 from 192.168.10.4:63553
2016-03-01 18:39:31.309 DEBUG [7f5dcf444740] (logger) Response code '200 OK' for GET /api/logs?node=&source=astute&level=INFO&from=6776705&to=9812574&_=1456761762247 from 192.168.10.4:63553
2016-03-01 18:39:31.615 DEBUG [7f5dcf444740] (logger) Request GET /api/v1/version from 200.200.200.4:42773
2016-03-01 18:39:31.624 DEBUG [7f5dcf444740] (logger) Response code '200 OK' for GET /api/v1/version from 200.200.200.4:42773
2016-03-01 18:39:31.922 DEBUG [7f5dcf444740] (logger) Request GET /api/v1/nodes/163/ from 200.200.200.4:42781
2016-03-01 18:39:31.977 DEBUG [7f5dcf444740] (logger) Response code '200 OK' for GET /api/v1/nodes/163/ from 200.200.200.4:42781
2016-03-01 18:39:32.025 DEBUG [7f5dcf444740] (logger) Request GET /api/v1/clusters/44/deployment_tasks?start=post_deployment from 200.200.200.4:42783
2016-03-01 18:39:32.066 ERROR [7f5dcf444740] (logger) Response code '500 Internal Server Error' for GET /api/v1/clusters/44/deployment_tasks?start=post_deployment from 200.200.200.4:42783
2016-03-01 18:39:37.297 DEBUG [7f5dcf444740] (logger) Request GET /api/logs?node=&source=astute&level=INFO&from=6776705&to=9812574&_=1456761762248 from 192.168.10.4:63553

The issue is that the task name needs to be 'post_deployment_start'

expected result:
API should return 4xx (404?) about unknown task name, client should catch this message and provide a useful message to the CLI caller

description: updated
Andrew Woodward (xarses)
description: updated
tags: added: area-python
Revision history for this message
Alexey Stupnikov (astupnikov) wrote :

We have two bugs #1551902 and #1551904 with same complaints. Looks like the first one is about code and the second one is about docs.

tags: added: partner-found
Revision history for this message
Alexey Stupnikov (astupnikov) wrote :

We have bugs bug #1551902 and bug #1551904 with same complaints. Looks like the first one is about code and the second one is about docs.

Revision history for this message
Bug Checker Bot (bug-checker) wrote : Autochecker

(This check performed automatically)
Please, make sure that bug description contains the following sections filled in with the appropriate data related to the bug you are describing:

actual result

steps to reproduce

For more detailed information on the contents of each of the listed sections see https://wiki.openstack.org/wiki/Fuel/How_to_contribute#Here_is_how_you_file_a_bug

tags: added: need-info
tags: added: keep-in-9.0
Revision history for this message
Bulat Gaifullin (bulat.gaifullin) wrote :

in task-based deployment option --start and --end does not supported by nailgun. The feature custom-graph-execution[1] can be used to run any deployment graph.
We need to fix api handler of nailgun, it should return meaningful error instead of 500.
Also need to remove this options from fuel-client.

[1] https://github.com/openstack/fuel-specs/blob/master/specs/9.0/execute-custom-graph.rst

Revision history for this message
Dmitry Pyzhov (dpyzhov) wrote :

We passed SCF for 9.0. Moving the medium priority bug to 10.0 release.

Changed in fuel:
milestone: 9.0 → 10.0
Changed in fuel:
assignee: Fuel Python Team (fuel-python) → Roman Prykhodchenko (romcheg)
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/321050

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

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

commit db161e95731c2b8eb29fb2d39e5ef334b24ea595
Author: Roman Prykhodchenko <email address hidden>
Date: Wed May 25 16:45:45 2016 +0200

    Return 400 when task cannot be found

    Do not fail with a 500 if users specify names of
    tasks that don't exist.

    Change-Id: Id88c4c361cda856185223b964cc08fa46ea5ee68
    Closes-bug: #1551902

Changed in fuel:
status: In Progress → Fix Committed
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.