Advertisement
Guest User

bug_stats_ceilo

a guest
Sep 4th, 2015
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.33 KB | None | 0 0
  1. Environement :
  2.  
  3. ii ceilometer-agent-central 2015.1.1-0ubuntu2~cloud2 all ceilometer central agent
  4. ii ceilometer-agent-notification 2015.1.1-0ubuntu2~cloud2 all ceilometer notification agent
  5. ii ceilometer-alarm-evaluator 2015.1.1-0ubuntu2~cloud2 all Ceilometer alarm evaluator
  6. ii ceilometer-alarm-notifier 2015.1.1-0ubuntu2~cloud2 all Ceilometer notification agent
  7. ii ceilometer-api 2015.1.1-0ubuntu2~cloud2 all ceilometer api service
  8. ii ceilometer-collector 2015.1.1-0ubuntu2~cloud2 all ceilometer collector service
  9. ii ceilometer-common 2015.1.1-0ubuntu2~cloud2 all ceilometer common files
  10. ii python-ceilometer 2015.1.1-0ubuntu2~cloud2 all ceilometer python libraries
  11. ii python-ceilometerclient 1.0.13-0ubuntu1~cloud0 all Client library for Openstack ceilometer server.
  12.  
  13. using the patch : https://bugs.launchpad.net/ceilometer/+bug/1489132
  14.  
  15. 1 - Lauching an instance at 14:00 on Flavor_1
  16. 2 - Resizing the instance to Flavor_2 at 14:05
  17. 3 – Statistics output at 14:34
  18. 3a – Output for Flavor_1
  19.  
  20. ceilometer statistics -m instance -q 'metadata.instance_type=Flavor_1;project_id=my_tenant_id;resource_id=my_resource_id'
  21. +--------+---------------------+---------------------+-----+-----+-----+-----+-------+----------+---------------------+---------------------+
  22. | Period | Period Start | Period End | Max | Min | Avg | Sum | Count | Duration | Duration Start | Duration End |
  23. +--------+---------------------+---------------------+-----+-----+-----+-----+-------+----------+---------------------+---------------------+
  24. | 0 | 2015-09-04T14:00:17 | 2015-09-04T14:05:18 | 1.0 | 1.0 | 1.0 | 6.0 | 6 | 301.0 | 2015-09-04T14:00:17 | 2015-09-04T14:05:18 |
  25. +--------+---------------------+---------------------+-----+-----+-----+-----+-------+----------+---------------------+---------------------+
  26.  
  27. 301 mean that the instance ran 5min on Flavor_1 before the resize (beetween 14:00 and 14:05, good)
  28.  
  29. 3b – Output for Flavor_2
  30.  
  31. ceilometer statistics -m instance -q 'metadata.instance_type=Flavor_2; project_id=my_tenant_id; resource_id=my_resource_id'
  32. +--------+---------------------+---------------------+-----+-----+-----+------+-------+----------+---------------------+---------------------+
  33. | Period | Period Start | Period End | Max | Min | Avg | Sum | Count | Duration | Duration Start | Duration End |
  34. +--------+---------------------+---------------------+-----+-----+-----+------+-------+----------+---------------------+---------------------+
  35. | 0 | 2015-09-04T14:06:14 | 2015-09-04T14:34:14 | 1.0 | 1.0 | 1.0 | 29.0 | 29 | 1680.0 | 2015-09-04T14:06:14 | 2015-09-04T14:34:14 |
  36. +--------+---------------------+---------------------+-----+-----+-----+------+-------+----------+---------------------+---------------------+
  37.  
  38. 1680.0 mean that the instance ran 28min on Flavor_2 after the resize (beetween 14:05 and 14:34, good)
  39.  
  40. 4 – Resizing back the instance to Flavor_1 at 14:35
  41. 5 – Statistics output at 14:37
  42.  
  43. 5a – Output for Flavor_1 (14:37)
  44.  
  45. ceilometer statistics -m instance -q 'metadata.instance_type=Flavor_1;project_id=my_tenant_id;resource_id=my_resource_id'
  46. +--------+---------------------+---------------------+-----+-----+-----+-----+-------+----------+---------------------+---------------------+
  47. | Period | Period Start | Period End | Max | Min | Avg | Sum | Count | Duration | Duration Start | Duration End |
  48. +--------+---------------------+---------------------+-----+-----+-----+-----+-------+----------+---------------------+---------------------+
  49. | 0 | 2015-09-04T14:00:17 | 2015-09-04T14:36:18 | 1.0 | 1.0 | 1.0 | 7.0 | 7 | 2161.0 | 2015-09-04T14:00:17 | 2015-09-04T14:36:18 |
  50. +--------+---------------------+---------------------+-----+-----+-----+-----+-------+----------+---------------------+---------------------+
  51.  
  52. 2161.0 mean that the instance ran 36min on Flavor_1, the problem is that the instance has only run :
  53. From 14:00 to 14:05 = 5min
  54. From 14:35 to 14:37 = 2min
  55.  
  56. Expected duration result around 420 sec (7min):
  57. Actual duration result 2161sec (37min)
  58.  
  59. Note that 37min is the total uptime of my Instance since creation, without regarding any flavor
  60.  
  61. 5b – Output for Flavor_2 (14:37)
  62.  
  63. ceilometer statistics -m instance -q 'metadata.instance_type=Flavor_2; project_id=my_tenant_id; resource_id=my_resource_id'
  64. +--------+---------------------+---------------------+-----+-----+-----+------+-------+----------+---------------------+---------------------+
  65. | Period | Period Start | Period End | Max | Min | Avg | Sum | Count | Duration | Duration Start | Duration End |
  66. +--------+---------------------+---------------------+-----+-----+-----+------+-------+----------+---------------------+---------------------+
  67. | 0 | 2015-09-04T14:06:14 | 2015-09-04T14:35:14 | 1.0 | 1.0 | 1.0 | 30.0 | 30 | 1740.0 | 2015-09-04T14:06:14 | 2015-09-04T14:35:14 |
  68. +--------+---------------------+---------------------+-----+-----+-----+------+-------+----------+---------------------+---------------------+
  69.  
  70. 1740.0 mean that the instance ran 29min on Flavor_2 (from 14:05 to 14:34, good)
  71.  
  72. 5c – Output for Instance metric (14:37)
  73.  
  74. root@telemetry:~# ceilometer statistics -m instance -q 'project_id=my_tenant_id;resource_id=my_resource_id'
  75. +--------+---------------------+---------------------+-----+-----+-----+------+-------+----------+---------------------+---------------------+
  76. | Period | Period Start | Period End | Max | Min | Avg | Sum | Count | Duration | Duration Start | Duration End |
  77. +--------+---------------------+---------------------+-----+-----+-----+------+-------+----------+---------------------+---------------------+
  78. | 0 | 2015-09-04T14:00:17 | 2015-09-04T14:37:18 | 1.0 | 1.0 | 1.0 | 38.0 | 38 | 2221.0 | 2015-09-04T14:00:17 | 2015-09-04T14:37:18 |
  79. +--------+---------------------+---------------------+-----+-----+-----+------+-------+----------+---------------------+---------------------+
  80.  
  81. 2221.0 mean that the instance ran 37min from creation (beetween 14:00 and 14:37, good)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement