2026-06-15 02:01:24,559 - INFO - Domain Default found not creating 2026-06-15 02:01:24,699 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-14211461 not found, creating it 2026-06-15 02:01:25,125 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-14211461, ID : aaa79c4a-1483-462d-981a-dbca4f6a7f8d 2026-06-15 02:01:26,553 - INFO - ================================================================================ 2026-06-15 02:01:26,553 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-15 02:01:26,807 - DEBUG - Nothing to compare xmpp stats {'10.0.0.73': {'10.20.0.192': '0'}} with 2026-06-15 02:01:26,807 - INFO - Initial checks done. Running the testcase now 2026-06-15 02:01:26,807 - INFO - 2026-06-15 02:01:26,807 - INFO - ================================================================================ 2026-06-15 02:01:26,807 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-15 02:01:26,808 - 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-15 02:01:27,098 - DEBUG - Nothing to compare xmpp stats {'10.0.0.73': {'10.20.0.192': '0'}} with 2026-06-15 02:01:27,099 - INFO - Initial checks done. Running the testcase now 2026-06-15 02:01:27,099 - INFO - 2026-06-15 02:01:27,469 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-14211461:ctest-vn4-35910565, 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-14211461:ctest-vn4-35910565, 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-14211461:ctest-vn4-35910565, 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-14211461:ctest-vn4-35910565, 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-15 02:01:27,938 - DEBUG - Response for create_network : {'network': {'id': 'ad3be338-fd8e-46f9-b822-d220e0bf1242', 'name': 'ctest-vn4-35910565', 'tenant_id': 'aaa79c4a1483462d981adbca4f6a7f8d', 'project_id': 'aaa79c4a1483462d981adbca4f6a7f8d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-14211461', 'ctest-vn4-35910565'], 'port_security_enabled': True, 'description': ''}} 2026-06-15 02:01:28,068 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ab21c6d3-3321-4a30-8512-6bf9ba9e5f8b', 'name': '', 'tenant_id': 'aaa79c4a1483462d981adbca4f6a7f8d', 'network_id': 'ad3be338-fd8e-46f9-b822-d220e0bf1242', 'ip_version': 4, 'cidr': '50.121.29.192/26', 'allocation_pools': [{'start': '50.121.29.194', 'end': '50.121.29.254'}], 'gateway_ip': '50.121.29.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '50.121.29.194', 'tags': [], 'project_id': 'aaa79c4a1483462d981adbca4f6a7f8d'}} 2026-06-15 02:01:28,236 - DEBUG - Response for create_subnet : {'subnet': {'id': '6322d223-233c-440a-bc20-228c70e3424e', 'name': '', 'tenant_id': 'aaa79c4a1483462d981adbca4f6a7f8d', 'network_id': 'ad3be338-fd8e-46f9-b822-d220e0bf1242', 'ip_version': 6, 'cidr': '2e4f:ccc8:16c:9b1c:9cc9:6131::/96', 'allocation_pools': [{'start': '2e4f:ccc8:16c:9b1c:9cc9:6131:0:2', 'end': '2e4f:ccc8:16c:9b1c:9cc9:6131:ffff:fffe'}], 'gateway_ip': '2e4f:ccc8:16c:9b1c:9cc9:6131:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2e4f:ccc8:16c:9b1c:9cc9:6131:0:2', 'tags': [], 'project_id': 'aaa79c4a1483462d981adbca4f6a7f8d'}} 2026-06-15 02:01:28,252 - INFO - Created VN ctest-vn4-35910565 2026-06-15 02:01:28,303 - DEBUG - VN ctest-vn4-35910565 UUID is ad3be338-fd8e-46f9-b822-d220e0bf1242 2026-06-15 02:01:28,488 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ad3be338-fd8e-46f9-b822-d220e0bf1242', 'name': 'ctest-vn4-35910565', 'tenant_id': 'aaa79c4a1483462d981adbca4f6a7f8d', 'project_id': 'aaa79c4a1483462d981adbca4f6a7f8d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ab21c6d3-3321-4a30-8512-6bf9ba9e5f8b', '6322d223-233c-440a-bc20-228c70e3424e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-14211461', 'ctest-vn4-35910565'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-14211461', 'ctest-policy1-70356441']], 'subnet_ipam': [{'subnet_cidr': '50.121.29.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2e4f:ccc8:16c:9b1c:9cc9:6131::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-06-15 02:01:28,655 - DEBUG - Requesting: http://10.0.0.73:8082/domains 2026-06-15 02:01:28,974 - DEBUG - Requesting: http://10.0.0.73:8082/domains 2026-06-15 02:01:29,012 - DEBUG - Requesting: http://10.0.0.73:8082/domain/9ef4c734-fc46-4dd4-912b-0b27cb45e5b4 2026-06-15 02:01:29,026 - DEBUG - Requesting: http://10.0.0.73:8082/project/aaa79c4a-1483-462d-981a-dbca4f6a7f8d 2026-06-15 02:01:29,099 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/ad3be338-fd8e-46f9-b822-d220e0bf1242 2026-06-15 02:01:29,111 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/ad3be338-fd8e-46f9-b822-d220e0bf1242 2026-06-15 02:01:29,119 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/bfc27ff4-bd62-4ec2-b94e-9d6e41cea96c 2026-06-15 02:01:29,125 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/bfc27ff4-bd62-4ec2-b94e-9d6e41cea96c 2026-06-15 02:01:29,130 - DEBUG - Requesting: http://10.0.0.73:8082/route-target/00576055-a009-4c79-aa3e-9f60c0ceba71 2026-06-15 02:01:29,135 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-15 02:01:29,135 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/ad3be338-fd8e-46f9-b822-d220e0bf1242 2026-06-15 02:01:29,143 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/bfc27ff4-bd62-4ec2-b94e-9d6e41cea96c 2026-06-15 02:01:29,155 - INFO - Verified VN network id 11 for VN ad3be338-fd8e-46f9-b822-d220e0bf1242 2026-06-15 02:01:29,155 - INFO - Verifications in API Server for VN ctest-vn4-35910565 passed 2026-06-15 02:01:29,155 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/ad3be338-fd8e-46f9-b822-d220e0bf1242 2026-06-15 02:01:29,163 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/bfc27ff4-bd62-4ec2-b94e-9d6e41cea96c 2026-06-15 02:01:29,168 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/bfc27ff4-bd62-4ec2-b94e-9d6e41cea96c 2026-06-15 02:01:29,175 - DEBUG - Requesting: http://10.0.0.73:8082/route-target/00576055-a009-4c79-aa3e-9f60c0ceba71 2026-06-15 02:01:29,184 - DEBUG - Control-node 10.0.0.73 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-14211461:ctest-vn4-35910565', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-14211461', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12482820626099095289', 'uuid-lslong': '13268398490838307394'}, 'enable': 'true', 'created': '2026-06-15T02:01:27', 'last-modified': '2026-06-15T02:01:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.730563'} 2026-06-15 02:01:29,189 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-15 02:01:29,190 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-35910565 passed 2026-06-15 02:01:29,190 - DEBUG - ====Verifying policy data for ctest-vn4-35910565 in API_Server ====== 2026-06-15 02:01:29,190 - DEBUG - Requesting: http://10.0.0.73:8082/domains 2026-06-15 02:01:29,195 - DEBUG - Requesting: http://10.0.0.73:8082/domain/9ef4c734-fc46-4dd4-912b-0b27cb45e5b4 2026-06-15 02:01:29,204 - DEBUG - Requesting: http://10.0.0.73:8082/project/aaa79c4a-1483-462d-981a-dbca4f6a7f8d 2026-06-15 02:01:29,272 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/ad3be338-fd8e-46f9-b822-d220e0bf1242 2026-06-15 02:01:29,281 - DEBUG - ==>Verifying data for policy with id: 70947e00-c3f4-436d-a9e3-10dec7a3ff05, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-14211461', 'ctest-policy1-70356441'] 2026-06-15 02:01:29,281 - INFO - VN ctest-vn4-35910565 Policy verification: verify_vn_policy_in_api_server, status: True 2026-06-15 02:01:29,281 - DEBUG - Verifying the vn in opserver 2026-06-15 02:01:29,281 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-14211461:ctest-vn4-35910565 virtual network link through opserver 10.0.0.73 2026-06-15 02:01:29,281 - DEBUG - Requesting: http://10.0.0.73:8081/analytics/uves/virtual-networks 2026-06-15 02:01:29,595 - DEBUG - Requesting: http://10.0.0.73:8081/analytics/uves/virtual-networks 2026-06-15 02:01:29,655 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-14211461:ctest-vn4-35910565', 'href': 'http://10.0.0.73:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-14211461:ctest-vn4-35910565?flat'} 2026-06-15 02:01:29,655 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-14211461:ctest-vn4-35910565 is found in opserver 2026-06-15 02:01:29,665 - DEBUG - Do not have enough data to verify VN in agent 2026-06-15 02:01:29,671 - DEBUG - VRF ids for VN ctest-vn4-35910565: {} 2026-06-15 02:01:29,671 - DEBUG - ====Verifying data for ctest-policy1-70356441 in API_Server ====== 2026-06-15 02:01:29,671 - DEBUG - Requesting: http://10.0.0.73:8082/domains 2026-06-15 02:01:29,677 - DEBUG - Requesting: http://10.0.0.73:8082/domain/9ef4c734-fc46-4dd4-912b-0b27cb45e5b4 2026-06-15 02:01:29,688 - DEBUG - Requesting: http://10.0.0.73:8082/project/aaa79c4a-1483-462d-981a-dbca4f6a7f8d 2026-06-15 02:01:29,757 - DEBUG - Requesting: http://10.0.0.73:8082/network-policy/70947e00-c3f4-436d-a9e3-10dec7a3ff05 2026-06-15 02:01:29,765 - INFO - Verified policy ctest-policy1-70356441 in API Server, Result: True 2026-06-15 02:01:29,765 - INFO - Done with setup and verification, moving onto test .. 2026-06-15 02:01:29,772 - INFO - Deleting VN ctest-vn4-35910565 2026-06-15 02:01:29,881 - DEBUG - Response for deleting network () 2026-06-15 02:01:29,881 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/bfc27ff4-bd62-4ec2-b94e-9d6e41cea96c 2026-06-15 02:01:29,888 - DEBUG - Response Code: 404 2026-06-15 02:01:29,888 - DEBUG - Requesting: http://10.0.0.73:8082/domains 2026-06-15 02:01:29,894 - DEBUG - Requesting: http://10.0.0.73:8082/domain/9ef4c734-fc46-4dd4-912b-0b27cb45e5b4 2026-06-15 02:01:29,952 - DEBUG - Requesting: http://10.0.0.73:8082/project/aaa79c4a-1483-462d-981a-dbca4f6a7f8d 2026-06-15 02:01:30,024 - INFO - Validated that VN ctest-vn4-35910565 is not found in API Server 2026-06-15 02:01:30,034 - DEBUG - VN ctest-vn4-35910565 is not present in Agent 10.0.0.73 2026-06-15 02:01:30,034 - INFO - Validated that VN ctest-vn4-35910565 is not in any agent 2026-06-15 02:01:30,046 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-35910565 info 2026-06-15 02:01:30,068 - INFO - Deleted policy ctest-policy1-70356441 2026-06-15 02:01:30,231 - DEBUG - policy ctest-policy1-70356441 is not found in API Server 2026-06-15 02:01:30,484 - DEBUG - No XMPP flaps were noticed during the test
2026-06-15 02:01:30,484 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-06-15 02:01:30,484 - INFO - -------------------------------------------------------------------------------- 2026-06-15 02:01:30,775 - DEBUG - No XMPP flaps were noticed during the test
2026-06-15 02:01:30,775 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-06-15 02:01:30,776 - INFO - -------------------------------------------------------------------------------- 2026-06-15 02:01:31,453 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-14211461, ID : aaa79c4a-1483-462d-981a-dbca4f6a7f8d