[stats] 'Deploy' action from action logs isn't sent if deployment is stopped

Bug #1401554 reported by Artem Panchenko
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Committed
Medium
Alexander Kislitsky

Bug Description

api: '1.0'
astute_sha: 16b252d93be6aaa73030b8100cf8c5ca6a970a91
auth_required: true
build_id: 2014-12-09_22-41-06
build_number: '49'
feature_groups:
- mirantis
fuellib_sha: 2c99931072d951301d395ebd5bf45c8d401301bb
fuelmain_sha: 3aab16667f47dd8384904e27f70f7a87ba15f4ee
nailgun_sha: 22bd43b89a17843f9199f92d61fc86cb0f8772f1
ostf_sha: a9afb68710d809570460c29d6c3293219d3624d4
production: docker
release: '6.0'

If environment deployment was stopped then 'statsenderd' doesn't send 'deploy' action logs because it lacks of 'end_timestamp' data.

Steps to reproduce:

1. Create environment, add nodes to it, run deployment
2. Stop deployment and force sending of usage stats

Result:

- sending of 1 record from action logs fails, here are details:

http://paste.openstack.org/show/149368/

As you can see 'end_timestamp' is Null for 'deploy' action even after it was stopped.

Revision history for this message
Artem Panchenko (apanchenko-8) wrote :
Changed in fuel:
milestone: 6.0 → 6.1
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Aleksey Kasatkin (alekseyk-ru) wrote :

Log record is not refreshed when deployment task is deleted on 'stop_deployment' action. So it never gets sent. Log record refresh for 'deployment' task is to be added in 'stop_deployment' and 'delete_environment' tasks.

Changed in fuel:
status: Confirmed → Triaged
tags: added: stats
removed: usage-stats
summary: - 'Deploy' action from action logs isn't sent if deployment is stopped
+ [stats] 'Deploy' action from action logs isn't sent if deployment is
+ stopped
Dmitry Pyzhov (dpyzhov)
tags: added: feature-stats
removed: stats
tags: added: module-nailgun
Dmitry Pyzhov (dpyzhov)
Changed in fuel:
assignee: Fuel Python Team (fuel-python) → Alexander Kislitsky (akislitsky)
Changed in fuel:
status: Triaged → In Progress
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/171259

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

Reviewed: https://review.openstack.org/171259
Committed: https://git.openstack.org/cgit/stackforge/fuel-web/commit/?id=912dd124b6fc396755b45f8e7191608b61438570
Submitter: Jenkins
Branch: master

commit 912dd124b6fc396755b45f8e7191608b61438570
Author: Alexander Kislitsky <email address hidden>
Date: Tue Apr 7 18:43:06 2015 +0300

    Action log updated for running deploy task

    In case of stopping deployment or removing cluster
    we update action log end_timestamp for running deploy task.
    It allows to send such action logs to stats collector.

    Change-Id: I795dd333beb32eedf5a5b39ee8f6190650d387b9
    Closes-Bug: #1401554

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.