2026-01-08 02:00:05,375 - INFO - Domain Default found not creating 2026-01-08 02:00:05,557 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-35562845 not found, creating it 2026-01-08 02:00:06,034 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-35562845, ID : bf88f1d3-23b4-4973-b87f-fb4bdcde59c6 2026-01-08 02:00:07,884 - INFO - ================================================================================ 2026-01-08 02:00:07,885 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-08 02:00:08,140 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.14': '0'}} with 2026-01-08 02:00:08,140 - INFO - Initial checks done. Running the testcase now 2026-01-08 02:00:08,140 - INFO - 2026-01-08 02:00:08,140 - INFO - ================================================================================ 2026-01-08 02:00:08,141 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-08 02:00:08,141 - 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-01-08 02:00:08,430 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.14': '0'}} with 2026-01-08 02:00:08,430 - INFO - Initial checks done. Running the testcase now 2026-01-08 02:00:08,430 - INFO - 2026-01-08 02:00:08,823 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35562845:ctest-vn4-29006763, 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-35562845:ctest-vn4-29006763, 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-35562845:ctest-vn4-29006763, 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-35562845:ctest-vn4-29006763, 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-01-08 02:00:09,357 - DEBUG - Response for create_network : {'network': {'id': '69566c59-65ce-4260-b660-cb629a34fd09', 'name': 'ctest-vn4-29006763', 'tenant_id': 'bf88f1d323b44973b87ffb4bdcde59c6', 'project_id': 'bf88f1d323b44973b87ffb4bdcde59c6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-35562845', 'ctest-vn4-29006763'], 'port_security_enabled': True, 'description': ''}} 2026-01-08 02:00:09,578 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a7d69062-c111-4440-b11e-90567378ffa1', 'name': '', 'tenant_id': 'bf88f1d323b44973b87ffb4bdcde59c6', 'network_id': '69566c59-65ce-4260-b660-cb629a34fd09', 'ip_version': 4, 'cidr': '151.214.136.128/26', 'allocation_pools': [{'start': '151.214.136.130', 'end': '151.214.136.190'}], 'gateway_ip': '151.214.136.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '151.214.136.130', 'tags': [], 'project_id': 'bf88f1d323b44973b87ffb4bdcde59c6'}} 2026-01-08 02:00:09,745 - DEBUG - Response for create_subnet : {'subnet': {'id': '744d9977-45f0-416a-b096-1c3b6c9d8cf4', 'name': '', 'tenant_id': 'bf88f1d323b44973b87ffb4bdcde59c6', 'network_id': '69566c59-65ce-4260-b660-cb629a34fd09', 'ip_version': 6, 'cidr': '3b0f:6ad6:8665:5716:c246:6d99::/96', 'allocation_pools': [{'start': '3b0f:6ad6:8665:5716:c246:6d99:0:2', 'end': '3b0f:6ad6:8665:5716:c246:6d99:ffff:fffe'}], 'gateway_ip': '3b0f:6ad6:8665:5716:c246:6d99:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3b0f:6ad6:8665:5716:c246:6d99:0:2', 'tags': [], 'project_id': 'bf88f1d323b44973b87ffb4bdcde59c6'}} 2026-01-08 02:00:09,766 - INFO - Created VN ctest-vn4-29006763 2026-01-08 02:00:09,819 - DEBUG - VN ctest-vn4-29006763 UUID is 69566c59-65ce-4260-b660-cb629a34fd09 2026-01-08 02:00:10,016 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '69566c59-65ce-4260-b660-cb629a34fd09', 'name': 'ctest-vn4-29006763', 'tenant_id': 'bf88f1d323b44973b87ffb4bdcde59c6', 'project_id': 'bf88f1d323b44973b87ffb4bdcde59c6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a7d69062-c111-4440-b11e-90567378ffa1', '744d9977-45f0-416a-b096-1c3b6c9d8cf4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-35562845', 'ctest-vn4-29006763'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-35562845', 'ctest-policy1-66777571']], 'subnet_ipam': [{'subnet_cidr': '151.214.136.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3b0f:6ad6:8665:5716:c246:6d99::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-08 02:00:10,175 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-01-08 02:00:10,469 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-01-08 02:00:10,505 - DEBUG - Requesting: http://10.0.0.141:8082/domain/ba8ec429-84d6-4ba4-87aa-0c6732a20d62 2026-01-08 02:00:10,528 - DEBUG - Requesting: http://10.0.0.141:8082/project/bf88f1d3-23b4-4973-b87f-fb4bdcde59c6 2026-01-08 02:00:10,598 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/69566c59-65ce-4260-b660-cb629a34fd09 2026-01-08 02:00:10,610 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/69566c59-65ce-4260-b660-cb629a34fd09 2026-01-08 02:00:10,619 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/530a6a98-05d6-4e1c-9021-304494430f91 2026-01-08 02:00:10,626 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/530a6a98-05d6-4e1c-9021-304494430f91 2026-01-08 02:00:10,633 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/5b19cdc9-b279-4d3d-831f-ebb9f81d3ab0 2026-01-08 02:00:10,638 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-08 02:00:10,638 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/69566c59-65ce-4260-b660-cb629a34fd09 2026-01-08 02:00:10,647 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/530a6a98-05d6-4e1c-9021-304494430f91 2026-01-08 02:00:10,658 - INFO - Verified VN network id 11 for VN 69566c59-65ce-4260-b660-cb629a34fd09 2026-01-08 02:00:10,659 - INFO - Verifications in API Server for VN ctest-vn4-29006763 passed 2026-01-08 02:00:10,659 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/69566c59-65ce-4260-b660-cb629a34fd09 2026-01-08 02:00:10,668 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/530a6a98-05d6-4e1c-9021-304494430f91 2026-01-08 02:00:10,674 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/530a6a98-05d6-4e1c-9021-304494430f91 2026-01-08 02:00:10,679 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/5b19cdc9-b279-4d3d-831f-ebb9f81d3ab0 2026-01-08 02:00:10,688 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35562845:ctest-vn4-29006763', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-35562845', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7590373353195455072', 'uuid-lslong': '13141727337021504777'}, 'enable': 'true', 'created': '2026-01-08T02:00:09', 'last-modified': '2026-01-08T02:00:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.700611'} 2026-01-08 02:00:10,693 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-08 02:00:10,694 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-29006763 passed 2026-01-08 02:00:10,694 - DEBUG - ====Verifying policy data for ctest-vn4-29006763 in API_Server ====== 2026-01-08 02:00:10,694 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-01-08 02:00:10,698 - DEBUG - Requesting: http://10.0.0.141:8082/domain/ba8ec429-84d6-4ba4-87aa-0c6732a20d62 2026-01-08 02:00:10,706 - DEBUG - Requesting: http://10.0.0.141:8082/project/bf88f1d3-23b4-4973-b87f-fb4bdcde59c6 2026-01-08 02:00:10,774 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/69566c59-65ce-4260-b660-cb629a34fd09 2026-01-08 02:00:10,782 - DEBUG - ==>Verifying data for policy with id: 67ee7a5f-57c8-4531-a9cd-9f493f85402b, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-35562845', 'ctest-policy1-66777571'] 2026-01-08 02:00:10,782 - INFO - VN ctest-vn4-29006763 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-08 02:00:10,782 - DEBUG - Verifying the vn in opserver 2026-01-08 02:00:10,782 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35562845:ctest-vn4-29006763 virtual network link through opserver 10.0.0.141 2026-01-08 02:00:10,783 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2026-01-08 02:00:11,080 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2026-01-08 02:00:11,139 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35562845:ctest-vn4-29006763', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35562845:ctest-vn4-29006763?flat'} 2026-01-08 02:00:11,139 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35562845:ctest-vn4-29006763 is found in opserver 2026-01-08 02:00:11,147 - DEBUG - Do not have enough data to verify VN in agent 2026-01-08 02:00:11,151 - DEBUG - VRF ids for VN ctest-vn4-29006763: {} 2026-01-08 02:00:11,151 - DEBUG - ====Verifying data for ctest-policy1-66777571 in API_Server ====== 2026-01-08 02:00:11,151 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-01-08 02:00:11,156 - DEBUG - Requesting: http://10.0.0.141:8082/domain/ba8ec429-84d6-4ba4-87aa-0c6732a20d62 2026-01-08 02:00:11,165 - DEBUG - Requesting: http://10.0.0.141:8082/project/bf88f1d3-23b4-4973-b87f-fb4bdcde59c6 2026-01-08 02:00:11,235 - DEBUG - Requesting: http://10.0.0.141:8082/network-policy/67ee7a5f-57c8-4531-a9cd-9f493f85402b 2026-01-08 02:00:11,244 - INFO - Verified policy ctest-policy1-66777571 in API Server, Result: True 2026-01-08 02:00:11,244 - INFO - Done with setup and verification, moving onto test .. 2026-01-08 02:00:11,250 - INFO - Deleting VN ctest-vn4-29006763 2026-01-08 02:00:11,349 - DEBUG - Response for deleting network () 2026-01-08 02:00:11,349 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/530a6a98-05d6-4e1c-9021-304494430f91 2026-01-08 02:00:11,353 - DEBUG - Response Code: 404 2026-01-08 02:00:11,354 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-01-08 02:00:11,359 - DEBUG - Requesting: http://10.0.0.141:8082/domain/ba8ec429-84d6-4ba4-87aa-0c6732a20d62 2026-01-08 02:00:11,416 - DEBUG - Requesting: http://10.0.0.141:8082/project/bf88f1d3-23b4-4973-b87f-fb4bdcde59c6 2026-01-08 02:00:11,488 - INFO - Validated that VN ctest-vn4-29006763 is not found in API Server 2026-01-08 02:00:11,496 - DEBUG - VN ctest-vn4-29006763 is not present in Agent 10.0.0.141 2026-01-08 02:00:11,496 - INFO - Validated that VN ctest-vn4-29006763 is not in any agent 2026-01-08 02:00:11,510 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-29006763 info 2026-01-08 02:00:11,533 - INFO - Deleted policy ctest-policy1-66777571 2026-01-08 02:00:11,695 - DEBUG - policy ctest-policy1-66777571 is not found in API Server 2026-01-08 02:00:11,947 - DEBUG - No XMPP flaps were noticed during the test