2026-10-28 20:49:52,268 - INFO - Domain Default found not creating 2026-10-28 20:49:52,460 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-85723620 not found, creating it 2026-10-28 20:49:52,960 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-85723620, ID : 75c38d89-5edc-40a8-b5a4-9b10bf45a446 2026-10-28 20:49:54,813 - INFO - ================================================================================ 2026-10-28 20:49:54,814 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-10-28 20:49:55,074 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.29': '0'}} with 2026-10-28 20:49:55,074 - INFO - Initial checks done. Running the testcase now 2026-10-28 20:49:55,074 - INFO - 2026-10-28 20:49:55,074 - INFO - ================================================================================ 2026-10-28 20:49:55,074 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-10-28 20:49:55,074 - 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-10-28 20:49:55,389 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.29': '0'}} with 2026-10-28 20:49:55,390 - INFO - Initial checks done. Running the testcase now 2026-10-28 20:49:55,390 - INFO - 2026-10-28 20:49:55,824 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85723620:ctest-vn4-93621380, 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-85723620:ctest-vn4-93621380, 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-85723620:ctest-vn4-93621380, 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-85723620:ctest-vn4-93621380, 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-10-28 20:49:56,364 - DEBUG - Response for create_network : {'network': {'id': '3fec6c72-9e99-419c-a19a-a421c2c1d932', 'name': 'ctest-vn4-93621380', 'tenant_id': '75c38d895edc40a8b5a49b10bf45a446', 'project_id': '75c38d895edc40a8b5a49b10bf45a446', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-85723620', 'ctest-vn4-93621380'], 'port_security_enabled': True, 'description': ''}} 2026-10-28 20:49:56,570 - DEBUG - Response for create_subnet : {'subnet': {'id': '7b0c8442-45f4-4f28-a968-b8e64f9ab9a2', 'name': '', 'tenant_id': '75c38d895edc40a8b5a49b10bf45a446', 'network_id': '3fec6c72-9e99-419c-a19a-a421c2c1d932', 'ip_version': 4, 'cidr': '62.252.147.64/26', 'allocation_pools': [{'start': '62.252.147.66', 'end': '62.252.147.126'}], 'gateway_ip': '62.252.147.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '62.252.147.66', 'tags': [], 'project_id': '75c38d895edc40a8b5a49b10bf45a446'}} 2026-10-28 20:49:56,776 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b4b3ec25-f329-4af4-8f18-3a6e516f8c4b', 'name': '', 'tenant_id': '75c38d895edc40a8b5a49b10bf45a446', 'network_id': '3fec6c72-9e99-419c-a19a-a421c2c1d932', 'ip_version': 6, 'cidr': '28f8:b1d7:2db9:ae7c:f333:198a::/96', 'allocation_pools': [{'start': '28f8:b1d7:2db9:ae7c:f333:198a:0:2', 'end': '28f8:b1d7:2db9:ae7c:f333:198a:ffff:fffe'}], 'gateway_ip': '28f8:b1d7:2db9:ae7c:f333:198a:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '28f8:b1d7:2db9:ae7c:f333:198a:0:2', 'tags': [], 'project_id': '75c38d895edc40a8b5a49b10bf45a446'}} 2026-10-28 20:49:56,798 - INFO - Created VN ctest-vn4-93621380 2026-10-28 20:49:56,855 - DEBUG - VN ctest-vn4-93621380 UUID is 3fec6c72-9e99-419c-a19a-a421c2c1d932 2026-10-28 20:49:57,082 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3fec6c72-9e99-419c-a19a-a421c2c1d932', 'name': 'ctest-vn4-93621380', 'tenant_id': '75c38d895edc40a8b5a49b10bf45a446', 'project_id': '75c38d895edc40a8b5a49b10bf45a446', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['7b0c8442-45f4-4f28-a968-b8e64f9ab9a2', 'b4b3ec25-f329-4af4-8f18-3a6e516f8c4b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-85723620', 'ctest-vn4-93621380'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-85723620', 'ctest-policy1-59036969']], 'subnet_ipam': [{'subnet_cidr': '62.252.147.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '28f8:b1d7:2db9:ae7c:f333:198a::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-10-28 20:49:57,239 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-10-28 20:49:57,614 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-10-28 20:49:57,647 - DEBUG - Requesting: http://10.0.0.38:8082/domain/e6129638-57ad-49b4-8665-634316040b20 2026-10-28 20:49:57,662 - DEBUG - Requesting: http://10.0.0.38:8082/project/75c38d89-5edc-40a8-b5a4-9b10bf45a446 2026-10-28 20:49:57,739 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3fec6c72-9e99-419c-a19a-a421c2c1d932 2026-10-28 20:49:57,753 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3fec6c72-9e99-419c-a19a-a421c2c1d932 2026-10-28 20:49:57,765 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/bb130007-c32f-4df4-bac8-e111877d11e5 2026-10-28 20:49:57,773 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/bb130007-c32f-4df4-bac8-e111877d11e5 2026-10-28 20:49:57,781 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/1b80a99d-42cf-49f8-8273-5bd984a2366e 2026-10-28 20:49:57,788 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-10-28 20:49:57,788 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3fec6c72-9e99-419c-a19a-a421c2c1d932 2026-10-28 20:49:57,799 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/bb130007-c32f-4df4-bac8-e111877d11e5 2026-10-28 20:49:57,815 - INFO - Verified VN network id 12 for VN 3fec6c72-9e99-419c-a19a-a421c2c1d932 2026-10-28 20:49:57,815 - INFO - Verifications in API Server for VN ctest-vn4-93621380 passed 2026-10-28 20:49:57,815 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3fec6c72-9e99-419c-a19a-a421c2c1d932 2026-10-28 20:49:57,827 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/bb130007-c32f-4df4-bac8-e111877d11e5 2026-10-28 20:49:57,835 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/bb130007-c32f-4df4-bac8-e111877d11e5 2026-10-28 20:49:57,843 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/1b80a99d-42cf-49f8-8273-5bd984a2366e 2026-10-28 20:49:57,859 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85723620:ctest-vn4-93621380', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-85723620', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4606175758436090268', 'uuid-lslong': '11644800251428198706'}, 'enable': 'true', 'created': '2026-10-28T20:49:56', 'last-modified': '2026-10-28T20:49:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.809640'} 2026-10-28 20:49:57,883 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-10-28 20:49:57,883 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-93621380 passed 2026-10-28 20:49:57,884 - DEBUG - ====Verifying policy data for ctest-vn4-93621380 in API_Server ====== 2026-10-28 20:49:57,885 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-10-28 20:49:57,913 - DEBUG - Requesting: http://10.0.0.38:8082/domain/e6129638-57ad-49b4-8665-634316040b20 2026-10-28 20:49:57,979 - DEBUG - Requesting: http://10.0.0.38:8082/project/75c38d89-5edc-40a8-b5a4-9b10bf45a446 2026-10-28 20:49:58,122 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3fec6c72-9e99-419c-a19a-a421c2c1d932 2026-10-28 20:49:58,134 - DEBUG - ==>Verifying data for policy with id: 190f97cd-82e4-4b86-9d4b-ddb15644178e, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-85723620', 'ctest-policy1-59036969'] 2026-10-28 20:49:58,134 - INFO - VN ctest-vn4-93621380 Policy verification: verify_vn_policy_in_api_server, status: True 2026-10-28 20:49:58,134 - DEBUG - Verifying the vn in opserver 2026-10-28 20:49:58,134 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85723620:ctest-vn4-93621380 virtual network link through opserver 10.0.0.38 2026-10-28 20:49:58,134 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-10-28 20:49:58,511 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-10-28 20:49:58,570 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85723620:ctest-vn4-93621380', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85723620:ctest-vn4-93621380?flat'} 2026-10-28 20:49:58,570 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85723620:ctest-vn4-93621380 is found in opserver 2026-10-28 20:49:58,585 - DEBUG - Do not have enough data to verify VN in agent 2026-10-28 20:49:58,591 - DEBUG - VRF ids for VN ctest-vn4-93621380: {} 2026-10-28 20:49:58,591 - DEBUG - ====Verifying data for ctest-policy1-59036969 in API_Server ====== 2026-10-28 20:49:58,591 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-10-28 20:49:58,597 - DEBUG - Requesting: http://10.0.0.38:8082/domain/e6129638-57ad-49b4-8665-634316040b20 2026-10-28 20:49:58,610 - DEBUG - Requesting: http://10.0.0.38:8082/project/75c38d89-5edc-40a8-b5a4-9b10bf45a446 2026-10-28 20:49:58,685 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/190f97cd-82e4-4b86-9d4b-ddb15644178e 2026-10-28 20:49:58,695 - INFO - Verified policy ctest-policy1-59036969 in API Server, Result: True 2026-10-28 20:49:58,696 - INFO - Done with setup and verification, moving onto test .. 2026-10-28 20:49:58,706 - INFO - Deleting VN ctest-vn4-93621380 2026-10-28 20:49:58,835 - DEBUG - Response for deleting network () 2026-10-28 20:49:58,835 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/bb130007-c32f-4df4-bac8-e111877d11e5 2026-10-28 20:49:58,841 - DEBUG - Response Code: 404 2026-10-28 20:49:58,841 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-10-28 20:49:58,847 - DEBUG - Requesting: http://10.0.0.38:8082/domain/e6129638-57ad-49b4-8665-634316040b20 2026-10-28 20:49:58,902 - DEBUG - Requesting: http://10.0.0.38:8082/project/75c38d89-5edc-40a8-b5a4-9b10bf45a446 2026-10-28 20:49:58,999 - INFO - Validated that VN ctest-vn4-93621380 is not found in API Server 2026-10-28 20:49:59,014 - DEBUG - VN ctest-vn4-93621380 is not present in Agent 10.0.0.38 2026-10-28 20:49:59,014 - INFO - Validated that VN ctest-vn4-93621380 is not in any agent 2026-10-28 20:49:59,032 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-93621380 info 2026-10-28 20:49:59,081 - INFO - Deleted policy ctest-policy1-59036969 2026-10-28 20:49:59,287 - DEBUG - policy ctest-policy1-59036969 is not found in API Server 2026-10-28 20:49:59,563 - DEBUG - No XMPP flaps were noticed during the test