2026-05-18 16:46:40,912 - INFO - Domain Default found not creating 2026-05-18 16:46:41,099 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-93792415 not found, creating it 2026-05-18 16:46:41,600 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-93792415, ID : 6e63523f-991c-4769-bfa3-61415af1b0e9 2026-05-18 16:46:43,143 - INFO - ================================================================================ 2026-05-18 16:46:43,143 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-18 16:46:43,413 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.17': '0'}} with 2026-05-18 16:46:43,413 - INFO - Initial checks done. Running the testcase now 2026-05-18 16:46:43,413 - INFO - 2026-05-18 16:46:43,413 - INFO - ================================================================================ 2026-05-18 16:46:43,413 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-18 16:46:43,414 - 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-05-18 16:46:43,698 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.17': '0'}} with 2026-05-18 16:46:43,698 - INFO - Initial checks done. Running the testcase now 2026-05-18 16:46:43,698 - INFO - 2026-05-18 16:46:44,083 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93792415:ctest-vn4-36667819, 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-93792415:ctest-vn4-36667819, 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-93792415:ctest-vn4-36667819, 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-93792415:ctest-vn4-36667819, 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-05-18 16:46:44,620 - DEBUG - Response for create_network : {'network': {'id': 'cd53b2e3-bee4-4e73-a02d-68b83784e1ec', 'name': 'ctest-vn4-36667819', 'tenant_id': '6e63523f991c4769bfa361415af1b0e9', 'project_id': '6e63523f991c4769bfa361415af1b0e9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-93792415', 'ctest-vn4-36667819'], 'port_security_enabled': True, 'description': ''}} 2026-05-18 16:46:44,820 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b23d4abb-9f16-47b5-92d9-c861322988c0', 'name': '', 'tenant_id': '6e63523f991c4769bfa361415af1b0e9', 'network_id': 'cd53b2e3-bee4-4e73-a02d-68b83784e1ec', 'ip_version': 4, 'cidr': '19.219.59.0/26', 'allocation_pools': [{'start': '19.219.59.2', 'end': '19.219.59.62'}], 'gateway_ip': '19.219.59.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '19.219.59.2', 'tags': [], 'project_id': '6e63523f991c4769bfa361415af1b0e9'}} 2026-05-18 16:46:44,992 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd501af2c-6e37-47a4-bb5f-d7fe45ba9217', 'name': '', 'tenant_id': '6e63523f991c4769bfa361415af1b0e9', 'network_id': 'cd53b2e3-bee4-4e73-a02d-68b83784e1ec', 'ip_version': 6, 'cidr': '28e2:128c:a056:581d:6b7e:933a::/96', 'allocation_pools': [{'start': '28e2:128c:a056:581d:6b7e:933a:0:2', 'end': '28e2:128c:a056:581d:6b7e:933a:ffff:fffe'}], 'gateway_ip': '28e2:128c:a056:581d:6b7e:933a:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '28e2:128c:a056:581d:6b7e:933a:0:2', 'tags': [], 'project_id': '6e63523f991c4769bfa361415af1b0e9'}} 2026-05-18 16:46:45,012 - INFO - Created VN ctest-vn4-36667819 2026-05-18 16:46:45,063 - DEBUG - VN ctest-vn4-36667819 UUID is cd53b2e3-bee4-4e73-a02d-68b83784e1ec 2026-05-18 16:46:45,285 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cd53b2e3-bee4-4e73-a02d-68b83784e1ec', 'name': 'ctest-vn4-36667819', 'tenant_id': '6e63523f991c4769bfa361415af1b0e9', 'project_id': '6e63523f991c4769bfa361415af1b0e9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b23d4abb-9f16-47b5-92d9-c861322988c0', 'd501af2c-6e37-47a4-bb5f-d7fe45ba9217'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-93792415', 'ctest-vn4-36667819'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-93792415', 'ctest-policy1-15546809']], 'subnet_ipam': [{'subnet_cidr': '19.219.59.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '28e2:128c:a056:581d:6b7e:933a::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-05-18 16:46:45,455 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-05-18 16:46:45,751 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-05-18 16:46:45,783 - DEBUG - Requesting: http://10.0.0.249:8082/domain/491448e1-1545-4d03-8de3-08bc26108cb1 2026-05-18 16:46:45,796 - DEBUG - Requesting: http://10.0.0.249:8082/project/6e63523f-991c-4769-bfa3-61415af1b0e9 2026-05-18 16:46:45,862 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/cd53b2e3-bee4-4e73-a02d-68b83784e1ec 2026-05-18 16:46:45,876 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/cd53b2e3-bee4-4e73-a02d-68b83784e1ec 2026-05-18 16:46:45,887 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/89a29495-78c4-4a53-af3b-245e50dba68e 2026-05-18 16:46:45,894 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/89a29495-78c4-4a53-af3b-245e50dba68e 2026-05-18 16:46:45,900 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/292b94cb-e0dc-4bc7-b137-21c8d56683fa 2026-05-18 16:46:45,909 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-18 16:46:45,909 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/cd53b2e3-bee4-4e73-a02d-68b83784e1ec 2026-05-18 16:46:45,918 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/89a29495-78c4-4a53-af3b-245e50dba68e 2026-05-18 16:46:45,932 - INFO - Verified VN network id 11 for VN cd53b2e3-bee4-4e73-a02d-68b83784e1ec 2026-05-18 16:46:45,932 - INFO - Verifications in API Server for VN ctest-vn4-36667819 passed 2026-05-18 16:46:45,932 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/cd53b2e3-bee4-4e73-a02d-68b83784e1ec 2026-05-18 16:46:45,942 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/89a29495-78c4-4a53-af3b-245e50dba68e 2026-05-18 16:46:45,950 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/89a29495-78c4-4a53-af3b-245e50dba68e 2026-05-18 16:46:45,957 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/292b94cb-e0dc-4bc7-b137-21c8d56683fa 2026-05-18 16:46:45,968 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93792415:ctest-vn4-36667819', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-93792415', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14795365892072164979', 'uuid-lslong': '11541996560435175916'}, 'enable': 'true', 'created': '2026-05-18T16:46:44', 'last-modified': '2026-05-18T16:46:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.718677'} 2026-05-18 16:46:45,975 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-18 16:46:45,975 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-36667819 passed 2026-05-18 16:46:45,975 - DEBUG - ====Verifying policy data for ctest-vn4-36667819 in API_Server ====== 2026-05-18 16:46:45,975 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-05-18 16:46:45,982 - DEBUG - Requesting: http://10.0.0.249:8082/domain/491448e1-1545-4d03-8de3-08bc26108cb1 2026-05-18 16:46:45,993 - DEBUG - Requesting: http://10.0.0.249:8082/project/6e63523f-991c-4769-bfa3-61415af1b0e9 2026-05-18 16:46:46,067 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/cd53b2e3-bee4-4e73-a02d-68b83784e1ec 2026-05-18 16:46:46,077 - DEBUG - ==>Verifying data for policy with id: d25ae259-a3af-483b-97b1-c4fac3ceb66b, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-93792415', 'ctest-policy1-15546809'] 2026-05-18 16:46:46,077 - INFO - VN ctest-vn4-36667819 Policy verification: verify_vn_policy_in_api_server, status: True 2026-05-18 16:46:46,077 - DEBUG - Verifying the vn in opserver 2026-05-18 16:46:46,077 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93792415:ctest-vn4-36667819 virtual network link through opserver 10.0.0.249 2026-05-18 16:46:46,078 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-05-18 16:46:46,374 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-05-18 16:46:46,449 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93792415:ctest-vn4-36667819', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93792415:ctest-vn4-36667819?flat'} 2026-05-18 16:46:46,449 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93792415:ctest-vn4-36667819 is found in opserver 2026-05-18 16:46:46,458 - DEBUG - Do not have enough data to verify VN in agent 2026-05-18 16:46:46,463 - DEBUG - VRF ids for VN ctest-vn4-36667819: {} 2026-05-18 16:46:46,464 - DEBUG - ====Verifying data for ctest-policy1-15546809 in API_Server ====== 2026-05-18 16:46:46,464 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-05-18 16:46:46,469 - DEBUG - Requesting: http://10.0.0.249:8082/domain/491448e1-1545-4d03-8de3-08bc26108cb1 2026-05-18 16:46:46,484 - DEBUG - Requesting: http://10.0.0.249:8082/project/6e63523f-991c-4769-bfa3-61415af1b0e9 2026-05-18 16:46:46,559 - DEBUG - Requesting: http://10.0.0.249:8082/network-policy/d25ae259-a3af-483b-97b1-c4fac3ceb66b 2026-05-18 16:46:46,572 - INFO - Verified policy ctest-policy1-15546809 in API Server, Result: True 2026-05-18 16:46:46,572 - INFO - Done with setup and verification, moving onto test .. 2026-05-18 16:46:46,581 - INFO - Deleting VN ctest-vn4-36667819 2026-05-18 16:46:46,732 - DEBUG - Response for deleting network () 2026-05-18 16:46:46,733 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/89a29495-78c4-4a53-af3b-245e50dba68e 2026-05-18 16:46:46,738 - DEBUG - Response Code: 404 2026-05-18 16:46:46,738 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-05-18 16:46:46,745 - DEBUG - Requesting: http://10.0.0.249:8082/domain/491448e1-1545-4d03-8de3-08bc26108cb1 2026-05-18 16:46:46,797 - DEBUG - Requesting: http://10.0.0.249:8082/project/6e63523f-991c-4769-bfa3-61415af1b0e9 2026-05-18 16:46:46,872 - INFO - Validated that VN ctest-vn4-36667819 is not found in API Server 2026-05-18 16:46:46,882 - DEBUG - VN ctest-vn4-36667819 is not present in Agent 10.0.0.249 2026-05-18 16:46:46,882 - INFO - Validated that VN ctest-vn4-36667819 is not in any agent 2026-05-18 16:46:46,896 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-36667819 info 2026-05-18 16:46:46,918 - INFO - Deleted policy ctest-policy1-15546809 2026-05-18 16:46:47,079 - DEBUG - policy ctest-policy1-15546809 is not found in API Server 2026-05-18 16:46:47,348 - DEBUG - No XMPP flaps were noticed during the test 2026-05-18 16:46:47,348 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-05-18 16:46:47,348 - INFO - -------------------------------------------------------------------------------- 2026-05-18 16:46:47,645 - DEBUG - No XMPP flaps were noticed during the test 2026-05-18 16:46:47,645 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-05-18 16:46:47,645 - INFO - -------------------------------------------------------------------------------- 2026-05-18 16:46:48,380 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-93792415, ID : 6e63523f-991c-4769-bfa3-61415af1b0e9