[Statistics] Data can be wrongly exported as removed to csv if cluster id and resource id is the same for resource
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fuel for OpenStack |
Fix Committed
|
Medium
|
Alexander Kislitsky |
Bug Description
{
"build_id": "2015-02-
"ostf_sha": "1a0b2c6618fac0
"build_number": "349",
"release_
{
"2014.2-6.1":
{
"VERSION":
{
"build_id": "2015-02-
"ostf_sha": "1a0b2c6618fac0
"build_number": "349",
"api": "1.0",
"nailgun_sha": "5b26d49dda10dd
"production": "docker",
"python-
"astute_sha": "6d6ad68e0cde28
"feature_
[
],
}
}
},
"auth_required": true,
"api": "1.0",
"nailgun_sha": "5b26d49dda10dd
"production": "docker",
"python-
"astute_sha": "6d6ad68e0cde28
"feature_groups":
[
"mirantis"
],
"release": "6.1",
"fuelmain_sha": "87223c15bb734b
"fuellib_sha": "8384b8ca4db847
}
Steps:
1. Deploy any cluster, create flavor, send flavor data to collector
2. Reset cluster, re-deploy cluster, create another one flavor and send data to collector
3. Export flavors to csv report
Actual - pre-defined flavors of re-deployed cluster are wrongly marked as removed. It probably happens because they have the same id(1,2,3,4,5) and cluster_id as pre-defined flavors of reset cluster so that's why they were exported as removed.
This problem can only occur for pre-defined resources like typical flavors that have the same id for every cluster
Fix proposed to branch: master /review. openstack. org/159823
Review: https:/