2025-07-25 02:28:25,146 - INFO - Domain Default found not creating 2025-07-25 02:28:25,298 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-10517049 not found, creating it 2025-07-25 02:28:25,777 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-10517049, ID : 5dbc5d9b-4bb6-42a5-aabb-1f931422cf95 2025-07-25 02:28:27,398 - INFO - ================================================================================ 2025-07-25 02:28:27,398 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-07-25 02:28:27,658 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-07-25 02:28:27,658 - INFO - Initial checks done. Running the testcase now 2025-07-25 02:28:27,658 - INFO - 2025-07-25 02:28:27,658 - INFO - ================================================================================ 2025-07-25 02:28:27,658 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-07-25 02:28:27,658 - 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-07-25 02:28:27,955 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-07-25 02:28:27,955 - INFO - Initial checks done. Running the testcase now 2025-07-25 02:28:27,955 - INFO - 2025-07-25 02:28:28,357 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-10517049:ctest-vn4-43290623, 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-10517049:ctest-vn4-43290623, 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-10517049:ctest-vn4-43290623, 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-10517049:ctest-vn4-43290623, 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-07-25 02:28:28,929 - DEBUG - Response for create_network : {'network': {'id': 'd16eec9b-70a4-4540-b63c-304f24972e14', 'name': 'ctest-vn4-43290623', 'tenant_id': '5dbc5d9b4bb642a5aabb1f931422cf95', 'project_id': '5dbc5d9b4bb642a5aabb1f931422cf95', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-10517049', 'ctest-vn4-43290623'], 'port_security_enabled': True, 'description': ''}} 2025-07-25 02:28:29,147 - DEBUG - Response for create_subnet : {'subnet': {'id': '79fd7242-6a6f-4d21-9184-f3c0b5e62085', 'name': '', 'tenant_id': '5dbc5d9b4bb642a5aabb1f931422cf95', 'network_id': 'd16eec9b-70a4-4540-b63c-304f24972e14', 'ip_version': 4, 'cidr': '110.21.112.64/26', 'allocation_pools': [{'start': '110.21.112.66', 'end': '110.21.112.126'}], 'gateway_ip': '110.21.112.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '110.21.112.66', 'tags': [], 'project_id': '5dbc5d9b4bb642a5aabb1f931422cf95'}} 2025-07-25 02:28:29,320 - DEBUG - Response for create_subnet : {'subnet': {'id': '37e5c23d-faac-4829-b0dd-2b1fe4a88ea1', 'name': '', 'tenant_id': '5dbc5d9b4bb642a5aabb1f931422cf95', 'network_id': 'd16eec9b-70a4-4540-b63c-304f24972e14', 'ip_version': 6, 'cidr': '396e:7a:b962:4076:cd64:7edf::/96', 'allocation_pools': [{'start': '396e:7a:b962:4076:cd64:7edf:0:2', 'end': '396e:7a:b962:4076:cd64:7edf:ffff:fffe'}], 'gateway_ip': '396e:7a:b962:4076:cd64:7edf:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '396e:7a:b962:4076:cd64:7edf:0:2', 'tags': [], 'project_id': '5dbc5d9b4bb642a5aabb1f931422cf95'}} 2025-07-25 02:28:29,343 - INFO - Created VN ctest-vn4-43290623 2025-07-25 02:28:29,398 - DEBUG - VN ctest-vn4-43290623 UUID is d16eec9b-70a4-4540-b63c-304f24972e14 2025-07-25 02:28:29,651 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd16eec9b-70a4-4540-b63c-304f24972e14', 'name': 'ctest-vn4-43290623', 'tenant_id': '5dbc5d9b4bb642a5aabb1f931422cf95', 'project_id': '5dbc5d9b4bb642a5aabb1f931422cf95', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['79fd7242-6a6f-4d21-9184-f3c0b5e62085', '37e5c23d-faac-4829-b0dd-2b1fe4a88ea1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-10517049', 'ctest-vn4-43290623'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-10517049', 'ctest-policy1-49767103']], 'subnet_ipam': [{'subnet_cidr': '110.21.112.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '396e:7a:b962:4076:cd64:7edf::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-07-25 02:28:29,830 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-07-25 02:28:30,333 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-07-25 02:28:30,375 - DEBUG - Requesting: http://10.0.0.254:8082/domain/40a01d10-0fe3-40f2-8054-46ddbb699d4b 2025-07-25 02:28:30,390 - DEBUG - Requesting: http://10.0.0.254:8082/project/5dbc5d9b-4bb6-42a5-aabb-1f931422cf95 2025-07-25 02:28:30,466 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d16eec9b-70a4-4540-b63c-304f24972e14 2025-07-25 02:28:30,481 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d16eec9b-70a4-4540-b63c-304f24972e14 2025-07-25 02:28:30,493 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/bff7172f-8b0d-4b9d-8a50-91ee406c816d 2025-07-25 02:28:30,503 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/bff7172f-8b0d-4b9d-8a50-91ee406c816d 2025-07-25 02:28:30,511 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/7774e4b7-a570-40bc-b427-42e7047c3b09 2025-07-25 02:28:30,519 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-25 02:28:30,519 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d16eec9b-70a4-4540-b63c-304f24972e14 2025-07-25 02:28:30,532 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/bff7172f-8b0d-4b9d-8a50-91ee406c816d 2025-07-25 02:28:30,550 - INFO - Verified VN network id 11 for VN d16eec9b-70a4-4540-b63c-304f24972e14 2025-07-25 02:28:30,550 - INFO - Verifications in API Server for VN ctest-vn4-43290623 passed 2025-07-25 02:28:30,550 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d16eec9b-70a4-4540-b63c-304f24972e14 2025-07-25 02:28:30,562 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/bff7172f-8b0d-4b9d-8a50-91ee406c816d 2025-07-25 02:28:30,571 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/bff7172f-8b0d-4b9d-8a50-91ee406c816d 2025-07-25 02:28:30,580 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/7774e4b7-a570-40bc-b427-42e7047c3b09 2025-07-25 02:28:30,595 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-10517049:ctest-vn4-43290623', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-10517049', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15091259553719010624', 'uuid-lslong': '13131423729979960852'}, 'enable': 'true', 'created': '2025-07-25T02:28:28', 'last-modified': '2025-07-25T02:28:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.990192'} 2025-07-25 02:28:30,603 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-25 02:28:30,603 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-43290623 passed 2025-07-25 02:28:30,603 - DEBUG - ====Verifying policy data for ctest-vn4-43290623 in API_Server ====== 2025-07-25 02:28:30,603 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-07-25 02:28:30,610 - DEBUG - Requesting: http://10.0.0.254:8082/domain/40a01d10-0fe3-40f2-8054-46ddbb699d4b 2025-07-25 02:28:30,624 - DEBUG - Requesting: http://10.0.0.254:8082/project/5dbc5d9b-4bb6-42a5-aabb-1f931422cf95 2025-07-25 02:28:30,703 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d16eec9b-70a4-4540-b63c-304f24972e14 2025-07-25 02:28:30,718 - DEBUG - ==>Verifying data for policy with id: 7bef7611-3bc9-41a4-9144-e5507736b002, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-10517049', 'ctest-policy1-49767103'] 2025-07-25 02:28:30,718 - INFO - VN ctest-vn4-43290623 Policy verification: verify_vn_policy_in_api_server, status: True 2025-07-25 02:28:30,718 - DEBUG - Verifying the vn in opserver 2025-07-25 02:28:30,718 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-10517049:ctest-vn4-43290623 virtual network link through opserver 10.0.0.254 2025-07-25 02:28:30,719 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-07-25 02:28:31,065 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-07-25 02:28:31,140 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-10517049:ctest-vn4-43290623', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-10517049:ctest-vn4-43290623?flat'} 2025-07-25 02:28:31,140 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-10517049:ctest-vn4-43290623 is found in opserver 2025-07-25 02:28:31,153 - DEBUG - Do not have enough data to verify VN in agent 2025-07-25 02:28:31,159 - DEBUG - VRF ids for VN ctest-vn4-43290623: {} 2025-07-25 02:28:31,159 - DEBUG - ====Verifying data for ctest-policy1-49767103 in API_Server ====== 2025-07-25 02:28:31,159 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-07-25 02:28:31,166 - DEBUG - Requesting: http://10.0.0.254:8082/domain/40a01d10-0fe3-40f2-8054-46ddbb699d4b 2025-07-25 02:28:31,178 - DEBUG - Requesting: http://10.0.0.254:8082/project/5dbc5d9b-4bb6-42a5-aabb-1f931422cf95 2025-07-25 02:28:31,256 - DEBUG - Requesting: http://10.0.0.254:8082/network-policy/7bef7611-3bc9-41a4-9144-e5507736b002 2025-07-25 02:28:31,269 - INFO - Verified policy ctest-policy1-49767103 in API Server, Result: True 2025-07-25 02:28:31,269 - INFO - Done with setup and verification, moving onto test .. 2025-07-25 02:28:31,280 - INFO - Deleting VN ctest-vn4-43290623 2025-07-25 02:28:31,417 - DEBUG - Response for deleting network () 2025-07-25 02:28:31,417 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/bff7172f-8b0d-4b9d-8a50-91ee406c816d 2025-07-25 02:28:31,422 - DEBUG - Response Code: 404 2025-07-25 02:28:31,423 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-07-25 02:28:31,429 - DEBUG - Requesting: http://10.0.0.254:8082/domain/40a01d10-0fe3-40f2-8054-46ddbb699d4b 2025-07-25 02:28:31,484 - DEBUG - Requesting: http://10.0.0.254:8082/project/5dbc5d9b-4bb6-42a5-aabb-1f931422cf95 2025-07-25 02:28:31,561 - INFO - Validated that VN ctest-vn4-43290623 is not found in API Server 2025-07-25 02:28:31,574 - DEBUG - VN ctest-vn4-43290623 is not present in Agent 10.0.0.254 2025-07-25 02:28:31,574 - INFO - Validated that VN ctest-vn4-43290623 is not in any agent 2025-07-25 02:28:31,591 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-43290623 info 2025-07-25 02:28:31,621 - INFO - Deleted policy ctest-policy1-49767103 2025-07-25 02:28:31,802 - DEBUG - policy ctest-policy1-49767103 is not found in API Server 2025-07-25 02:28:32,064 - DEBUG - No XMPP flaps were noticed during the test 2025-07-25 02:28:32,064 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2025-07-25 02:28:32,065 - INFO - -------------------------------------------------------------------------------- 2025-07-25 02:28:32,355 - DEBUG - No XMPP flaps were noticed during the test 2025-07-25 02:28:32,355 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2025-07-25 02:28:32,355 - INFO - -------------------------------------------------------------------------------- 2025-07-25 02:28:33,078 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-10517049, ID : 5dbc5d9b-4bb6-42a5-aabb-1f931422cf95