2025-10-20 12:12:15,321 - INFO - Domain Default found not creating 2025-10-20 12:12:15,473 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-29133242 not found, creating it 2025-10-20 12:12:15,936 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-29133242, ID : 4a890c91-a297-4f57-ba7c-2622c865bdd6 2025-10-20 12:12:17,365 - INFO - ================================================================================ 2025-10-20 12:12:17,365 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-20 12:12:17,624 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.18': '0'}} with 2025-10-20 12:12:17,624 - INFO - Initial checks done. Running the testcase now 2025-10-20 12:12:17,624 - INFO - 2025-10-20 12:12:17,624 - INFO - ================================================================================ 2025-10-20 12:12:17,624 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-20 12:12:17,624 - 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-10-20 12:12:17,915 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.18': '0'}} with 2025-10-20 12:12:17,915 - INFO - Initial checks done. Running the testcase now 2025-10-20 12:12:17,915 - INFO - 2025-10-20 12:12:18,309 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-29133242:ctest-vn4-23630781, 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-29133242:ctest-vn4-23630781, 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-29133242:ctest-vn4-23630781, 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-29133242:ctest-vn4-23630781, 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-10-20 12:12:18,821 - DEBUG - Response for create_network : {'network': {'id': 'ec9972e6-205c-4670-a1a9-a53eedb1f763', 'name': 'ctest-vn4-23630781', 'tenant_id': '4a890c91a2974f57ba7c2622c865bdd6', 'project_id': '4a890c91a2974f57ba7c2622c865bdd6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-29133242', 'ctest-vn4-23630781'], 'port_security_enabled': True, 'description': ''}} 2025-10-20 12:12:19,003 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f8054593-036f-42ff-93f9-65ef41eafaf0', 'name': '', 'tenant_id': '4a890c91a2974f57ba7c2622c865bdd6', 'network_id': 'ec9972e6-205c-4670-a1a9-a53eedb1f763', 'ip_version': 4, 'cidr': '195.201.224.64/26', 'allocation_pools': [{'start': '195.201.224.66', 'end': '195.201.224.126'}], 'gateway_ip': '195.201.224.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '195.201.224.66', 'tags': [], 'project_id': '4a890c91a2974f57ba7c2622c865bdd6'}} 2025-10-20 12:12:19,169 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e9d7bbf7-1daa-4959-88f5-44976ba60696', 'name': '', 'tenant_id': '4a890c91a2974f57ba7c2622c865bdd6', 'network_id': 'ec9972e6-205c-4670-a1a9-a53eedb1f763', 'ip_version': 6, 'cidr': '3a96:9c0d:6ecd:9dcc:e833:475b::/96', 'allocation_pools': [{'start': '3a96:9c0d:6ecd:9dcc:e833:475b:0:2', 'end': '3a96:9c0d:6ecd:9dcc:e833:475b:ffff:fffe'}], 'gateway_ip': '3a96:9c0d:6ecd:9dcc:e833:475b:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3a96:9c0d:6ecd:9dcc:e833:475b:0:2', 'tags': [], 'project_id': '4a890c91a2974f57ba7c2622c865bdd6'}} 2025-10-20 12:12:19,188 - INFO - Created VN ctest-vn4-23630781 2025-10-20 12:12:19,241 - DEBUG - VN ctest-vn4-23630781 UUID is ec9972e6-205c-4670-a1a9-a53eedb1f763 2025-10-20 12:12:19,453 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ec9972e6-205c-4670-a1a9-a53eedb1f763', 'name': 'ctest-vn4-23630781', 'tenant_id': '4a890c91a2974f57ba7c2622c865bdd6', 'project_id': '4a890c91a2974f57ba7c2622c865bdd6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f8054593-036f-42ff-93f9-65ef41eafaf0', 'e9d7bbf7-1daa-4959-88f5-44976ba60696'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-29133242', 'ctest-vn4-23630781'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-29133242', 'ctest-policy1-96383516']], 'subnet_ipam': [{'subnet_cidr': '195.201.224.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3a96:9c0d:6ecd:9dcc:e833:475b::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-20 12:12:19,610 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-20 12:12:19,905 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-20 12:12:19,933 - DEBUG - Requesting: http://10.0.0.38:8082/domain/09fd2001-091b-48c4-92fe-34bca3db707d 2025-10-20 12:12:19,944 - DEBUG - Requesting: http://10.0.0.38:8082/project/4a890c91-a297-4f57-ba7c-2622c865bdd6 2025-10-20 12:12:20,075 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ec9972e6-205c-4670-a1a9-a53eedb1f763 2025-10-20 12:12:20,093 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ec9972e6-205c-4670-a1a9-a53eedb1f763 2025-10-20 12:12:20,105 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0e1bda39-d4b4-46e8-aea4-81ec46174469 2025-10-20 12:12:20,113 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0e1bda39-d4b4-46e8-aea4-81ec46174469 2025-10-20 12:12:20,120 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/6119f00c-0874-4301-b2b2-e5b605c7f2ab 2025-10-20 12:12:20,127 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-20 12:12:20,127 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ec9972e6-205c-4670-a1a9-a53eedb1f763 2025-10-20 12:12:20,137 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0e1bda39-d4b4-46e8-aea4-81ec46174469 2025-10-20 12:12:20,151 - INFO - Verified VN network id 11 for VN ec9972e6-205c-4670-a1a9-a53eedb1f763 2025-10-20 12:12:20,151 - INFO - Verifications in API Server for VN ctest-vn4-23630781 passed 2025-10-20 12:12:20,151 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ec9972e6-205c-4670-a1a9-a53eedb1f763 2025-10-20 12:12:20,160 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0e1bda39-d4b4-46e8-aea4-81ec46174469 2025-10-20 12:12:20,167 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0e1bda39-d4b4-46e8-aea4-81ec46174469 2025-10-20 12:12:20,173 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/6119f00c-0874-4301-b2b2-e5b605c7f2ab 2025-10-20 12:12:20,184 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-29133242:ctest-vn4-23630781', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-29133242', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17048784197098686064', 'uuid-lslong': '11649023600864917347'}, 'enable': 'true', 'created': '2025-10-20T12:12:18', 'last-modified': '2025-10-20T12:12:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.770222'} 2025-10-20 12:12:20,191 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-20 12:12:20,191 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-23630781 passed 2025-10-20 12:12:20,191 - DEBUG - ====Verifying policy data for ctest-vn4-23630781 in API_Server ====== 2025-10-20 12:12:20,191 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-20 12:12:20,196 - DEBUG - Requesting: http://10.0.0.38:8082/domain/09fd2001-091b-48c4-92fe-34bca3db707d 2025-10-20 12:12:20,206 - DEBUG - Requesting: http://10.0.0.38:8082/project/4a890c91-a297-4f57-ba7c-2622c865bdd6 2025-10-20 12:12:20,275 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ec9972e6-205c-4670-a1a9-a53eedb1f763 2025-10-20 12:12:20,284 - DEBUG - ==>Verifying data for policy with id: 3286b1d7-42be-4149-9aaf-0035806ff2d8, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-29133242', 'ctest-policy1-96383516'] 2025-10-20 12:12:20,284 - INFO - VN ctest-vn4-23630781 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-20 12:12:20,284 - DEBUG - Verifying the vn in opserver 2025-10-20 12:12:20,284 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-29133242:ctest-vn4-23630781 virtual network link through opserver 10.0.0.38 2025-10-20 12:12:20,284 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-10-20 12:12:20,579 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-10-20 12:12:20,634 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-29133242:ctest-vn4-23630781', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-29133242:ctest-vn4-23630781?flat'} 2025-10-20 12:12:20,634 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-29133242:ctest-vn4-23630781 is found in opserver 2025-10-20 12:12:20,646 - DEBUG - Do not have enough data to verify VN in agent 2025-10-20 12:12:20,650 - DEBUG - VRF ids for VN ctest-vn4-23630781: {} 2025-10-20 12:12:20,651 - DEBUG - ====Verifying data for ctest-policy1-96383516 in API_Server ====== 2025-10-20 12:12:20,651 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-20 12:12:20,655 - DEBUG - Requesting: http://10.0.0.38:8082/domain/09fd2001-091b-48c4-92fe-34bca3db707d 2025-10-20 12:12:20,667 - DEBUG - Requesting: http://10.0.0.38:8082/project/4a890c91-a297-4f57-ba7c-2622c865bdd6 2025-10-20 12:12:20,738 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/3286b1d7-42be-4149-9aaf-0035806ff2d8 2025-10-20 12:12:20,747 - INFO - Verified policy ctest-policy1-96383516 in API Server, Result: True 2025-10-20 12:12:20,747 - INFO - Done with setup and verification, moving onto test .. 2025-10-20 12:12:20,755 - INFO - Deleting VN ctest-vn4-23630781 2025-10-20 12:12:20,863 - DEBUG - Response for deleting network () 2025-10-20 12:12:20,863 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0e1bda39-d4b4-46e8-aea4-81ec46174469 2025-10-20 12:12:20,867 - DEBUG - Response Code: 404 2025-10-20 12:12:20,867 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-20 12:12:20,872 - DEBUG - Requesting: http://10.0.0.38:8082/domain/09fd2001-091b-48c4-92fe-34bca3db707d 2025-10-20 12:12:20,927 - DEBUG - Requesting: http://10.0.0.38:8082/project/4a890c91-a297-4f57-ba7c-2622c865bdd6 2025-10-20 12:12:20,992 - INFO - Validated that VN ctest-vn4-23630781 is not found in API Server 2025-10-20 12:12:21,001 - DEBUG - VN ctest-vn4-23630781 is not present in Agent 10.0.0.38 2025-10-20 12:12:21,001 - INFO - Validated that VN ctest-vn4-23630781 is not in any agent 2025-10-20 12:12:21,015 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-23630781 info 2025-10-20 12:12:21,039 - INFO - Deleted policy ctest-policy1-96383516 2025-10-20 12:12:21,205 - DEBUG - policy ctest-policy1-96383516 is not found in API Server 2025-10-20 12:12:21,463 - DEBUG - No XMPP flaps were noticed during the test