Clean up old templates for updates with pre-containerization pacemaker

Bug #1794720 reported by Jiří Stránský
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
Medium
Jiří Stránský

Bug Description

We obsoleted these resources with move to containers, but the templates that used to implement these are still referenced in some envs and CI envs in the t-h-t tree.

https://github.com/openstack/tripleo-heat-templates/blob/master/environments/docker-ha.yaml#L10-L11

tags: added: tech-debt
Revision history for this message
David Peacock (davidjpeacock) wrote :

Please can you give us more information here; we're not sure what to do with this.

Changed in tripleo:
status: Triaged → Incomplete
Revision history for this message
Jiří Stránský (jistr) wrote :

There's a bunch of files which are completely obsolete now, but still live in t-h-t, e.g.:

https://github.com/openstack/tripleo-heat-templates/blob/1badfc470a0ae95f32ec5fe157193285dece18d3/extraconfig/tasks/pre_puppet_pacemaker.yaml

https://github.com/openstack/tripleo-heat-templates/blob/1badfc470a0ae95f32ec5fe157193285dece18d3/extraconfig/tasks/post_puppet_pacemaker.yaml

... and others. They're related to updates/upgrades of pacemaker and services managed by pacemaker, and they were only used before we went containerized.

The full scope of this still needs to be further investigated. E.g. we can't simply delete the files because they are still referenced from places (that doesn't mean they're useful though).

Changed in tripleo:
status: Incomplete → Triaged
Revision history for this message
Jiří Stránský (jistr) wrote :

Anything pacemaker-related in this directory is suspicious and needs to be checked:

https://github.com/openstack/tripleo-heat-templates/tree/1badfc470a0ae95f32ec5fe157193285dece18d3/extraconfig/tasks

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-heat-templates (master)

Fix proposed to branch: master
Review: https://review.openstack.org/608242

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/608242
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=7a438651af90759beb6b42725ba83b999bbbe4b6
Submitter: Zuul
Branch: master

commit 7a438651af90759beb6b42725ba83b999bbbe4b6
Author: Jiri Stransky <email address hidden>
Date: Fri Oct 5 13:45:44 2018 +0200

    Remove obsolete code for handling Pacemakerized resource restarts

    Remove scripts and templates which dealt with Pacemaker and its
    resource restarts before we moved to containerized deployments. These
    should all now be unused.

    Many environments had this mapping:

        OS::TripleO::Tasks::ControllerPreConfig: OS::Heat::None
        OS::TripleO::Tasks::ControllerPostConfig: OS::Heat::None
        OS::TripleO::Tasks::ControllerPostPuppetRestart: ../../extraconfig/tasks/post_puppet_pacemaker_restart.yaml

    The ControllerPostPuppetRestart is only ever referenced from
    ControllerPostConfig, so if ControllerPostConfig is OS::Heat::None, it
    doesn't matter what ControllerPostPuppetRestart is mapped to.

    Change-Id: Ibca72affb3d55cf62e5dfb52fe56b3b1c8b12ee0
    Closes-Bug: #1794720

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.1.0

This issue was fixed in the openstack/tripleo-heat-templates 10.1.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.