2026-02-03 02:36:00,847 - INFO - Domain Default found not creating 2026-02-03 02:36:00,997 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-71038254 not found, creating it 2026-02-03 02:36:01,455 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-71038254, ID : e920c8c6-c33a-491c-9d73-477867979d22 2026-02-03 02:36:02,870 - INFO - ================================================================================ 2026-02-03 02:36:02,870 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-03 02:36:03,132 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.17': '0'}} with 2026-02-03 02:36:03,132 - INFO - Initial checks done. Running the testcase now 2026-02-03 02:36:03,132 - INFO - 2026-02-03 02:36:03,132 - INFO - ================================================================================ 2026-02-03 02:36:03,132 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-03 02:36:03,132 - 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-03 02:36:03,420 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.17': '0'}} with 2026-02-03 02:36:03,420 - INFO - Initial checks done. Running the testcase now 2026-02-03 02:36:03,420 - INFO - 2026-02-03 02:36:03,769 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71038254:ctest-vn4-59268266, 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-71038254:ctest-vn4-59268266, 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-71038254:ctest-vn4-59268266, 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-71038254:ctest-vn4-59268266, 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-03 02:36:04,295 - DEBUG - Response for create_network : {'network': {'id': 'b6a63cae-a8b0-4fc5-822f-d2bdf011d6a4', 'name': 'ctest-vn4-59268266', 'tenant_id': 'e920c8c6c33a491c9d73477867979d22', 'project_id': 'e920c8c6c33a491c9d73477867979d22', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-71038254', 'ctest-vn4-59268266'], 'port_security_enabled': True, 'description': ''}} 2026-02-03 02:36:04,473 - DEBUG - Response for create_subnet : {'subnet': {'id': '1f38871e-c1e7-4138-adcf-fdb1f028a806', 'name': '', 'tenant_id': 'e920c8c6c33a491c9d73477867979d22', 'network_id': 'b6a63cae-a8b0-4fc5-822f-d2bdf011d6a4', 'ip_version': 4, 'cidr': '45.47.146.0/26', 'allocation_pools': [{'start': '45.47.146.2', 'end': '45.47.146.62'}], 'gateway_ip': '45.47.146.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '45.47.146.2', 'tags': [], 'project_id': 'e920c8c6c33a491c9d73477867979d22'}} 2026-02-03 02:36:04,627 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fc9525be-0145-4731-9da4-2bf53f27fbb3', 'name': '', 'tenant_id': 'e920c8c6c33a491c9d73477867979d22', 'network_id': 'b6a63cae-a8b0-4fc5-822f-d2bdf011d6a4', 'ip_version': 6, 'cidr': '34c3:e99c:f73c:d206:53d9:db95::/96', 'allocation_pools': [{'start': '34c3:e99c:f73c:d206:53d9:db95:0:2', 'end': '34c3:e99c:f73c:d206:53d9:db95:ffff:fffe'}], 'gateway_ip': '34c3:e99c:f73c:d206:53d9:db95:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '34c3:e99c:f73c:d206:53d9:db95:0:2', 'tags': [], 'project_id': 'e920c8c6c33a491c9d73477867979d22'}} 2026-02-03 02:36:04,649 - INFO - Created VN ctest-vn4-59268266 2026-02-03 02:36:04,702 - DEBUG - VN ctest-vn4-59268266 UUID is b6a63cae-a8b0-4fc5-822f-d2bdf011d6a4 2026-02-03 02:36:04,893 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b6a63cae-a8b0-4fc5-822f-d2bdf011d6a4', 'name': 'ctest-vn4-59268266', 'tenant_id': 'e920c8c6c33a491c9d73477867979d22', 'project_id': 'e920c8c6c33a491c9d73477867979d22', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1f38871e-c1e7-4138-adcf-fdb1f028a806', 'fc9525be-0145-4731-9da4-2bf53f27fbb3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-71038254', 'ctest-vn4-59268266'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-71038254', 'ctest-policy1-40359325']], 'subnet_ipam': [{'subnet_cidr': '45.47.146.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '34c3:e99c:f73c:d206:53d9:db95::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-03 02:36:05,050 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2026-02-03 02:36:05,349 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2026-02-03 02:36:05,376 - DEBUG - Requesting: http://10.0.0.130:8082/domain/88461fb7-e930-4422-93a7-fa47163453e5 2026-02-03 02:36:05,386 - DEBUG - Requesting: http://10.0.0.130:8082/project/e920c8c6-c33a-491c-9d73-477867979d22 2026-02-03 02:36:05,461 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/b6a63cae-a8b0-4fc5-822f-d2bdf011d6a4 2026-02-03 02:36:05,472 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/b6a63cae-a8b0-4fc5-822f-d2bdf011d6a4 2026-02-03 02:36:05,481 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/f9dbfafb-341f-44a5-829f-e8da6c341106 2026-02-03 02:36:05,487 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/f9dbfafb-341f-44a5-829f-e8da6c341106 2026-02-03 02:36:05,495 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/994e19d3-ffdc-4ce8-ae20-f4dff9b5e929 2026-02-03 02:36:05,501 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-03 02:36:05,501 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/b6a63cae-a8b0-4fc5-822f-d2bdf011d6a4 2026-02-03 02:36:05,511 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/f9dbfafb-341f-44a5-829f-e8da6c341106 2026-02-03 02:36:05,525 - INFO - Verified VN network id 11 for VN b6a63cae-a8b0-4fc5-822f-d2bdf011d6a4 2026-02-03 02:36:05,525 - INFO - Verifications in API Server for VN ctest-vn4-59268266 passed 2026-02-03 02:36:05,525 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/b6a63cae-a8b0-4fc5-822f-d2bdf011d6a4 2026-02-03 02:36:05,534 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/f9dbfafb-341f-44a5-829f-e8da6c341106 2026-02-03 02:36:05,541 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/f9dbfafb-341f-44a5-829f-e8da6c341106 2026-02-03 02:36:05,548 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/994e19d3-ffdc-4ce8-ae20-f4dff9b5e929 2026-02-03 02:36:05,559 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71038254:ctest-vn4-59268266', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-71038254', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13161273681888956357', 'uuid-lslong': '9380948262054385316'}, 'enable': 'true', 'created': '2026-02-03T02:36:04', 'last-modified': '2026-02-03T02:36:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.689934'} 2026-02-03 02:36:05,565 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-03 02:36:05,565 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-59268266 passed 2026-02-03 02:36:05,565 - DEBUG - ====Verifying policy data for ctest-vn4-59268266 in API_Server ====== 2026-02-03 02:36:05,565 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2026-02-03 02:36:05,570 - DEBUG - Requesting: http://10.0.0.130:8082/domain/88461fb7-e930-4422-93a7-fa47163453e5 2026-02-03 02:36:05,580 - DEBUG - Requesting: http://10.0.0.130:8082/project/e920c8c6-c33a-491c-9d73-477867979d22 2026-02-03 02:36:05,648 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/b6a63cae-a8b0-4fc5-822f-d2bdf011d6a4 2026-02-03 02:36:05,658 - DEBUG - ==>Verifying data for policy with id: 66e81238-4537-4e4b-a6ca-13b52b284ae3, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-71038254', 'ctest-policy1-40359325'] 2026-02-03 02:36:05,658 - INFO - VN ctest-vn4-59268266 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-03 02:36:05,658 - DEBUG - Verifying the vn in opserver 2026-02-03 02:36:05,658 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71038254:ctest-vn4-59268266 virtual network link through opserver 10.0.0.130 2026-02-03 02:36:05,658 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks 2026-02-03 02:36:05,959 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks 2026-02-03 02:36:06,016 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71038254:ctest-vn4-59268266', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71038254:ctest-vn4-59268266?flat'} 2026-02-03 02:36:06,016 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71038254:ctest-vn4-59268266 is found in opserver 2026-02-03 02:36:06,025 - DEBUG - Do not have enough data to verify VN in agent 2026-02-03 02:36:06,030 - DEBUG - VRF ids for VN ctest-vn4-59268266: {} 2026-02-03 02:36:06,030 - DEBUG - ====Verifying data for ctest-policy1-40359325 in API_Server ====== 2026-02-03 02:36:06,030 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2026-02-03 02:36:06,035 - DEBUG - Requesting: http://10.0.0.130:8082/domain/88461fb7-e930-4422-93a7-fa47163453e5 2026-02-03 02:36:06,044 - DEBUG - Requesting: http://10.0.0.130:8082/project/e920c8c6-c33a-491c-9d73-477867979d22 2026-02-03 02:36:06,111 - DEBUG - Requesting: http://10.0.0.130:8082/network-policy/66e81238-4537-4e4b-a6ca-13b52b284ae3 2026-02-03 02:36:06,119 - INFO - Verified policy ctest-policy1-40359325 in API Server, Result: True 2026-02-03 02:36:06,119 - INFO - Done with setup and verification, moving onto test .. 2026-02-03 02:36:06,126 - INFO - Deleting VN ctest-vn4-59268266 2026-02-03 02:36:06,242 - DEBUG - Response for deleting network () 2026-02-03 02:36:06,242 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/f9dbfafb-341f-44a5-829f-e8da6c341106 2026-02-03 02:36:06,248 - DEBUG - Response Code: 404 2026-02-03 02:36:06,248 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2026-02-03 02:36:06,253 - DEBUG - Requesting: http://10.0.0.130:8082/domain/88461fb7-e930-4422-93a7-fa47163453e5 2026-02-03 02:36:06,307 - DEBUG - Requesting: http://10.0.0.130:8082/project/e920c8c6-c33a-491c-9d73-477867979d22 2026-02-03 02:36:06,374 - INFO - Validated that VN ctest-vn4-59268266 is not found in API Server 2026-02-03 02:36:06,382 - DEBUG - VN ctest-vn4-59268266 is not present in Agent 10.0.0.130 2026-02-03 02:36:06,383 - INFO - Validated that VN ctest-vn4-59268266 is not in any agent 2026-02-03 02:36:06,395 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-59268266 info 2026-02-03 02:36:06,421 - INFO - Deleted policy ctest-policy1-40359325 2026-02-03 02:36:06,586 - DEBUG - policy ctest-policy1-40359325 is not found in API Server 2026-02-03 02:36:06,852 - DEBUG - No XMPP flaps were noticed during the test 2026-02-03 02:36:06,852 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:03] 2026-02-03 02:36:06,852 - INFO - -------------------------------------------------------------------------------- 2026-02-03 02:36:07,153 - DEBUG - No XMPP flaps were noticed during the test 2026-02-03 02:36:07,153 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-02-03 02:36:07,154 - INFO - -------------------------------------------------------------------------------- 2026-02-03 02:36:07,819 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-71038254, ID : e920c8c6-c33a-491c-9d73-477867979d22