2025-11-05 08:10:05,301 - INFO - Domain Default found not creating 2025-11-05 08:10:05,461 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-50889888 not found, creating it 2025-11-05 08:10:05,925 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-50889888, ID : 60e1eaeb-528f-46e2-8972-b3edaddd5a0b 2025-11-05 08:10:07,474 - INFO - ================================================================================ 2025-11-05 08:10:07,474 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-05 08:10:07,733 - DEBUG - Nothing to compare xmpp stats {'10.0.0.133': {'10.20.0.14': '0'}} with 2025-11-05 08:10:07,734 - INFO - Initial checks done. Running the testcase now 2025-11-05 08:10:07,734 - INFO - 2025-11-05 08:10:07,734 - INFO - ================================================================================ 2025-11-05 08:10:07,734 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-05 08:10:07,734 - 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-05 08:10:08,023 - DEBUG - Nothing to compare xmpp stats {'10.0.0.133': {'10.20.0.14': '0'}} with 2025-11-05 08:10:08,023 - INFO - Initial checks done. Running the testcase now 2025-11-05 08:10:08,023 - INFO - 2025-11-05 08:10:08,398 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-50889888:ctest-vn4-04418395, 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-50889888:ctest-vn4-04418395, 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-50889888:ctest-vn4-04418395, 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-50889888:ctest-vn4-04418395, 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-05 08:10:08,888 - DEBUG - Response for create_network : {'network': {'id': '86f95b68-742e-40be-8d3a-36d94e6d04b4', 'name': 'ctest-vn4-04418395', 'tenant_id': '60e1eaeb528f46e28972b3edaddd5a0b', 'project_id': '60e1eaeb528f46e28972b3edaddd5a0b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-50889888', 'ctest-vn4-04418395'], 'port_security_enabled': True, 'description': ''}} 2025-11-05 08:10:09,090 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c7933b5c-96b1-4a6a-814e-a94ccf7f9b06', 'name': '', 'tenant_id': '60e1eaeb528f46e28972b3edaddd5a0b', 'network_id': '86f95b68-742e-40be-8d3a-36d94e6d04b4', 'ip_version': 4, 'cidr': '55.182.229.192/26', 'allocation_pools': [{'start': '55.182.229.194', 'end': '55.182.229.254'}], 'gateway_ip': '55.182.229.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '55.182.229.194', 'tags': [], 'project_id': '60e1eaeb528f46e28972b3edaddd5a0b'}} 2025-11-05 08:10:09,262 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c13f599b-e9ae-4962-b055-732e5e15d98f', 'name': '', 'tenant_id': '60e1eaeb528f46e28972b3edaddd5a0b', 'network_id': '86f95b68-742e-40be-8d3a-36d94e6d04b4', 'ip_version': 6, 'cidr': '29e0:a090:7c1a:d19:bfe8:f722::/96', 'allocation_pools': [{'start': '29e0:a090:7c1a:d19:bfe8:f722:0:2', 'end': '29e0:a090:7c1a:d19:bfe8:f722:ffff:fffe'}], 'gateway_ip': '29e0:a090:7c1a:d19:bfe8:f722:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '29e0:a090:7c1a:d19:bfe8:f722:0:2', 'tags': [], 'project_id': '60e1eaeb528f46e28972b3edaddd5a0b'}} 2025-11-05 08:10:09,282 - INFO - Created VN ctest-vn4-04418395 2025-11-05 08:10:09,333 - DEBUG - VN ctest-vn4-04418395 UUID is 86f95b68-742e-40be-8d3a-36d94e6d04b4 2025-11-05 08:10:09,579 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '86f95b68-742e-40be-8d3a-36d94e6d04b4', 'name': 'ctest-vn4-04418395', 'tenant_id': '60e1eaeb528f46e28972b3edaddd5a0b', 'project_id': '60e1eaeb528f46e28972b3edaddd5a0b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c7933b5c-96b1-4a6a-814e-a94ccf7f9b06', 'c13f599b-e9ae-4962-b055-732e5e15d98f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-50889888', 'ctest-vn4-04418395'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-50889888', 'ctest-policy1-68055799']], 'subnet_ipam': [{'subnet_cidr': '55.182.229.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '29e0:a090:7c1a:d19:bfe8:f722::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-05 08:10:09,741 - DEBUG - Requesting: http://10.0.0.133:8082/domains 2025-11-05 08:10:10,058 - DEBUG - Requesting: http://10.0.0.133:8082/domains 2025-11-05 08:10:10,087 - DEBUG - Requesting: http://10.0.0.133:8082/domain/7e7a7568-7cce-4d3b-bae0-b2e2c4f23c1c 2025-11-05 08:10:10,098 - DEBUG - Requesting: http://10.0.0.133:8082/project/60e1eaeb-528f-46e2-8972-b3edaddd5a0b 2025-11-05 08:10:10,170 - DEBUG - Requesting: http://10.0.0.133:8082/virtual-network/86f95b68-742e-40be-8d3a-36d94e6d04b4 2025-11-05 08:10:10,182 - DEBUG - Requesting: http://10.0.0.133:8082/virtual-network/86f95b68-742e-40be-8d3a-36d94e6d04b4 2025-11-05 08:10:10,191 - DEBUG - Requesting: http://10.0.0.133:8082/routing-instance/a962ec89-be9c-4887-9327-6df975dbdd6f 2025-11-05 08:10:10,197 - DEBUG - Requesting: http://10.0.0.133:8082/routing-instance/a962ec89-be9c-4887-9327-6df975dbdd6f 2025-11-05 08:10:10,203 - DEBUG - Requesting: http://10.0.0.133:8082/route-target/10337840-0b72-470a-8106-bcd56590a9fc 2025-11-05 08:10:10,208 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-05 08:10:10,209 - DEBUG - Requesting: http://10.0.0.133:8082/virtual-network/86f95b68-742e-40be-8d3a-36d94e6d04b4 2025-11-05 08:10:10,217 - DEBUG - Requesting: http://10.0.0.133:8082/routing-instance/a962ec89-be9c-4887-9327-6df975dbdd6f 2025-11-05 08:10:10,229 - INFO - Verified VN network id 12 for VN 86f95b68-742e-40be-8d3a-36d94e6d04b4 2025-11-05 08:10:10,229 - INFO - Verifications in API Server for VN ctest-vn4-04418395 passed 2025-11-05 08:10:10,229 - DEBUG - Requesting: http://10.0.0.133:8082/virtual-network/86f95b68-742e-40be-8d3a-36d94e6d04b4 2025-11-05 08:10:10,239 - DEBUG - Requesting: http://10.0.0.133:8082/routing-instance/a962ec89-be9c-4887-9327-6df975dbdd6f 2025-11-05 08:10:10,246 - DEBUG - Requesting: http://10.0.0.133:8082/routing-instance/a962ec89-be9c-4887-9327-6df975dbdd6f 2025-11-05 08:10:10,252 - DEBUG - Requesting: http://10.0.0.133:8082/route-target/10337840-0b72-470a-8106-bcd56590a9fc 2025-11-05 08:10:10,262 - DEBUG - Control-node 10.0.0.133 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-50889888:ctest-vn4-04418395', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-50889888', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9725905374467211454', 'uuid-lslong': '10176506614948627636'}, 'enable': 'true', 'created': '2025-11-05T08:10:08', 'last-modified': '2025-11-05T08:10:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.705242'} 2025-11-05 08:10:10,268 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-05 08:10:10,268 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-04418395 passed 2025-11-05 08:10:10,268 - DEBUG - ====Verifying policy data for ctest-vn4-04418395 in API_Server ====== 2025-11-05 08:10:10,268 - DEBUG - Requesting: http://10.0.0.133:8082/domains 2025-11-05 08:10:10,274 - DEBUG - Requesting: http://10.0.0.133:8082/domain/7e7a7568-7cce-4d3b-bae0-b2e2c4f23c1c 2025-11-05 08:10:10,283 - DEBUG - Requesting: http://10.0.0.133:8082/project/60e1eaeb-528f-46e2-8972-b3edaddd5a0b 2025-11-05 08:10:10,361 - DEBUG - Requesting: http://10.0.0.133:8082/virtual-network/86f95b68-742e-40be-8d3a-36d94e6d04b4 2025-11-05 08:10:10,370 - DEBUG - ==>Verifying data for policy with id: 76b020ff-de00-4668-969e-7550adc3e271, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-50889888', 'ctest-policy1-68055799'] 2025-11-05 08:10:10,370 - INFO - VN ctest-vn4-04418395 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-05 08:10:10,370 - DEBUG - Verifying the vn in opserver 2025-11-05 08:10:10,370 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-50889888:ctest-vn4-04418395 virtual network link through opserver 10.0.0.133 2025-11-05 08:10:10,370 - DEBUG - Requesting: http://10.0.0.133:8081/analytics/uves/virtual-networks 2025-11-05 08:10:10,689 - DEBUG - Requesting: http://10.0.0.133:8081/analytics/uves/virtual-networks 2025-11-05 08:10:10,751 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-50889888:ctest-vn4-04418395', 'href': 'http://10.0.0.133:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-50889888:ctest-vn4-04418395?flat'} 2025-11-05 08:10:10,751 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-50889888:ctest-vn4-04418395 is found in opserver 2025-11-05 08:10:10,763 - DEBUG - Do not have enough data to verify VN in agent 2025-11-05 08:10:10,769 - DEBUG - VRF ids for VN ctest-vn4-04418395: {} 2025-11-05 08:10:10,770 - DEBUG - ====Verifying data for ctest-policy1-68055799 in API_Server ====== 2025-11-05 08:10:10,770 - DEBUG - Requesting: http://10.0.0.133:8082/domains 2025-11-05 08:10:10,776 - DEBUG - Requesting: http://10.0.0.133:8082/domain/7e7a7568-7cce-4d3b-bae0-b2e2c4f23c1c 2025-11-05 08:10:10,789 - DEBUG - Requesting: http://10.0.0.133:8082/project/60e1eaeb-528f-46e2-8972-b3edaddd5a0b 2025-11-05 08:10:10,866 - DEBUG - Requesting: http://10.0.0.133:8082/network-policy/76b020ff-de00-4668-969e-7550adc3e271 2025-11-05 08:10:10,875 - INFO - Verified policy ctest-policy1-68055799 in API Server, Result: True 2025-11-05 08:10:10,875 - INFO - Done with setup and verification, moving onto test .. 2025-11-05 08:10:10,883 - INFO - Deleting VN ctest-vn4-04418395 2025-11-05 08:10:10,990 - DEBUG - Response for deleting network () 2025-11-05 08:10:10,990 - DEBUG - Requesting: http://10.0.0.133:8082/routing-instance/a962ec89-be9c-4887-9327-6df975dbdd6f 2025-11-05 08:10:10,994 - DEBUG - Response Code: 404 2025-11-05 08:10:10,994 - DEBUG - Requesting: http://10.0.0.133:8082/domains 2025-11-05 08:10:10,999 - DEBUG - Requesting: http://10.0.0.133:8082/domain/7e7a7568-7cce-4d3b-bae0-b2e2c4f23c1c 2025-11-05 08:10:11,050 - DEBUG - Requesting: http://10.0.0.133:8082/project/60e1eaeb-528f-46e2-8972-b3edaddd5a0b 2025-11-05 08:10:11,118 - INFO - Validated that VN ctest-vn4-04418395 is not found in API Server 2025-11-05 08:10:11,127 - DEBUG - VN ctest-vn4-04418395 is not present in Agent 10.0.0.133 2025-11-05 08:10:11,127 - INFO - Validated that VN ctest-vn4-04418395 is not in any agent 2025-11-05 08:10:11,145 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-04418395 info 2025-11-05 08:10:11,166 - INFO - Deleted policy ctest-policy1-68055799 2025-11-05 08:10:11,325 - DEBUG - policy ctest-policy1-68055799 is not found in API Server 2025-11-05 08:10:11,577 - DEBUG - No XMPP flaps were noticed during the test 2025-11-05 08:10:11,577 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-11-05 08:10:11,577 - INFO - -------------------------------------------------------------------------------- 2025-11-05 08:10:11,866 - DEBUG - No XMPP flaps were noticed during the test 2025-11-05 08:10:11,866 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-11-05 08:10:11,866 - INFO - -------------------------------------------------------------------------------- 2025-11-05 08:10:12,561 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-50889888, ID : 60e1eaeb-528f-46e2-8972-b3edaddd5a0b