2025-08-13 14:55:05,532 - INFO - Domain Default found not creating
2025-08-13 14:55:05,679 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-10868430 not found, creating it
2025-08-13 14:55:06,138 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-10868430, ID : b8de3a7f-f66d-405b-980e-de8f3703f0b0
2025-08-13 14:55:07,596 - INFO - ================================================================================
2025-08-13 14:55:07,596 - INFO - STARTING TEST : test_remove_policy_with_ref
2025-08-13 14:55:07,853 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.17': '0'}} with
2025-08-13 14:55:07,853 - INFO - Initial checks done. Running the testcase now
2025-08-13 14:55:07,853 - INFO -
2025-08-13 14:55:07,853 - INFO - ================================================================================
2025-08-13 14:55:07,853 - INFO - STARTING TEST : test_remove_policy_with_ref
2025-08-13 14:55:07,853 - INFO - TEST DESCRIPTION : This tests the following scenarios.
1. Test to validate that policy removal will fail when it referenced with VN.
2. validate vn_policy data in api-s against quantum-vn data, when created and unbind policy from VN thru quantum APIs.
3. validate policy data in api-s against quantum-policy data, when created and deleted thru quantum APIs.
2025-08-13 14:55:08,150 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.17': '0'}} with
2025-08-13 14:55:08,150 - INFO - Initial checks done. Running the testcase now
2025-08-13 14:55:08,150 - INFO -
2025-08-13 14:55:08,517 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-10868430:ctest-vn4-60054495, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-10868430:ctest-vn4-60054495, security_group = None, network_policy = None, subnet_list = []], dst_ports = [start_port = -1, end_port = -1], action_list = simple_action = pass, gateway_name = None, apply_service = [], service_properties = None, mirror_to = None, assign_routing_instance = None, log = False, alert = False, qos_action = None, host_based_service = False, ethertype = None, created = None, last_modified = None, description = None, rule_sequence = None, rule_uuid = None, direction = <>, protocol = 58, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-10868430:ctest-vn4-60054495, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-10868430:ctest-vn4-60054495, security_group = None, network_policy = None, subnet_list = []], dst_ports = [start_port = -1, end_port = -1], action_list = simple_action = pass, gateway_name = None, apply_service = [], service_properties = None, mirror_to = None, assign_routing_instance = None, log = False, alert = False, qos_action = None, host_based_service = False, ethertype = None, created = None, last_modified = None, description = None]
2025-08-13 14:55:09,045 - DEBUG - Response for create_network : {'network': {'id': '098fbc11-72b6-47c9-a9e4-17113dd9b516', 'name': 'ctest-vn4-60054495', 'tenant_id': 'b8de3a7ff66d405b980ede8f3703f0b0', 'project_id': 'b8de3a7ff66d405b980ede8f3703f0b0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-10868430', 'ctest-vn4-60054495'], 'port_security_enabled': True, 'description': ''}}
2025-08-13 14:55:09,219 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a9bf1c02-e3e5-43bc-9898-8effe6609164', 'name': '', 'tenant_id': 'b8de3a7ff66d405b980ede8f3703f0b0', 'network_id': '098fbc11-72b6-47c9-a9e4-17113dd9b516', 'ip_version': 4, 'cidr': '28.55.99.192/26', 'allocation_pools': [{'start': '28.55.99.194', 'end': '28.55.99.254'}], 'gateway_ip': '28.55.99.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '28.55.99.194', 'tags': [], 'project_id': 'b8de3a7ff66d405b980ede8f3703f0b0'}}
2025-08-13 14:55:09,431 - DEBUG - Response for create_subnet : {'subnet': {'id': '45846da6-4319-4f3b-911d-7792e8e12375', 'name': '', 'tenant_id': 'b8de3a7ff66d405b980ede8f3703f0b0', 'network_id': '098fbc11-72b6-47c9-a9e4-17113dd9b516', 'ip_version': 6, 'cidr': '2b35:27e5:ee21:4d27:5653:4ea5::/96', 'allocation_pools': [{'start': '2b35:27e5:ee21:4d27:5653:4ea5:0:2', 'end': '2b35:27e5:ee21:4d27:5653:4ea5:ffff:fffe'}], 'gateway_ip': '2b35:27e5:ee21:4d27:5653:4ea5:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2b35:27e5:ee21:4d27:5653:4ea5:0:2', 'tags': [], 'project_id': 'b8de3a7ff66d405b980ede8f3703f0b0'}}
2025-08-13 14:55:09,450 - INFO - Created VN ctest-vn4-60054495
2025-08-13 14:55:09,502 - DEBUG - VN ctest-vn4-60054495 UUID is 098fbc11-72b6-47c9-a9e4-17113dd9b516
2025-08-13 14:55:09,713 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '098fbc11-72b6-47c9-a9e4-17113dd9b516', 'name': 'ctest-vn4-60054495', 'tenant_id': 'b8de3a7ff66d405b980ede8f3703f0b0', 'project_id': 'b8de3a7ff66d405b980ede8f3703f0b0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a9bf1c02-e3e5-43bc-9898-8effe6609164', '45846da6-4319-4f3b-911d-7792e8e12375'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-10868430', 'ctest-vn4-60054495'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-10868430', 'ctest-policy1-08661220']], 'subnet_ipam': [{'subnet_cidr': '28.55.99.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2b35:27e5:ee21:4d27:5653:4ea5::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-13 14:55:09,842 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-08-13 14:55:10,144 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-08-13 14:55:10,179 - DEBUG - Requesting: http://10.0.0.27:8082/domain/f3f7903d-7ed4-4776-b147-e6e40853bf2f
2025-08-13 14:55:10,192 - DEBUG - Requesting: http://10.0.0.27:8082/project/b8de3a7f-f66d-405b-980e-de8f3703f0b0
2025-08-13 14:55:10,268 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/098fbc11-72b6-47c9-a9e4-17113dd9b516
2025-08-13 14:55:10,281 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/098fbc11-72b6-47c9-a9e4-17113dd9b516
2025-08-13 14:55:10,291 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/c3d7d792-fbe1-411a-bb3c-3da663800da4
2025-08-13 14:55:10,300 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/c3d7d792-fbe1-411a-bb3c-3da663800da4
2025-08-13 14:55:10,307 - DEBUG - Route Targets: []
2025-08-13 14:55:10,307 - DEBUG - RT names not yet present for VN ctest-vn4-60054495
2025-08-13 14:55:15,308 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-08-13 14:55:15,315 - DEBUG - Requesting: http://10.0.0.27:8082/domain/f3f7903d-7ed4-4776-b147-e6e40853bf2f
2025-08-13 14:55:15,327 - DEBUG - Requesting: http://10.0.0.27:8082/project/b8de3a7f-f66d-405b-980e-de8f3703f0b0
2025-08-13 14:55:15,401 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/098fbc11-72b6-47c9-a9e4-17113dd9b516
2025-08-13 14:55:15,415 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/098fbc11-72b6-47c9-a9e4-17113dd9b516
2025-08-13 14:55:15,427 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/c3d7d792-fbe1-411a-bb3c-3da663800da4
2025-08-13 14:55:15,434 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/c3d7d792-fbe1-411a-bb3c-3da663800da4
2025-08-13 14:55:15,441 - DEBUG - Route Targets: []
2025-08-13 14:55:15,441 - DEBUG - RT names not yet present for VN ctest-vn4-60054495
2025-08-13 14:55:20,441 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-08-13 14:55:20,448 - DEBUG - Requesting: http://10.0.0.27:8082/domain/f3f7903d-7ed4-4776-b147-e6e40853bf2f
2025-08-13 14:55:20,459 - DEBUG - Requesting: http://10.0.0.27:8082/project/b8de3a7f-f66d-405b-980e-de8f3703f0b0
2025-08-13 14:55:20,532 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/098fbc11-72b6-47c9-a9e4-17113dd9b516
2025-08-13 14:55:20,543 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/098fbc11-72b6-47c9-a9e4-17113dd9b516
2025-08-13 14:55:20,554 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/c3d7d792-fbe1-411a-bb3c-3da663800da4
2025-08-13 14:55:20,561 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/c3d7d792-fbe1-411a-bb3c-3da663800da4
2025-08-13 14:55:20,570 - DEBUG - Route Targets: []
2025-08-13 14:55:20,570 - DEBUG - RT names not yet present for VN ctest-vn4-60054495
2025-08-13 14:55:25,571 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-08-13 14:55:25,578 - DEBUG - Requesting: http://10.0.0.27:8082/domain/f3f7903d-7ed4-4776-b147-e6e40853bf2f
2025-08-13 14:55:25,591 - DEBUG - Requesting: http://10.0.0.27:8082/project/b8de3a7f-f66d-405b-980e-de8f3703f0b0
2025-08-13 14:55:25,671 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/098fbc11-72b6-47c9-a9e4-17113dd9b516
2025-08-13 14:55:25,683 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/098fbc11-72b6-47c9-a9e4-17113dd9b516
2025-08-13 14:55:25,694 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/c3d7d792-fbe1-411a-bb3c-3da663800da4
2025-08-13 14:55:25,702 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/c3d7d792-fbe1-411a-bb3c-3da663800da4
2025-08-13 14:55:25,709 - DEBUG - Route Targets: []
2025-08-13 14:55:25,710 - DEBUG - RT names not yet present for VN ctest-vn4-60054495
2025-08-13 14:55:30,711 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-08-13 14:55:30,718 - DEBUG - Requesting: http://10.0.0.27:8082/domain/f3f7903d-7ed4-4776-b147-e6e40853bf2f
2025-08-13 14:55:30,729 - DEBUG - Requesting: http://10.0.0.27:8082/project/b8de3a7f-f66d-405b-980e-de8f3703f0b0
2025-08-13 14:55:30,819 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/098fbc11-72b6-47c9-a9e4-17113dd9b516
2025-08-13 14:55:30,832 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/098fbc11-72b6-47c9-a9e4-17113dd9b516
2025-08-13 14:55:30,846 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/c3d7d792-fbe1-411a-bb3c-3da663800da4
2025-08-13 14:55:30,854 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/c3d7d792-fbe1-411a-bb3c-3da663800da4
2025-08-13 14:55:30,863 - DEBUG - Route Targets: []
2025-08-13 14:55:30,863 - DEBUG - RT names not yet present for VN ctest-vn4-60054495
2025-08-13 14:55:35,864 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-08-13 14:55:35,873 - DEBUG - Requesting: http://10.0.0.27:8082/domain/f3f7903d-7ed4-4776-b147-e6e40853bf2f
2025-08-13 14:55:35,886 - DEBUG - Requesting: http://10.0.0.27:8082/project/b8de3a7f-f66d-405b-980e-de8f3703f0b0
2025-08-13 14:55:35,966 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/098fbc11-72b6-47c9-a9e4-17113dd9b516
2025-08-13 14:55:35,977 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/098fbc11-72b6-47c9-a9e4-17113dd9b516
2025-08-13 14:55:35,988 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/c3d7d792-fbe1-411a-bb3c-3da663800da4
2025-08-13 14:55:35,996 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/c3d7d792-fbe1-411a-bb3c-3da663800da4
2025-08-13 14:55:36,003 - DEBUG - Route Targets: []
2025-08-13 14:55:36,003 - DEBUG - RT names not yet present for VN ctest-vn4-60054495
2025-08-13 14:55:41,003 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-08-13 14:55:41,010 - DEBUG - Requesting: http://10.0.0.27:8082/domain/f3f7903d-7ed4-4776-b147-e6e40853bf2f
2025-08-13 14:55:41,023 - DEBUG - Requesting: http://10.0.0.27:8082/project/b8de3a7f-f66d-405b-980e-de8f3703f0b0
2025-08-13 14:55:41,096 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/098fbc11-72b6-47c9-a9e4-17113dd9b516
2025-08-13 14:55:41,107 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/098fbc11-72b6-47c9-a9e4-17113dd9b516
2025-08-13 14:55:41,117 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/c3d7d792-fbe1-411a-bb3c-3da663800da4
2025-08-13 14:55:41,124 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/c3d7d792-fbe1-411a-bb3c-3da663800da4
2025-08-13 14:55:41,130 - DEBUG - Route Targets: []
2025-08-13 14:55:41,130 - DEBUG - RT names not yet present for VN ctest-vn4-60054495
2025-08-13 14:55:46,130 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-08-13 14:55:46,137 - DEBUG - Requesting: http://10.0.0.27:8082/domain/f3f7903d-7ed4-4776-b147-e6e40853bf2f
2025-08-13 14:55:46,150 - DEBUG - Requesting: http://10.0.0.27:8082/project/b8de3a7f-f66d-405b-980e-de8f3703f0b0
2025-08-13 14:55:46,229 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/098fbc11-72b6-47c9-a9e4-17113dd9b516
2025-08-13 14:55:46,241 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/098fbc11-72b6-47c9-a9e4-17113dd9b516
2025-08-13 14:55:46,251 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/c3d7d792-fbe1-411a-bb3c-3da663800da4
2025-08-13 14:55:46,257 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/c3d7d792-fbe1-411a-bb3c-3da663800da4
2025-08-13 14:55:46,263 - DEBUG - Route Targets: []
2025-08-13 14:55:46,263 - DEBUG - RT names not yet present for VN ctest-vn4-60054495
2025-08-13 14:55:51,265 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-08-13 14:55:51,272 - DEBUG - Requesting: http://10.0.0.27:8082/domain/f3f7903d-7ed4-4776-b147-e6e40853bf2f
2025-08-13 14:55:51,287 - DEBUG - Requesting: http://10.0.0.27:8082/project/b8de3a7f-f66d-405b-980e-de8f3703f0b0
2025-08-13 14:55:51,362 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/098fbc11-72b6-47c9-a9e4-17113dd9b516
2025-08-13 14:55:51,373 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/098fbc11-72b6-47c9-a9e4-17113dd9b516
2025-08-13 14:55:51,384 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/c3d7d792-fbe1-411a-bb3c-3da663800da4
2025-08-13 14:55:51,390 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/c3d7d792-fbe1-411a-bb3c-3da663800da4
2025-08-13 14:55:51,396 - DEBUG - Route Targets: []
2025-08-13 14:55:51,396 - DEBUG - RT names not yet present for VN ctest-vn4-60054495
2025-08-13 14:55:56,396 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-08-13 14:55:56,403 - DEBUG - Requesting: http://10.0.0.27:8082/domain/f3f7903d-7ed4-4776-b147-e6e40853bf2f
2025-08-13 14:55:56,418 - DEBUG - Requesting: http://10.0.0.27:8082/project/b8de3a7f-f66d-405b-980e-de8f3703f0b0
2025-08-13 14:55:56,490 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/098fbc11-72b6-47c9-a9e4-17113dd9b516
2025-08-13 14:55:56,501 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/098fbc11-72b6-47c9-a9e4-17113dd9b516
2025-08-13 14:55:56,512 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/c3d7d792-fbe1-411a-bb3c-3da663800da4
2025-08-13 14:55:56,519 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/c3d7d792-fbe1-411a-bb3c-3da663800da4
2025-08-13 14:55:56,525 - DEBUG - Route Targets: []
2025-08-13 14:55:56,525 - DEBUG - RT names not yet present for VN ctest-vn4-60054495
2025-08-13 14:56:01,526 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-08-13 14:56:01,533 - DEBUG - Requesting: http://10.0.0.27:8082/domain/f3f7903d-7ed4-4776-b147-e6e40853bf2f
2025-08-13 14:56:01,544 - DEBUG - Requesting: http://10.0.0.27:8082/project/b8de3a7f-f66d-405b-980e-de8f3703f0b0
2025-08-13 14:56:01,616 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/098fbc11-72b6-47c9-a9e4-17113dd9b516
2025-08-13 14:56:01,628 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/098fbc11-72b6-47c9-a9e4-17113dd9b516
2025-08-13 14:56:01,640 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/c3d7d792-fbe1-411a-bb3c-3da663800da4
2025-08-13 14:56:01,649 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/c3d7d792-fbe1-411a-bb3c-3da663800da4
2025-08-13 14:56:01,657 - DEBUG - Route Targets: []
2025-08-13 14:56:01,657 - DEBUG - RT names not yet present for VN ctest-vn4-60054495
2025-08-13 14:56:01,657 - ERROR - One or more verifications in API Server for VN ctest-vn4-60054495 failed
2025-08-13 14:56:01,658 - INFO - Deleting VN ctest-vn4-60054495
2025-08-13 14:56:01,767 - DEBUG - Response for deleting network ()
2025-08-13 14:56:01,793 - INFO - Deleted policy ctest-policy1-08661220
2025-08-13 14:56:02,045 - ERROR - AssertionError
Python 3.6.8: /usr/bin/python3
Wed Aug 13 14:56:01 2025
A problem occurred in a Python script. Here is the sequence of
function calls leading up to the error, in the order they occurred.
/contrail-test/tcutils/wrappers.py in wrapper(self=