[newton only] Double sed backup remove original file during upgrade.

Bug #1728979 reported by Sofer Athlan-Guyot
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
Low
Sofer Athlan-Guyot

Bug Description

Hi,

just code reading I bumped into this issue[1]. The problem is the sed is inside the loop and there are 2 services. The second sed (because of -i.orig) erase the original file which won't be restored at the end.

The impact is nearly non-existent as we don't use /usr/lib/ocf/lib/neutron/neutron-netns-cleanup, like never again.

[1] https://github.com/openstack/tripleo-heat-templates/blob/stable/newton/extraconfig/tasks/major_upgrade_pacemaker_migrations.sh#L119..L120

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

Fix proposed to branch: stable/newton
Review: https://review.openstack.org/516676

Changed in tripleo:
milestone: none → queens-2
status: Confirmed → Triaged
assignee: nobody → Sofer Athlan-Guyot (sofer-athlan-guyot)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-heat-templates (stable/newton)

Reviewed: https://review.openstack.org/516676
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=7b1be85b95144c92a1f775376a515444def5baa0
Submitter: Zuul
Branch: stable/newton

commit 7b1be85b95144c92a1f775376a515444def5baa0
Author: Sofer Athlan-Guyot <email address hidden>
Date: Tue Oct 31 14:28:25 2017 +0100

    [Newton only] Fix double sed backup during upgrade.

    By having the sed inside the loop we have it run twice. This has the
    effect of erasing the original backup which can’t be restored.

    It has no other effect as we don’t use
    /usr/lib/ocf/lib/neutron/neutron-netns-cleanup anymore.

    Change-Id: I868462ce25185de7f76a6b06137aaa545daf48c4
    Closes-Bug: #1728979

tags: added: in-stable-newton
Changed in tripleo:
milestone: queens-2 → queens-3
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-heat-templates 5.3.5

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

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
Revision history for this message
Sofer Athlan-Guyot (sofer-athlan-guyot) wrote :
Changed in tripleo:
status: Triaged → Fix Released
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.