2025-11-12 15:30:21,197 - INFO - Domain Default found not creating 2025-11-12 15:30:21,354 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-54691587 not found, creating it 2025-11-12 15:30:21,805 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-54691587, ID : 8798dfda-10b0-4b90-9bd3-168a2f61ca57 2025-11-12 15:30:23,523 - INFO - ================================================================================ 2025-11-12 15:30:23,523 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-12 15:30:23,785 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2025-11-12 15:30:23,786 - INFO - Initial checks done. Running the testcase now 2025-11-12 15:30:23,786 - INFO - 2025-11-12 15:30:23,786 - INFO - ================================================================================ 2025-11-12 15:30:23,786 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-12 15:30:23,786 - 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-11-12 15:30:24,069 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2025-11-12 15:30:24,069 - INFO - Initial checks done. Running the testcase now 2025-11-12 15:30:24,069 - INFO - 2025-11-12 15:30:24,480 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-54691587:ctest-vn4-15461106, 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-54691587:ctest-vn4-15461106, 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-54691587:ctest-vn4-15461106, 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-54691587:ctest-vn4-15461106, 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-11-12 15:30:24,984 - DEBUG - Response for create_network : {'network': {'id': '558c4d86-2878-4707-98a0-5f8b9406b208', 'name': 'ctest-vn4-15461106', 'tenant_id': '8798dfda10b04b909bd3168a2f61ca57', 'project_id': '8798dfda10b04b909bd3168a2f61ca57', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-54691587', 'ctest-vn4-15461106'], 'port_security_enabled': True, 'description': ''}} 2025-11-12 15:30:25,143 - DEBUG - Response for create_subnet : {'subnet': {'id': '33471b29-9f10-48f6-9088-0d4c9607cf1a', 'name': '', 'tenant_id': '8798dfda10b04b909bd3168a2f61ca57', 'network_id': '558c4d86-2878-4707-98a0-5f8b9406b208', 'ip_version': 4, 'cidr': '139.249.2.192/26', 'allocation_pools': [{'start': '139.249.2.194', 'end': '139.249.2.254'}], 'gateway_ip': '139.249.2.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '139.249.2.194', 'tags': [], 'project_id': '8798dfda10b04b909bd3168a2f61ca57'}} 2025-11-12 15:30:25,289 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bf19b61e-368f-467e-b920-126da4972318', 'name': '', 'tenant_id': '8798dfda10b04b909bd3168a2f61ca57', 'network_id': '558c4d86-2878-4707-98a0-5f8b9406b208', 'ip_version': 6, 'cidr': '27a3:956:db7f:22b9:3619:f203::/96', 'allocation_pools': [{'start': '27a3:956:db7f:22b9:3619:f203:0:2', 'end': '27a3:956:db7f:22b9:3619:f203:ffff:fffe'}], 'gateway_ip': '27a3:956:db7f:22b9:3619:f203:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '27a3:956:db7f:22b9:3619:f203:0:2', 'tags': [], 'project_id': '8798dfda10b04b909bd3168a2f61ca57'}} 2025-11-12 15:30:25,304 - INFO - Created VN ctest-vn4-15461106 2025-11-12 15:30:25,353 - DEBUG - VN ctest-vn4-15461106 UUID is 558c4d86-2878-4707-98a0-5f8b9406b208 2025-11-12 15:30:25,526 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '558c4d86-2878-4707-98a0-5f8b9406b208', 'name': 'ctest-vn4-15461106', 'tenant_id': '8798dfda10b04b909bd3168a2f61ca57', 'project_id': '8798dfda10b04b909bd3168a2f61ca57', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['33471b29-9f10-48f6-9088-0d4c9607cf1a', 'bf19b61e-368f-467e-b920-126da4972318'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-54691587', 'ctest-vn4-15461106'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-54691587', 'ctest-policy1-71209238']], 'subnet_ipam': [{'subnet_cidr': '139.249.2.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '27a3:956:db7f:22b9:3619:f203::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-12 15:30:25,689 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-11-12 15:30:26,049 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-11-12 15:30:26,076 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b7d9beee-89db-474d-a947-38d577149531 2025-11-12 15:30:26,087 - DEBUG - Requesting: http://10.0.0.38:8082/project/8798dfda-10b0-4b90-9bd3-168a2f61ca57 2025-11-12 15:30:26,209 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/558c4d86-2878-4707-98a0-5f8b9406b208 2025-11-12 15:30:26,221 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/558c4d86-2878-4707-98a0-5f8b9406b208 2025-11-12 15:30:26,229 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/688fbddb-1e1e-45c8-a73d-a0f35b549e07 2025-11-12 15:30:26,235 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/688fbddb-1e1e-45c8-a73d-a0f35b549e07 2025-11-12 15:30:26,240 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/9895189c-00e6-4975-b123-ef7dee7362fe 2025-11-12 15:30:26,245 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-12 15:30:26,245 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/558c4d86-2878-4707-98a0-5f8b9406b208 2025-11-12 15:30:26,253 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/688fbddb-1e1e-45c8-a73d-a0f35b549e07 2025-11-12 15:30:26,264 - INFO - Verified VN network id 11 for VN 558c4d86-2878-4707-98a0-5f8b9406b208 2025-11-12 15:30:26,264 - INFO - Verifications in API Server for VN ctest-vn4-15461106 passed 2025-11-12 15:30:26,264 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/558c4d86-2878-4707-98a0-5f8b9406b208 2025-11-12 15:30:26,272 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/688fbddb-1e1e-45c8-a73d-a0f35b549e07 2025-11-12 15:30:26,277 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/688fbddb-1e1e-45c8-a73d-a0f35b549e07 2025-11-12 15:30:26,283 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/9895189c-00e6-4975-b123-ef7dee7362fe 2025-11-12 15:30:26,293 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-54691587:ctest-vn4-15461106', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-54691587', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6164387228563293959', 'uuid-lslong': '10997895343127310856'}, 'enable': 'true', 'created': '2025-11-12T15:30:24', 'last-modified': '2025-11-12T15:30:25', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.791917'} 2025-11-12 15:30:26,299 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-12 15:30:26,299 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-15461106 passed 2025-11-12 15:30:26,299 - DEBUG - ====Verifying policy data for ctest-vn4-15461106 in API_Server ====== 2025-11-12 15:30:26,299 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-11-12 15:30:26,303 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b7d9beee-89db-474d-a947-38d577149531 2025-11-12 15:30:26,312 - DEBUG - Requesting: http://10.0.0.38:8082/project/8798dfda-10b0-4b90-9bd3-168a2f61ca57 2025-11-12 15:30:26,379 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/558c4d86-2878-4707-98a0-5f8b9406b208 2025-11-12 15:30:26,390 - DEBUG - ==>Verifying data for policy with id: 7ad1ae8d-9ea6-41d5-9b75-0a3c791f6b5b, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-54691587', 'ctest-policy1-71209238'] 2025-11-12 15:30:26,390 - INFO - VN ctest-vn4-15461106 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-12 15:30:26,390 - DEBUG - Verifying the vn in opserver 2025-11-12 15:30:26,390 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-54691587:ctest-vn4-15461106 virtual network link through opserver 10.0.0.38 2025-11-12 15:30:26,390 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-11-12 15:30:26,754 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-11-12 15:30:26,809 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-54691587:ctest-vn4-15461106', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-54691587:ctest-vn4-15461106?flat'} 2025-11-12 15:30:26,809 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-54691587:ctest-vn4-15461106 is found in opserver 2025-11-12 15:30:26,820 - DEBUG - Do not have enough data to verify VN in agent 2025-11-12 15:30:26,825 - DEBUG - VRF ids for VN ctest-vn4-15461106: {} 2025-11-12 15:30:26,825 - DEBUG - ====Verifying data for ctest-policy1-71209238 in API_Server ====== 2025-11-12 15:30:26,825 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-11-12 15:30:26,831 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b7d9beee-89db-474d-a947-38d577149531 2025-11-12 15:30:26,843 - DEBUG - Requesting: http://10.0.0.38:8082/project/8798dfda-10b0-4b90-9bd3-168a2f61ca57 2025-11-12 15:30:26,913 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/7ad1ae8d-9ea6-41d5-9b75-0a3c791f6b5b 2025-11-12 15:30:26,923 - INFO - Verified policy ctest-policy1-71209238 in API Server, Result: True 2025-11-12 15:30:26,923 - INFO - Done with setup and verification, moving onto test .. 2025-11-12 15:30:26,931 - INFO - Deleting VN ctest-vn4-15461106 2025-11-12 15:30:27,044 - DEBUG - Response for deleting network () 2025-11-12 15:30:27,044 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/688fbddb-1e1e-45c8-a73d-a0f35b549e07 2025-11-12 15:30:27,049 - DEBUG - Response Code: 404 2025-11-12 15:30:27,049 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-11-12 15:30:27,054 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b7d9beee-89db-474d-a947-38d577149531 2025-11-12 15:30:27,105 - DEBUG - Requesting: http://10.0.0.38:8082/project/8798dfda-10b0-4b90-9bd3-168a2f61ca57 2025-11-12 15:30:27,176 - INFO - Validated that VN ctest-vn4-15461106 is not found in API Server 2025-11-12 15:30:27,186 - DEBUG - VN ctest-vn4-15461106 is not present in Agent 10.0.0.38 2025-11-12 15:30:27,186 - INFO - Validated that VN ctest-vn4-15461106 is not in any agent 2025-11-12 15:30:27,200 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-15461106 info 2025-11-12 15:30:27,221 - INFO - Deleted policy ctest-policy1-71209238 2025-11-12 15:30:27,381 - DEBUG - policy ctest-policy1-71209238 is not found in API Server 2025-11-12 15:30:27,634 - DEBUG - No XMPP flaps were noticed during the test