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

Bug #1628508 reported by Alexandr Kostrikov on 2016-09-28
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
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

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

Changed in fuel:
status: Confirmed → In Progress
Dmitry Pyzhov (dpyzhov) on 2016-12-20
Changed in fuel:
milestone: 9.2 → 9.3

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

tags: added: swarm-fail

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  Edit
Everyone can see this information.

Other bug subscribers