[RFE] Only create resources that will be used at deploy time

Bug #1671859 reported by Joe Talerico
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
High
Thomas Herve

Bug Description

TripleO will create resources for all roles in the role_data.yaml, however some of those resources might have a Count of 0. This is how things previously worked, however I would like to see us not create resources unless Count > 0.

For example:
 ControllerCount: 3
 ComputeCount: 0
 CephStorageCount: 3
 CNCFNetworkerCount: 2
 CNCFBaremetalCount: 0

Yet I see resources :
...
| CNCFBaremetalPreConfig | 449d2b9a-2020-46fe-b967-c7368a6cc336 | OS::TripleO::Tasks::CNCFBaremetalPreConfig | CREATE_COMPLETE | 2017-03-10T10:46:54Z | overcloud-openstack-AllNodesDeploySteps-ez356ks4rcm5 |
| CNCFBaremetalPuppetConfigImpl | f9484a68-ff46-4fdd-88cd-788ef51c0db4 | OS::Heat::SoftwareConfig | CREATE_COMPLETE | 2017-03-10T10:46:55Z | overcloud-openstack-AllNodesDeploySteps-ez356ks4rcm5-CNCFBaremetalConfig-kwhms3osd5a4 |
| DeployArtifacts | 7df2f874-f63a-4190-9788-1b710e2367e8 | OS::Heat::SoftwareConfig | CREATE_COMPLETE | 2017-03-10T10:46:55Z | overcloud-openstack-AllNodesDeploySteps-ez356ks4rcm5-CNCFBaremetalArtifactsConfig-c3d4luumb7kr |
...

Joe Talerico (jtaleric)
Changed in tripleo:
milestone: none → ongoing
milestone: ongoing → pike-3
Changed in tripleo:
status: New → Triaged
Joe Talerico (jtaleric)
Changed in tripleo:
importance: Medium → High
tags: added: deployment-time
Revision history for this message
Alex Schultz (alex-schultz) wrote :

A workaround might be to recommend that users do not use the default roles_data.yaml, but rather construct your own using the new roles tools to only include the necessary roles. https://blueprints.launchpad.net/tripleo/+spec/example-custom-role-environments

Changed in tripleo:
milestone: pike-3 → pike-rc1
Changed in tripleo:
milestone: pike-rc1 → pike-rc2
Changed in tripleo:
milestone: pike-rc2 → queens-1
Changed in tripleo:
milestone: queens-1 → queens-2
Changed in tripleo:
milestone: queens-2 → queens-3
Changed in tripleo:
milestone: queens-3 → queens-rc1
Changed in tripleo:
milestone: queens-rc1 → rocky-1
Changed in tripleo:
milestone: rocky-1 → rocky-2
Changed in tripleo:
milestone: rocky-2 → rocky-3
Changed in tripleo:
milestone: rocky-3 → rocky-rc1
Changed in tripleo:
milestone: rocky-rc1 → stein-1
Changed in tripleo:
milestone: stein-1 → stein-2
Thomas Herve (therve)
Changed in tripleo:
assignee: nobody → Thomas Herve (therve)
Changed in tripleo:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-heat-templates (master)

Reviewed: https://review.openstack.org/624145
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=eb3efe713335eda22cc58ca8f18cd7d209a16ac6
Submitter: Zuul
Branch: master

commit eb3efe713335eda22cc58ca8f18cd7d209a16ac6
Author: Thomas Herve <email address hidden>
Date: Mon Dec 10 18:47:41 2018 +0100

    Remove deploy steps on empty roles

    When a role count is 0, we can create the deployment resources
    conditionally.

    Closes-Bug: #1671859
    Change-Id: I467b9ded1a1b33d520cb69aa86b253a0552643f7

Changed in tripleo:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-heat-templates 10.3.0

This issue was fixed in the openstack/tripleo-heat-templates 10.3.0 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.