Fail to uninstall plugins because uninstall.sh is executed unconditionnaly
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fuel for OpenStack |
Fix Committed
|
High
|
Roman Prykhodchenko | ||
Mitaka |
Won't Fix
|
High
|
Roman Prykhodchenko |
Bug Description
Detailed bug description:
Because the prerun hook doesn't check if the plugin ships with an uninstall.sh script, the removal of plugins can fail.
Steps to reproduce:
1. Build the fuel-plugin-
2. Install the plugin on the Fuel master node.
3. Remove the plugin from the Fuel master node.
Expected results:
Success.
Actual result:
Running transaction
/var/tmp/
/var/tmp/
error: %preun(
Error in PREUN scriptlet in rpm package elasticsearch_
Verifying : elasticsearch_
Failed:
elasticsearch
Complete!
Shell command executed with "1" exit code: yum -y remove elasticsearch_
Reproducibility:
Always.
Workaround:
For plugin developers: Add uninstall.sh script in the plugin repository.
For end-users: rpm -e --noscripts <plugin package>
Impact:
The end-user can't uninstall the plugin.
Description of the environment:
Operation system: Ubuntu
Versions of components: N/A
Reference architecture: N/A
Network model: N/A
Related projects installed: None
Additional information:
None
Changed in fuel: | |
assignee: | nobody → Fuel Python Team (fuel-python) |
status: | New → Confirmed |
importance: | Undecided → High |
milestone: | none → 10.0 |
milestone: | 10.0 → 9.0 |
tags: | added: area-python |
no longer affects: | fuel/newton |
Changed in fuel: | |
assignee: | Fuel Python Team (fuel-python) → Roman Prykhodchenko (romcheg) |
Fix proposed to branch: master /review. openstack. org/310230
Review: https:/