2025-12-22 14:01:19,404 - INFO - Domain Default found not creating 2025-12-22 14:01:19,604 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-82690995 not found, creating it 2025-12-22 14:01:20,124 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-82690995, ID : c5dcd13d-f2cd-4028-b5fb-1b73ee8f6f32 2025-12-22 14:01:21,787 - INFO - ================================================================================ 2025-12-22 14:01:21,787 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-22 14:01:22,071 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.14': '0'}} with 2025-12-22 14:01:22,071 - INFO - Initial checks done. Running the testcase now 2025-12-22 14:01:22,071 - INFO - 2025-12-22 14:01:22,071 - INFO - ================================================================================ 2025-12-22 14:01:22,071 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-22 14:01:22,071 - 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-22 14:01:22,351 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.14': '0'}} with 2025-12-22 14:01:22,351 - INFO - Initial checks done. Running the testcase now 2025-12-22 14:01:22,351 - INFO - 2025-12-22 14:01:22,731 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-82690995:ctest-vn4-34108351, 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-82690995:ctest-vn4-34108351, 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-82690995:ctest-vn4-34108351, 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-82690995:ctest-vn4-34108351, 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-22 14:01:23,267 - DEBUG - Response for create_network : {'network': {'id': '979a9d00-f4bc-41e7-bcb1-9d4c077c752d', 'name': 'ctest-vn4-34108351', 'tenant_id': 'c5dcd13df2cd4028b5fb1b73ee8f6f32', 'project_id': 'c5dcd13df2cd4028b5fb1b73ee8f6f32', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-82690995', 'ctest-vn4-34108351'], 'port_security_enabled': True, 'description': ''}} 2025-12-22 14:01:23,477 - DEBUG - Response for create_subnet : {'subnet': {'id': 'dcbfb067-b654-4206-935a-7bf46c1efdb6', 'name': '', 'tenant_id': 'c5dcd13df2cd4028b5fb1b73ee8f6f32', 'network_id': '979a9d00-f4bc-41e7-bcb1-9d4c077c752d', 'ip_version': 4, 'cidr': '3.22.235.128/26', 'allocation_pools': [{'start': '3.22.235.130', 'end': '3.22.235.190'}], 'gateway_ip': '3.22.235.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3.22.235.130', 'tags': [], 'project_id': 'c5dcd13df2cd4028b5fb1b73ee8f6f32'}} 2025-12-22 14:01:23,627 - DEBUG - Response for create_subnet : {'subnet': {'id': '416d7e48-6201-447b-bdac-5384cb87ff0b', 'name': '', 'tenant_id': 'c5dcd13df2cd4028b5fb1b73ee8f6f32', 'network_id': '979a9d00-f4bc-41e7-bcb1-9d4c077c752d', 'ip_version': 6, 'cidr': '2dcc:5fe2:cd15:666e:e31:695a::/96', 'allocation_pools': [{'start': '2dcc:5fe2:cd15:666e:e31:695a:0:2', 'end': '2dcc:5fe2:cd15:666e:e31:695a:ffff:fffe'}], 'gateway_ip': '2dcc:5fe2:cd15:666e:e31:695a:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2dcc:5fe2:cd15:666e:e31:695a:0:2', 'tags': [], 'project_id': 'c5dcd13df2cd4028b5fb1b73ee8f6f32'}} 2025-12-22 14:01:23,648 - INFO - Created VN ctest-vn4-34108351 2025-12-22 14:01:23,701 - DEBUG - VN ctest-vn4-34108351 UUID is 979a9d00-f4bc-41e7-bcb1-9d4c077c752d 2025-12-22 14:01:23,933 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '979a9d00-f4bc-41e7-bcb1-9d4c077c752d', 'name': 'ctest-vn4-34108351', 'tenant_id': 'c5dcd13df2cd4028b5fb1b73ee8f6f32', 'project_id': 'c5dcd13df2cd4028b5fb1b73ee8f6f32', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['dcbfb067-b654-4206-935a-7bf46c1efdb6', '416d7e48-6201-447b-bdac-5384cb87ff0b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-82690995', 'ctest-vn4-34108351'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-82690995', 'ctest-policy1-41667994']], 'subnet_ipam': [{'subnet_cidr': '3.22.235.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2dcc:5fe2:cd15:666e:e31:695a::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-12-22 14:01:24,094 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-12-22 14:01:24,404 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-12-22 14:01:24,447 - DEBUG - Requesting: http://10.0.0.22:8082/domain/3336feff-2252-4c25-a4cc-d58e76609b01 2025-12-22 14:01:24,460 - DEBUG - Requesting: http://10.0.0.22:8082/project/c5dcd13d-f2cd-4028-b5fb-1b73ee8f6f32 2025-12-22 14:01:24,534 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/979a9d00-f4bc-41e7-bcb1-9d4c077c752d 2025-12-22 14:01:24,546 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/979a9d00-f4bc-41e7-bcb1-9d4c077c752d 2025-12-22 14:01:24,556 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/369f7753-6355-4b54-a1bd-e06ad6f41ef5 2025-12-22 14:01:24,565 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/369f7753-6355-4b54-a1bd-e06ad6f41ef5 2025-12-22 14:01:24,575 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/4e1acb79-ccf8-4cb0-b8dd-4b36db6e8e29 2025-12-22 14:01:24,582 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-22 14:01:24,582 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/979a9d00-f4bc-41e7-bcb1-9d4c077c752d 2025-12-22 14:01:24,592 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/369f7753-6355-4b54-a1bd-e06ad6f41ef5 2025-12-22 14:01:24,607 - INFO - Verified VN network id 11 for VN 979a9d00-f4bc-41e7-bcb1-9d4c077c752d 2025-12-22 14:01:24,607 - INFO - Verifications in API Server for VN ctest-vn4-34108351 passed 2025-12-22 14:01:24,607 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/979a9d00-f4bc-41e7-bcb1-9d4c077c752d 2025-12-22 14:01:24,617 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/369f7753-6355-4b54-a1bd-e06ad6f41ef5 2025-12-22 14:01:24,625 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/369f7753-6355-4b54-a1bd-e06ad6f41ef5 2025-12-22 14:01:24,641 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/4e1acb79-ccf8-4cb0-b8dd-4b36db6e8e29 2025-12-22 14:01:24,656 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-82690995:ctest-vn4-34108351', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-82690995', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10924216473572098535', 'uuid-lslong': '13596821699876910381'}, 'enable': 'true', 'created': '2025-12-22T14:01:23', 'last-modified': '2025-12-22T14:01:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.760505'} 2025-12-22 14:01:24,663 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-22 14:01:24,664 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-34108351 passed 2025-12-22 14:01:24,664 - DEBUG - ====Verifying policy data for ctest-vn4-34108351 in API_Server ====== 2025-12-22 14:01:24,664 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-12-22 14:01:24,671 - DEBUG - Requesting: http://10.0.0.22:8082/domain/3336feff-2252-4c25-a4cc-d58e76609b01 2025-12-22 14:01:24,684 - DEBUG - Requesting: http://10.0.0.22:8082/project/c5dcd13d-f2cd-4028-b5fb-1b73ee8f6f32 2025-12-22 14:01:24,755 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/979a9d00-f4bc-41e7-bcb1-9d4c077c752d 2025-12-22 14:01:24,766 - DEBUG - ==>Verifying data for policy with id: 3a3f5225-7358-4d6c-abda-8c346f5a6d7a, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-82690995', 'ctest-policy1-41667994'] 2025-12-22 14:01:24,766 - INFO - VN ctest-vn4-34108351 Policy verification: verify_vn_policy_in_api_server, status: True 2025-12-22 14:01:24,766 - DEBUG - Verifying the vn in opserver 2025-12-22 14:01:24,766 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-82690995:ctest-vn4-34108351 virtual network link through opserver 10.0.0.22 2025-12-22 14:01:24,767 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-12-22 14:01:25,065 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-12-22 14:01:25,136 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-82690995:ctest-vn4-34108351', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-82690995:ctest-vn4-34108351?flat'} 2025-12-22 14:01:25,137 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-82690995:ctest-vn4-34108351 is found in opserver 2025-12-22 14:01:25,146 - DEBUG - Do not have enough data to verify VN in agent 2025-12-22 14:01:25,151 - DEBUG - VRF ids for VN ctest-vn4-34108351: {} 2025-12-22 14:01:25,151 - DEBUG - ====Verifying data for ctest-policy1-41667994 in API_Server ====== 2025-12-22 14:01:25,151 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-12-22 14:01:25,158 - DEBUG - Requesting: http://10.0.0.22:8082/domain/3336feff-2252-4c25-a4cc-d58e76609b01 2025-12-22 14:01:25,171 - DEBUG - Requesting: http://10.0.0.22:8082/project/c5dcd13d-f2cd-4028-b5fb-1b73ee8f6f32 2025-12-22 14:01:25,244 - DEBUG - Requesting: http://10.0.0.22:8082/network-policy/3a3f5225-7358-4d6c-abda-8c346f5a6d7a 2025-12-22 14:01:25,254 - INFO - Verified policy ctest-policy1-41667994 in API Server, Result: True 2025-12-22 14:01:25,254 - INFO - Done with setup and verification, moving onto test .. 2025-12-22 14:01:25,262 - INFO - Deleting VN ctest-vn4-34108351 2025-12-22 14:01:25,390 - DEBUG - Response for deleting network () 2025-12-22 14:01:25,390 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/369f7753-6355-4b54-a1bd-e06ad6f41ef5 2025-12-22 14:01:25,395 - DEBUG - Response Code: 404 2025-12-22 14:01:25,396 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-12-22 14:01:25,402 - DEBUG - Requesting: http://10.0.0.22:8082/domain/3336feff-2252-4c25-a4cc-d58e76609b01 2025-12-22 14:01:25,455 - DEBUG - Requesting: http://10.0.0.22:8082/project/c5dcd13d-f2cd-4028-b5fb-1b73ee8f6f32 2025-12-22 14:01:25,531 - INFO - Validated that VN ctest-vn4-34108351 is not found in API Server 2025-12-22 14:01:25,543 - DEBUG - VN ctest-vn4-34108351 is not present in Agent 10.0.0.22 2025-12-22 14:01:25,543 - INFO - Validated that VN ctest-vn4-34108351 is not in any agent 2025-12-22 14:01:25,562 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-34108351 info 2025-12-22 14:01:25,592 - INFO - Deleted policy ctest-policy1-41667994 2025-12-22 14:01:25,761 - DEBUG - policy ctest-policy1-41667994 is not found in API Server 2025-12-22 14:01:26,015 - DEBUG - No XMPP flaps were noticed during the test