2025-07-22 23:26:03,811 - INFO - Domain Default found not creating 2025-07-22 23:26:03,959 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-06333712 not found, creating it 2025-07-22 23:26:04,433 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-06333712, ID : e96f8afc-2cec-4163-8a5e-cf3fc4f31133 2025-07-22 23:26:05,989 - INFO - ================================================================================ 2025-07-22 23:26:05,990 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-07-22 23:26:06,250 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2025-07-22 23:26:06,250 - INFO - Initial checks done. Running the testcase now 2025-07-22 23:26:06,250 - INFO - 2025-07-22 23:26:06,250 - INFO - ================================================================================ 2025-07-22 23:26:06,250 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-07-22 23:26:06,251 - 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-07-22 23:26:06,536 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2025-07-22 23:26:06,536 - INFO - Initial checks done. Running the testcase now 2025-07-22 23:26:06,536 - INFO - 2025-07-22 23:26:06,907 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06333712:ctest-vn4-36306469, 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-06333712:ctest-vn4-36306469, 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-06333712:ctest-vn4-36306469, 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-06333712:ctest-vn4-36306469, 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-07-22 23:26:07,435 - DEBUG - Response for create_network : {'network': {'id': '26655d8b-3fca-48c1-b7f3-2b1437adc715', 'name': 'ctest-vn4-36306469', 'tenant_id': 'e96f8afc2cec41638a5ecf3fc4f31133', 'project_id': 'e96f8afc2cec41638a5ecf3fc4f31133', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-06333712', 'ctest-vn4-36306469'], 'port_security_enabled': True, 'description': ''}} 2025-07-22 23:26:07,642 - DEBUG - Response for create_subnet : {'subnet': {'id': 'dcc0cfac-3aaf-4ff6-bb42-0a12ac3cb661', 'name': '', 'tenant_id': 'e96f8afc2cec41638a5ecf3fc4f31133', 'network_id': '26655d8b-3fca-48c1-b7f3-2b1437adc715', 'ip_version': 4, 'cidr': '34.60.234.128/26', 'allocation_pools': [{'start': '34.60.234.130', 'end': '34.60.234.190'}], 'gateway_ip': '34.60.234.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '34.60.234.130', 'tags': [], 'project_id': 'e96f8afc2cec41638a5ecf3fc4f31133'}} 2025-07-22 23:26:07,782 - DEBUG - Response for create_subnet : {'subnet': {'id': '92db9984-0085-436e-bfad-cbee8bb45034', 'name': '', 'tenant_id': 'e96f8afc2cec41638a5ecf3fc4f31133', 'network_id': '26655d8b-3fca-48c1-b7f3-2b1437adc715', 'ip_version': 6, 'cidr': '3449:8028:a88f:7264:847d:3319::/96', 'allocation_pools': [{'start': '3449:8028:a88f:7264:847d:3319:0:2', 'end': '3449:8028:a88f:7264:847d:3319:ffff:fffe'}], 'gateway_ip': '3449:8028:a88f:7264:847d:3319:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3449:8028:a88f:7264:847d:3319:0:2', 'tags': [], 'project_id': 'e96f8afc2cec41638a5ecf3fc4f31133'}} 2025-07-22 23:26:07,803 - INFO - Created VN ctest-vn4-36306469 2025-07-22 23:26:07,859 - DEBUG - VN ctest-vn4-36306469 UUID is 26655d8b-3fca-48c1-b7f3-2b1437adc715 2025-07-22 23:26:08,104 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '26655d8b-3fca-48c1-b7f3-2b1437adc715', 'name': 'ctest-vn4-36306469', 'tenant_id': 'e96f8afc2cec41638a5ecf3fc4f31133', 'project_id': 'e96f8afc2cec41638a5ecf3fc4f31133', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['dcc0cfac-3aaf-4ff6-bb42-0a12ac3cb661', '92db9984-0085-436e-bfad-cbee8bb45034'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-06333712', 'ctest-vn4-36306469'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-06333712', 'ctest-policy1-44064921']], 'subnet_ipam': [{'subnet_cidr': '34.60.234.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3449:8028:a88f:7264:847d:3319::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-07-22 23:26:08,327 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-07-22 23:26:08,660 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-07-22 23:26:08,698 - DEBUG - Requesting: http://10.0.0.38:8082/domain/3d35b737-47ae-40a2-861c-ea327ce5373c 2025-07-22 23:26:08,718 - DEBUG - Requesting: http://10.0.0.38:8082/project/e96f8afc-2cec-4163-8a5e-cf3fc4f31133 2025-07-22 23:26:08,794 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/26655d8b-3fca-48c1-b7f3-2b1437adc715 2025-07-22 23:26:08,808 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/26655d8b-3fca-48c1-b7f3-2b1437adc715 2025-07-22 23:26:08,822 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/94530eed-4836-4a8c-8478-7a6cf888f6d4 2025-07-22 23:26:08,830 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/94530eed-4836-4a8c-8478-7a6cf888f6d4 2025-07-22 23:26:08,839 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/4f4ecbbc-03b8-4cd3-b8f0-f10d85d4743c 2025-07-22 23:26:08,846 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-22 23:26:08,846 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/26655d8b-3fca-48c1-b7f3-2b1437adc715 2025-07-22 23:26:08,860 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/94530eed-4836-4a8c-8478-7a6cf888f6d4 2025-07-22 23:26:08,876 - INFO - Verified VN network id 11 for VN 26655d8b-3fca-48c1-b7f3-2b1437adc715 2025-07-22 23:26:08,876 - INFO - Verifications in API Server for VN ctest-vn4-36306469 passed 2025-07-22 23:26:08,876 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/26655d8b-3fca-48c1-b7f3-2b1437adc715 2025-07-22 23:26:08,887 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/94530eed-4836-4a8c-8478-7a6cf888f6d4 2025-07-22 23:26:08,894 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/94530eed-4836-4a8c-8478-7a6cf888f6d4 2025-07-22 23:26:08,901 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/4f4ecbbc-03b8-4cd3-b8f0-f10d85d4743c 2025-07-22 23:26:08,914 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06333712:ctest-vn4-36306469', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-06333712', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2766720398741096641', 'uuid-lslong': '13254985494114977557'}, 'enable': 'true', 'created': '2025-07-22T23:26:07', 'last-modified': '2025-07-22T23:26:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.848852'} 2025-07-22 23:26:08,921 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-22 23:26:08,921 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-36306469 passed 2025-07-22 23:26:08,921 - DEBUG - ====Verifying policy data for ctest-vn4-36306469 in API_Server ====== 2025-07-22 23:26:08,921 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-07-22 23:26:08,927 - DEBUG - Requesting: http://10.0.0.38:8082/domain/3d35b737-47ae-40a2-861c-ea327ce5373c 2025-07-22 23:26:08,940 - DEBUG - Requesting: http://10.0.0.38:8082/project/e96f8afc-2cec-4163-8a5e-cf3fc4f31133 2025-07-22 23:26:09,011 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/26655d8b-3fca-48c1-b7f3-2b1437adc715 2025-07-22 23:26:09,024 - DEBUG - ==>Verifying data for policy with id: 67c8989e-da46-4882-a87e-f79415c90032, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-06333712', 'ctest-policy1-44064921'] 2025-07-22 23:26:09,024 - INFO - VN ctest-vn4-36306469 Policy verification: verify_vn_policy_in_api_server, status: True 2025-07-22 23:26:09,024 - DEBUG - Verifying the vn in opserver 2025-07-22 23:26:09,024 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06333712:ctest-vn4-36306469 virtual network link through opserver 10.0.0.38 2025-07-22 23:26:09,025 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-07-22 23:26:09,325 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-07-22 23:26:09,391 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06333712:ctest-vn4-36306469', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06333712:ctest-vn4-36306469?flat'} 2025-07-22 23:26:09,391 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06333712:ctest-vn4-36306469 is found in opserver 2025-07-22 23:26:09,402 - DEBUG - Do not have enough data to verify VN in agent 2025-07-22 23:26:09,408 - DEBUG - VRF ids for VN ctest-vn4-36306469: {} 2025-07-22 23:26:09,408 - DEBUG - ====Verifying data for ctest-policy1-44064921 in API_Server ====== 2025-07-22 23:26:09,408 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-07-22 23:26:09,415 - DEBUG - Requesting: http://10.0.0.38:8082/domain/3d35b737-47ae-40a2-861c-ea327ce5373c 2025-07-22 23:26:09,429 - DEBUG - Requesting: http://10.0.0.38:8082/project/e96f8afc-2cec-4163-8a5e-cf3fc4f31133 2025-07-22 23:26:09,505 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/67c8989e-da46-4882-a87e-f79415c90032 2025-07-22 23:26:09,517 - INFO - Verified policy ctest-policy1-44064921 in API Server, Result: True 2025-07-22 23:26:09,517 - INFO - Done with setup and verification, moving onto test .. 2025-07-22 23:26:09,526 - INFO - Deleting VN ctest-vn4-36306469 2025-07-22 23:26:09,654 - DEBUG - Response for deleting network () 2025-07-22 23:26:09,654 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/94530eed-4836-4a8c-8478-7a6cf888f6d4 2025-07-22 23:26:09,660 - DEBUG - Response Code: 404 2025-07-22 23:26:09,661 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-07-22 23:26:09,667 - DEBUG - Requesting: http://10.0.0.38:8082/domain/3d35b737-47ae-40a2-861c-ea327ce5373c 2025-07-22 23:26:09,721 - DEBUG - Requesting: http://10.0.0.38:8082/project/e96f8afc-2cec-4163-8a5e-cf3fc4f31133 2025-07-22 23:26:09,796 - INFO - Validated that VN ctest-vn4-36306469 is not found in API Server 2025-07-22 23:26:09,807 - DEBUG - VN ctest-vn4-36306469 is not present in Agent 10.0.0.38 2025-07-22 23:26:09,807 - INFO - Validated that VN ctest-vn4-36306469 is not in any agent 2025-07-22 23:26:09,822 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-36306469 info 2025-07-22 23:26:09,849 - INFO - Deleted policy ctest-policy1-44064921 2025-07-22 23:26:10,011 - DEBUG - policy ctest-policy1-44064921 is not found in API Server 2025-07-22 23:26:10,268 - DEBUG - No XMPP flaps were noticed during the test