Activity log for bug #1615518

Date Who What changed Old value New value Message
2016-08-22 07:30:09 Kuldeep Khandelwal bug added bug
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 ~]#
2016-08-24 10:58:15 Ivan Ponomarev tags area-plugins
2016-08-24 10:58:24 Ivan Ponomarev fuel: status New Confirmed
2016-08-24 10:58:32 Ivan Ponomarev fuel: importance Undecided Medium
2016-08-24 10:58:34 Ivan Ponomarev fuel: milestone 9.1
2016-08-24 10:58:57 Ivan Ponomarev fuel: assignee Fuel Plugins Bugs (fuel-plugins-bugs)
2016-10-13 12:06:22 Roman Vyalov fuel/mitaka: importance Undecided Medium
2016-10-13 12:06:22 Roman Vyalov fuel/mitaka: status New Confirmed
2016-10-13 12:06:22 Roman Vyalov fuel/mitaka: milestone 9.2
2016-10-13 12:06:22 Roman Vyalov fuel/mitaka: assignee Fuel Plugins Bugs (fuel-plugins-bugs)
2016-10-13 12:06:25 Roman Vyalov fuel: status Confirmed Won't Fix