Several deployment tasks stuck in running state

Bug #1564295 reported by Vladimir
28
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
Critical
Vladimir Sharshov
Mitaka
Fix Released
Critical
Vladimir Sharshov

Bug Description

Several deplyment tasks never switch from running to ready state after successful deployment.
Steps to reprocude:
1. Create new env.
2. Add one controller node and deploy changes.
3. Check deployment tasks status after successful deployment.

Expecte4d result:
All tasks switch from running to ready state. time_end fiel contains adequate value.

Actual result:
Several tasks stuck in runnig state. time_end contains "None".

[root@nailgun ~]# fuel deployment-tasks --task-id 38 --status running
deployment_graph_task_name | node_id | status | time_start | time_end
-------------------------------|---------|---------|----------------------------|---------
memcached | 1 | running | 2016-03-31T07:54:44.486212 | None
primary-keystone | 1 | running | 2016-03-31T07:55:14.767550 | None
enable_quorum | 1 | running | 2016-03-31T08:15:55.071419 | None
dump_rabbitmq_definitions | 1 | running | 2016-03-31T08:16:07.594486 | None
nova-keystone | 1 | running | 2016-03-31T07:58:35.171956 | None
cinder-keystone | 1 | running | 2016-03-31T08:03:52.589336 | None
primary-ceph-mon | 1 | running | 2016-03-31T08:06:45.174647 | None
reserved_ports | 1 | running | 2016-03-31T07:46:16.241846 | None
fuel_pkgs | 1 | running | 2016-03-31T07:46:44.452711 | None
swift-keystone | 1 | running | 2016-03-31T08:10:36.415156 | None
netconfig | 1 | running | 2016-03-31T07:47:18.772263 | None
virtual_ips | 1 | running | 2016-03-31T07:49:38.360901 | None
openstack-haproxy-radosgw | 1 | running | 2016-03-31T07:50:24.039013 | None
radosgw-keystone | 1 | running | 2016-03-31T08:13:46.691748 | None
openstack-haproxy-aodh | 1 | running | 2016-03-31T07:50:41.224444 | None
openstack-haproxy-horizon | 1 | running | 2016-03-31T07:50:54.102146 | None
api-proxy | 1 | running | 2016-03-31T08:13:54.799871 | None
create-cinder-types | 1 | running | 2016-03-31T08:14:48.037582 | None
disable_keystone_service_token | 1 | running | 2016-03-31T08:16:13.047770 | None
openstack-network-networks | 1 | running | 2016-03-31T08:02:52.184684 | None
rsync_core_puppet | 1 | running | 2016-03-31T07:46:00.457990 | None
primary-swift-proxy | 1 | running | 2016-03-31T08:12:57.268487 | None
openstack-haproxy-heat | 1 | running | 2016-03-31T07:51:15.090813 | None

tags: added: area-python
Changed in fuel:
assignee: nobody → Fuel Python Team (fuel-python)
importance: Undecided → High
milestone: none → 9.0
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:

expected result

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
Dmitry Pyzhov (dpyzhov)
tags: added: team-enhancements
Revision history for this message
Roman Prykhodchenko (romcheg) wrote :

Could you please attach a diagnostic snaphot?

Changed in fuel:
status: New → Incomplete
Changed in fuel:
status: Incomplete → Confirmed
assignee: Fuel Python Team (fuel-python) → Vladimir Sharshov (vsharshov)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to fuel-web (master)

Related fix proposed to branch: master
Review: https://review.openstack.org/300165

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

Reviewed: https://review.openstack.org/300155
Committed: https://git.openstack.org/cgit/openstack/fuel-astute/commit/?id=cbc50dbebd1edb527b7041df8730de3c5c526c39
Submitter: Jenkins
Branch: master

commit cbc50dbebd1edb527b7041df8730de3c5c526c39
Author: Vladimir Sharshov (warpc) <email address hidden>
Date: Thu Mar 31 21:49:09 2016 +0300

    Report task status if it was changed

    For some reason we block send status report because of cache.
    It should protectd Nailgun from overload, but we should respect
    task status change in case of cache invalidation.

    Change-Id: If90151c846c239732097c53e358c97e3a79abf88
    Closes-Bug: #1564295

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

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

