2026-06-19 11:01:12,193 - INFO - Domain Default found not creating 2026-06-19 11:01:12,323 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-48196765 not found, creating it 2026-06-19 11:01:12,772 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-48196765, ID : cfee7c48-31f3-404f-a54f-d6f2fcc60b6f 2026-06-19 11:01:14,184 - INFO - ================================================================================ 2026-06-19 11:01:14,184 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-19 11:01:14,437 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-06-19 11:01:14,438 - INFO - Initial checks done. Running the testcase now 2026-06-19 11:01:14,438 - INFO - 2026-06-19 11:01:14,438 - INFO - ================================================================================ 2026-06-19 11:01:14,438 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-19 11:01:14,438 - 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-06-19 11:01:14,732 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-06-19 11:01:14,733 - INFO - Initial checks done. Running the testcase now 2026-06-19 11:01:14,733 - INFO - 2026-06-19 11:01:15,099 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48196765:ctest-vn4-22238909, 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-48196765:ctest-vn4-22238909, 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-48196765:ctest-vn4-22238909, 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-48196765:ctest-vn4-22238909, 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-06-19 11:01:15,571 - DEBUG - Response for create_network : {'network': {'id': 'dea4d8b5-f662-47d6-9117-4928fd89c918', 'name': 'ctest-vn4-22238909', 'tenant_id': 'cfee7c4831f3404fa54fd6f2fcc60b6f', 'project_id': 'cfee7c4831f3404fa54fd6f2fcc60b6f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-48196765', 'ctest-vn4-22238909'], 'port_security_enabled': True, 'description': ''}} 2026-06-19 11:01:15,725 - DEBUG - Response for create_subnet : {'subnet': {'id': '4500eab1-4cf3-48ba-a134-7c954a61269b', 'name': '', 'tenant_id': 'cfee7c4831f3404fa54fd6f2fcc60b6f', 'network_id': 'dea4d8b5-f662-47d6-9117-4928fd89c918', 'ip_version': 4, 'cidr': '128.251.167.192/26', 'allocation_pools': [{'start': '128.251.167.194', 'end': '128.251.167.254'}], 'gateway_ip': '128.251.167.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '128.251.167.194', 'tags': [], 'project_id': 'cfee7c4831f3404fa54fd6f2fcc60b6f'}} 2026-06-19 11:01:15,913 - DEBUG - Response for create_subnet : {'subnet': {'id': '8b512ce9-28cc-40fe-805c-39e6b3f8a67b', 'name': '', 'tenant_id': 'cfee7c4831f3404fa54fd6f2fcc60b6f', 'network_id': 'dea4d8b5-f662-47d6-9117-4928fd89c918', 'ip_version': 6, 'cidr': '25b3:afbc:a9a8:8d5b:3935:b3d9::/96', 'allocation_pools': [{'start': '25b3:afbc:a9a8:8d5b:3935:b3d9:0:2', 'end': '25b3:afbc:a9a8:8d5b:3935:b3d9:ffff:fffe'}], 'gateway_ip': '25b3:afbc:a9a8:8d5b:3935:b3d9:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '25b3:afbc:a9a8:8d5b:3935:b3d9:0:2', 'tags': [], 'project_id': 'cfee7c4831f3404fa54fd6f2fcc60b6f'}} 2026-06-19 11:01:15,930 - INFO - Created VN ctest-vn4-22238909 2026-06-19 11:01:15,983 - DEBUG - VN ctest-vn4-22238909 UUID is dea4d8b5-f662-47d6-9117-4928fd89c918 2026-06-19 11:01:16,164 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'dea4d8b5-f662-47d6-9117-4928fd89c918', 'name': 'ctest-vn4-22238909', 'tenant_id': 'cfee7c4831f3404fa54fd6f2fcc60b6f', 'project_id': 'cfee7c4831f3404fa54fd6f2fcc60b6f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4500eab1-4cf3-48ba-a134-7c954a61269b', '8b512ce9-28cc-40fe-805c-39e6b3f8a67b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-48196765', 'ctest-vn4-22238909'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-48196765', 'ctest-policy1-94692739']], 'subnet_ipam': [{'subnet_cidr': '128.251.167.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '25b3:afbc:a9a8:8d5b:3935:b3d9::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-06-19 11:01:16,331 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-19 11:01:16,645 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-19 11:01:16,669 - DEBUG - Requesting: http://10.0.0.38:8082/domain/0820a337-8254-4943-9a5e-4f57cebca439 2026-06-19 11:01:16,682 - DEBUG - Requesting: http://10.0.0.38:8082/project/cfee7c48-31f3-404f-a54f-d6f2fcc60b6f 2026-06-19 11:01:16,761 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/dea4d8b5-f662-47d6-9117-4928fd89c918 2026-06-19 11:01:16,772 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/dea4d8b5-f662-47d6-9117-4928fd89c918 2026-06-19 11:01:16,781 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b696854c-2216-4aec-8683-7c2dcf0c4248 2026-06-19 11:01:16,787 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b696854c-2216-4aec-8683-7c2dcf0c4248 2026-06-19 11:01:16,793 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/4e3a4acc-4f7e-480b-b9ba-548f06b108a6 2026-06-19 11:01:16,798 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-19 11:01:16,798 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/dea4d8b5-f662-47d6-9117-4928fd89c918 2026-06-19 11:01:16,807 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b696854c-2216-4aec-8683-7c2dcf0c4248 2026-06-19 11:01:16,819 - INFO - Verified VN network id 11 for VN dea4d8b5-f662-47d6-9117-4928fd89c918 2026-06-19 11:01:16,819 - INFO - Verifications in API Server for VN ctest-vn4-22238909 passed 2026-06-19 11:01:16,819 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/dea4d8b5-f662-47d6-9117-4928fd89c918 2026-06-19 11:01:16,827 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b696854c-2216-4aec-8683-7c2dcf0c4248 2026-06-19 11:01:16,833 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b696854c-2216-4aec-8683-7c2dcf0c4248 2026-06-19 11:01:16,838 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/4e3a4acc-4f7e-480b-b9ba-548f06b108a6 2026-06-19 11:01:16,848 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48196765:ctest-vn4-22238909', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-48196765', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16043186048634865622', 'uuid-lslong': '10454905500365080856'}, 'enable': 'true', 'created': '2026-06-19T11:01:15', 'last-modified': '2026-06-19T11:01:16', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.711980'} 2026-06-19 11:01:16,853 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-19 11:01:16,853 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-22238909 passed 2026-06-19 11:01:16,853 - DEBUG - ====Verifying policy data for ctest-vn4-22238909 in API_Server ====== 2026-06-19 11:01:16,853 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-19 11:01:16,859 - DEBUG - Requesting: http://10.0.0.38:8082/domain/0820a337-8254-4943-9a5e-4f57cebca439 2026-06-19 11:01:16,868 - DEBUG - Requesting: http://10.0.0.38:8082/project/cfee7c48-31f3-404f-a54f-d6f2fcc60b6f 2026-06-19 11:01:16,937 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/dea4d8b5-f662-47d6-9117-4928fd89c918 2026-06-19 11:01:16,945 - DEBUG - ==>Verifying data for policy with id: 704e5113-ca42-48eb-b8e4-133dee7035da, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-48196765', 'ctest-policy1-94692739'] 2026-06-19 11:01:16,945 - INFO - VN ctest-vn4-22238909 Policy verification: verify_vn_policy_in_api_server, status: True 2026-06-19 11:01:16,945 - DEBUG - Verifying the vn in opserver 2026-06-19 11:01:16,945 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48196765:ctest-vn4-22238909 virtual network link through opserver 10.0.0.38 2026-06-19 11:01:16,946 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-06-19 11:01:17,257 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-06-19 11:01:17,299 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48196765:ctest-vn4-22238909', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48196765:ctest-vn4-22238909?flat'} 2026-06-19 11:01:17,300 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48196765:ctest-vn4-22238909 is found in opserver 2026-06-19 11:01:17,307 - DEBUG - Do not have enough data to verify VN in agent 2026-06-19 11:01:17,311 - DEBUG - VRF ids for VN ctest-vn4-22238909: {} 2026-06-19 11:01:17,311 - DEBUG - ====Verifying data for ctest-policy1-94692739 in API_Server ====== 2026-06-19 11:01:17,311 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-19 11:01:17,316 - DEBUG - Requesting: http://10.0.0.38:8082/domain/0820a337-8254-4943-9a5e-4f57cebca439 2026-06-19 11:01:17,324 - DEBUG - Requesting: http://10.0.0.38:8082/project/cfee7c48-31f3-404f-a54f-d6f2fcc60b6f 2026-06-19 11:01:17,389 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/704e5113-ca42-48eb-b8e4-133dee7035da 2026-06-19 11:01:17,397 - INFO - Verified policy ctest-policy1-94692739 in API Server, Result: True 2026-06-19 11:01:17,397 - INFO - Done with setup and verification, moving onto test .. 2026-06-19 11:01:17,403 - INFO - Deleting VN ctest-vn4-22238909 2026-06-19 11:01:17,501 - DEBUG - Response for deleting network () 2026-06-19 11:01:17,501 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b696854c-2216-4aec-8683-7c2dcf0c4248 2026-06-19 11:01:17,505 - DEBUG - Response Code: 404 2026-06-19 11:01:17,505 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-19 11:01:17,510 - DEBUG - Requesting: http://10.0.0.38:8082/domain/0820a337-8254-4943-9a5e-4f57cebca439 2026-06-19 11:01:17,559 - DEBUG - Requesting: http://10.0.0.38:8082/project/cfee7c48-31f3-404f-a54f-d6f2fcc60b6f 2026-06-19 11:01:17,630 - INFO - Validated that VN ctest-vn4-22238909 is not found in API Server 2026-06-19 11:01:17,638 - DEBUG - VN ctest-vn4-22238909 is not present in Agent 10.0.0.38 2026-06-19 11:01:17,638 - INFO - Validated that VN ctest-vn4-22238909 is not in any agent 2026-06-19 11:01:17,649 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-22238909 info 2026-06-19 11:01:17,672 - INFO - Deleted policy ctest-policy1-94692739 2026-06-19 11:01:17,839 - DEBUG - policy ctest-policy1-94692739 is not found in API Server 2026-06-19 11:01:18,087 - DEBUG - No XMPP flaps were noticed during the test