2025-10-19 23:41:35,180 - INFO - Domain Default found not creating 2025-10-19 23:41:35,325 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-50603963 not found, creating it 2025-10-19 23:41:35,775 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-50603963, ID : 0269d0a6-17ac-4eb0-a050-c1fa4fee4156 2025-10-19 23:41:37,191 - INFO - ================================================================================ 2025-10-19 23:41:37,191 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-19 23:41:37,443 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-10-19 23:41:37,443 - INFO - Initial checks done. Running the testcase now 2025-10-19 23:41:37,443 - INFO - 2025-10-19 23:41:37,443 - INFO - ================================================================================ 2025-10-19 23:41:37,444 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-19 23:41:37,444 - 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. 2025-10-19 23:41:37,740 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-10-19 23:41:37,740 - INFO - Initial checks done. Running the testcase now 2025-10-19 23:41:37,740 - INFO - 2025-10-19 23:41:38,093 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-50603963:ctest-vn4-00263242, 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-50603963:ctest-vn4-00263242, 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-50603963:ctest-vn4-00263242, 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-50603963:ctest-vn4-00263242, 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] 2025-10-19 23:41:38,577 - DEBUG - Response for create_network : {'network': {'id': '963f2637-88ed-4dee-9d2d-68e33d0c51b6', 'name': 'ctest-vn4-00263242', 'tenant_id': '0269d0a617ac4eb0a050c1fa4fee4156', 'project_id': '0269d0a617ac4eb0a050c1fa4fee4156', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-50603963', 'ctest-vn4-00263242'], 'port_security_enabled': True, 'description': ''}} 2025-10-19 23:41:38,799 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fa92945f-7163-489b-938b-054ef3456a27', 'name': '', 'tenant_id': '0269d0a617ac4eb0a050c1fa4fee4156', 'network_id': '963f2637-88ed-4dee-9d2d-68e33d0c51b6', 'ip_version': 4, 'cidr': '112.107.84.192/26', 'allocation_pools': [{'start': '112.107.84.194', 'end': '112.107.84.254'}], 'gateway_ip': '112.107.84.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '112.107.84.194', 'tags': [], 'project_id': '0269d0a617ac4eb0a050c1fa4fee4156'}} 2025-10-19 23:41:38,992 - DEBUG - Response for create_subnet : {'subnet': {'id': '972914a3-9d26-4dcc-8080-a6988ecf40ff', 'name': '', 'tenant_id': '0269d0a617ac4eb0a050c1fa4fee4156', 'network_id': '963f2637-88ed-4dee-9d2d-68e33d0c51b6', 'ip_version': 6, 'cidr': '241f:494e:848f:ca8e:7ccc:d1b3::/96', 'allocation_pools': [{'start': '241f:494e:848f:ca8e:7ccc:d1b3:0:2', 'end': '241f:494e:848f:ca8e:7ccc:d1b3:ffff:fffe'}], 'gateway_ip': '241f:494e:848f:ca8e:7ccc:d1b3:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '241f:494e:848f:ca8e:7ccc:d1b3:0:2', 'tags': [], 'project_id': '0269d0a617ac4eb0a050c1fa4fee4156'}} 2025-10-19 23:41:39,014 - INFO - Created VN ctest-vn4-00263242 2025-10-19 23:41:39,067 - DEBUG - VN ctest-vn4-00263242 UUID is 963f2637-88ed-4dee-9d2d-68e33d0c51b6 2025-10-19 23:41:39,265 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '963f2637-88ed-4dee-9d2d-68e33d0c51b6', 'name': 'ctest-vn4-00263242', 'tenant_id': '0269d0a617ac4eb0a050c1fa4fee4156', 'project_id': '0269d0a617ac4eb0a050c1fa4fee4156', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fa92945f-7163-489b-938b-054ef3456a27', '972914a3-9d26-4dcc-8080-a6988ecf40ff'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-50603963', 'ctest-vn4-00263242'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-50603963', 'ctest-policy1-16716823']], 'subnet_ipam': [{'subnet_cidr': '112.107.84.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '241f:494e:848f:ca8e:7ccc:d1b3::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-19 23:41:39,423 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-19 23:41:39,716 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-19 23:41:39,742 - DEBUG - Requesting: http://10.0.0.254:8082/domain/762e8b79-2edf-4013-b74b-adcebb2eac2f 2025-10-19 23:41:39,753 - DEBUG - Requesting: http://10.0.0.254:8082/project/0269d0a6-17ac-4eb0-a050-c1fa4fee4156 2025-10-19 23:41:39,821 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/963f2637-88ed-4dee-9d2d-68e33d0c51b6 2025-10-19 23:41:39,833 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/963f2637-88ed-4dee-9d2d-68e33d0c51b6 2025-10-19 23:41:39,841 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f66a14f3-4452-440e-b272-5f4abcb87dbb 2025-10-19 23:41:39,847 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f66a14f3-4452-440e-b272-5f4abcb87dbb 2025-10-19 23:41:39,852 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/17f66b28-3f89-4ce6-be9b-95d29bd11e82 2025-10-19 23:41:39,857 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-19 23:41:39,857 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/963f2637-88ed-4dee-9d2d-68e33d0c51b6 2025-10-19 23:41:39,866 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f66a14f3-4452-440e-b272-5f4abcb87dbb 2025-10-19 23:41:39,879 - INFO - Verified VN network id 12 for VN 963f2637-88ed-4dee-9d2d-68e33d0c51b6 2025-10-19 23:41:39,879 - INFO - Verifications in API Server for VN ctest-vn4-00263242 passed 2025-10-19 23:41:39,879 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/963f2637-88ed-4dee-9d2d-68e33d0c51b6 2025-10-19 23:41:39,887 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f66a14f3-4452-440e-b272-5f4abcb87dbb 2025-10-19 23:41:39,894 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f66a14f3-4452-440e-b272-5f4abcb87dbb 2025-10-19 23:41:39,900 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/17f66b28-3f89-4ce6-be9b-95d29bd11e82 2025-10-19 23:41:39,911 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-50603963:ctest-vn4-00263242', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-50603963', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10826414049184271854', 'uuid-lslong': '11325823963097747894'}, 'enable': 'true', 'created': '2025-10-19T23:41:38', 'last-modified': '2025-10-19T23:41:39', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.680369'} 2025-10-19 23:41:39,916 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-19 23:41:39,918 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-00263242 passed 2025-10-19 23:41:39,918 - DEBUG - ====Verifying policy data for ctest-vn4-00263242 in API_Server ====== 2025-10-19 23:41:39,918 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-19 23:41:39,924 - DEBUG - Requesting: http://10.0.0.254:8082/domain/762e8b79-2edf-4013-b74b-adcebb2eac2f 2025-10-19 23:41:39,935 - DEBUG - Requesting: http://10.0.0.254:8082/project/0269d0a6-17ac-4eb0-a050-c1fa4fee4156 2025-10-19 23:41:40,003 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/963f2637-88ed-4dee-9d2d-68e33d0c51b6 2025-10-19 23:41:40,011 - DEBUG - ==>Verifying data for policy with id: 92a45248-2e31-40bf-a6fa-9bc36876cc94, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-50603963', 'ctest-policy1-16716823'] 2025-10-19 23:41:40,011 - INFO - VN ctest-vn4-00263242 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-19 23:41:40,011 - DEBUG - Verifying the vn in opserver 2025-10-19 23:41:40,011 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-50603963:ctest-vn4-00263242 virtual network link through opserver 10.0.0.254 2025-10-19 23:41:40,011 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-10-19 23:41:40,308 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-10-19 23:41:40,357 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-50603963:ctest-vn4-00263242', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-50603963:ctest-vn4-00263242?flat'} 2025-10-19 23:41:40,357 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-50603963:ctest-vn4-00263242 is found in opserver 2025-10-19 23:41:40,366 - DEBUG - Do not have enough data to verify VN in agent 2025-10-19 23:41:40,370 - DEBUG - VRF ids for VN ctest-vn4-00263242: {} 2025-10-19 23:41:40,370 - DEBUG - ====Verifying data for ctest-policy1-16716823 in API_Server ====== 2025-10-19 23:41:40,370 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-19 23:41:40,375 - DEBUG - Requesting: http://10.0.0.254:8082/domain/762e8b79-2edf-4013-b74b-adcebb2eac2f 2025-10-19 23:41:40,384 - DEBUG - Requesting: http://10.0.0.254:8082/project/0269d0a6-17ac-4eb0-a050-c1fa4fee4156 2025-10-19 23:41:40,451 - DEBUG - Requesting: http://10.0.0.254:8082/network-policy/92a45248-2e31-40bf-a6fa-9bc36876cc94 2025-10-19 23:41:40,460 - INFO - Verified policy ctest-policy1-16716823 in API Server, Result: True 2025-10-19 23:41:40,460 - INFO - Done with setup and verification, moving onto test .. 2025-10-19 23:41:40,467 - INFO - Deleting VN ctest-vn4-00263242 2025-10-19 23:41:40,574 - DEBUG - Response for deleting network () 2025-10-19 23:41:40,574 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f66a14f3-4452-440e-b272-5f4abcb87dbb 2025-10-19 23:41:40,578 - DEBUG - Response Code: 404 2025-10-19 23:41:40,578 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-19 23:41:40,635 - DEBUG - Requesting: http://10.0.0.254:8082/domain/762e8b79-2edf-4013-b74b-adcebb2eac2f 2025-10-19 23:41:40,644 - DEBUG - Requesting: http://10.0.0.254:8082/project/0269d0a6-17ac-4eb0-a050-c1fa4fee4156 2025-10-19 23:41:40,713 - INFO - Validated that VN ctest-vn4-00263242 is not found in API Server 2025-10-19 23:41:40,722 - DEBUG - VN ctest-vn4-00263242 is not present in Agent 10.0.0.254 2025-10-19 23:41:40,722 - INFO - Validated that VN ctest-vn4-00263242 is not in any agent 2025-10-19 23:41:40,735 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-00263242 info 2025-10-19 23:41:40,758 - INFO - Deleted policy ctest-policy1-16716823 2025-10-19 23:41:40,918 - DEBUG - policy ctest-policy1-16716823 is not found in API Server 2025-10-19 23:41:41,187 - DEBUG - No XMPP flaps were noticed during the test