fuel plugins --install <rpm> -f do not install new plugin

Bug #1439128 reported by Vladimir Sharshov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
High
Vladimir Sharshov

Bug Description

"fuel plugins --install <rpm> -f" actually executes "yum resintall", which fails if the package wasn't installed already, since you wrap it, you should handle this case:

Example:

    fuel plugins --install mellanox_plugin/exmaple_plugin-1.0-1.0.0-0.noarch.rpm -f

    No package matched to remove: mellanox_plugin-1.0-0:1.0.0-0
    Error: Problem in reinstall: no package matched to remove
    Shell command executed with "1" exit code: yum -y reinstall mellanox_plugin/exmaple_plugin-1.0-1.0.0-0.noarch.rpm

Thanks Gil Meir for report.

description: updated
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-fuelclient (master)

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

Changed in fuel:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-fuelclient (master)

Reviewed: https://review.openstack.org/170093
Committed: https://git.openstack.org/cgit/stackforge/python-fuelclient/commit/?id=d800d968b1e3749b0e545ac352f4a561cffaa4a5
Submitter: Jenkins
Branch: master

commit d800d968b1e3749b0e545ac352f4a561cffaa4a5
Author: Vladimir Sharshov (warpc) <email address hidden>
Date: Thu Apr 2 14:57:31 2015 +0300

    Fuel plugin install --force now can install new plugin

    Without this changes fuel return error if you will
    try to install new plugin using install with --force

    Change-Id: Id3b2966f78bf24bb47f05b7d0a02bb101b7843b5
    Closes-Bug: #1439128

Changed in fuel:
status: In Progress → Fix Committed
tags: added: on-verification
Revision history for this message
Anastasia Palkina (apalkina) wrote :

Verified on ISO #412

"build_id": "2015-05-13_11-36-33", "build_number": "412", "release_versions": {"2014.2.2-6.1": {"VERSION": {"build_id": "2015-05-13_11-36-33", "build_number": "412", "api": "1.0", "fuel-library_sha": "86505a5b4aab91b16abacca9a0da4f4cf90d3da9", "nailgun_sha": "09a9f2726223b9f31075adf79898045cd269c00c", "feature_groups": ["mirantis"], "openstack_version": "2014.2.2-6.1", "production": "docker", "python-fuelclient_sha": "af6c9c3799b9ec107bcdc6dbf035cafc034526ce", "astute_sha": "484d5038b81b7260597be027b1265dc88091026b", "fuel-ostf_sha": "1ae384a28b42d5325bd5d2546aead1e9d502f6a8", "release": "6.1", "fuelmain_sha": "51b86bb24b27742a22b23e2ae3dfc850c47e5fbf"}}}, "auth_required": true, "api": "1.0", "fuel-library_sha": "86505a5b4aab91b16abacca9a0da4f4cf90d3da9", "nailgun_sha": "09a9f2726223b9f31075adf79898045cd269c00c", "feature_groups": ["mirantis"], "openstack_version": "2014.2.2-6.1", "production": "docker", "python-fuelclient_sha": "af6c9c3799b9ec107bcdc6dbf035cafc034526ce", "astute_sha": "484d5038b81b7260597be027b1265dc88091026b", "fuel-ostf_sha": "1ae384a28b42d5325bd5d2546aead1e9d502f6a8", "release": "6.1", "fuelmain_sha": "51b86bb24b27742a22b23e2ae3dfc850c47e5fbf"

Changed in fuel:
status: Fix Committed → Fix Released
tags: removed: on-verification
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.