2025-11-13 02:07:33,835 - INFO - Domain Default found not creating 2025-11-13 02:07:33,981 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-64256409 not found, creating it 2025-11-13 02:07:34,441 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-64256409, ID : f8bd9bb9-ece9-4167-8239-3e7030f53022 2025-11-13 02:07:35,797 - INFO - ================================================================================ 2025-11-13 02:07:35,797 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-13 02:07:36,055 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with 2025-11-13 02:07:36,055 - INFO - Initial checks done. Running the testcase now 2025-11-13 02:07:36,055 - INFO - 2025-11-13 02:07:36,055 - INFO - ================================================================================ 2025-11-13 02:07:36,055 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-13 02:07:36,055 - 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-11-13 02:07:36,342 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with 2025-11-13 02:07:36,342 - INFO - Initial checks done. Running the testcase now 2025-11-13 02:07:36,342 - INFO - 2025-11-13 02:07:36,690 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-64256409:ctest-vn4-55576752, 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-64256409:ctest-vn4-55576752, 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-64256409:ctest-vn4-55576752, 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-64256409:ctest-vn4-55576752, 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-11-13 02:07:37,184 - DEBUG - Response for create_network : {'network': {'id': '223acd66-1886-4c06-867f-8217a628abc6', 'name': 'ctest-vn4-55576752', 'tenant_id': 'f8bd9bb9ece9416782393e7030f53022', 'project_id': 'f8bd9bb9ece9416782393e7030f53022', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-64256409', 'ctest-vn4-55576752'], 'port_security_enabled': True, 'description': ''}} 2025-11-13 02:07:37,370 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a9a79edb-7bf0-4df7-bde8-277ee8c4a9ad', 'name': '', 'tenant_id': 'f8bd9bb9ece9416782393e7030f53022', 'network_id': '223acd66-1886-4c06-867f-8217a628abc6', 'ip_version': 4, 'cidr': '213.184.34.0/26', 'allocation_pools': [{'start': '213.184.34.2', 'end': '213.184.34.62'}], 'gateway_ip': '213.184.34.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '213.184.34.2', 'tags': [], 'project_id': 'f8bd9bb9ece9416782393e7030f53022'}} 2025-11-13 02:07:37,551 - DEBUG - Response for create_subnet : {'subnet': {'id': '9bbf85ca-eec7-4f8f-8b3b-bea8cd947dc8', 'name': '', 'tenant_id': 'f8bd9bb9ece9416782393e7030f53022', 'network_id': '223acd66-1886-4c06-867f-8217a628abc6', 'ip_version': 6, 'cidr': '3b0e:fa2d:ef15:76ce:8deb:aff1::/96', 'allocation_pools': [{'start': '3b0e:fa2d:ef15:76ce:8deb:aff1:0:2', 'end': '3b0e:fa2d:ef15:76ce:8deb:aff1:ffff:fffe'}], 'gateway_ip': '3b0e:fa2d:ef15:76ce:8deb:aff1:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3b0e:fa2d:ef15:76ce:8deb:aff1:0:2', 'tags': [], 'project_id': 'f8bd9bb9ece9416782393e7030f53022'}} 2025-11-13 02:07:37,569 - INFO - Created VN ctest-vn4-55576752 2025-11-13 02:07:37,622 - DEBUG - VN ctest-vn4-55576752 UUID is 223acd66-1886-4c06-867f-8217a628abc6 2025-11-13 02:07:37,818 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '223acd66-1886-4c06-867f-8217a628abc6', 'name': 'ctest-vn4-55576752', 'tenant_id': 'f8bd9bb9ece9416782393e7030f53022', 'project_id': 'f8bd9bb9ece9416782393e7030f53022', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a9a79edb-7bf0-4df7-bde8-277ee8c4a9ad', '9bbf85ca-eec7-4f8f-8b3b-bea8cd947dc8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-64256409', 'ctest-vn4-55576752'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-64256409', 'ctest-policy1-78191192']], 'subnet_ipam': [{'subnet_cidr': '213.184.34.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3b0e:fa2d:ef15:76ce:8deb:aff1::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-13 02:07:37,978 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-11-13 02:07:38,272 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-11-13 02:07:38,299 - DEBUG - Requesting: http://10.0.0.22:8082/domain/9f8247be-6e54-4b03-8714-086ddf5268d8 2025-11-13 02:07:38,311 - DEBUG - Requesting: http://10.0.0.22:8082/project/f8bd9bb9-ece9-4167-8239-3e7030f53022 2025-11-13 02:07:38,381 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/223acd66-1886-4c06-867f-8217a628abc6 2025-11-13 02:07:38,392 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/223acd66-1886-4c06-867f-8217a628abc6 2025-11-13 02:07:38,400 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0053dcf1-4cc6-4511-a280-f9ec435bf2f2 2025-11-13 02:07:38,406 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0053dcf1-4cc6-4511-a280-f9ec435bf2f2 2025-11-13 02:07:38,412 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/3649faa9-f656-46cd-82bb-c657ecec03e6 2025-11-13 02:07:38,417 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-13 02:07:38,417 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/223acd66-1886-4c06-867f-8217a628abc6 2025-11-13 02:07:38,425 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0053dcf1-4cc6-4511-a280-f9ec435bf2f2 2025-11-13 02:07:38,439 - INFO - Verified VN network id 10 for VN 223acd66-1886-4c06-867f-8217a628abc6 2025-11-13 02:07:38,439 - INFO - Verifications in API Server for VN ctest-vn4-55576752 passed 2025-11-13 02:07:38,439 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/223acd66-1886-4c06-867f-8217a628abc6 2025-11-13 02:07:38,448 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0053dcf1-4cc6-4511-a280-f9ec435bf2f2 2025-11-13 02:07:38,454 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0053dcf1-4cc6-4511-a280-f9ec435bf2f2 2025-11-13 02:07:38,460 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/3649faa9-f656-46cd-82bb-c657ecec03e6 2025-11-13 02:07:38,471 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-64256409:ctest-vn4-55576752', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-64256409', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2466509584320580614', 'uuid-lslong': '9691607961208138694'}, 'enable': 'true', 'created': '2025-11-13T02:07:37', 'last-modified': '2025-11-13T02:07:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.673913'} 2025-11-13 02:07:38,478 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-13 02:07:38,478 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-55576752 passed 2025-11-13 02:07:38,478 - DEBUG - ====Verifying policy data for ctest-vn4-55576752 in API_Server ====== 2025-11-13 02:07:38,478 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-11-13 02:07:38,483 - DEBUG - Requesting: http://10.0.0.22:8082/domain/9f8247be-6e54-4b03-8714-086ddf5268d8 2025-11-13 02:07:38,551 - DEBUG - Requesting: http://10.0.0.22:8082/project/f8bd9bb9-ece9-4167-8239-3e7030f53022 2025-11-13 02:07:38,619 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/223acd66-1886-4c06-867f-8217a628abc6 2025-11-13 02:07:38,627 - DEBUG - ==>Verifying data for policy with id: 52a49d4f-0835-468c-97f4-06e396efec65, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-64256409', 'ctest-policy1-78191192'] 2025-11-13 02:07:38,627 - INFO - VN ctest-vn4-55576752 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-13 02:07:38,627 - DEBUG - Verifying the vn in opserver 2025-11-13 02:07:38,627 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-64256409:ctest-vn4-55576752 virtual network link through opserver 10.0.0.22 2025-11-13 02:07:38,627 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-11-13 02:07:38,920 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-11-13 02:07:38,977 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-64256409:ctest-vn4-55576752', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-64256409:ctest-vn4-55576752?flat'} 2025-11-13 02:07:38,977 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-64256409:ctest-vn4-55576752 is found in opserver 2025-11-13 02:07:38,987 - DEBUG - Do not have enough data to verify VN in agent 2025-11-13 02:07:38,991 - DEBUG - VRF ids for VN ctest-vn4-55576752: {} 2025-11-13 02:07:38,991 - DEBUG - ====Verifying data for ctest-policy1-78191192 in API_Server ====== 2025-11-13 02:07:38,991 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-11-13 02:07:38,996 - DEBUG - Requesting: http://10.0.0.22:8082/domain/9f8247be-6e54-4b03-8714-086ddf5268d8 2025-11-13 02:07:39,005 - DEBUG - Requesting: http://10.0.0.22:8082/project/f8bd9bb9-ece9-4167-8239-3e7030f53022 2025-11-13 02:07:39,074 - DEBUG - Requesting: http://10.0.0.22:8082/network-policy/52a49d4f-0835-468c-97f4-06e396efec65 2025-11-13 02:07:39,083 - INFO - Verified policy ctest-policy1-78191192 in API Server, Result: True 2025-11-13 02:07:39,083 - INFO - Done with setup and verification, moving onto test .. 2025-11-13 02:07:39,089 - INFO - Deleting VN ctest-vn4-55576752 2025-11-13 02:07:39,216 - DEBUG - Response for deleting network () 2025-11-13 02:07:39,216 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0053dcf1-4cc6-4511-a280-f9ec435bf2f2 2025-11-13 02:07:39,221 - DEBUG - Response Code: 404 2025-11-13 02:07:39,221 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-11-13 02:07:39,230 - DEBUG - Requesting: http://10.0.0.22:8082/domain/9f8247be-6e54-4b03-8714-086ddf5268d8 2025-11-13 02:07:39,241 - DEBUG - Requesting: http://10.0.0.22:8082/project/f8bd9bb9-ece9-4167-8239-3e7030f53022 2025-11-13 02:07:39,312 - INFO - Validated that VN ctest-vn4-55576752 is not found in API Server 2025-11-13 02:07:39,323 - DEBUG - VN ctest-vn4-55576752 is not present in Agent 10.0.0.22 2025-11-13 02:07:39,324 - INFO - Validated that VN ctest-vn4-55576752 is not in any agent 2025-11-13 02:07:39,337 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-55576752 info 2025-11-13 02:07:39,366 - INFO - Deleted policy ctest-policy1-78191192 2025-11-13 02:07:39,530 - DEBUG - policy ctest-policy1-78191192 is not found in API Server 2025-11-13 02:07:39,783 - DEBUG - No XMPP flaps were noticed during the test 2025-11-13 02:07:39,783 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:03] 2025-11-13 02:07:39,783 - INFO - -------------------------------------------------------------------------------- 2025-11-13 02:07:40,071 - DEBUG - No XMPP flaps were noticed during the test 2025-11-13 02:07:40,071 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2025-11-13 02:07:40,071 - INFO - -------------------------------------------------------------------------------- 2025-11-13 02:07:40,748 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-64256409, ID : f8bd9bb9-ece9-4167-8239-3e7030f53022