2026-04-30 02:23:46,585 - INFO - Domain Default found not creating 2026-04-30 02:23:46,781 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-00287660 not found, creating it 2026-04-30 02:23:47,280 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-00287660, ID : 9a409a04-84aa-46f1-bd5b-8b0984c66b8d 2026-04-30 02:23:48,905 - INFO - ================================================================================ 2026-04-30 02:23:48,906 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-30 02:23:49,171 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-04-30 02:23:49,171 - INFO - Initial checks done. Running the testcase now 2026-04-30 02:23:49,171 - INFO - 2026-04-30 02:23:49,171 - INFO - ================================================================================ 2026-04-30 02:23:49,171 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-30 02:23:49,171 - 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-04-30 02:23:49,480 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-04-30 02:23:49,480 - INFO - Initial checks done. Running the testcase now 2026-04-30 02:23:49,480 - INFO - 2026-04-30 02:23:49,876 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-00287660:ctest-vn4-10393593, 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-00287660:ctest-vn4-10393593, 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-00287660:ctest-vn4-10393593, 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-00287660:ctest-vn4-10393593, 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-04-30 02:23:50,414 - DEBUG - Response for create_network : {'network': {'id': 'b52a2c64-bda4-4754-af1e-69bfd72f6c03', 'name': 'ctest-vn4-10393593', 'tenant_id': '9a409a0484aa46f1bd5b8b0984c66b8d', 'project_id': '9a409a0484aa46f1bd5b8b0984c66b8d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-00287660', 'ctest-vn4-10393593'], 'port_security_enabled': True, 'description': ''}} 2026-04-30 02:23:50,631 - DEBUG - Response for create_subnet : {'subnet': {'id': '9ba3959d-f834-459a-8519-ae606bbd08c2', 'name': '', 'tenant_id': '9a409a0484aa46f1bd5b8b0984c66b8d', 'network_id': 'b52a2c64-bda4-4754-af1e-69bfd72f6c03', 'ip_version': 4, 'cidr': '219.213.22.64/26', 'allocation_pools': [{'start': '219.213.22.66', 'end': '219.213.22.126'}], 'gateway_ip': '219.213.22.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '219.213.22.66', 'tags': [], 'project_id': '9a409a0484aa46f1bd5b8b0984c66b8d'}} 2026-04-30 02:23:50,784 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ed22b24b-c615-4f15-a95a-85bdc3caad53', 'name': '', 'tenant_id': '9a409a0484aa46f1bd5b8b0984c66b8d', 'network_id': 'b52a2c64-bda4-4754-af1e-69bfd72f6c03', 'ip_version': 6, 'cidr': '3e9d:2def:690a:1417:67b6:921b::/96', 'allocation_pools': [{'start': '3e9d:2def:690a:1417:67b6:921b:0:2', 'end': '3e9d:2def:690a:1417:67b6:921b:ffff:fffe'}], 'gateway_ip': '3e9d:2def:690a:1417:67b6:921b:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3e9d:2def:690a:1417:67b6:921b:0:2', 'tags': [], 'project_id': '9a409a0484aa46f1bd5b8b0984c66b8d'}} 2026-04-30 02:23:50,809 - INFO - Created VN ctest-vn4-10393593 2026-04-30 02:23:50,864 - DEBUG - VN ctest-vn4-10393593 UUID is b52a2c64-bda4-4754-af1e-69bfd72f6c03 2026-04-30 02:23:51,087 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b52a2c64-bda4-4754-af1e-69bfd72f6c03', 'name': 'ctest-vn4-10393593', 'tenant_id': '9a409a0484aa46f1bd5b8b0984c66b8d', 'project_id': '9a409a0484aa46f1bd5b8b0984c66b8d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9ba3959d-f834-459a-8519-ae606bbd08c2', 'ed22b24b-c615-4f15-a95a-85bdc3caad53'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-00287660', 'ctest-vn4-10393593'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-00287660', 'ctest-policy1-71845064']], 'subnet_ipam': [{'subnet_cidr': '219.213.22.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3e9d:2def:690a:1417:67b6:921b::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-04-30 02:23:51,260 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-04-30 02:23:51,568 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-04-30 02:23:51,601 - DEBUG - Requesting: http://10.0.0.38:8082/domain/033dcabd-97df-439f-8207-51383e8b92fd 2026-04-30 02:23:51,616 - DEBUG - Requesting: http://10.0.0.38:8082/project/9a409a04-84aa-46f1-bd5b-8b0984c66b8d 2026-04-30 02:23:51,696 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b52a2c64-bda4-4754-af1e-69bfd72f6c03 2026-04-30 02:23:51,713 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b52a2c64-bda4-4754-af1e-69bfd72f6c03 2026-04-30 02:23:51,723 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7af8ae67-05b8-45d1-91ab-b5b8e00c0c4c 2026-04-30 02:23:51,731 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7af8ae67-05b8-45d1-91ab-b5b8e00c0c4c 2026-04-30 02:23:51,738 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/56a20902-7f83-4de2-82bb-91d837bf8db8 2026-04-30 02:23:51,744 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-30 02:23:51,744 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b52a2c64-bda4-4754-af1e-69bfd72f6c03 2026-04-30 02:23:51,754 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7af8ae67-05b8-45d1-91ab-b5b8e00c0c4c 2026-04-30 02:23:51,770 - INFO - Verified VN network id 11 for VN b52a2c64-bda4-4754-af1e-69bfd72f6c03 2026-04-30 02:23:51,771 - INFO - Verifications in API Server for VN ctest-vn4-10393593 passed 2026-04-30 02:23:51,771 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b52a2c64-bda4-4754-af1e-69bfd72f6c03 2026-04-30 02:23:51,781 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7af8ae67-05b8-45d1-91ab-b5b8e00c0c4c 2026-04-30 02:23:51,789 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7af8ae67-05b8-45d1-91ab-b5b8e00c0c4c 2026-04-30 02:23:51,797 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/56a20902-7f83-4de2-82bb-91d837bf8db8 2026-04-30 02:23:51,812 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-00287660:ctest-vn4-10393593', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-00287660', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13054295281076815700', 'uuid-lslong': '12618639478608587779'}, 'enable': 'true', 'created': '2026-04-30T02:23:50', 'last-modified': '2026-04-30T02:23:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.751937'} 2026-04-30 02:23:51,818 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-30 02:23:51,818 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-10393593 passed 2026-04-30 02:23:51,819 - DEBUG - ====Verifying policy data for ctest-vn4-10393593 in API_Server ====== 2026-04-30 02:23:51,819 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-04-30 02:23:51,824 - DEBUG - Requesting: http://10.0.0.38:8082/domain/033dcabd-97df-439f-8207-51383e8b92fd 2026-04-30 02:23:51,836 - DEBUG - Requesting: http://10.0.0.38:8082/project/9a409a04-84aa-46f1-bd5b-8b0984c66b8d 2026-04-30 02:23:51,907 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b52a2c64-bda4-4754-af1e-69bfd72f6c03 2026-04-30 02:23:51,917 - DEBUG - ==>Verifying data for policy with id: c8a6f6e3-919c-4a95-a48a-73e2c1809170, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-00287660', 'ctest-policy1-71845064'] 2026-04-30 02:23:51,918 - INFO - VN ctest-vn4-10393593 Policy verification: verify_vn_policy_in_api_server, status: True 2026-04-30 02:23:51,918 - DEBUG - Verifying the vn in opserver 2026-04-30 02:23:51,918 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-00287660:ctest-vn4-10393593 virtual network link through opserver 10.0.0.38 2026-04-30 02:23:51,918 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-04-30 02:23:52,223 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-04-30 02:23:52,299 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-00287660:ctest-vn4-10393593', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-00287660:ctest-vn4-10393593?flat'} 2026-04-30 02:23:52,299 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-00287660:ctest-vn4-10393593 is found in opserver 2026-04-30 02:23:52,310 - DEBUG - Do not have enough data to verify VN in agent 2026-04-30 02:23:52,314 - DEBUG - VRF ids for VN ctest-vn4-10393593: {} 2026-04-30 02:23:52,315 - DEBUG - ====Verifying data for ctest-policy1-71845064 in API_Server ====== 2026-04-30 02:23:52,315 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-04-30 02:23:52,321 - DEBUG - Requesting: http://10.0.0.38:8082/domain/033dcabd-97df-439f-8207-51383e8b92fd 2026-04-30 02:23:52,333 - DEBUG - Requesting: http://10.0.0.38:8082/project/9a409a04-84aa-46f1-bd5b-8b0984c66b8d 2026-04-30 02:23:52,405 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/c8a6f6e3-919c-4a95-a48a-73e2c1809170 2026-04-30 02:23:52,414 - INFO - Verified policy ctest-policy1-71845064 in API Server, Result: True 2026-04-30 02:23:52,414 - INFO - Done with setup and verification, moving onto test .. 2026-04-30 02:23:52,422 - INFO - Deleting VN ctest-vn4-10393593 2026-04-30 02:23:52,541 - DEBUG - Response for deleting network () 2026-04-30 02:23:52,541 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7af8ae67-05b8-45d1-91ab-b5b8e00c0c4c 2026-04-30 02:23:52,546 - DEBUG - Response Code: 404 2026-04-30 02:23:52,546 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-04-30 02:23:52,551 - DEBUG - Requesting: http://10.0.0.38:8082/domain/033dcabd-97df-439f-8207-51383e8b92fd 2026-04-30 02:23:52,605 - DEBUG - Requesting: http://10.0.0.38:8082/project/9a409a04-84aa-46f1-bd5b-8b0984c66b8d 2026-04-30 02:23:52,684 - INFO - Validated that VN ctest-vn4-10393593 is not found in API Server 2026-04-30 02:23:52,693 - DEBUG - VN ctest-vn4-10393593 is not present in Agent 10.0.0.38 2026-04-30 02:23:52,693 - INFO - Validated that VN ctest-vn4-10393593 is not in any agent 2026-04-30 02:23:52,707 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-10393593 info 2026-04-30 02:23:52,731 - INFO - Deleted policy ctest-policy1-71845064 2026-04-30 02:23:52,900 - DEBUG - policy ctest-policy1-71845064 is not found in API Server 2026-04-30 02:23:53,157 - DEBUG - No XMPP flaps were noticed during the test