nova/nova/objects
Surojit Pathak c0dfe42382 Fix wrong CPU metric value in metrics_filter
CPU metrics are reported as a normalized value in [0,1].
When scheduler reads the data as MonitorMetric object, as part
of update_from_compute_node(), the value of the metric gets
lost due to a wrong type conversion, typecasting into an Integer,
reduces it to 0.

Note:
 - It may seem unintuitive that to fix the same, we are not changing
   the type of metric from Integer to Float. Please refer the
   discussions -
   * https://review.openstack.org/#/c/243825/
   * https://review.openstack.org/#/c/216923/
 - To summarize, we are trying to save some 'possible' downstream consumer
   of metrics updates from compute nodes, i.e. consuming from AMPQ, from
   software upgrade scenarios.

Change-Id: Ib504af33e05dfc4d7e97b52682e27befc67d784a
Closes-bug: #1514997
(cherry picked from commit ddb3c4e26f)
2016-03-31 18:18:17 +00:00
..
__init__.py objects: Add MigrationContext object 2015-08-31 20:45:19 +01:00
agent.py cleanup NovaObjectDictCompat from agent 2015-08-26 16:36:25 +05:30
aggregate.py Change List objects to use obj_relationships 2015-07-31 18:49:50 +00:00
bandwidth_usage.py Change List objects to use obj_relationships 2015-07-31 18:49:50 +00:00
base.py Omnibus stable/liberty fix 2015-10-13 07:57:52 -04:00
block_device.py Merge "Remove unused root_metadata method of BlockDeviceMappingList" 2015-09-16 08:59:58 +00:00
cell_mapping.py Move to using ovo's remotable decorators 2015-07-28 10:34:59 -07:00
compute_node.py Merge "Remove/deprecate unused parts of the compute node object" 2015-09-11 14:09:42 +00:00
dns_domain.py Change List objects to use obj_relationships 2015-07-31 18:49:50 +00:00
ec2.py Begin the transition to an explicit object registry 2015-06-08 07:12:34 -07:00
external_event.py cleanup NovaObjectDictCompat from external_event 2015-08-26 17:01:02 +05:30
fields.py objects: convert config drive to use ImageMeta object 2015-09-07 17:11:02 +01:00
fixed_ip.py Set vif and allocated when associating fixed ip 2015-09-10 21:14:55 +00:00
flavor.py Update obj_reset_changes signatures to match 2015-08-21 12:12:09 -04:00
floating_ip.py Set vif and allocated when associating fixed ip 2015-09-10 21:14:55 +00:00
host_mapping.py Move to using ovo's remotable decorators 2015-07-28 10:34:59 -07:00
hv_spec.py cleanup NovaObjectDictCompat from hv_spec 2015-08-20 18:49:19 +00:00
image_meta.py Scheduler: honor the glance metadata for hypervisor details 2015-12-09 06:27:35 +00:00
instance.py Change warn to debug logs when migration context is missing 2016-02-25 15:21:20 +00:00
instance_action.py Add test to check relations at or below current 2015-08-06 13:46:51 +00:00
instance_fault.py Change List objects to use obj_relationships 2015-07-31 18:49:50 +00:00
instance_group.py Fix RequestSpec.instance_group hydration 2015-09-02 16:47:34 +02:00
instance_info_cache.py Merge "Send Instance object to cells instance_update_at_top" 2015-06-12 01:33:13 +00:00
instance_mapping.py Merge "Move to using ovo's remotable decorators" 2015-08-04 17:34:04 +00:00
instance_numa_topology.py Use compatibility methods from oslo 2015-08-26 13:37:36 -07:00
instance_pci_requests.py pci: Remove objects.InstancePCIRequests.save() 2015-08-19 12:22:00 -04:00
keypair.py Change List objects to use obj_relationships 2015-07-31 18:49:50 +00:00
migration.py rt: generalize claim code to be useful for other move actions 2015-08-26 16:43:35 +01:00
migration_context.py objects: Add MigrationContext object 2015-08-31 20:45:19 +01:00
monitor_metric.py Fix wrong CPU metric value in metrics_filter 2016-03-31 18:18:17 +00:00
network.py Change List objects to use obj_relationships 2015-07-31 18:49:50 +00:00
network_request.py network_request_obj: Clean up outdated code 2015-09-06 03:22:19 +00:00
numa.py Use compatibility methods from oslo 2015-08-26 13:37:36 -07:00
pci_device.py pci: Remove nova.pci.device module 2015-08-19 12:22:00 -04:00
pci_device_pool.py Change List objects to use obj_relationships 2015-07-31 18:49:50 +00:00
quotas.py cleanup NovaObjectDictCompat from quota 2015-08-20 18:48:21 +00:00
request_spec.py Correct Instance type check to work with InstanceV1 2015-09-29 16:09:34 +08:00
security_group.py Change List objects to use obj_relationships 2015-07-31 18:49:50 +00:00
security_group_rule.py Change List objects to use obj_relationships 2015-07-31 18:49:50 +00:00
service.py rebuild: RPC sends additional args and claims are done 2015-09-22 17:41:29 +01:00
tag.py Change List objects to use obj_relationships 2015-07-31 18:49:50 +00:00
task_log.py Change List objects to use obj_relationships 2015-07-31 18:49:50 +00:00
vcpu_model.py Begin the transition to an explicit object registry 2015-06-08 07:12:34 -07:00
virt_cpu_topology.py cleanup NovaObjectDictCompat from virt_cpu_topology 2015-08-05 08:56:30 +05:30
virtual_interface.py Merge "cleanup NovaObjectDictCompat from virtual_interface" 2015-08-05 12:08:07 +00:00
volume_usage.py Add a VolumeUsage object 2015-08-23 18:45:38 +02:00