Tempest case test_dhcp_stateful_fixedips_outrange fails due to unexpected exception

Bug #1604556 reported by Vedamurthy Joshi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R3.1
Fix Committed
Undecided
Sahil Sabharwal
Trunk
Fix Committed
Undecided
Sahil Sabharwal

Bug Description

R3.0.2.0 Build 52 on Liberty

Test tempest.api.network.test_dhcp_ipv6.NetworksTestDHCPv6.test_dhcp_stateful_fixedips_outrange

The test expects that an exception is raised with message "object with that identifier already exists".

But we are throwing a different message:
Details: {u'message': u'No more IP addresses available on network 28098a54-341f-4671-9f20-2791ef1d9573.', u'type': u'IpAddressGenerationFailure', u'detail': u''}

Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/tempest/api/network/test_dhcp_ipv6.py", line 324, in test_dhcp_stateful_fixedips_outrange
    'ip_address': ip}])
  File "/usr/lib/python2.7/dist-packages/testtools/testcase.py", line 420, in assertRaises
    self.assertThat(our_callable, matcher)
  File "/usr/lib/python2.7/dist-packages/testtools/testcase.py", line 431, in assertThat
    mismatch_error = self._matchHelper(matchee, matcher, message, verbose)
  File "/usr/lib/python2.7/dist-packages/testtools/testcase.py", line 481, in _matchHelper
    mismatch = matcher.match(matchee)
  File "/usr/lib/python2.7/dist-packages/testtools/matchers/_exception.py", line 108, in match
    mismatch = self.exception_matcher.match(exc_info)
  File "/usr/lib/python2.7/dist-packages/testtools/matchers/_higherorder.py", line 62, in match
    mismatch = matcher.match(matchee)
  File "/usr/lib/python2.7/dist-packages/testtools/testcase.py", line 412, in match
    reraise(*matchee)
  File "/usr/lib/python2.7/dist-packages/testtools/matchers/_exception.py", line 101, in match
    result = matchee()
  File "/usr/lib/python2.7/dist-packages/testtools/testcase.py", line 965, in __call__
    return self._callable_object(*self._args, **self._kwargs)
  File "/usr/local/lib/python2.7/dist-packages/tempest/api/network/base.py", line 195, in create_port
    **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/tempest/lib/services/network/ports_client.py", line 22, in create_port
    return self.create_resource(uri, post_data)
  File "/usr/local/lib/python2.7/dist-packages/tempest/lib/services/network/base.py", line 60, in create_resource
    resp, body = self.post(req_uri, req_post_data)
  File "/usr/local/lib/python2.7/dist-packages/tempest/lib/common/rest_client.py", line 270, in post
    return self.request('POST', url, extra_headers, headers, body, chunked)
  File "/usr/local/lib/python2.7/dist-packages/tempest/lib/common/rest_client.py", line 664, in request
    resp, resp_body)
  File "/usr/local/lib/python2.7/dist-packages/tempest/lib/common/rest_client.py", line 777, in _error_checker
    raise exceptions.Conflict(resp_body, resp=resp)
Conflict: An object with that identifier already exists
Details: {u'message': u'No more IP addresses available on network 28098a54-341f-4671-9f20-2791ef1d9573.', u'type': u'IpAddressGenerationFailure', u'detail': u''}

Sachin Bansal (sbansal)
Changed in juniperopenstack:
assignee: Sachin Bansal (sbansal) → ssabharwal@juniper.net (ssabharwal)
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R3.1

Review in progress for https://review.opencontrail.org/22567
Submitter: <email address hidden> (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/22525
Submitter: <email address hidden> (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R3.1

Review in progress for https://review.opencontrail.org/22567
Submitter: Atul Moghe (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/22525
Submitter: <email address hidden> (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R3.1

Review in progress for https://review.opencontrail.org/22567
Submitter: Atul Moghe (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/22525
Submitter: <email address hidden> (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/22567
Committed: http://github.org/Juniper/contrail-controller/commit/bb1c4e3ac1b75260bba5bad1c3cd83aa8d01188a
Submitter: Zuul
Branch: R3.1

commit bb1c4e3ac1b75260bba5bad1c3cd83aa8d01188a
Author: Sahil Sabharwal <email address hidden>
Date: Wed Jul 27 19:45:42 2016 -0700

1.Modified vnc_openstack to catch proper error from the api-server and pass it to the neutron.
2.Added config option 'strict_compliance" for enabling port create of with IP of service address

Closes-Bug: 1604373
Closes-Bug: 1604556
Closes-Bug: 1604578
Closes-Bug: 1604935
Closes-Bug: 1604354
Change-Id: Ibd66e36d57a1079fb8a3032ea117d0a7c7f7b634
(cherry picked from commit 44c1853511982806d8ed144bf6ad266e5c9b6dfb)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/22525
Committed: http://github.org/Juniper/contrail-controller/commit/555039cf7aa212a80b4b4aef1b1954c763d69106
Submitter: Zuul
Branch: master

commit 555039cf7aa212a80b4b4aef1b1954c763d69106
Author: Sahil Sabharwal <email address hidden>
Date: Wed Jul 27 19:45:42 2016 -0700

1.Modified vnc_openstack to catch proper error from the api-server and pass it to the neutron.
2.Added config option 'strict_compliance" for enabling port create of with IP of service address

Closes-Bug: 1604373
Closes-Bug: 1604556
Closes-Bug: 1604578
Closes-Bug: 1604935
Closes-Bug: 1604354
Change-Id: Ibd66e36d57a1079fb8a3032ea117d0a7c7f7b634
(cherry picked from commit 44c1853511982806d8ed144bf6ad266e5c9b6dfb)

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.