2025-12-18 23:54:43,953 - INFO - Domain Default found not creating 2025-12-18 23:54:44,125 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-37821882 not found, creating it 2025-12-18 23:54:44,577 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-37821882, ID : 1012d461-385a-4170-8615-1dbaeb22685d 2025-12-18 23:54:46,093 - INFO - ================================================================================ 2025-12-18 23:54:46,093 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-18 23:54:46,353 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2025-12-18 23:54:46,353 - INFO - Initial checks done. Running the testcase now 2025-12-18 23:54:46,353 - INFO - 2025-12-18 23:54:46,353 - INFO - ================================================================================ 2025-12-18 23:54:46,353 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-18 23:54:46,354 - 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-12-18 23:54:46,641 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2025-12-18 23:54:46,641 - INFO - Initial checks done. Running the testcase now 2025-12-18 23:54:46,641 - INFO - 2025-12-18 23:54:47,009 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-37821882:ctest-vn4-97394735, 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-37821882:ctest-vn4-97394735, 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-37821882:ctest-vn4-97394735, 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-37821882:ctest-vn4-97394735, 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-12-18 23:54:47,520 - DEBUG - Response for create_network : {'network': {'id': 'f38453c5-3a6e-4a48-a39c-ff0ca8e2aa47', 'name': 'ctest-vn4-97394735', 'tenant_id': '1012d461385a417086151dbaeb22685d', 'project_id': '1012d461385a417086151dbaeb22685d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-37821882', 'ctest-vn4-97394735'], 'port_security_enabled': True, 'description': ''}} 2025-12-18 23:54:47,754 - DEBUG - Response for create_subnet : {'subnet': {'id': '8e58b90d-cbf1-406a-a2cf-2c54bdbb88c9', 'name': '', 'tenant_id': '1012d461385a417086151dbaeb22685d', 'network_id': 'f38453c5-3a6e-4a48-a39c-ff0ca8e2aa47', 'ip_version': 4, 'cidr': '200.216.213.192/26', 'allocation_pools': [{'start': '200.216.213.194', 'end': '200.216.213.254'}], 'gateway_ip': '200.216.213.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '200.216.213.194', 'tags': [], 'project_id': '1012d461385a417086151dbaeb22685d'}} 2025-12-18 23:54:47,941 - DEBUG - Response for create_subnet : {'subnet': {'id': '0d747206-8ca1-440d-b1a8-8bc5e0914596', 'name': '', 'tenant_id': '1012d461385a417086151dbaeb22685d', 'network_id': 'f38453c5-3a6e-4a48-a39c-ff0ca8e2aa47', 'ip_version': 6, 'cidr': '2829:1c92:f3fb:ae30:b7e6:9b04::/96', 'allocation_pools': [{'start': '2829:1c92:f3fb:ae30:b7e6:9b04:0:2', 'end': '2829:1c92:f3fb:ae30:b7e6:9b04:ffff:fffe'}], 'gateway_ip': '2829:1c92:f3fb:ae30:b7e6:9b04:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2829:1c92:f3fb:ae30:b7e6:9b04:0:2', 'tags': [], 'project_id': '1012d461385a417086151dbaeb22685d'}} 2025-12-18 23:54:47,962 - INFO - Created VN ctest-vn4-97394735 2025-12-18 23:54:48,012 - DEBUG - VN ctest-vn4-97394735 UUID is f38453c5-3a6e-4a48-a39c-ff0ca8e2aa47 2025-12-18 23:54:48,213 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f38453c5-3a6e-4a48-a39c-ff0ca8e2aa47', 'name': 'ctest-vn4-97394735', 'tenant_id': '1012d461385a417086151dbaeb22685d', 'project_id': '1012d461385a417086151dbaeb22685d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8e58b90d-cbf1-406a-a2cf-2c54bdbb88c9', '0d747206-8ca1-440d-b1a8-8bc5e0914596'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-37821882', 'ctest-vn4-97394735'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-37821882', 'ctest-policy1-77658014']], 'subnet_ipam': [{'subnet_cidr': '200.216.213.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2829:1c92:f3fb:ae30:b7e6:9b04::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-12-18 23:54:48,381 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-12-18 23:54:48,681 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-12-18 23:54:48,713 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2f68ffbe-389c-4045-94db-46135c9146bd 2025-12-18 23:54:48,727 - DEBUG - Requesting: http://10.0.0.38:8082/project/1012d461-385a-4170-8615-1dbaeb22685d 2025-12-18 23:54:48,799 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f38453c5-3a6e-4a48-a39c-ff0ca8e2aa47 2025-12-18 23:54:48,812 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f38453c5-3a6e-4a48-a39c-ff0ca8e2aa47 2025-12-18 23:54:48,825 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a1d37ab7-918d-44cc-823f-04f2d5e50c0c 2025-12-18 23:54:48,838 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a1d37ab7-918d-44cc-823f-04f2d5e50c0c 2025-12-18 23:54:48,849 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/80976d54-a135-4c2c-970e-67faaa9d3e11 2025-12-18 23:54:48,858 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-18 23:54:48,858 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f38453c5-3a6e-4a48-a39c-ff0ca8e2aa47 2025-12-18 23:54:48,867 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a1d37ab7-918d-44cc-823f-04f2d5e50c0c 2025-12-18 23:54:48,883 - INFO - Verified VN network id 11 for VN f38453c5-3a6e-4a48-a39c-ff0ca8e2aa47 2025-12-18 23:54:48,883 - INFO - Verifications in API Server for VN ctest-vn4-97394735 passed 2025-12-18 23:54:48,883 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f38453c5-3a6e-4a48-a39c-ff0ca8e2aa47 2025-12-18 23:54:48,893 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a1d37ab7-918d-44cc-823f-04f2d5e50c0c 2025-12-18 23:54:48,901 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a1d37ab7-918d-44cc-823f-04f2d5e50c0c 2025-12-18 23:54:48,907 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/80976d54-a135-4c2c-970e-67faaa9d3e11 2025-12-18 23:54:48,919 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-37821882:ctest-vn4-97394735', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-37821882', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17547242154696264264', 'uuid-lslong': '11789578354387233351'}, 'enable': 'true', 'created': '2025-12-18T23:54:47', 'last-modified': '2025-12-18T23:54:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.736107'} 2025-12-18 23:54:48,926 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-18 23:54:48,926 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-97394735 passed 2025-12-18 23:54:48,927 - DEBUG - ====Verifying policy data for ctest-vn4-97394735 in API_Server ====== 2025-12-18 23:54:48,927 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-12-18 23:54:48,933 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2f68ffbe-389c-4045-94db-46135c9146bd 2025-12-18 23:54:48,944 - DEBUG - Requesting: http://10.0.0.38:8082/project/1012d461-385a-4170-8615-1dbaeb22685d 2025-12-18 23:54:49,018 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f38453c5-3a6e-4a48-a39c-ff0ca8e2aa47 2025-12-18 23:54:49,030 - DEBUG - ==>Verifying data for policy with id: b55b0983-93b5-4c6c-8bf2-bc2bffeb2a0e, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-37821882', 'ctest-policy1-77658014'] 2025-12-18 23:54:49,030 - INFO - VN ctest-vn4-97394735 Policy verification: verify_vn_policy_in_api_server, status: True 2025-12-18 23:54:49,030 - DEBUG - Verifying the vn in opserver 2025-12-18 23:54:49,030 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-37821882:ctest-vn4-97394735 virtual network link through opserver 10.0.0.38 2025-12-18 23:54:49,030 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-12-18 23:54:49,345 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-12-18 23:54:49,714 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-37821882:ctest-vn4-97394735', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-37821882:ctest-vn4-97394735?flat'} 2025-12-18 23:54:49,714 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-37821882:ctest-vn4-97394735 is found in opserver 2025-12-18 23:54:49,724 - DEBUG - Do not have enough data to verify VN in agent 2025-12-18 23:54:49,729 - DEBUG - VRF ids for VN ctest-vn4-97394735: {} 2025-12-18 23:54:49,729 - DEBUG - ====Verifying data for ctest-policy1-77658014 in API_Server ====== 2025-12-18 23:54:49,730 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-12-18 23:54:49,735 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2f68ffbe-389c-4045-94db-46135c9146bd 2025-12-18 23:54:49,745 - DEBUG - Requesting: http://10.0.0.38:8082/project/1012d461-385a-4170-8615-1dbaeb22685d 2025-12-18 23:54:49,837 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/b55b0983-93b5-4c6c-8bf2-bc2bffeb2a0e 2025-12-18 23:54:49,848 - INFO - Verified policy ctest-policy1-77658014 in API Server, Result: True 2025-12-18 23:54:49,848 - INFO - Done with setup and verification, moving onto test .. 2025-12-18 23:54:49,856 - INFO - Deleting VN ctest-vn4-97394735 2025-12-18 23:54:49,998 - DEBUG - Response for deleting network () 2025-12-18 23:54:49,999 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a1d37ab7-918d-44cc-823f-04f2d5e50c0c 2025-12-18 23:54:50,006 - DEBUG - Response Code: 404 2025-12-18 23:54:50,006 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-12-18 23:54:50,017 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2f68ffbe-389c-4045-94db-46135c9146bd 2025-12-18 23:54:50,073 - DEBUG - Requesting: http://10.0.0.38:8082/project/1012d461-385a-4170-8615-1dbaeb22685d 2025-12-18 23:54:50,145 - INFO - Validated that VN ctest-vn4-97394735 is not found in API Server 2025-12-18 23:54:50,156 - DEBUG - VN ctest-vn4-97394735 is not present in Agent 10.0.0.38 2025-12-18 23:54:50,157 - INFO - Validated that VN ctest-vn4-97394735 is not in any agent 2025-12-18 23:54:50,171 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-97394735 info 2025-12-18 23:54:50,197 - INFO - Deleted policy ctest-policy1-77658014 2025-12-18 23:54:50,356 - DEBUG - policy ctest-policy1-77658014 is not found in API Server 2025-12-18 23:54:50,624 - DEBUG - No XMPP flaps were noticed during the test