2026-02-24 20:49:47,534 - INFO - Domain Default found not creating 2026-02-24 20:49:47,929 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-18002611 not found, creating it 2026-02-24 20:49:48,689 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-18002611, ID : 83c38ded-40e6-4a8f-926b-b5c148c7a592 2026-02-24 20:49:50,965 - INFO - ================================================================================ 2026-02-24 20:49:50,965 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-24 20:49:51,287 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with 2026-02-24 20:49:51,287 - INFO - Initial checks done. Running the testcase now 2026-02-24 20:49:51,287 - INFO - 2026-02-24 20:49:51,287 - INFO - ================================================================================ 2026-02-24 20:49:51,287 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-24 20:49:51,287 - 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-24 20:49:51,636 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with 2026-02-24 20:49:51,636 - INFO - Initial checks done. Running the testcase now 2026-02-24 20:49:51,636 - INFO - 2026-02-24 20:49:52,080 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-18002611:ctest-vn4-40341367, 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-18002611:ctest-vn4-40341367, 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-18002611:ctest-vn4-40341367, 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-18002611:ctest-vn4-40341367, 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-24 20:49:52,879 - DEBUG - Response for create_network : {'network': {'id': '42b28307-a5d2-4e90-8621-7a8c7b2c0c1d', 'name': 'ctest-vn4-40341367', 'tenant_id': '83c38ded40e64a8f926bb5c148c7a592', 'project_id': '83c38ded40e64a8f926bb5c148c7a592', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-18002611', 'ctest-vn4-40341367'], 'port_security_enabled': True, 'description': ''}} 2026-02-24 20:49:53,163 - DEBUG - Response for create_subnet : {'subnet': {'id': '2018ee03-8930-4441-98c4-5ff15b9280c2', 'name': '', 'tenant_id': '83c38ded40e64a8f926bb5c148c7a592', 'network_id': '42b28307-a5d2-4e90-8621-7a8c7b2c0c1d', 'ip_version': 4, 'cidr': '34.251.52.64/26', 'allocation_pools': [{'start': '34.251.52.66', 'end': '34.251.52.126'}], 'gateway_ip': '34.251.52.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '34.251.52.66', 'tags': [], 'project_id': '83c38ded40e64a8f926bb5c148c7a592'}} 2026-02-24 20:49:53,372 - DEBUG - Response for create_subnet : {'subnet': {'id': '493dc889-1d2d-4afe-8406-c24474c55f14', 'name': '', 'tenant_id': '83c38ded40e64a8f926bb5c148c7a592', 'network_id': '42b28307-a5d2-4e90-8621-7a8c7b2c0c1d', 'ip_version': 6, 'cidr': '2be5:40b1:74b0:17b2:6f38:f63f::/96', 'allocation_pools': [{'start': '2be5:40b1:74b0:17b2:6f38:f63f:0:2', 'end': '2be5:40b1:74b0:17b2:6f38:f63f:ffff:fffe'}], 'gateway_ip': '2be5:40b1:74b0:17b2:6f38:f63f:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2be5:40b1:74b0:17b2:6f38:f63f:0:2', 'tags': [], 'project_id': '83c38ded40e64a8f926bb5c148c7a592'}} 2026-02-24 20:49:53,412 - INFO - Created VN ctest-vn4-40341367 2026-02-24 20:49:53,472 - DEBUG - VN ctest-vn4-40341367 UUID is 42b28307-a5d2-4e90-8621-7a8c7b2c0c1d 2026-02-24 20:49:53,807 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '42b28307-a5d2-4e90-8621-7a8c7b2c0c1d', 'name': 'ctest-vn4-40341367', 'tenant_id': '83c38ded40e64a8f926bb5c148c7a592', 'project_id': '83c38ded40e64a8f926bb5c148c7a592', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2018ee03-8930-4441-98c4-5ff15b9280c2', '493dc889-1d2d-4afe-8406-c24474c55f14'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-18002611', 'ctest-vn4-40341367'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-18002611', 'ctest-policy1-14461022']], 'subnet_ipam': [{'subnet_cidr': '34.251.52.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2be5:40b1:74b0:17b2:6f38:f63f::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-24 20:49:54,007 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-02-24 20:49:54,376 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-02-24 20:49:54,461 - DEBUG - Requesting: http://10.0.0.22:8082/domain/f9d9fe61-ff01-47a7-a23b-acd006b411c2 2026-02-24 20:49:54,493 - DEBUG - Requesting: http://10.0.0.22:8082/project/83c38ded-40e6-4a8f-926b-b5c148c7a592 2026-02-24 20:49:54,613 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/42b28307-a5d2-4e90-8621-7a8c7b2c0c1d 2026-02-24 20:49:54,624 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/42b28307-a5d2-4e90-8621-7a8c7b2c0c1d 2026-02-24 20:49:54,634 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/767284be-bed6-4a72-ab5e-185288bee9e2 2026-02-24 20:49:54,642 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/767284be-bed6-4a72-ab5e-185288bee9e2 2026-02-24 20:49:54,649 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/db57d3ee-4dc5-4b6b-92c3-0500f871578b 2026-02-24 20:49:54,655 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-24 20:49:54,655 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/42b28307-a5d2-4e90-8621-7a8c7b2c0c1d 2026-02-24 20:49:54,666 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/767284be-bed6-4a72-ab5e-185288bee9e2 2026-02-24 20:49:54,681 - INFO - Verified VN network id 11 for VN 42b28307-a5d2-4e90-8621-7a8c7b2c0c1d 2026-02-24 20:49:54,681 - INFO - Verifications in API Server for VN ctest-vn4-40341367 passed 2026-02-24 20:49:54,681 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/42b28307-a5d2-4e90-8621-7a8c7b2c0c1d 2026-02-24 20:49:54,694 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/767284be-bed6-4a72-ab5e-185288bee9e2 2026-02-24 20:49:54,703 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/767284be-bed6-4a72-ab5e-185288bee9e2 2026-02-24 20:49:54,714 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/db57d3ee-4dc5-4b6b-92c3-0500f871578b 2026-02-24 20:49:54,729 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-18002611:ctest-vn4-40341367', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-18002611', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4806047821227773584', 'uuid-lslong': '9665141019094289437'}, 'enable': 'true', 'created': '2026-02-24T20:49:52', 'last-modified': '2026-02-24T20:49:53', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.944480'} 2026-02-24 20:49:54,737 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-24 20:49:54,737 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-40341367 passed 2026-02-24 20:49:54,737 - DEBUG - ====Verifying policy data for ctest-vn4-40341367 in API_Server ====== 2026-02-24 20:49:54,737 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-02-24 20:49:54,744 - DEBUG - Requesting: http://10.0.0.22:8082/domain/f9d9fe61-ff01-47a7-a23b-acd006b411c2 2026-02-24 20:49:54,762 - DEBUG - Requesting: http://10.0.0.22:8082/project/83c38ded-40e6-4a8f-926b-b5c148c7a592 2026-02-24 20:49:54,864 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/42b28307-a5d2-4e90-8621-7a8c7b2c0c1d 2026-02-24 20:49:54,882 - DEBUG - ==>Verifying data for policy with id: f1f08941-3ce3-4fdd-8860-39cbe9af85ae, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-18002611', 'ctest-policy1-14461022'] 2026-02-24 20:49:54,882 - INFO - VN ctest-vn4-40341367 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-24 20:49:54,883 - DEBUG - Verifying the vn in opserver 2026-02-24 20:49:54,883 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-18002611:ctest-vn4-40341367 virtual network link through opserver 10.0.0.22 2026-02-24 20:49:54,883 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-02-24 20:49:55,187 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-02-24 20:49:55,277 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-18002611:ctest-vn4-40341367', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-18002611:ctest-vn4-40341367?flat'} 2026-02-24 20:49:55,277 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-18002611:ctest-vn4-40341367 is found in opserver 2026-02-24 20:49:55,298 - DEBUG - Do not have enough data to verify VN in agent 2026-02-24 20:49:55,307 - DEBUG - VRF ids for VN ctest-vn4-40341367: {} 2026-02-24 20:49:55,307 - DEBUG - ====Verifying data for ctest-policy1-14461022 in API_Server ====== 2026-02-24 20:49:55,307 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-02-24 20:49:55,317 - DEBUG - Requesting: http://10.0.0.22:8082/domain/f9d9fe61-ff01-47a7-a23b-acd006b411c2 2026-02-24 20:49:55,328 - DEBUG - Requesting: http://10.0.0.22:8082/project/83c38ded-40e6-4a8f-926b-b5c148c7a592 2026-02-24 20:49:55,423 - DEBUG - Requesting: http://10.0.0.22:8082/network-policy/f1f08941-3ce3-4fdd-8860-39cbe9af85ae 2026-02-24 20:49:55,439 - INFO - Verified policy ctest-policy1-14461022 in API Server, Result: True 2026-02-24 20:49:55,439 - INFO - Done with setup and verification, moving onto test .. 2026-02-24 20:49:55,453 - INFO - Deleting VN ctest-vn4-40341367 2026-02-24 20:49:55,627 - DEBUG - Response for deleting network () 2026-02-24 20:49:55,627 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/767284be-bed6-4a72-ab5e-185288bee9e2 2026-02-24 20:49:55,632 - DEBUG - Response Code: 404 2026-02-24 20:49:55,632 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-02-24 20:49:55,641 - DEBUG - Requesting: http://10.0.0.22:8082/domain/f9d9fe61-ff01-47a7-a23b-acd006b411c2 2026-02-24 20:49:55,696 - DEBUG - Requesting: http://10.0.0.22:8082/project/83c38ded-40e6-4a8f-926b-b5c148c7a592 2026-02-24 20:49:55,793 - INFO - Validated that VN ctest-vn4-40341367 is not found in API Server 2026-02-24 20:49:55,816 - DEBUG - VN ctest-vn4-40341367 is not present in Agent 10.0.0.22 2026-02-24 20:49:55,816 - INFO - Validated that VN ctest-vn4-40341367 is not in any agent 2026-02-24 20:49:55,853 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-40341367 info 2026-02-24 20:49:55,919 - INFO - Deleted policy ctest-policy1-14461022 2026-02-24 20:49:56,142 - DEBUG - policy ctest-policy1-14461022 is not found in API Server 2026-02-24 20:49:56,458 - DEBUG - No XMPP flaps were noticed during the test
2026-02-24 20:49:56,458 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-02-24 20:49:56,458 - INFO - -------------------------------------------------------------------------------- 2026-02-24 20:49:56,792 - DEBUG - No XMPP flaps were noticed during the test
2026-02-24 20:49:56,792 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:06]
2026-02-24 20:49:56,793 - INFO - -------------------------------------------------------------------------------- 2026-02-24 20:49:57,695 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-18002611, ID : 83c38ded-40e6-4a8f-926b-b5c148c7a592