Pecan: Compute scenario tests fail on security group rules

Bug #1633671 reported by Brandon Logan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
Medium
Brandon Logan

Bug Description

http://logs.openstack.org/48/386848/2/experimental/gate-tempest-dsvm-neutron-pecan/b70ec4c/console.html#_2016-10-15_00_23_38_299635

2016-10-15 00:23:38.301293 | Captured traceback:
2016-10-15 00:23:38.301302 | ~~~~~~~~~~~~~~~~~~~
2016-10-15 00:23:38.301315 | Traceback (most recent call last):
2016-10-15 00:23:38.301332 | File "tempest/test.py", line 100, in wrapper
2016-10-15 00:23:38.301347 | return f(self, *func_args, **func_kwargs)
2016-10-15 00:23:38.301375 | File "tempest/api/compute/security_groups/test_security_group_rules.py", line 76, in test_security_group_rules_create
2016-10-15 00:23:38.301391 | to_port=self.to_port)['security_group_rule']
2016-10-15 00:23:38.301417 | File "tempest/lib/services/compute/security_group_rules_client.py", line 34, in create_security_group_rule
2016-10-15 00:23:38.301434 | resp, body = self.post(url, post_body)
2016-10-15 00:23:38.301451 | File "tempest/lib/common/rest_client.py", line 276, in post
2016-10-15 00:23:38.301471 | return self.request('POST', url, extra_headers, headers, body, chunked)
2016-10-15 00:23:38.301492 | File "tempest/lib/services/compute/base_compute_client.py", line 48, in request
2016-10-15 00:23:38.301509 | method, url, extra_headers, headers, body, chunked)
2016-10-15 00:23:38.301544 | File "tempest/lib/common/rest_client.py", line 665, in request
2016-10-15 00:23:38.301557 | resp, resp_body)
2016-10-15 00:23:38.301577 | File "tempest/lib/common/rest_client.py", line 829, in _error_checker
2016-10-15 00:23:38.301586 | message=message)
2016-10-15 00:23:38.301602 | tempest.lib.exceptions.ServerFault: Got server fault
2016-10-15 00:23:38.301631 | Details: Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
2016-10-15 00:23:38.301643 | <type 'exceptions.TypeError'>

Tags: api
Changed in neutron:
status: New → Triaged
importance: High → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (master)

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

Changed in neutron:
assignee: nobody → Brandon Logan (brandon-logan)
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (master)

Reviewed: https://review.openstack.org/389398
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=64252405c4780f09b376655b1b439543290a2f65
Submitter: Jenkins
Branch: master

commit 64252405c4780f09b376655b1b439543290a2f65
Author: Brandon Logan <email address hidden>
Date: Thu Oct 20 19:03:08 2016 -0500

    Pecan: Bulk create with one item returns plural

    If a bulk create happened with a single item, the pecan code would
    return back to the user the singular version of the resource in the
    body. For example, to bulk create many security group rules, the user
    would give in the body of the request the json with a parent key of
    "security-group-rules" with a value of a list of json security group
    rules. If this list is of length one, then after the creation of the
    one security group rule, the API would return back to the client
    "security-group-rule" as the parent key. This is not how the legacy
    wsgi layer behaved. The behavior is expected when nova creates security
    group rules by calling the neutron API through its deprecated security
    groups API.

    Change-Id: I8757630403e4d486cd3c8dd6f041e9ee326ba3b4
    Closes-Bug: #1633671

Changed in neutron:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/neutron 10.0.0.0b1

This issue was fixed in the openstack/neutron 10.0.0.0b1 development milestone.

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.