2025-10-13 01:52:40,698 - INFO - Reading existing Domain with UUID 537505e7-1547-4002-bf39-a6f4fbcc30df 2025-10-13 01:52:40,708 - INFO - Using existing domain ['admin_domain'](537505e7-1547-4002-bf39-a6f4fbcc30df) 2025-10-13 01:52:40,908 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-19718268 not found, creating it 2025-10-13 01:52:41,441 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-19718268, ID : c9548f38-448d-49ae-a9d3-dde8b65cb714 2025-10-13 01:52:43,180 - INFO - ================================================================================ 2025-10-13 01:52:43,180 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-13 01:52:43,577 - DEBUG - Nothing to compare xmpp stats {'10.0.0.129': {'10.0.0.129': '0'}} with 2025-10-13 01:52:43,577 - INFO - Initial checks done. Running the testcase now 2025-10-13 01:52:43,577 - INFO - 2025-10-13 01:52:43,577 - INFO - ================================================================================ 2025-10-13 01:52:43,577 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-13 01:52:43,577 - 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-13 01:52:43,968 - DEBUG - Nothing to compare xmpp stats {'10.0.0.129': {'10.0.0.129': '0'}} with 2025-10-13 01:52:43,968 - INFO - Initial checks done. Running the testcase now 2025-10-13 01:52:43,969 - INFO - 2025-10-13 01:52:44,364 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-19718268:ctest-vn4-26080794, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-19718268:ctest-vn4-26080794, 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 = admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-19718268:ctest-vn4-26080794, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-19718268:ctest-vn4-26080794, 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-13 01:52:45,112 - DEBUG - Response for create_network : {'network': {'id': 'e2685abe-4998-4145-9213-f6e54a17018b', 'name': 'ctest-vn4-26080794', 'tenant_id': 'c9548f38448d49aea9d3dde8b65cb714', 'project_id': 'c9548f38448d49aea9d3dde8b65cb714', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-19718268', 'ctest-vn4-26080794'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2025-10-13 01:52:45,345 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e4dcaec9-ddbe-4eac-851a-9ab2c89864f6', 'name': '', 'tenant_id': 'c9548f38448d49aea9d3dde8b65cb714', 'network_id': 'e2685abe-4998-4145-9213-f6e54a17018b', 'ip_version': 4, 'cidr': '52.202.188.0/26', 'allocation_pools': [{'start': '52.202.188.2', 'end': '52.202.188.62'}], 'gateway_ip': '52.202.188.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-10-13T01:52:45.242107', 'updated_at': '2025-10-13T01:52:45.242107', 'dns_server_address': '52.202.188.2', 'tags': [], 'project_id': 'c9548f38448d49aea9d3dde8b65cb714'}} 2025-10-13 01:52:45,588 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd2bab25f-4feb-4fab-9702-364d64c59882', 'name': '', 'tenant_id': 'c9548f38448d49aea9d3dde8b65cb714', 'network_id': 'e2685abe-4998-4145-9213-f6e54a17018b', 'ip_version': 6, 'cidr': '2ac9:6ba2:7050:d34a:793e:819d::/96', 'allocation_pools': [{'start': '2ac9:6ba2:7050:d34a:793e:819d:0:2', 'end': '2ac9:6ba2:7050:d34a:793e:819d:ffff:fffe'}], 'gateway_ip': '2ac9:6ba2:7050:d34a:793e:819d:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-10-13T01:52:45.479912', 'updated_at': '2025-10-13T01:52:45.479912', 'dns_server_address': '2ac9:6ba2:7050:d34a:793e:819d:0:2', 'tags': [], 'project_id': 'c9548f38448d49aea9d3dde8b65cb714'}} 2025-10-13 01:52:45,653 - INFO - Created VN ctest-vn4-26080794 2025-10-13 01:52:45,711 - DEBUG - VN ctest-vn4-26080794 UUID is e2685abe-4998-4145-9213-f6e54a17018b 2025-10-13 01:52:46,160 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e2685abe-4998-4145-9213-f6e54a17018b', 'name': 'ctest-vn4-26080794', 'tenant_id': 'c9548f38448d49aea9d3dde8b65cb714', 'project_id': 'c9548f38448d49aea9d3dde8b65cb714', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e4dcaec9-ddbe-4eac-851a-9ab2c89864f6', 'd2bab25f-4feb-4fab-9702-364d64c59882'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-19718268', 'ctest-vn4-26080794'], 'policys': [['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-19718268', 'ctest-policy1-17762477']], 'subnet_ipam': [{'subnet_cidr': '52.202.188.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2ac9:6ba2:7050:d34a:793e:819d::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2025-10-13T01:52:45.030100', 'updated_at': '2025-10-13T01:52:45.496512'}} 2025-10-13 01:52:46,339 - DEBUG - Requesting: https://10.0.0.129:8082/domains 2025-10-13 01:52:46,684 - DEBUG - Requesting: https://10.0.0.129:8082/domains 2025-10-13 01:52:46,768 - DEBUG - Requesting: https://10.0.0.129:8082/domain/537505e7-1547-4002-bf39-a6f4fbcc30df 2025-10-13 01:52:46,824 - DEBUG - Requesting: https://10.0.0.129:8082/project/c9548f38-448d-49ae-a9d3-dde8b65cb714 2025-10-13 01:52:46,901 - DEBUG - Requesting: https://10.0.0.129:8082/virtual-network/e2685abe-4998-4145-9213-f6e54a17018b 2025-10-13 01:52:46,963 - DEBUG - Requesting: https://10.0.0.129:8082/virtual-network/e2685abe-4998-4145-9213-f6e54a17018b 2025-10-13 01:52:47,023 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/80a0bd74-1dfa-44b6-a2cd-1adf25249399 2025-10-13 01:52:47,077 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/80a0bd74-1dfa-44b6-a2cd-1adf25249399 2025-10-13 01:52:47,132 - DEBUG - Requesting: https://10.0.0.129:8082/route-target/d2237510-a48b-4011-aaf9-05711eb75a99 2025-10-13 01:52:47,184 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-13 01:52:47,184 - DEBUG - Requesting: https://10.0.0.129:8082/virtual-network/e2685abe-4998-4145-9213-f6e54a17018b 2025-10-13 01:52:47,241 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/80a0bd74-1dfa-44b6-a2cd-1adf25249399 2025-10-13 01:52:47,308 - INFO - Verified VN network id 11 for VN e2685abe-4998-4145-9213-f6e54a17018b 2025-10-13 01:52:47,308 - INFO - Verifications in API Server for VN ctest-vn4-26080794 passed 2025-10-13 01:52:47,308 - DEBUG - Requesting: https://10.0.0.129:8082/virtual-network/e2685abe-4998-4145-9213-f6e54a17018b 2025-10-13 01:52:47,365 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/80a0bd74-1dfa-44b6-a2cd-1adf25249399 2025-10-13 01:52:47,420 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/80a0bd74-1dfa-44b6-a2cd-1adf25249399 2025-10-13 01:52:47,472 - DEBUG - Requesting: https://10.0.0.129:8082/route-target/d2237510-a48b-4011-aaf9-05711eb75a99 2025-10-13 01:52:47,572 - DEBUG - Control-node 10.0.0.129 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-19718268:ctest-vn4-26080794', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-19718268', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16314389423474622789', 'uuid-lslong': '10526028218745946507'}, 'enable': 'true', 'created': '2025-10-13T01:52:45', 'last-modified': '2025-10-13T01:52:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.448919'} 2025-10-13 01:52:47,622 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-13 01:52:47,622 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-26080794 passed 2025-10-13 01:52:47,622 - DEBUG - ====Verifying policy data for ctest-vn4-26080794 in API_Server ====== 2025-10-13 01:52:47,622 - DEBUG - Requesting: https://10.0.0.129:8082/domains 2025-10-13 01:52:47,676 - DEBUG - Requesting: https://10.0.0.129:8082/domain/537505e7-1547-4002-bf39-a6f4fbcc30df 2025-10-13 01:52:47,732 - DEBUG - Requesting: https://10.0.0.129:8082/project/c9548f38-448d-49ae-a9d3-dde8b65cb714 2025-10-13 01:52:47,812 - DEBUG - Requesting: https://10.0.0.129:8082/virtual-network/e2685abe-4998-4145-9213-f6e54a17018b 2025-10-13 01:52:47,869 - DEBUG - ==>Verifying data for policy with id: edc43c60-67af-4cd9-a131-9bf3e536be41, fqn: ['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-19718268', 'ctest-policy1-17762477'] 2025-10-13 01:52:47,869 - INFO - VN ctest-vn4-26080794 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-13 01:52:47,870 - DEBUG - Verifying the vn in opserver 2025-10-13 01:52:47,870 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-19718268:ctest-vn4-26080794 virtual network link through opserver 10.0.0.129 2025-10-13 01:52:47,870 - DEBUG - Requesting: https://10.0.0.129:8081/analytics/uves/virtual-networks 2025-10-13 01:52:48,229 - DEBUG - Requesting: https://10.0.0.129:8081/analytics/uves/virtual-networks 2025-10-13 01:52:48,340 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-19718268:ctest-vn4-26080794', 'href': 'https://10.0.0.129:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-19718268:ctest-vn4-26080794?flat'} 2025-10-13 01:52:48,340 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-19718268:ctest-vn4-26080794 is found in opserver 2025-10-13 01:52:48,436 - DEBUG - Do not have enough data to verify VN in agent 2025-10-13 01:52:48,484 - DEBUG - VRF ids for VN ctest-vn4-26080794: {} 2025-10-13 01:52:48,484 - DEBUG - ====Verifying data for ctest-policy1-17762477 in API_Server ====== 2025-10-13 01:52:48,484 - DEBUG - Requesting: https://10.0.0.129:8082/domains 2025-10-13 01:52:48,536 - DEBUG - Requesting: https://10.0.0.129:8082/domain/537505e7-1547-4002-bf39-a6f4fbcc30df 2025-10-13 01:52:48,593 - DEBUG - Requesting: https://10.0.0.129:8082/project/c9548f38-448d-49ae-a9d3-dde8b65cb714 2025-10-13 01:52:48,668 - DEBUG - Requesting: https://10.0.0.129:8082/network-policy/edc43c60-67af-4cd9-a131-9bf3e536be41 2025-10-13 01:52:48,722 - INFO - Verified policy ctest-policy1-17762477 in API Server, Result: True 2025-10-13 01:52:48,722 - INFO - Done with setup and verification, moving onto test .. 2025-10-13 01:52:48,731 - INFO - Deleting VN ctest-vn4-26080794 2025-10-13 01:52:48,961 - DEBUG - Response for deleting network () 2025-10-13 01:52:48,961 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/80a0bd74-1dfa-44b6-a2cd-1adf25249399 2025-10-13 01:52:49,019 - DEBUG - Response Code: 404 2025-10-13 01:52:49,020 - DEBUG - Requesting: https://10.0.0.129:8082/domains 2025-10-13 01:52:49,072 - DEBUG - Requesting: https://10.0.0.129:8082/domain/537505e7-1547-4002-bf39-a6f4fbcc30df 2025-10-13 01:52:49,128 - DEBUG - Requesting: https://10.0.0.129:8082/project/c9548f38-448d-49ae-a9d3-dde8b65cb714 2025-10-13 01:52:49,212 - INFO - Validated that VN ctest-vn4-26080794 is not found in API Server 2025-10-13 01:52:49,312 - DEBUG - VN ctest-vn4-26080794 is not present in Agent 10.0.0.129 2025-10-13 01:52:49,312 - INFO - Validated that VN ctest-vn4-26080794 is not in any agent 2025-10-13 01:52:49,468 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-26080794 info 2025-10-13 01:52:49,496 - INFO - Deleted policy ctest-policy1-17762477 2025-10-13 01:52:49,675 - DEBUG - policy ctest-policy1-17762477 is not found in API Server 2025-10-13 01:52:50,080 - DEBUG - No XMPP flaps were noticed during the test 2025-10-13 01:52:50,080 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:07] 2025-10-13 01:52:50,080 - INFO - -------------------------------------------------------------------------------- 2025-10-13 01:52:50,465 - DEBUG - No XMPP flaps were noticed during the test 2025-10-13 01:52:50,465 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:07] 2025-10-13 01:52:50,465 - INFO - -------------------------------------------------------------------------------- 2025-10-13 01:52:51,228 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-19718268, ID : c9548f38-448d-49ae-a9d3-dde8b65cb714