Configdb cli interface is broken with json output due to previously installed clifftablib

Bug #1628508 reported by Alexandr Kostrikov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Confirmed
High
Fuel Sustaining

Bug Description

During tests on ci[0] there were failures with configdb due to clifftablib.

The json interface is broken:
[root@nailgun tuning-box]# fuel2 config comp create -n another_comp -f json
[{"Field": "msg", "Value": "(psycopg2.IntegrityError) duplicate key value violates unique constraint \"tuning_box_component_component_name_unique\"\nDETAIL: Key (name)=(another_comp) already exists.\n"}]

But after removal of clifftablib json interface works fine:
[root@nailgun tuning-box]# yum remove python-cliff-tablib.noarch
Loaded plugins: fastestmirror, priorities
Resolving Dependencies
--> Running transaction check
---> Package python-cliff-tablib.noarch 0:1.1-4.el7~mos1 will be erased
--> Finished Dependency Resolution

Dependencies Resolved
...
Remove 1 Package
Installed size: 248 k

Result:
fuel2 config comp create -n comp -fjson
{
  "resource_definitions": [],
  "id": 10,
  "name": "comp"
}

[0] https://custom-ci.infra.mirantis.net/job/9.x.custom.ubuntu.system_test/502/

Changed in fuel:
status: New → Confirmed
milestone: 9.1 → 9.2
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tuning-box (master)

Fix proposed to branch: master
Review: https://review.openstack.org/381204

Changed in fuel:
status: Confirmed → In Progress
Dmitry Pyzhov (dpyzhov)
Changed in fuel:
milestone: 9.2 → 9.3
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on tuning-box (master)

Change abandoned by Alexander Kislitsky (<email address hidden>) on branch: master
Review: https://review.openstack.org/381204
Reason: Not required

tags: added: swarm-fail
Revision history for this message
Alexander Kislitsky (akislitsky) wrote :

Can't be fixed within the tuning-box.
As workaround: library clifftablib doesn't required by any package and should be deleted from the master node after upgrade.

Changed in fuel:
status: In Progress → Confirmed
assignee: Alexander Kislitsky (akislitsky) → Fuel Sustaining (fuel-sustaining-team)
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.