Bug 1041242

Summary: [RFE][nova]: Refactor compute node stats as a resource tracker extension
Product: Red Hat OpenStack Reporter: RHOS Integration <rhos-integ>
Component: openstack-novaAssignee: RHOS Maint <rhos-maint>
Status: CLOSED ERRATA QA Contact: Ami Jeain <ajeain>
Severity: medium Docs Contact:
Priority: low    
Version: unspecifiedCC: markmc, ndipanov, sgordon, slong, vpopovic, yeylon
Target Milestone: Upstream M3Keywords: FutureFeature, Triaged, Upstream
Target Release: 5.0 (RHEL 7)   
Hardware: Unspecified   
OS: Unspecified   
URL: https://blueprints.launchpad.net/nova/+spec/stats-as-rt-extension
Whiteboard: upstream_milestone_icehouse-3 upstream_status_implemented upstream_definition_approved
Fixed In Version: openstack-nova-2014.1-3.el7ost Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-07-08 15:27:31 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description RHOS Integration 2013-12-12 14:03:33 UTC
Cloned from launchpad blueprint https://blueprints.launchpad.net/nova/+spec/compute-node-stats-as-resource-tracker-extension.

Description:

Compute nodes record a number of statistics about instances they host, such as number of instances and number of each os type, and pass this information back to the scheduler. This information is stored in a table called compute_node_stats as attribute/value/compute-node triplets. The intention was that the compute_node_stats table would be extensible as any attribute/value pairs could be stored, but it introduced a join between compute_nodes and compute_node_stats that is expensive to process.

BP extensible-resource-tracking introduces a new text field to store json encoded information maintained by the resource tracker. There is an opportunity to refactor the compute node stats code to take advantage of extensible resource tracking. This would eliminate the compute_node_stats table and "normalise" how information is tracked at the compute node.

Specification URL (additional information):

None

Comment 3 Ami Jeain 2014-06-10 14:14:38 UTC
verified through nova regression:
#  rpm -qa |grep openstack-nova
openstack-nova-console-2014.1-3.el7ost.noarch
openstack-nova-novncproxy-2014.1-3.el7ost.noarch
openstack-nova-api-2014.1-3.el7ost.noarch
openstack-nova-common-2014.1-3.el7ost.noarch
openstack-nova-conductor-2014.1-3.el7ost.noarch
openstack-nova-cert-2014.1-3.el7ost.noarch
openstack-nova-scheduler-2014.1-3.el7ost.noarch

and

# rpm -qa |grep openstack-nova
openstack-nova-compute-2014.1-3.el7ost.noarch
openstack-nova-common-2014.1-3.el7ost.noarch

Comment 5 errata-xmlrpc 2014-07-08 15:27:31 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHEA-2014-0853.html