2016-08-22 12:11:53 |
Kuldeep Khandelwal |
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.
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 ~]# |
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 ~]# |
|