Tempest Rhel7: slaac subnet cant be deleted with attached port

Bug #1654177 reported by Nagendra Prasath on 2017-01-05
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Juniper Openstack
New
Medium
Nagendra Prasath
R3.0
Won't Fix
Medium
Hampapur Ajay
R3.0.2.x
Won't Fix
Medium
Hampapur Ajay
R3.0.3.x
Won't Fix
Medium
Hampapur Ajay
R3.1
Won't Fix
Medium
Hampapur Ajay
R3.1.1.x
Won't Fix
Medium
Hampapur Ajay
R3.2
Won't Fix
Medium
Hampapur Ajay
R4.0
Won't Fix
Critical
Sachin Bansal
R4.1
Won't Fix
Medium
Shivayogi Ugaji
R5.0
Won't Fix
Medium
Shivayogi Ugaji
Trunk
Won't Fix
Medium
Shivayogi Ugaji

Bug Description

Build: R3.0/51/RHEL/LIBERTY

According to testcase: test_create_delete_slaac_subnet_with_ports
https://github.com/openstack/tempest/blob/master/tempest/api/network/test_networks.py#L637

a slaac subnet with attached port can be deleted. However its not allowed in the current build.

Test Desc:
        Create subnet with SLAAC, create ports in network
        and then you shall be able to delete subnet without port
        deletion. But you still can not delete the network.

Traceback (most recent call last):
  File "tempest/api/network/test_networks.py", line 638, in test_create_delete_slaac_subnet_with_ports
    self._test_delete_subnet_with_ports("slaac")
  File "tempest/api/network/test_networks.py", line 618, in _test_delete_subnet_with_ports
    self.subnets_client.delete_subnet(subnet_slaac['id'])
  File "tempest/lib/services/network/subnets_client.py", line 34, in delete_subnet
    return self.delete_resource(uri)
  File "tempest/lib/services/network/base.py", line 41, in delete_resource
    resp, body = self.delete(req_uri)
  File "tempest/lib/common/rest_client.py", line 290, in delete
    return self.request('DELETE', url, extra_headers, headers, body)
  File "tempest/lib/common/rest_client.py", line 641, in request
    resp, resp_body)
  File "tempest/lib/common/rest_client.py", line 699, in _error_checker
    raise exceptions.BadRequest(resp_body, resp=resp)
tempest.lib.exceptions.BadRequest: Bad request
Details: {u'message': u'Bad network request: Cannot Delete IP Block, Instance IP(s) in use', u'type': u'BadRequest', u'detail': u''}

Nagendra Prasath (npchandran) wrote :

Also affects test_create_delete_stateless_subnet_with_ports

description: updated
Jeba Paulaiyan (jebap) on 2017-01-05
tags: added: config
tags: added: osp8-cert rhos-tempest
removed: rhosp-tempest
information type: Proprietary → Public
Andrey Pavlov (apavlov-e) wrote :

R4.0 + OSPD10, build CB-25 rhel7+newton

Traceback (most recent call last):
  File "tempest/api/network/test_networks.py", line 629, in test_create_delete_slaac_subnet_with_ports
    self._test_delete_subnet_with_ports("slaac")
  File "tempest/api/network/test_networks.py", line 609, in _test_delete_subnet_with_ports
    self.subnets_client.delete_subnet(subnet_slaac['id'])
  File "tempest/lib/services/network/subnets_client.py", line 52, in delete_subnet
    return self.delete_resource(uri)
  File "tempest/lib/services/network/base.py", line 41, in delete_resource
    resp, body = self.delete(req_uri)
  File "tempest/lib/common/rest_client.py", line 307, in delete
    return self.request('DELETE', url, extra_headers, headers, body)
  File "tempest/lib/common/rest_client.py", line 664, in request
    self._error_checker(resp, resp_body)
  File "tempest/lib/common/rest_client.py", line 766, in _error_checker
    raise exceptions.BadRequest(resp_body, resp=resp)
tempest.lib.exceptions.BadRequest: Bad request
Details: {u'message': u'Bad network request: Cannot Delete IP Block, IP(2003::3) is in use.', u'type': u'BadRequest', u'detail': u''}

tags: added: certification redhat
shajuvk (shajuvk) on 2018-05-21
tags: added: rhosp
removed: rhos-tempest
Changed in juniperopenstack:
assignee: Shivayogi Ugaji (shivayogi123) → Nagendra Modadugu (nagendra)
assignee: Nagendra Modadugu (nagendra) → Nagendra Prasath (npchandran)
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers