2026-02-02 02:11:09,079 - INFO - Domain Default found not creating 2026-02-02 02:11:09,253 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-09293328 not found, creating it 2026-02-02 02:11:09,704 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-09293328, ID : 521064ab-1a76-494a-99c6-9642bf69e3c9 2026-02-02 02:11:11,147 - INFO - ================================================================================ 2026-02-02 02:11:11,148 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-02 02:11:11,408 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.18': '0'}} with 2026-02-02 02:11:11,408 - INFO - Initial checks done. Running the testcase now 2026-02-02 02:11:11,408 - INFO - 2026-02-02 02:11:11,408 - INFO - ================================================================================ 2026-02-02 02:11:11,408 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-02 02:11:11,408 - 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. 2026-02-02 02:11:11,694 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.18': '0'}} with 2026-02-02 02:11:11,694 - INFO - Initial checks done. Running the testcase now 2026-02-02 02:11:11,694 - INFO - 2026-02-02 02:11:12,049 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-09293328:ctest-vn4-91528237, 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-09293328:ctest-vn4-91528237, 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-09293328:ctest-vn4-91528237, 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-09293328:ctest-vn4-91528237, 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] 2026-02-02 02:11:12,584 - DEBUG - Response for create_network : {'network': {'id': 'b47abb3b-95a0-415a-91c2-28952ba4ff8e', 'name': 'ctest-vn4-91528237', 'tenant_id': '521064ab1a76494a99c69642bf69e3c9', 'project_id': '521064ab1a76494a99c69642bf69e3c9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-09293328', 'ctest-vn4-91528237'], 'port_security_enabled': True, 'description': ''}} 2026-02-02 02:11:12,773 - DEBUG - Response for create_subnet : {'subnet': {'id': '96e39ed0-def5-45c1-91c0-cf6f28c4ae78', 'name': '', 'tenant_id': '521064ab1a76494a99c69642bf69e3c9', 'network_id': 'b47abb3b-95a0-415a-91c2-28952ba4ff8e', 'ip_version': 4, 'cidr': '195.221.31.192/26', 'allocation_pools': [{'start': '195.221.31.194', 'end': '195.221.31.254'}], 'gateway_ip': '195.221.31.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '195.221.31.194', 'tags': [], 'project_id': '521064ab1a76494a99c69642bf69e3c9'}} 2026-02-02 02:11:13,003 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c4776c64-7f21-40b0-9db3-30bb0b45c412', 'name': '', 'tenant_id': '521064ab1a76494a99c69642bf69e3c9', 'network_id': 'b47abb3b-95a0-415a-91c2-28952ba4ff8e', 'ip_version': 6, 'cidr': '2c5a:2edf:49d1:b41a:4e5:a3e1::/96', 'allocation_pools': [{'start': '2c5a:2edf:49d1:b41a:4e5:a3e1:0:2', 'end': '2c5a:2edf:49d1:b41a:4e5:a3e1:ffff:fffe'}], 'gateway_ip': '2c5a:2edf:49d1:b41a:4e5:a3e1:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2c5a:2edf:49d1:b41a:4e5:a3e1:0:2', 'tags': [], 'project_id': '521064ab1a76494a99c69642bf69e3c9'}} 2026-02-02 02:11:13,023 - INFO - Created VN ctest-vn4-91528237 2026-02-02 02:11:13,076 - DEBUG - VN ctest-vn4-91528237 UUID is b47abb3b-95a0-415a-91c2-28952ba4ff8e 2026-02-02 02:11:13,257 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b47abb3b-95a0-415a-91c2-28952ba4ff8e', 'name': 'ctest-vn4-91528237', 'tenant_id': '521064ab1a76494a99c69642bf69e3c9', 'project_id': '521064ab1a76494a99c69642bf69e3c9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['96e39ed0-def5-45c1-91c0-cf6f28c4ae78', 'c4776c64-7f21-40b0-9db3-30bb0b45c412'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-09293328', 'ctest-vn4-91528237'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-09293328', 'ctest-policy1-85005802']], 'subnet_ipam': [{'subnet_cidr': '195.221.31.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2c5a:2edf:49d1:b41a:4e5:a3e1::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-02 02:11:13,424 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2026-02-02 02:11:13,723 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2026-02-02 02:11:13,754 - DEBUG - Requesting: http://10.0.0.130:8082/domain/2c1e3d39-3dd7-4b5e-acaf-6c5099be7843 2026-02-02 02:11:13,765 - DEBUG - Requesting: http://10.0.0.130:8082/project/521064ab-1a76-494a-99c6-9642bf69e3c9 2026-02-02 02:11:13,836 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/b47abb3b-95a0-415a-91c2-28952ba4ff8e 2026-02-02 02:11:13,847 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/b47abb3b-95a0-415a-91c2-28952ba4ff8e 2026-02-02 02:11:13,855 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/a77faa7e-bb2c-4e9b-9c5c-8bd37188d683 2026-02-02 02:11:13,861 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/a77faa7e-bb2c-4e9b-9c5c-8bd37188d683 2026-02-02 02:11:13,866 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/5459905f-dc9e-4e1c-8517-3c39a85bb3cc 2026-02-02 02:11:13,872 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-02 02:11:13,872 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/b47abb3b-95a0-415a-91c2-28952ba4ff8e 2026-02-02 02:11:13,880 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/a77faa7e-bb2c-4e9b-9c5c-8bd37188d683 2026-02-02 02:11:13,895 - INFO - Verified VN network id 12 for VN b47abb3b-95a0-415a-91c2-28952ba4ff8e 2026-02-02 02:11:13,895 - INFO - Verifications in API Server for VN ctest-vn4-91528237 passed 2026-02-02 02:11:13,895 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/b47abb3b-95a0-415a-91c2-28952ba4ff8e 2026-02-02 02:11:13,905 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/a77faa7e-bb2c-4e9b-9c5c-8bd37188d683 2026-02-02 02:11:13,912 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/a77faa7e-bb2c-4e9b-9c5c-8bd37188d683 2026-02-02 02:11:13,917 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/5459905f-dc9e-4e1c-8517-3c39a85bb3cc 2026-02-02 02:11:13,928 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-09293328:ctest-vn4-91528237', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-09293328', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13004912738573500762', 'uuid-lslong': '10503001902128889742'}, 'enable': 'true', 'created': '2026-02-02T02:11:12', 'last-modified': '2026-02-02T02:11:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.695341'} 2026-02-02 02:11:13,935 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-02 02:11:13,935 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-91528237 passed 2026-02-02 02:11:13,935 - DEBUG - ====Verifying policy data for ctest-vn4-91528237 in API_Server ====== 2026-02-02 02:11:13,935 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2026-02-02 02:11:13,939 - DEBUG - Requesting: http://10.0.0.130:8082/domain/2c1e3d39-3dd7-4b5e-acaf-6c5099be7843 2026-02-02 02:11:13,949 - DEBUG - Requesting: http://10.0.0.130:8082/project/521064ab-1a76-494a-99c6-9642bf69e3c9 2026-02-02 02:11:14,020 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/b47abb3b-95a0-415a-91c2-28952ba4ff8e 2026-02-02 02:11:14,028 - DEBUG - ==>Verifying data for policy with id: d3d78b1f-22ef-4f65-bc53-899ee9af3f87, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-09293328', 'ctest-policy1-85005802'] 2026-02-02 02:11:14,029 - INFO - VN ctest-vn4-91528237 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-02 02:11:14,029 - DEBUG - Verifying the vn in opserver 2026-02-02 02:11:14,029 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-09293328:ctest-vn4-91528237 virtual network link through opserver 10.0.0.130 2026-02-02 02:11:14,029 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks 2026-02-02 02:11:14,323 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks 2026-02-02 02:11:14,394 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-09293328:ctest-vn4-91528237', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-09293328:ctest-vn4-91528237?flat'} 2026-02-02 02:11:14,394 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-09293328:ctest-vn4-91528237 is found in opserver 2026-02-02 02:11:14,406 - DEBUG - Do not have enough data to verify VN in agent 2026-02-02 02:11:14,414 - DEBUG - VRF ids for VN ctest-vn4-91528237: {} 2026-02-02 02:11:14,415 - DEBUG - ====Verifying data for ctest-policy1-85005802 in API_Server ====== 2026-02-02 02:11:14,415 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2026-02-02 02:11:14,421 - DEBUG - Requesting: http://10.0.0.130:8082/domain/2c1e3d39-3dd7-4b5e-acaf-6c5099be7843 2026-02-02 02:11:14,431 - DEBUG - Requesting: http://10.0.0.130:8082/project/521064ab-1a76-494a-99c6-9642bf69e3c9 2026-02-02 02:11:14,507 - DEBUG - Requesting: http://10.0.0.130:8082/network-policy/d3d78b1f-22ef-4f65-bc53-899ee9af3f87 2026-02-02 02:11:14,516 - INFO - Verified policy ctest-policy1-85005802 in API Server, Result: True 2026-02-02 02:11:14,516 - INFO - Done with setup and verification, moving onto test .. 2026-02-02 02:11:14,523 - INFO - Deleting VN ctest-vn4-91528237 2026-02-02 02:11:14,635 - DEBUG - Response for deleting network () 2026-02-02 02:11:14,635 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/a77faa7e-bb2c-4e9b-9c5c-8bd37188d683 2026-02-02 02:11:14,640 - DEBUG - Response Code: 404 2026-02-02 02:11:14,640 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2026-02-02 02:11:14,645 - DEBUG - Requesting: http://10.0.0.130:8082/domain/2c1e3d39-3dd7-4b5e-acaf-6c5099be7843 2026-02-02 02:11:14,697 - DEBUG - Requesting: http://10.0.0.130:8082/project/521064ab-1a76-494a-99c6-9642bf69e3c9 2026-02-02 02:11:14,769 - INFO - Validated that VN ctest-vn4-91528237 is not found in API Server 2026-02-02 02:11:14,784 - DEBUG - VN ctest-vn4-91528237 is not present in Agent 10.0.0.130 2026-02-02 02:11:14,784 - INFO - Validated that VN ctest-vn4-91528237 is not in any agent 2026-02-02 02:11:14,805 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-91528237 info 2026-02-02 02:11:14,826 - INFO - Deleted policy ctest-policy1-85005802 2026-02-02 02:11:14,992 - DEBUG - policy ctest-policy1-85005802 is not found in API Server 2026-02-02 02:11:15,245 - DEBUG - No XMPP flaps were noticed during the test