commit 0db640f05bfb43ec2a6968c31965dbbc128d9743
Author: Vladimir Sharshov (warpc) <email address hidden>
Date: Thu Mar 31 22:13:11 2016 +0300

    Add warning if no task in history was found

    For some reason Receiverd has got report from Astute,
    but do not process them. This warn will give us full
    info about update task process in deployemnt history

    Change-Id: I475f45d43beb11cca61e65e0669ba821bdaea807
    Related-Bug: #1564295

Vladimir (vushakov)
tags: added: on-verification
Revision history for this message
Vladimir (vushakov) wrote :

Verified on:
    Fuel 9.0 ISO #157

tags: removed: on-verification
Changed in fuel:
status: Fix Committed → Fix Released
Revision history for this message
Aleksei Stepanov (penguinolog) wrote :
Changed in fuel:
status: Fix Released → Confirmed
Revision history for this message
Aleksei Stepanov (penguinolog) wrote :

Several tasks still in pending state.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-astute (master)

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

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

Reviewed: https://review.openstack.org/302898
Committed: https://git.openstack.org/cgit/openstack/fuel-astute/commit/?id=5415b86ac18750ce411898e46e0478b125e10079
Submitter: Jenkins
Branch: master

commit 5415b86ac18750ce411898e46e0478b125e10079
Author: Vladimir Sharshov (warpc) <email address hidden>
Date: Thu Apr 7 18:32:31 2016 +0300

    Always report running status for task

    Sometime we run task so fast, so we get only pending
    and succeed/failed status report without running.

    Such behavior breaks State Machine flow for tasks history
    in Nailgun. With this change we will send running status
    for task in the moment of actual run.

    Change-Id: I46d86e31b5e35a54d1c33e41ea6fbdbc0d74c66b
    Closes-Bug: #1564295

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

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

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

Reviewed: https://review.openstack.org/304051
Committed: https://git.openstack.org/cgit/openstack/fuel-astute/commit/?id=3c5275bf7613e507e8db24f0f364f24cf59ce60d
Submitter: Jenkins
Branch: stable/mitaka

commit 3c5275bf7613e507e8db24f0f364f24cf59ce60d
Author: Vladimir Sharshov (warpc) <email address hidden>
Date: Thu Apr 7 18:32:31 2016 +0300

    Always report running status for task

    Sometime we run task so fast, so we get only pending
    and succeed/failed status report without running.

    Such behavior breaks State Machine flow for tasks history
    in Nailgun. With this change we will send running status
    for task in the moment of actual run.

    Change-Id: I46d86e31b5e35a54d1c33e41ea6fbdbc0d74c66b
    Closes-Bug: #1564295
    (cherry picked from commit 5415b86ac18750ce411898e46e0478b125e10079)

tags: added: in-stable-mitaka
Revision history for this message
Aleksei Stepanov (penguinolog) wrote :

fuel-9.0-203-2016-04-15_02-00-00.iso - FAIL.
https://review.openstack.org/#/c/301589/6 - checker

Changed in fuel:
status: Fix Committed → Confirmed
importance: High → Critical
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to fuel-web (master)

Related fix proposed to branch: master
Review: https://review.openstack.org/307874

Dmitry Pyzhov (dpyzhov)
Changed in fuel:
milestone: 9.0 → 10.0
Changed in fuel:
status: Confirmed → In Progress
Revision history for this message
Aleksey Kasatkin (alekseyk-ru) wrote :

I don't see why is it critical. Just deployment history is affected.

Changed in fuel:
importance: Critical → High
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-astute (master)

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to fuel-web (master)

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

commit f5dd8c43ed7c47489f89e9e2f5f070b8713279d6
Author: Vladimir Sharshov (warpc) <email address hidden>
Date: Tue Apr 19 18:22:37 2016 +0300

    Flush DB must be run after all changes for nodes and histories

    Also add tests for state transition

    Change-Id: I4b3f63de0c96aebb3ca09e57a62b06895694b09d
    Related-Bug: #1564295

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

