detach-database plugin can't be uninstall from Fuel (MOS9)

Bug #1615518 reported by Kuldeep Khandelwal
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Won't Fix
Medium
Fuel Plugins Bugs
Mitaka
Confirmed
Medium
Fuel Plugins Bugs

Bug Description

Hi,

I am trying to uninstall detach-database plugin from fuel master but it is showing error "Error in PREUN scriptlet in rpm package detach-database-1.1-1.1.0-1.noarch". To remove this plugin and make it re-install, have to delete the rpm with rpm -e option.

Plugin: https://github.com/openstack/fuel-plugin-detach-database.git

Please find all execution below.

Plugin List -

[root@fuel ~]# fuel plugins --list
id | name | version | package_version | releases
---+-----------------------------+---------+-----------------+----------------------------------------------
1 | elasticsearch_kibana | 0.10.0 | 4.0.0 | ubuntu (liberty-8.0, liberty-9.0, mitaka-9.0)
2 | influxdb_grafana | 0.10.0 | 4.0.0 | ubuntu (liberty-8.0, liberty-9.0, mitaka-9.0)
3 | lma_collector | 0.10.0 | 4.0.0 | ubuntu (liberty-8.0, liberty-9.0, mitaka-9.0)
4 | lma_infrastructure_alerting | 0.10.0 | 4.0.0 | ubuntu (liberty-8.0, liberty-9.0, mitaka-9.0)
6 | detach-database | 1.1.0 | 4.0.0 | ubuntu (mitaka-9.0, newton-10.0)
[root@fuel ~]#
[root@fuel ~]#
[root@fuel ~]#
[root@fuel ~]#

Removing plugin:-

[root@fuel ~]# fuel plugins --remove detach-database==1.1.0
Loaded plugins: fastestmirror, priorities
Resolving Dependencies
--> Running transaction check
---> Package detach-database-1.1.noarch 0:1.1.0-1 will be erased
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================================================================================================================================================
 Package Arch Version Repository Size
=============================================================================================================================================================================================================
Removing:
 detach-database-1.1 noarch 1.1.0-1 @/detach-database-1.1-1.1.0-1.noarch 23 k

Transaction Summary
=============================================================================================================================================================================================================
Remove 1 Package

Installed size: 23 k
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
/var/tmp/rpm-tmp.xhtiHI: line 9: syntax error near unexpected token `fi'
/var/tmp/rpm-tmp.xhtiHI: line 9: `fi'
error: %preun(detach-database-1.1-1.1.0-1.noarch) scriptlet failed, exit status 2
Error in PREUN scriptlet in rpm package detach-database-1.1-1.1.0-1.noarch
  Verifying : detach-database-1.1-1.1.0-1.noarch 1/1

Failed:
  detach-database-1.1.noarch 0:1.1.0-1

Complete!
Shell command executed with "1" exit code: yum -y remove detach-database-1.1
[root@fuel ~]#

[root@fuel ~]# fuel plugins --list
id | name | version | package_version | releases
---+-----------------------------+---------+-----------------+----------------------------------------------
1 | elasticsearch_kibana | 0.10.0 | 4.0.0 | ubuntu (liberty-8.0, liberty-9.0, mitaka-9.0)
2 | influxdb_grafana | 0.10.0 | 4.0.0 | ubuntu (liberty-8.0, liberty-9.0, mitaka-9.0)
3 | lma_collector | 0.10.0 | 4.0.0 | ubuntu (liberty-8.0, liberty-9.0, mitaka-9.0)
4 | lma_infrastructure_alerting | 0.10.0 | 4.0.0 | ubuntu (liberty-8.0, liberty-9.0, mitaka-9.0)
[root@fuel ~]#
[root@fuel ~]# rpm -qa | grep detach
detach-database-1.1-1.1.0-1.noarch
[root@fuel ~]#
[root@fuel ~]#
[root@fuel ~]# rpm -e detach-database-1.1.noarch
/var/tmp/rpm-tmp.OLpuSY: line 9: syntax error near unexpected token `fi'
/var/tmp/rpm-tmp.OLpuSY: line 9: `fi'
error: %preun(detach-database-1.1-1.1.0-1.noarch) scriptlet failed, exit status 2
error: detach-database-1.1-1.1.0-1.noarch: erase failed
[root@fuel ~]#
[root@fuel ~]# rpm -qa | grep detach
detach-database-1.1-1.1.0-1.noarch
[root@fuel ~]#
[root@fuel ~]#
[root@fuel ~]# rpm -e detach-database-1.1.noarch --noscripts
[root@fuel ~]#
[root@fuel ~]#
[root@fuel ~]#
[root@fuel ~]# rpm -qa | grep detach
[root@fuel ~]#
[root@fuel ~]#

Tags: area-plugins
description: updated
tags: added: area-plugins
Changed in fuel:
status: New → Confirmed
importance: Undecided → Medium
milestone: none → 9.1
assignee: nobody → Fuel Plugins Bugs (fuel-plugins-bugs)
Roman Vyalov (r0mikiam)
Changed in fuel:
status: Confirmed → Won't Fix
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.