Can't remove fuel plugin via fuel cli

Bug #1555560 reported by Denis Egorenko
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Invalid
High
Alexander Kislitsky

Bug Description

ISO: https://product-ci.infra.mirantis.net/job/9.0.all/30/

I got error during removing plugin:

[root@fuel ~]# fuel plugins --list
id | name | version | package_version
---|---------------|---------|----------------
1 | detach-murano | 1.0.0 | 4.0.0

[root@fuel ~]# fuel --debug plugins --remove detach-murano==1.0.0 --force
GET http://10.20.0.2:8000/api/v1/plugins/
GET http://10.20.0.2:8000/api/v1/plugins/
DELETE http://10.20.0.2:8000/api/v1/plugins/1
500 Server Error: Internal Server Error ((psycopg2.IntegrityError) null value in column "plugin_id" violates not-null constraint
DETAIL: Failing row contains (4, default, 6, null).
 [SQL: 'UPDATE plugin_deployment_graphs SET plugin_id=%(plugin_id)s WHERE plugin_deployment_graphs.id = %(plugin_deployment_graphs_id)s'] [parameters: {'plugin_id': None, 'plugin_deployment_graphs_id': 4}])

Changed in fuel:
importance: Undecided → High
status: New → Confirmed
assignee: nobody → Fuel Python Team (fuel-python)
milestone: none → 9.0
tags: added: module-nailgun
Revision history for this message
Pavel Chechetin (paulche) wrote :

As a dirty workaround I can propose:
$ sudo -u postgres psql
$ \c nailgun;
$ delete from plugin_deployment_graphs;

But please be careful with the lines above!

Dmitry Pyzhov (dpyzhov)
tags: added: area-python
Dmitry Pyzhov (dpyzhov)
tags: added: feature-plugins
removed: fuel-client module-nailgun
Changed in fuel:
assignee: Fuel Python Team (fuel-python) → Alexander Kislitsky (akislitsky)
Revision history for this message
Alexander Kislitsky (akislitsky) wrote :

Fixed in the change https://review.openstack.org/#/c/288635/.
Unable to reproduce on the ISO 97.

Changed in fuel:
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.