Related fix proposed to branch: stable/mitaka
Review: https://review.openstack.org/310433

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-astute (master)

Reviewed: https://review.openstack.org/310242
Committed: https://git.openstack.org/cgit/openstack/fuel-astute/commit/?id=1e913924a18638a620ba42ff0eb890cccf959f46
Submitter: Jenkins
Branch: master

commit 1e913924a18638a620ba42ff0eb890cccf959f46
Author: Vladimir Sharshov (warpc) <email address hidden>
Date: Tue Apr 26 18:54:50 2016 +0300

    Do not report 'running' for skipped tasks

    Without this change Astute will send running
    status for task which not run because skipped

    Change-Id: Icde12c45b2816aaa5facc26764d7dcb4792f1702
    Closes-Bug: #1564295

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

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

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

Reviewed: https://review.openstack.org/310481
Committed: https://git.openstack.org/cgit/openstack/fuel-astute/commit/?id=0027f0772535df87ff6fd4ce1b671582f0be4a67
Submitter: Jenkins
Branch: stable/mitaka

commit 0027f0772535df87ff6fd4ce1b671582f0be4a67
Author: Vladimir Sharshov (warpc) <email address hidden>
Date: Tue Apr 26 18:54:50 2016 +0300

    Do not report 'running' for skipped tasks

    Without this change Astute will send running
    status for task which not run because skipped

    Change-Id: Icde12c45b2816aaa5facc26764d7dcb4792f1702
    Closes-Bug: #1564295
    (cherry picked from commit 1e913924a18638a620ba42ff0eb890cccf959f46)

Revision history for this message
Aleksei Stepanov (penguinolog) wrote :

Custom PASS on both ISO

Changed in fuel:
status: Fix Committed → Fix Released
Revision history for this message
Dmitriy Kruglov (dkruglov) wrote :
Changed in fuel:
status: Fix Released → Confirmed
importance: High → Critical
tags: added: swarm-blocker
Revision history for this message
Dmitriy Kruglov (dkruglov) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to fuel-web (stable/mitaka)

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

commit 67d261a9eada140d572a6dedb64f28fbb6bbd4dd
Author: Vladimir Sharshov (warpc) <email address hidden>
Date: Tue Apr 19 18:22:37 2016 +0300

    Flush DB must be run after all changes for nodes and histories

    Also add tests for state transition

    Change-Id: I4b3f63de0c96aebb3ca09e57a62b06895694b09d
    Related-Bug: #1564295
    (cherry picked from commit f5dd8c43ed7c47489f89e9e2f5f070b8713279d6)

Revision history for this message
Vladimir Sharshov (vsharshov) wrote :
Changed in fuel:
status: Confirmed → Fix Committed
Revision history for this message
Bogdan Dobrelya (bogdando) wrote :

CI is still blocked by this bug

Changed in fuel:
status: Fix Committed → Confirmed
Revision history for this message
Bogdan Dobrelya (bogdando) wrote :

Example failures in stable/mitaka, see the recent recheck runs:
https://review.openstack.org/#/c/313674 https://review.openstack.org/#/c/313273/

Revision history for this message
Vladimir Sharshov (vsharshov) wrote :

Guys, please check this bugs: https://bugs.launchpad.net/fuel/+bug/1578218 and https://bugs.launchpad.net/fuel/+bug/1578257 first before reopen this.

Changed in fuel:
status: Confirmed → Fix Committed
tags: added: on-verification
Revision history for this message
ElenaRossokhina (esolomina) wrote :

Verified: all tasks have ready or skipped status, no running and pending tasks after deploy ends
iso#305 http://paste.openstack.org/show/496749/

tags: removed: on-verification
Revision history for this message
Dmitry Belyaninov (dbelyaninov) wrote :

Verified on Newton, iso #1332
There is no running tasks after deployment

[root@nailgun ~]# fuel deployment-tasks --task-id 5 --status running
task_name | node_id | status | time_start | time_end
----------+---------+--------+------------+---------

Changed in fuel:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.