Error during lma infrastructure alerting plugin deletion

Bug #1572533 reported by Vladimir
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Invalid
Undecided
LMA-Toolchain Fuel Plugins
StackLight
Fix Committed
Undecided
Simon Pasquier

Bug Description

Fuel 8.0
Steps to reproduce:

1. Log in to Fuel master.
2. Try to delete plugin:
    fuel plugins --remove lma_infrastructure_alerting==0.9.0

Expected result:
    Plugin was deleted, exit code is 0.

Actual result:
    Error during plugin deletion:
        Running transaction
        /var/tmp/rpm-tmp.yzmtsk: line 7: syntax error near unexpected token `fi'
        /var/tmp/rpm-tmp.yzmtsk: line 7: `fi'
        error: %preun(lma_infrastructure_alerting-0.9-0.9.0-1.noarch) scriptlet failed, exit status 2
        Error in PREUN scriptlet in rpm package lma_infrastructure_alerting-0.9-0.9.0-1.noarch
         Verifying : lma_infrastructure_alerting-.9-0.9.0-1.noarch 1/1

        Failed:
        lma_infrastructure_alerting-0.9.noarch 0:0.9.0-1

        Complete!
        Shell command executed with "1" exit code: yum -y remove lma_infrastructure_alerting-0.9

    Exit code is 1.
    But fuel plugins --list shows, that the plugin was removed.

Fuel version
VERSION:
  feature_groups:
    - mirantis
  production: "docker"
  release: "8.0"
  api: "1.0"
  build_number: "570"
  build_id: "570"
  fuel-nailgun_sha: "558ca91a854cf29e395940c232911ffb851899c1"
  python-fuelclient_sha: "4f234669cfe88a9406f4e438b1e1f74f1ef484a5"
  fuel-agent_sha: "658be72c4b42d3e1436b86ac4567ab914bfb451b"
  fuel-nailgun-agent_sha: "b2bb466fd5bd92da614cdbd819d6999c510ebfb1"
  astute_sha: "b81577a5b7857c4be8748492bae1dec2fa89b446"
  fuel-library_sha: "c2a335b5b725f1b994f78d4c78723d29fa44685a"
  fuel-ostf_sha: "3bc76a63a9e7d195ff34eadc29552f4235fa6c52"
  fuel-mirror_sha: "fb45b80d7bee5899d931f926e5c9512e2b442749"
  fuelmenu_sha: "78ffc73065a9674b707c081d128cb7eea611474f"
  shotgun_sha: "63645dea384a37dde5c01d4f8905566978e5d906"
  network-checker_sha: "a43cf96cd9532f10794dce736350bf5bed350e9d"
  fuel-upgrade_sha: "616a7490ec7199f69759e97e42f9b97dfc87e85b"
  fuelmain_sha: "d605bcbabf315382d56d0ce8143458be67c53434"

Vitaly Gusev (vgusev)
Changed in fuel:
assignee: nobody → LMA-Toolchain Fuel Plugins (mos-lma-toolchain)
Revision history for this message
Simon Pasquier (simon-pasquier) wrote :

This is triggered by a bug in fuel-plugin-builder: https://bugs.launchpad.net/fuel/+bug/1574478

Changed in fuel:
status: New → Invalid
Changed in lma-toolchain:
assignee: nobody → LMA-Toolchain Fuel Plugins (mos-lma-toolchain)
Changed in lma-toolchain:
assignee: LMA-Toolchain Fuel Plugins (mos-lma-toolchain) → Olivier Bourdon (olivierbourdon38)
status: New → In Progress
Changed in lma-toolchain:
assignee: Olivier Bourdon (olivierbourdon38) → Simon Pasquier (simon-pasquier)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-plugin-lma-infrastructure-alerting (master)

Reviewed: https://review.openstack.org/309707
Committed: https://git.openstack.org/cgit/openstack/fuel-plugin-lma-infrastructure-alerting/commit/?id=16841d4b721765ccf04f7c74f278db56bdba57cf
Submitter: Jenkins
Branch: master

commit 16841d4b721765ccf04f7c74f278db56bdba57cf
Author: Olivier Bourdon <email address hidden>
Date: Sat Apr 23 17:24:10 2016 +0200

    Fix plugin removal error

    Closes-Bug: #1572533
    Related-Bug: #1574478

    Change-Id: I1a6d91241c02a81d8d73274bf7a4bbde8001611c

Changed in lma-toolchain:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-plugin-lma-infrastructure-alerting (stable/0.9)

Fix proposed to branch: stable/0.9
Review: https://review.openstack.org/309909

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-plugin-lma-infrastructure-alerting (stable/0.9)

Reviewed: https://review.openstack.org/309909
Committed: https://git.openstack.org/cgit/openstack/fuel-plugin-lma-infrastructure-alerting/commit/?id=ff40a95a48b714318185f3086f2ce4c496e40e18
Submitter: Jenkins
Branch: stable/0.9

commit ff40a95a48b714318185f3086f2ce4c496e40e18
Author: Olivier Bourdon <email address hidden>
Date: Sat Apr 23 17:24:10 2016 +0200

    Fix plugin removal error

    Closes-Bug: #1572533
    Related-Bug: #1574478

    Change-Id: I1a6d91241c02a81d8d73274bf7a4bbde8001611c
    (cherry picked from commit 16841d4b721765ccf04f7c74f278db56bdba57cf)

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.