KeystoneBasic.create_and_delete_service fails with BadRequest: Invalid input for field 'enabled'. The value is 'test_description'.

Bug #1469897 reported by Kevin Huynh
22
This bug affects 5 people
Affects Status Importance Assigned to Milestone
Rally
Fix Released
Medium
Zhongcheng Lao

Bug Description

Scenario `KeystoneBasic.create_and_delete_service` fails in keystone v3 environment, since positional arguments for `service.create` method are different in keystone.v2[1] and keystone.v3[2].

To support both v2 and v3 keystone, rally should use keyword arguments while calling keystoneclient[3]

[1] - https://github.com/openstack/python-keystoneclient/blob/master/keystoneclient/v2_0/services.py#L38
[2] - https://github.com/openstack/python-keystoneclient/blob/master/keystoneclient/v3/services.py#L41
[3] - https://github.com/openstack/rally/blob/master/rally/plugins/openstack/scenarios/keystone/utils.py#L78-L80

Kevin Huynh (kevkha)
information type: Private Security → Public
Revision history for this message
Andriy Kurilin (andreykurilin) wrote :

Can you share trace via paste.openstack.org or pastebin.com ?

Changed in rally:
status: New → Confirmed
importance: Undecided → Medium
description: updated
description: updated
Revision history for this message
Kevin Huynh (kevkha) wrote :

For some reasons both paste.openstack.org and pastebin.com give me a blank page after pasting the trace contents hence I attached it here. Thanks.

Changed in rally:
assignee: nobody → Roman Vasilets (rvasilets)
Changed in rally:
assignee: Roman Vasilets (rvasilets) → nobody
Revision history for this message
Roman Vasilets (rvasilets) wrote :

Here we need to add validator of client api version to the scenario.

Ivan Kolodyazhny (e0ne)
Changed in rally:
assignee: nobody → Ivan Kolodyazhny (e0ne)
Zhongcheng Lao (zlao)
Changed in rally:
assignee: Ivan Kolodyazhny (e0ne) → Zhongcheng Lao (zlao)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to rally (master)

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

Changed in rally:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to rally (master)

Reviewed: https://review.openstack.org/287058
Committed: https://git.openstack.org/cgit/openstack/rally/commit/?id=d5e0e183c2e08beabc53b14ec4d198c6affedf42
Submitter: Jenkins
Branch: master

commit d5e0e183c2e08beabc53b14ec4d198c6affedf42
Author: Zhongcheng Lao <email address hidden>
Date: Wed Mar 2 17:07:09 2016 +0800

    Fixed imcompatible argument in service create with keystone v2/3 API

    The keystone service create scenario will complain about wrong
    argument type with keystone v3 API,
    While the third argument is a boolean value indicating whether
    the service is enabled in v3, it was a string value to describe
    service description in v2.

    This commit fixes the issue by simply using the keyword
    for the description argument as it is accepted in both versions.

    Change-Id: Iba1b5f09b8efbf6a73d34e913bc3083cf57d2451
    Closes-Bug: #1469897

Changed in rally:
status: In Progress → Fix Released
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.