2025-10-20 14:53:26,895 - INFO - Domain Default found not creating 2025-10-20 14:53:27,045 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-55248625 not found, creating it 2025-10-20 14:53:27,544 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-55248625, ID : 402e3151-b81e-4bac-968a-ef41783cda9e 2025-10-20 14:53:28,904 - INFO - ================================================================================ 2025-10-20 14:53:28,904 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-20 14:53:29,160 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-10-20 14:53:29,160 - INFO - Initial checks done. Running the testcase now 2025-10-20 14:53:29,160 - INFO - 2025-10-20 14:53:29,160 - INFO - ================================================================================ 2025-10-20 14:53:29,160 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-20 14:53:29,160 - 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-20 14:53:29,447 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-10-20 14:53:29,447 - INFO - Initial checks done. Running the testcase now 2025-10-20 14:53:29,447 - INFO - 2025-10-20 14:53:29,795 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-55248625:ctest-vn4-82102613, 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-55248625:ctest-vn4-82102613, 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-55248625:ctest-vn4-82102613, 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-55248625:ctest-vn4-82102613, 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-20 14:53:30,298 - DEBUG - Response for create_network : {'network': {'id': 'ab53ea65-3a30-4572-b532-f9a54e1d02ee', 'name': 'ctest-vn4-82102613', 'tenant_id': '402e3151b81e4bac968aef41783cda9e', 'project_id': '402e3151b81e4bac968aef41783cda9e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-55248625', 'ctest-vn4-82102613'], 'port_security_enabled': True, 'description': ''}} 2025-10-20 14:53:30,447 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a70cce12-dfcc-4874-9337-62d4ddcd5d99', 'name': '', 'tenant_id': '402e3151b81e4bac968aef41783cda9e', 'network_id': 'ab53ea65-3a30-4572-b532-f9a54e1d02ee', 'ip_version': 4, 'cidr': '108.35.194.128/26', 'allocation_pools': [{'start': '108.35.194.130', 'end': '108.35.194.190'}], 'gateway_ip': '108.35.194.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '108.35.194.130', 'tags': [], 'project_id': '402e3151b81e4bac968aef41783cda9e'}} 2025-10-20 14:53:30,618 - DEBUG - Response for create_subnet : {'subnet': {'id': '8ab315da-c88c-4b8a-a207-6417d7e8a8f3', 'name': '', 'tenant_id': '402e3151b81e4bac968aef41783cda9e', 'network_id': 'ab53ea65-3a30-4572-b532-f9a54e1d02ee', 'ip_version': 6, 'cidr': '2f7e:63a:3a73:4539:89ae:b0ea::/96', 'allocation_pools': [{'start': '2f7e:63a:3a73:4539:89ae:b0ea:0:2', 'end': '2f7e:63a:3a73:4539:89ae:b0ea:ffff:fffe'}], 'gateway_ip': '2f7e:63a:3a73:4539:89ae:b0ea:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2f7e:63a:3a73:4539:89ae:b0ea:0:2', 'tags': [], 'project_id': '402e3151b81e4bac968aef41783cda9e'}} 2025-10-20 14:53:30,637 - INFO - Created VN ctest-vn4-82102613 2025-10-20 14:53:30,686 - DEBUG - VN ctest-vn4-82102613 UUID is ab53ea65-3a30-4572-b532-f9a54e1d02ee 2025-10-20 14:53:30,890 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ab53ea65-3a30-4572-b532-f9a54e1d02ee', 'name': 'ctest-vn4-82102613', 'tenant_id': '402e3151b81e4bac968aef41783cda9e', 'project_id': '402e3151b81e4bac968aef41783cda9e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a70cce12-dfcc-4874-9337-62d4ddcd5d99', '8ab315da-c88c-4b8a-a207-6417d7e8a8f3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-55248625', 'ctest-vn4-82102613'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-55248625', 'ctest-policy1-71761591']], 'subnet_ipam': [{'subnet_cidr': '108.35.194.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2f7e:63a:3a73:4539:89ae:b0ea::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-20 14:53:31,050 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-20 14:53:31,340 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-20 14:53:31,366 - DEBUG - Requesting: http://10.0.0.254:8082/domain/ed4f1ab5-96a9-47d9-9b07-7780e570206b 2025-10-20 14:53:31,377 - DEBUG - Requesting: http://10.0.0.254:8082/project/402e3151-b81e-4bac-968a-ef41783cda9e 2025-10-20 14:53:31,454 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ab53ea65-3a30-4572-b532-f9a54e1d02ee 2025-10-20 14:53:31,465 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ab53ea65-3a30-4572-b532-f9a54e1d02ee 2025-10-20 14:53:31,474 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/94252057-70a4-4ae3-a6ce-c562a22030f0 2025-10-20 14:53:31,480 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/94252057-70a4-4ae3-a6ce-c562a22030f0 2025-10-20 14:53:31,487 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/dfa6748f-1e13-4165-b19b-68a9e8e9be7b 2025-10-20 14:53:31,492 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-20 14:53:31,492 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ab53ea65-3a30-4572-b532-f9a54e1d02ee 2025-10-20 14:53:31,501 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/94252057-70a4-4ae3-a6ce-c562a22030f0 2025-10-20 14:53:31,513 - INFO - Verified VN network id 12 for VN ab53ea65-3a30-4572-b532-f9a54e1d02ee 2025-10-20 14:53:31,513 - INFO - Verifications in API Server for VN ctest-vn4-82102613 passed 2025-10-20 14:53:31,513 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ab53ea65-3a30-4572-b532-f9a54e1d02ee 2025-10-20 14:53:31,521 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/94252057-70a4-4ae3-a6ce-c562a22030f0 2025-10-20 14:53:31,527 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/94252057-70a4-4ae3-a6ce-c562a22030f0 2025-10-20 14:53:31,532 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/dfa6748f-1e13-4165-b19b-68a9e8e9be7b 2025-10-20 14:53:31,542 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-55248625:ctest-vn4-82102613', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-55248625', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12345468724041500018', 'uuid-lslong': '13056772758075933422'}, 'enable': 'true', 'created': '2025-10-20T14:53:30', 'last-modified': '2025-10-20T14:53:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.681379'} 2025-10-20 14:53:31,548 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-20 14:53:31,548 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-82102613 passed 2025-10-20 14:53:31,548 - DEBUG - ====Verifying policy data for ctest-vn4-82102613 in API_Server ====== 2025-10-20 14:53:31,548 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-20 14:53:31,554 - DEBUG - Requesting: http://10.0.0.254:8082/domain/ed4f1ab5-96a9-47d9-9b07-7780e570206b 2025-10-20 14:53:31,564 - DEBUG - Requesting: http://10.0.0.254:8082/project/402e3151-b81e-4bac-968a-ef41783cda9e 2025-10-20 14:53:31,634 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ab53ea65-3a30-4572-b532-f9a54e1d02ee 2025-10-20 14:53:31,643 - DEBUG - ==>Verifying data for policy with id: 1c8ec3de-63c1-4bbd-a2ab-6225ff99af9a, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-55248625', 'ctest-policy1-71761591'] 2025-10-20 14:53:31,643 - INFO - VN ctest-vn4-82102613 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-20 14:53:31,643 - DEBUG - Verifying the vn in opserver 2025-10-20 14:53:31,643 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-55248625:ctest-vn4-82102613 virtual network link through opserver 10.0.0.254 2025-10-20 14:53:31,643 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-10-20 14:53:31,932 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-10-20 14:53:31,986 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-55248625:ctest-vn4-82102613', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-55248625:ctest-vn4-82102613?flat'} 2025-10-20 14:53:31,986 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-55248625:ctest-vn4-82102613 is found in opserver 2025-10-20 14:53:31,997 - DEBUG - Do not have enough data to verify VN in agent 2025-10-20 14:53:32,002 - DEBUG - VRF ids for VN ctest-vn4-82102613: {} 2025-10-20 14:53:32,002 - DEBUG - ====Verifying data for ctest-policy1-71761591 in API_Server ====== 2025-10-20 14:53:32,002 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-20 14:53:32,007 - DEBUG - Requesting: http://10.0.0.254:8082/domain/ed4f1ab5-96a9-47d9-9b07-7780e570206b 2025-10-20 14:53:32,019 - DEBUG - Requesting: http://10.0.0.254:8082/project/402e3151-b81e-4bac-968a-ef41783cda9e 2025-10-20 14:53:32,087 - DEBUG - Requesting: http://10.0.0.254:8082/network-policy/1c8ec3de-63c1-4bbd-a2ab-6225ff99af9a 2025-10-20 14:53:32,097 - INFO - Verified policy ctest-policy1-71761591 in API Server, Result: True 2025-10-20 14:53:32,097 - INFO - Done with setup and verification, moving onto test .. 2025-10-20 14:53:32,105 - INFO - Deleting VN ctest-vn4-82102613 2025-10-20 14:53:32,209 - DEBUG - Response for deleting network () 2025-10-20 14:53:32,209 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/94252057-70a4-4ae3-a6ce-c562a22030f0 2025-10-20 14:53:32,213 - DEBUG - Response Code: 404 2025-10-20 14:53:32,213 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-20 14:53:32,218 - DEBUG - Requesting: http://10.0.0.254:8082/domain/ed4f1ab5-96a9-47d9-9b07-7780e570206b 2025-10-20 14:53:32,275 - DEBUG - Requesting: http://10.0.0.254:8082/project/402e3151-b81e-4bac-968a-ef41783cda9e 2025-10-20 14:53:32,345 - INFO - Validated that VN ctest-vn4-82102613 is not found in API Server 2025-10-20 14:53:32,353 - DEBUG - VN ctest-vn4-82102613 is not present in Agent 10.0.0.254 2025-10-20 14:53:32,353 - INFO - Validated that VN ctest-vn4-82102613 is not in any agent 2025-10-20 14:53:32,367 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-82102613 info 2025-10-20 14:53:32,405 - INFO - Deleted policy ctest-policy1-71761591 2025-10-20 14:53:32,562 - DEBUG - policy ctest-policy1-71761591 is not found in API Server 2025-10-20 14:53:32,815 - DEBUG - No XMPP flaps were noticed during the test
2025-10-20 14:53:32,815 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:03]
2025-10-20 14:53:32,815 - INFO - -------------------------------------------------------------------------------- 2025-10-20 14:53:33,103 - DEBUG - No XMPP flaps were noticed during the test
2025-10-20 14:53:33,103 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2025-10-20 14:53:33,103 - INFO - -------------------------------------------------------------------------------- 2025-10-20 14:53:33,772 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-55248625, ID : 402e3151-b81e-4bac-968a-ef41783cda9e