[fuel-qa] Yum don't clear all octane data

Bug #1607682 reported by Sergey Abramov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
Medium
Sergey Abramov

Bug Description

'yum remove fuel-octane' command does not actually remove octane files. It produces issues while testing - e.g. reinstallation of octane for applying patches can fails.

Steps to repro:
yum install fuel-octane
yum remove fuel-octane
ls /usr/lib/python2.7/site-packages/octane

description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to fuel-qa (stable/7.0)

Related fix proposed to branch: stable/7.0
Review: https://review.openstack.org/348783

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to fuel-qa (stable/mitaka)

Related fix proposed to branch: stable/mitaka
Review: https://review.openstack.org/348784

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

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

Changed in fuel:
assignee: nobody → Fuel Octane (fuel-octane-team)
Revision history for this message
Ilya Kharin (akscram) wrote :

@Sergey, could you explain the moment 'yum remove' does not remove some files that were installed by the provided RPM-package? You can check the exact list of files that were installed by the package:

    rpm -ql fuel-octane

Or 'yum remove' does not remove files that were not presented in the package?

Changed in fuel:
status: New → Incomplete
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to fuel-qa (master)

Reviewed: https://review.openstack.org/348785
Committed: https://git.openstack.org/cgit/openstack/fuel-qa/commit/?id=c999ab83fd05cda6b8d036100cb539c2a203b78b
Submitter: Jenkins
Branch: master

commit c999ab83fd05cda6b8d036100cb539c2a203b78b
Author: Sergey Abramov <email address hidden>
Date: Tue Jul 26 03:47:03 2016 +0300

    Remove octane direcotry after yum remove

    Related-Bug: 1607682
    Change-Id: I3e919ecf6d2306f742347bbc9e2eefd1fbafd8f3

tags: added: in-stable-mitaka
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to fuel-qa (stable/mitaka)

Reviewed: https://review.openstack.org/348784
Committed: https://git.openstack.org/cgit/openstack/fuel-qa/commit/?id=7cbccd90728e45bb84970be9e50202cb86dfa316
Submitter: Jenkins
Branch: stable/mitaka

commit 7cbccd90728e45bb84970be9e50202cb86dfa316
Author: Sergey Abramov <email address hidden>
Date: Tue Jul 26 03:47:03 2016 +0300

    Remove octane direcotry after yum remove

    Related-Bug: 1607682
    Change-Id: I3e919ecf6d2306f742347bbc9e2eefd1fbafd8f3

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to fuel-qa (stable/8.0)

Reviewed: https://review.openstack.org/347087
Committed: https://git.openstack.org/cgit/openstack/fuel-qa/commit/?id=6d0175a5d4ce00ac2a9b527fba1f84635615657d
Submitter: Jenkins
Branch: stable/8.0

commit 6d0175a5d4ce00ac2a9b527fba1f84635615657d
Author: Sergey Abramov <email address hidden>
Date: Tue Jul 26 03:47:03 2016 +0300

    Remove octane direcotry after yum remove

    Related-Bug: 1607682
    Change-Id: I3e919ecf6d2306f742347bbc9e2eefd1fbafd8f3

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to fuel-qa (stable/7.0)

Reviewed: https://review.openstack.org/348783
Committed: https://git.openstack.org/cgit/openstack/fuel-qa/commit/?id=b0ed55bad1c8f903a6575cf38202c78bdfb26e2b
Submitter: Jenkins
Branch: stable/7.0

commit b0ed55bad1c8f903a6575cf38202c78bdfb26e2b
Author: Sergey Abramov <email address hidden>
Date: Tue Jul 26 03:47:03 2016 +0300

    Remove octane direcotry after yum remove

    Related-Bug: 1607682
    Change-Id: I3e919ecf6d2306f742347bbc9e2eefd1fbafd8f3

Revision history for this message
Roman Prykhodchenko (romcheg) wrote :

Please triage this bug properly or close it, if it's no longer valid.

Revision history for this message
Sergey Abramov (sabramov) wrote :

We have problem

At first install fuel-octane
after that patch octane that add file to it (just for test `touch /usr/lib/python2.7/site-packages/octane/commands/crazy_cmd.py`)
after that remove octane
and than

find /usr/lib/python2.7/site-packages/octane | grep crazy_cmd
/usr/lib/python2.7/site-packages/octane/commands/crazy_cmd.py

Why this is the problem?
CI working this way:
in every step it reverts to snapshot with previous finished procedure,
removes octane,
install new and
patches it.
If in previous step octane had been already patched, this file had been added, it would not patched on the next step.

This problem fixed by workaround in fuel-qa.

Revision history for this message
Ilya Kharin (akscram) wrote :

RPM packages remove only files, declared in the %files section, they are responsible for. They will not remove files out of this list. It means that your example with crazy_cmd is not valid.

Revision history for this message
Ilya Kharin (akscram) wrote :

Okay then, we have such workaround for fuel-qa that handles some custom patches that are applied on octane.

Changed in fuel:
status: Incomplete → Fix Committed
importance: Undecided → Medium
milestone: none → 9.1
assignee: Fuel Octane (fuel-octane-team) → sryabin (sryabin)
Ilya Kharin (akscram)
Changed in fuel:
assignee: sryabin (sryabin) → Sergey Abramov (sabramov)
Changed in fuel:
status: Fix Committed → 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.