Potential code diverge after Fuel-library switched to the packaging system for binaries/init/OCF scripts

Bug #1457441 reported by Bogdan Dobrelya
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Invalid
Medium
Fuel Library (Deprecated)
6.0.x
Invalid
High
Fuel Library (Deprecated)
6.1.x
Won't Fix
Medium
Unassigned
7.0.x
Won't Fix
Medium
Fuel Library (Deprecated)
8.0.x
Invalid
Medium
Fuel Library (Deprecated)

Bug Description

After the patch https://review.openstack.org/#/c/172542
We may have got the code diverged in the deployment/ vs files/ vs debian/ locations. This must be double-checked and deployment/ changes, if any, syncronized to the files/ or debian/ dst and originals must be removed from the fuel-library repo as we now maintain only files/ location for binaries, OCF/init scripts.

Example of the potential code diverge:
files/rabbit-fence/rabbit-fence.init - ok. New destination to maintain.
deployment/puppet/cluster/files/rabbit-fence.init - obsoleted, should be synced and removed.
debian/fuel-rabbit-fence.upstart - ok. New destination to maintain.
deployment/puppet/cluster/files/rabbit-fence.upstart - obsleted, should be synced and removed.

After the manual check for the code diverge, we should update the CI gate for packaging of fuel-library in order to make this diverge impossible in the late.

Changed in fuel:
importance: Undecided → Critical
assignee: nobody → Fuel Library Team (fuel-library)
milestone: none → 6.1
status: New → Confirmed
tags: added: feature-patching
summary: Potential code diverge after Fuel-library switched to the packaging
- system for binaries/init scripts
+ system for binaries/init/OCF scripts
description: updated
description: updated
description: updated
description: updated
Changed in fuel:
assignee: Fuel Library Team (fuel-library) → Dmitry Ilyin (idv1985)
Changed in fuel:
importance: Critical → High
Revision history for this message
Vladimir Kuklin (vkuklin) wrote :

I specially rechecked all the files after partiuclar commit was merged - there is no divergence

Changed in fuel:
status: Confirmed → Invalid
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to fuel-library (master)

Related fix proposed to branch: master
Review: https://review.openstack.org/184966

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to fuel-library (master)

Reviewed: https://review.openstack.org/184966
Committed: https://git.openstack.org/cgit/stackforge/fuel-library/commit/?id=2e7660b5f73634077cc71ba53672dcfda8c46d61
Submitter: Jenkins
Branch: master

commit 2e7660b5f73634077cc71ba53672dcfda8c46d61
Author: Bogdan Dobrelya <email address hidden>
Date: Fri May 22 09:47:43 2015 +0200

    Sync rabbit OCF code diverge to packages

    W/o this patch, the code in OCF script from
    deployment/ dir will never get to the fuel-library
    packages, which are building from files/ and /debian
    dirs only.

    The solution is:
    1) sync the code diverged to the files/ and debian/
    2) either to remove the source OCF file or to
    update the way files being linked.

    This patch fixes only the step 1 as there is not yet
    decided how to deal with the step 2.

    Related-bug: #1457441
    Related-bug: #184966

    Change-Id: Ied86640e8e853de99bcd26f1ae726fc8272b6db7
    Signed-off-by: Bogdan Dobrelya <email address hidden>

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to fuel-library (master)

Related fix proposed to branch: master
Review: https://review.openstack.org/185064

Revision history for this message
Bogdan Dobrelya (bogdando) wrote :

@Vladimir Kuklin, there was at least one, please see the patch https://review.openstack.org/184966

Changed in fuel:
status: Invalid → Confirmed
Revision history for this message
Bogdan Dobrelya (bogdando) wrote :

And please note, we should prevent an OCF/binaries being merged to the deployment/ destination in the future, so this bug is valid - as we have to either remove all duplicated files from the repo, or make a kind of automatic syncronization from /deployment to /fiels and /debian.

Changed in fuel:
status: Confirmed → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to fuel-library (master)

Reviewed: https://review.openstack.org/185064
Committed: https://git.openstack.org/cgit/stackforge/fuel-library/commit/?id=c4e2a340c5a17a8a0c5e1812efd323e96a6fb865
Submitter: Jenkins
Branch: master

commit c4e2a340c5a17a8a0c5e1812efd323e96a6fb865
Author: Dmitry Ilyin <email address hidden>
Date: Fri May 22 19:38:31 2015 +0300

    Sync unsynced file form puppet library

    Related-Bug: 1457441
    Change-Id: I082a566c30ab9dd80647da30ea6ac91b3c532387

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to fuel-library (master)

Related fix proposed to branch: master
Review: https://review.openstack.org/205244

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to fuel-library (master)

Reviewed: https://review.openstack.org/205244
Committed: https://git.openstack.org/cgit/stackforge/fuel-library/commit/?id=7117b6cfd43de4acf9f3febac3a8b09310747942
Submitter: Jenkins
Branch: master

commit 7117b6cfd43de4acf9f3febac3a8b09310747942
Author: Alex Schultz <email address hidden>
Date: Thu Jul 23 13:31:50 2015 -0500

    Old ocf file cleanup

    This change removes missed ocf scripts from deployment/ and moves
    any still referenced files to files/fuel-ha-utils. Also cleans up
    commented out ocf files from the puppet code.

    Change-Id: Ie6bd1bae40fab175aff14274026bf506f28eb0e4
    Related-Bug: 1457441

Revision history for this message
Vladimir Kuklin (vkuklin) wrote :

This should be covered by tests.

Revision history for this message
Andrey Maximov (maximov) wrote :

This is not a functional bug but rather technical debt which we should address in the future. Lowering priority to medium and moving out of 7.0 scope.

Revision history for this message
Matthew Mosesohn (raytrac3r) wrote :

This seems done. It's hard to write tests coverage for shifting code location

Dmitry Pyzhov (dpyzhov)
tags: added: area-library
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on fuel-library (master)

Change abandoned by Dmitry Ilyin (<email address hidden>) on branch: master
Review: https://review.openstack.org/185063

Dmitry Pyzhov (dpyzhov)
Changed in fuel:
milestone: 6.1 → 8.0
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.