2025-12-29 17:59:53,303 - INFO - Domain Default found not creating 2025-12-29 17:59:53,641 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-65816685 not found, creating it 2025-12-29 17:59:54,282 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-65816685, ID : bf8de916-cdf5-41ec-8e2a-2640f4eac3b6 2025-12-29 17:59:56,406 - INFO - ================================================================================ 2025-12-29 17:59:56,406 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-29 17:59:56,724 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.14': '0'}} with 2025-12-29 17:59:56,725 - INFO - Initial checks done. Running the testcase now 2025-12-29 17:59:56,725 - INFO - 2025-12-29 17:59:56,725 - INFO - ================================================================================ 2025-12-29 17:59:56,725 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-29 17:59:56,726 - 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-29 17:59:57,068 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.14': '0'}} with 2025-12-29 17:59:57,068 - INFO - Initial checks done. Running the testcase now 2025-12-29 17:59:57,068 - INFO - 2025-12-29 17:59:57,511 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-65816685:ctest-vn4-05117486, 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-65816685:ctest-vn4-05117486, 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-65816685:ctest-vn4-05117486, 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-65816685:ctest-vn4-05117486, 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-29 17:59:58,273 - DEBUG - Response for create_network : {'network': {'id': '82371dc3-511d-45f8-9fcb-91092583afec', 'name': 'ctest-vn4-05117486', 'tenant_id': 'bf8de916cdf541ec8e2a2640f4eac3b6', 'project_id': 'bf8de916cdf541ec8e2a2640f4eac3b6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-65816685', 'ctest-vn4-05117486'], 'port_security_enabled': True, 'description': ''}} 2025-12-29 17:59:58,540 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e20f31d7-c3fd-4bc9-89ed-3363670da9a2', 'name': '', 'tenant_id': 'bf8de916cdf541ec8e2a2640f4eac3b6', 'network_id': '82371dc3-511d-45f8-9fcb-91092583afec', 'ip_version': 4, 'cidr': '221.102.67.64/26', 'allocation_pools': [{'start': '221.102.67.66', 'end': '221.102.67.126'}], 'gateway_ip': '221.102.67.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '221.102.67.66', 'tags': [], 'project_id': 'bf8de916cdf541ec8e2a2640f4eac3b6'}} 2025-12-29 17:59:58,787 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bba46bf1-1535-4e05-8dc7-b0649839bc5d', 'name': '', 'tenant_id': 'bf8de916cdf541ec8e2a2640f4eac3b6', 'network_id': '82371dc3-511d-45f8-9fcb-91092583afec', 'ip_version': 6, 'cidr': '3ea4:af6a:a4b4:712:12c9:453e::/96', 'allocation_pools': [{'start': '3ea4:af6a:a4b4:712:12c9:453e:0:2', 'end': '3ea4:af6a:a4b4:712:12c9:453e:ffff:fffe'}], 'gateway_ip': '3ea4:af6a:a4b4:712:12c9:453e:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3ea4:af6a:a4b4:712:12c9:453e:0:2', 'tags': [], 'project_id': 'bf8de916cdf541ec8e2a2640f4eac3b6'}} 2025-12-29 17:59:58,817 - INFO - Created VN ctest-vn4-05117486 2025-12-29 17:59:58,875 - DEBUG - VN ctest-vn4-05117486 UUID is 82371dc3-511d-45f8-9fcb-91092583afec 2025-12-29 17:59:59,114 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '82371dc3-511d-45f8-9fcb-91092583afec', 'name': 'ctest-vn4-05117486', 'tenant_id': 'bf8de916cdf541ec8e2a2640f4eac3b6', 'project_id': 'bf8de916cdf541ec8e2a2640f4eac3b6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e20f31d7-c3fd-4bc9-89ed-3363670da9a2', 'bba46bf1-1535-4e05-8dc7-b0649839bc5d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-65816685', 'ctest-vn4-05117486'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-65816685', 'ctest-policy1-54063930']], 'subnet_ipam': [{'subnet_cidr': '221.102.67.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3ea4:af6a:a4b4:712:12c9:453e::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-12-29 17:59:59,295 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-12-29 17:59:59,641 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-12-29 17:59:59,700 - DEBUG - Requesting: http://10.0.0.249:8082/domain/5fc4913f-adee-47da-8761-b87344d72d1f 2025-12-29 17:59:59,725 - DEBUG - Requesting: http://10.0.0.249:8082/project/bf8de916-cdf5-41ec-8e2a-2640f4eac3b6 2025-12-29 17:59:59,832 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/82371dc3-511d-45f8-9fcb-91092583afec 2025-12-29 17:59:59,853 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/82371dc3-511d-45f8-9fcb-91092583afec 2025-12-29 17:59:59,872 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/94146155-a631-4b77-af2c-3e2b182ae22a 2025-12-29 17:59:59,889 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/94146155-a631-4b77-af2c-3e2b182ae22a 2025-12-29 17:59:59,905 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/655de6f4-e7dc-4a25-b99a-370741a9c1d8 2025-12-29 17:59:59,921 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-29 17:59:59,921 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/82371dc3-511d-45f8-9fcb-91092583afec 2025-12-29 17:59:59,944 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/94146155-a631-4b77-af2c-3e2b182ae22a 2025-12-29 17:59:59,985 - INFO - Verified VN network id 12 for VN 82371dc3-511d-45f8-9fcb-91092583afec 2025-12-29 17:59:59,985 - INFO - Verifications in API Server for VN ctest-vn4-05117486 passed 2025-12-29 17:59:59,985 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/82371dc3-511d-45f8-9fcb-91092583afec 2025-12-29 18:00:00,017 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/94146155-a631-4b77-af2c-3e2b182ae22a 2025-12-29 18:00:00,028 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/94146155-a631-4b77-af2c-3e2b182ae22a 2025-12-29 18:00:00,037 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/655de6f4-e7dc-4a25-b99a-370741a9c1d8 2025-12-29 18:00:00,059 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-65816685:ctest-vn4-05117486', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-65816685', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9383001073366418936', 'uuid-lslong': '11514456340772925420'}, 'enable': 'true', 'created': '2025-12-29T17:59:58', 'last-modified': '2025-12-29T17:59:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.981671'} 2025-12-29 18:00:00,071 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-29 18:00:00,072 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-05117486 passed 2025-12-29 18:00:00,072 - DEBUG - ====Verifying policy data for ctest-vn4-05117486 in API_Server ====== 2025-12-29 18:00:00,072 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-12-29 18:00:00,081 - DEBUG - Requesting: http://10.0.0.249:8082/domain/5fc4913f-adee-47da-8761-b87344d72d1f 2025-12-29 18:00:00,102 - DEBUG - Requesting: http://10.0.0.249:8082/project/bf8de916-cdf5-41ec-8e2a-2640f4eac3b6 2025-12-29 18:00:00,179 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/82371dc3-511d-45f8-9fcb-91092583afec 2025-12-29 18:00:00,191 - DEBUG - ==>Verifying data for policy with id: b2f83c2c-1a3a-4932-8839-75d4bc569d43, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-65816685', 'ctest-policy1-54063930'] 2025-12-29 18:00:00,191 - INFO - VN ctest-vn4-05117486 Policy verification: verify_vn_policy_in_api_server, status: True 2025-12-29 18:00:00,191 - DEBUG - Verifying the vn in opserver 2025-12-29 18:00:00,191 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-65816685:ctest-vn4-05117486 virtual network link through opserver 10.0.0.249 2025-12-29 18:00:00,191 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-12-29 18:00:00,495 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-12-29 18:00:00,562 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-65816685:ctest-vn4-05117486', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-65816685:ctest-vn4-05117486?flat'} 2025-12-29 18:00:00,562 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-65816685:ctest-vn4-05117486 is found in opserver 2025-12-29 18:00:00,576 - DEBUG - Do not have enough data to verify VN in agent 2025-12-29 18:00:00,581 - DEBUG - VRF ids for VN ctest-vn4-05117486: {} 2025-12-29 18:00:00,582 - DEBUG - ====Verifying data for ctest-policy1-54063930 in API_Server ====== 2025-12-29 18:00:00,582 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-12-29 18:00:00,589 - DEBUG - Requesting: http://10.0.0.249:8082/domain/5fc4913f-adee-47da-8761-b87344d72d1f 2025-12-29 18:00:00,600 - DEBUG - Requesting: http://10.0.0.249:8082/project/bf8de916-cdf5-41ec-8e2a-2640f4eac3b6 2025-12-29 18:00:00,678 - DEBUG - Requesting: http://10.0.0.249:8082/network-policy/b2f83c2c-1a3a-4932-8839-75d4bc569d43 2025-12-29 18:00:00,688 - INFO - Verified policy ctest-policy1-54063930 in API Server, Result: True 2025-12-29 18:00:00,688 - INFO - Done with setup and verification, moving onto test .. 2025-12-29 18:00:00,696 - INFO - Deleting VN ctest-vn4-05117486 2025-12-29 18:00:00,820 - DEBUG - Response for deleting network () 2025-12-29 18:00:00,820 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/94146155-a631-4b77-af2c-3e2b182ae22a 2025-12-29 18:00:00,826 - DEBUG - Response Code: 404 2025-12-29 18:00:00,826 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-12-29 18:00:00,834 - DEBUG - Requesting: http://10.0.0.249:8082/domain/5fc4913f-adee-47da-8761-b87344d72d1f 2025-12-29 18:00:00,889 - DEBUG - Requesting: http://10.0.0.249:8082/project/bf8de916-cdf5-41ec-8e2a-2640f4eac3b6 2025-12-29 18:00:00,973 - INFO - Validated that VN ctest-vn4-05117486 is not found in API Server 2025-12-29 18:00:00,987 - DEBUG - VN ctest-vn4-05117486 is not present in Agent 10.0.0.249 2025-12-29 18:00:00,987 - INFO - Validated that VN ctest-vn4-05117486 is not in any agent 2025-12-29 18:00:01,005 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-05117486 info 2025-12-29 18:00:01,036 - INFO - Deleted policy ctest-policy1-54063930 2025-12-29 18:00:01,214 - DEBUG - policy ctest-policy1-54063930 is not found in API Server 2025-12-29 18:00:01,508 - DEBUG - No XMPP flaps were noticed during the test