Bug 1406908

Summary: Compute Placement API Upgrade Considerations
Product: Red Hat OpenStack Reporter: Stephen Gordon <sgordon>
Component: openstack-tripleo-heat-templatesAssignee: Ollie Walsh <owalsh>
Status: CLOSED ERRATA QA Contact: Prasanth Anbalagan <panbalag>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 11.0 (Ocata)CC: dbecker, dclarke, eglynn, emacchi, mburns, mcornea, morazi, owalsh, rhel-osp-director-maint, sgordon
Target Milestone: rcKeywords: InstallerIntegration
Target Release: 11.0 (Ocata)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-tripleo-heat-templates-6.0.0-0.20170218023452.edbaaa9.el7ost.noarch.rpm Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-05-17 19:53:15 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Stephen Gordon 2016-12-21 19:38:53 UTC
Description of problem:

Nova introduced the placement API service in the 14.0.0 Newton release. This is a separate REST API stack and data model used to track resource provider inventories and usages, along with different classes of resources. For example, a resource provider can be a compute node, a shared storage pool, or an IP allocation pool. The placement service tracks the inventory and usage of each provider. For example, an instance created on a compute node may be a consumer of resources such as RAM and CPU from a compute node resource provider, DISK from an external shared storage pool resource provider and IP addresses from an external IP pool resource provider.

The types of resources consumed are tracked as classes. The service provides a set of standard resource classes but provides the ability to define custom resource classes as needed.

The placement-api service must be deployed at some point after you have upgraded to the 14.0.0 Newton release but before you can upgrade to the 15.0.0 Ocata release. This is so that the resource tracker in the nova-compute service can populate resource provider (compute node) inventory and allocation information which will be used by the nova-scheduler service in Ocata.

http://docs.openstack.org/developer/nova/placement.html

Comment 2 Emilien Macchi 2016-12-22 03:40:11 UTC
Since I've been doing most of the integration work in TripleO, would it make sense to assign the BZ to myself? (I've updated the BZ with the patches in progress).

Comment 3 Stephen Gordon 2016-12-22 14:04:49 UTC
(In reply to Emilien Macchi from comment #2)
> Since I've been doing most of the integration work in TripleO, would it make
> sense to assign the BZ to myself? (I've updated the BZ with the patches in
> progress).

For now, yes, question will be ensuring we get Sven or Ollie up to speed on what you have done and how and then ensure test from Compute DFG. I've marked this and the Cells V2 bug as 11.0 blockers and marked them on the DFG sheet as the highest priority items as it seems like we can't release without them...

Comment 4 Emilien Macchi 2016-12-22 14:30:23 UTC
Assigned to me now, feel free to take over the BZ when needed.

Comment 5 Eoghan Glynn 2017-01-09 21:06:40 UTC
The initial patch series containing the basic placement API service integration in TripleO is well-progressed by Emilien and close to landing.

The outstanding work relates to ensuring the placement API is deployed early enough in the upgrade workflow, so that it has a chance to populate inventories and allocations in advance of the first instance boot that may occur during the rolling upgrade.

Comment 6 Emilien Macchi 2017-01-31 20:47:51 UTC
I've posted all patches to deploy this service in TripleO. I'm moving this bug to owalsh for the upgrade part that I didn't take care of.

Comment 7 Stephen Gordon 2017-02-22 12:59:25 UTC
Can this be moved to POST or MODIFIED?

Comment 8 Ollie Walsh 2017-03-02 21:04:25 UTC
10.0 -> 11.0 upgrade was implemented in OpenStack gerrit 405241

Comment 9 Ollie Walsh 2017-03-02 21:28:03 UTC
Greenfield install enabled in multiple patches https://review.openstack.org/#/q/topic:tripleo/nova/placement

Comment 13 errata-xmlrpc 2017-05-17 19:53:15 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.

https://access.redhat.com/errata/RHEA-2017:1245