2025-10-23 19:05:58,540 - INFO - Domain Default found not creating 2025-10-23 19:05:58,712 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-92205780 not found, creating it 2025-10-23 19:05:59,193 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-92205780, ID : e719e361-d884-454f-8322-6b4127bd2728 2025-10-23 19:06:00,634 - INFO - ================================================================================ 2025-10-23 19:06:00,634 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-23 19:06:00,905 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.254': '0'}} with 2025-10-23 19:06:00,905 - INFO - Initial checks done. Running the testcase now 2025-10-23 19:06:00,906 - INFO - 2025-10-23 19:06:00,906 - INFO - ================================================================================ 2025-10-23 19:06:00,906 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-23 19:06:00,906 - 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-23 19:06:01,191 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.254': '0'}} with 2025-10-23 19:06:01,191 - INFO - Initial checks done. Running the testcase now 2025-10-23 19:06:01,191 - INFO - 2025-10-23 19:06:01,562 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-92205780:ctest-vn4-21249618, 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-92205780:ctest-vn4-21249618, 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-92205780:ctest-vn4-21249618, 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-92205780:ctest-vn4-21249618, 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-23 19:06:02,104 - DEBUG - Response for create_network : {'network': {'id': '4ddf9c95-7233-4933-8a3c-379d5b06b7e8', 'name': 'ctest-vn4-21249618', 'tenant_id': 'e719e361d884454f83226b4127bd2728', 'project_id': 'e719e361d884454f83226b4127bd2728', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-92205780', 'ctest-vn4-21249618'], 'port_security_enabled': True, 'description': ''}} 2025-10-23 19:06:02,300 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f5cb82e5-c6eb-4469-8e25-d65975e92a73', 'name': '', 'tenant_id': 'e719e361d884454f83226b4127bd2728', 'network_id': '4ddf9c95-7233-4933-8a3c-379d5b06b7e8', 'ip_version': 4, 'cidr': '66.207.132.0/26', 'allocation_pools': [{'start': '66.207.132.2', 'end': '66.207.132.62'}], 'gateway_ip': '66.207.132.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '66.207.132.2', 'tags': [], 'project_id': 'e719e361d884454f83226b4127bd2728'}} 2025-10-23 19:06:02,493 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e256aa61-a8fe-43f9-a309-1cb79059ce6c', 'name': '', 'tenant_id': 'e719e361d884454f83226b4127bd2728', 'network_id': '4ddf9c95-7233-4933-8a3c-379d5b06b7e8', 'ip_version': 6, 'cidr': '22d9:f5b1:4a5a:b69:69c5:ccd1::/96', 'allocation_pools': [{'start': '22d9:f5b1:4a5a:b69:69c5:ccd1:0:2', 'end': '22d9:f5b1:4a5a:b69:69c5:ccd1:ffff:fffe'}], 'gateway_ip': '22d9:f5b1:4a5a:b69:69c5:ccd1:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '22d9:f5b1:4a5a:b69:69c5:ccd1:0:2', 'tags': [], 'project_id': 'e719e361d884454f83226b4127bd2728'}} 2025-10-23 19:06:02,516 - INFO - Created VN ctest-vn4-21249618 2025-10-23 19:06:02,570 - DEBUG - VN ctest-vn4-21249618 UUID is 4ddf9c95-7233-4933-8a3c-379d5b06b7e8 2025-10-23 19:06:02,785 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4ddf9c95-7233-4933-8a3c-379d5b06b7e8', 'name': 'ctest-vn4-21249618', 'tenant_id': 'e719e361d884454f83226b4127bd2728', 'project_id': 'e719e361d884454f83226b4127bd2728', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f5cb82e5-c6eb-4469-8e25-d65975e92a73', 'e256aa61-a8fe-43f9-a309-1cb79059ce6c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-92205780', 'ctest-vn4-21249618'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-92205780', 'ctest-policy1-63160461']], 'subnet_ipam': [{'subnet_cidr': '66.207.132.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '22d9:f5b1:4a5a:b69:69c5:ccd1::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-23 19:06:02,962 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-23 19:06:03,256 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-23 19:06:03,288 - DEBUG - Requesting: http://10.0.0.254:8082/domain/e294bc14-004b-4d5c-99dd-b4f57c297166 2025-10-23 19:06:03,315 - DEBUG - Requesting: http://10.0.0.254:8082/project/e719e361-d884-454f-8322-6b4127bd2728 2025-10-23 19:06:03,389 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/4ddf9c95-7233-4933-8a3c-379d5b06b7e8 2025-10-23 19:06:03,401 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/4ddf9c95-7233-4933-8a3c-379d5b06b7e8 2025-10-23 19:06:03,410 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/34214db1-1a1b-4ed1-a527-ffc8d3c2b7a3 2025-10-23 19:06:03,417 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/34214db1-1a1b-4ed1-a527-ffc8d3c2b7a3 2025-10-23 19:06:03,424 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/8a3fee62-d3fb-40b9-af6c-af7e90fc298a 2025-10-23 19:06:03,431 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-23 19:06:03,431 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/4ddf9c95-7233-4933-8a3c-379d5b06b7e8 2025-10-23 19:06:03,442 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/34214db1-1a1b-4ed1-a527-ffc8d3c2b7a3 2025-10-23 19:06:03,460 - INFO - Verified VN network id 11 for VN 4ddf9c95-7233-4933-8a3c-379d5b06b7e8 2025-10-23 19:06:03,460 - INFO - Verifications in API Server for VN ctest-vn4-21249618 passed 2025-10-23 19:06:03,460 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/4ddf9c95-7233-4933-8a3c-379d5b06b7e8 2025-10-23 19:06:03,471 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/34214db1-1a1b-4ed1-a527-ffc8d3c2b7a3 2025-10-23 19:06:03,479 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/34214db1-1a1b-4ed1-a527-ffc8d3c2b7a3 2025-10-23 19:06:03,486 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/8a3fee62-d3fb-40b9-af6c-af7e90fc298a 2025-10-23 19:06:03,499 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-92205780:ctest-vn4-21249618', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-92205780', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5611375826406951219', 'uuid-lslong': '9960897624813254632'}, 'enable': 'true', 'created': '2025-10-23T19:06:02', 'last-modified': '2025-10-23T19:06:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.741465'} 2025-10-23 19:06:03,504 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-23 19:06:03,504 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-21249618 passed 2025-10-23 19:06:03,504 - DEBUG - ====Verifying policy data for ctest-vn4-21249618 in API_Server ====== 2025-10-23 19:06:03,504 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-23 19:06:03,511 - DEBUG - Requesting: http://10.0.0.254:8082/domain/e294bc14-004b-4d5c-99dd-b4f57c297166 2025-10-23 19:06:03,521 - DEBUG - Requesting: http://10.0.0.254:8082/project/e719e361-d884-454f-8322-6b4127bd2728 2025-10-23 19:06:03,594 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/4ddf9c95-7233-4933-8a3c-379d5b06b7e8 2025-10-23 19:06:03,607 - DEBUG - ==>Verifying data for policy with id: 57f47f62-adc0-49b2-bd02-6b7959f054a3, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-92205780', 'ctest-policy1-63160461'] 2025-10-23 19:06:03,607 - INFO - VN ctest-vn4-21249618 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-23 19:06:03,607 - DEBUG - Verifying the vn in opserver 2025-10-23 19:06:03,607 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-92205780:ctest-vn4-21249618 virtual network link through opserver 10.0.0.254 2025-10-23 19:06:03,607 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-10-23 19:06:03,923 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-10-23 19:06:03,984 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-92205780:ctest-vn4-21249618', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-92205780:ctest-vn4-21249618?flat'} 2025-10-23 19:06:03,984 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-92205780:ctest-vn4-21249618 is found in opserver 2025-10-23 19:06:03,995 - DEBUG - Do not have enough data to verify VN in agent 2025-10-23 19:06:04,001 - DEBUG - VRF ids for VN ctest-vn4-21249618: {} 2025-10-23 19:06:04,001 - DEBUG - ====Verifying data for ctest-policy1-63160461 in API_Server ====== 2025-10-23 19:06:04,001 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-23 19:06:04,007 - DEBUG - Requesting: http://10.0.0.254:8082/domain/e294bc14-004b-4d5c-99dd-b4f57c297166 2025-10-23 19:06:04,021 - DEBUG - Requesting: http://10.0.0.254:8082/project/e719e361-d884-454f-8322-6b4127bd2728 2025-10-23 19:06:04,095 - DEBUG - Requesting: http://10.0.0.254:8082/network-policy/57f47f62-adc0-49b2-bd02-6b7959f054a3 2025-10-23 19:06:04,109 - INFO - Verified policy ctest-policy1-63160461 in API Server, Result: True 2025-10-23 19:06:04,109 - INFO - Done with setup and verification, moving onto test .. 2025-10-23 19:06:04,121 - INFO - Deleting VN ctest-vn4-21249618 2025-10-23 19:06:04,242 - DEBUG - Response for deleting network () 2025-10-23 19:06:04,242 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/34214db1-1a1b-4ed1-a527-ffc8d3c2b7a3 2025-10-23 19:06:04,248 - DEBUG - Response Code: 404 2025-10-23 19:06:04,248 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-23 19:06:04,254 - DEBUG - Requesting: http://10.0.0.254:8082/domain/e294bc14-004b-4d5c-99dd-b4f57c297166 2025-10-23 19:06:04,312 - DEBUG - Requesting: http://10.0.0.254:8082/project/e719e361-d884-454f-8322-6b4127bd2728 2025-10-23 19:06:04,384 - INFO - Validated that VN ctest-vn4-21249618 is not found in API Server 2025-10-23 19:06:04,395 - DEBUG - VN ctest-vn4-21249618 is not present in Agent 10.0.0.254 2025-10-23 19:06:04,395 - INFO - Validated that VN ctest-vn4-21249618 is not in any agent 2025-10-23 19:06:04,409 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-21249618 info 2025-10-23 19:06:04,439 - INFO - Deleted policy ctest-policy1-63160461 2025-10-23 19:06:04,601 - DEBUG - policy ctest-policy1-63160461 is not found in API Server 2025-10-23 19:06:04,862 - DEBUG - No XMPP flaps were noticed during the test 2025-10-23 19:06:04,862 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-10-23 19:06:04,862 - INFO - -------------------------------------------------------------------------------- 2025-10-23 19:06:05,152 - DEBUG - No XMPP flaps were noticed during the test 2025-10-23 19:06:05,152 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2025-10-23 19:06:05,152 - INFO - -------------------------------------------------------------------------------- 2025-10-23 19:06:05,867 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-92205780, ID : e719e361-d884-454f-8322-6b4127bd2728