[plugin] rpm/yum work incorrectly with Fuel plugins

Bug #1480938 reported by Sergii Golovatiuk
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Triaged
Medium
Fuel Sustaining
Mitaka
Won't Fix
Medium
Fuel Python (Deprecated)
Newton
Triaged
Medium
Fuel Sustaining

Bug Description

fuel plugin builder generates rpm. Making rpm means that it should be installed using rpm -i, yum install
However, yum install doesn't work properly as after installation it requires

fuel plugins —sync

which should be added to post: section of plugin's RPM specification. Operator should use regular commands instead of some tricky

fuel plugins --install $RPM —force

which has very bad UX for operator. Operator should use regular commands. wget/yum install only instead of any other commands

Same should be applied to rpm -e/yum remove. As when I do

rpm -e $PLUGIN

I still see configuration in database with

fuel plugins --install $RPM
or
fuel plugins —sync

%preun and %postun should be updated to run

fuel plugins --remove plugin==ver

Changed in fuel:
assignee: nobody → Fuel Python Team (fuel-python)
status: New → Confirmed
importance: Undecided → High
milestone: none → 7.0
Changed in fuel:
assignee: Fuel Python Team (fuel-python) → Maciej Kwiek (maciej-iai)
Changed in fuel:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on fuel-plugins (master)

Change abandoned by Maciej Kwiek (<email address hidden>) on branch: master
Review: https://review.openstack.org/209498
Reason: Bug was deemed invalid

Revision history for this message
Evgeniy L (rustyrobot) wrote :

It's by design was done this way, in rpm world people don't expect that during the installation of rpm some **REST API** calls to third party service will be performed. Doing it the way it's described in the ticket breaks system administrator's expectations and common practice accepted in this packaging system.

Changed in fuel:
status: In Progress → Invalid
Revision history for this message
Sergii Golovatiuk (sgolovatiuk) wrote :

This bug is valid. People are allowed to use *yum*, thus there should be some calls. Many RPMs contain rules to remove database on package removal. At the moment UX is very bad as it's not intuitive for operators and plugin developers.

Changed in fuel:
status: Invalid → Confirmed
importance: High → Medium
Changed in fuel:
assignee: Maciej Kwiek (maciej-iai) → Fuel Python Team (fuel-python)
tags: added: feature
Revision history for this message
Vladimir Sharshov (vsharshov) wrote :

This bug describe new behavior for fuel plugins. Does not affect deployment. Moving to 8.0

tags: added: feature-plugins need-bp
Changed in fuel:
status: Confirmed → Won't Fix
Dmitry Pyzhov (dpyzhov)
Changed in fuel:
milestone: 7.0 → 8.0
no longer affects: fuel/8.0.x
Dmitry Pyzhov (dpyzhov)
tags: added: area-python
Revision history for this message
Alexander Kislitsky (akislitsky) wrote :

We passed SCF in 8.0. Moving the bug to 9.0.

Changed in fuel:
milestone: 8.0 → 9.0
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.