2025-09-19 06:29:41,014 - INFO - Domain Default found not creating 2025-09-19 06:29:41,148 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-02527776 not found, creating it 2025-09-19 06:29:41,583 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-02527776, ID : b2b8759e-94e4-4163-a99b-4fd4a4cf1b51 2025-09-19 06:29:42,990 - INFO - ================================================================================ 2025-09-19 06:29:42,991 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-19 06:29:43,254 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.17': '0'}} with 2025-09-19 06:29:43,254 - INFO - Initial checks done. Running the testcase now 2025-09-19 06:29:43,254 - INFO - 2025-09-19 06:29:43,254 - INFO - ================================================================================ 2025-09-19 06:29:43,254 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-19 06:29:43,254 - 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-09-19 06:29:43,545 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.17': '0'}} with 2025-09-19 06:29:43,545 - INFO - Initial checks done. Running the testcase now 2025-09-19 06:29:43,545 - INFO - 2025-09-19 06:29:43,884 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02527776:ctest-vn4-13396117, 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-02527776:ctest-vn4-13396117, 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-02527776:ctest-vn4-13396117, 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-02527776:ctest-vn4-13396117, 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-09-19 06:29:44,367 - DEBUG - Response for create_network : {'network': {'id': 'ff511d9a-d439-487a-82ed-8866293a00d9', 'name': 'ctest-vn4-13396117', 'tenant_id': 'b2b8759e94e44163a99b4fd4a4cf1b51', 'project_id': 'b2b8759e94e44163a99b4fd4a4cf1b51', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-02527776', 'ctest-vn4-13396117'], 'port_security_enabled': True, 'description': ''}} 2025-09-19 06:29:44,514 - DEBUG - Response for create_subnet : {'subnet': {'id': '567e64f8-7882-4f7a-9284-7ba95003c1e8', 'name': '', 'tenant_id': 'b2b8759e94e44163a99b4fd4a4cf1b51', 'network_id': 'ff511d9a-d439-487a-82ed-8866293a00d9', 'ip_version': 4, 'cidr': '191.246.201.192/26', 'allocation_pools': [{'start': '191.246.201.194', 'end': '191.246.201.254'}], 'gateway_ip': '191.246.201.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '191.246.201.194', 'tags': [], 'project_id': 'b2b8759e94e44163a99b4fd4a4cf1b51'}} 2025-09-19 06:29:44,673 - DEBUG - Response for create_subnet : {'subnet': {'id': '12b72c7a-9897-4ae5-9ac8-1447083ea2dd', 'name': '', 'tenant_id': 'b2b8759e94e44163a99b4fd4a4cf1b51', 'network_id': 'ff511d9a-d439-487a-82ed-8866293a00d9', 'ip_version': 6, 'cidr': '2302:e04c:4a3d:d111:3e08:1546::/96', 'allocation_pools': [{'start': '2302:e04c:4a3d:d111:3e08:1546:0:2', 'end': '2302:e04c:4a3d:d111:3e08:1546:ffff:fffe'}], 'gateway_ip': '2302:e04c:4a3d:d111:3e08:1546:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2302:e04c:4a3d:d111:3e08:1546:0:2', 'tags': [], 'project_id': 'b2b8759e94e44163a99b4fd4a4cf1b51'}} 2025-09-19 06:29:44,691 - INFO - Created VN ctest-vn4-13396117 2025-09-19 06:29:44,741 - DEBUG - VN ctest-vn4-13396117 UUID is ff511d9a-d439-487a-82ed-8866293a00d9 2025-09-19 06:29:44,923 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ff511d9a-d439-487a-82ed-8866293a00d9', 'name': 'ctest-vn4-13396117', 'tenant_id': 'b2b8759e94e44163a99b4fd4a4cf1b51', 'project_id': 'b2b8759e94e44163a99b4fd4a4cf1b51', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['567e64f8-7882-4f7a-9284-7ba95003c1e8', '12b72c7a-9897-4ae5-9ac8-1447083ea2dd'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-02527776', 'ctest-vn4-13396117'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-02527776', 'ctest-policy1-12569458']], 'subnet_ipam': [{'subnet_cidr': '191.246.201.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2302:e04c:4a3d:d111:3e08:1546::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-19 06:29:45,081 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-09-19 06:29:45,374 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-09-19 06:29:45,401 - DEBUG - Requesting: http://10.0.0.65:8082/domain/cda59307-4118-49db-9871-4f16b76cf17c 2025-09-19 06:29:45,412 - DEBUG - Requesting: http://10.0.0.65:8082/project/b2b8759e-94e4-4163-a99b-4fd4a4cf1b51 2025-09-19 06:29:45,483 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/ff511d9a-d439-487a-82ed-8866293a00d9 2025-09-19 06:29:45,493 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/ff511d9a-d439-487a-82ed-8866293a00d9 2025-09-19 06:29:45,501 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/6cb46f84-f5e5-4ea0-9b9a-aae4090beb8c 2025-09-19 06:29:45,507 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/6cb46f84-f5e5-4ea0-9b9a-aae4090beb8c 2025-09-19 06:29:45,513 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/9c312c48-c16b-45ac-87de-102659a1ce16 2025-09-19 06:29:45,519 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-19 06:29:45,519 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/ff511d9a-d439-487a-82ed-8866293a00d9 2025-09-19 06:29:45,527 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/6cb46f84-f5e5-4ea0-9b9a-aae4090beb8c 2025-09-19 06:29:45,538 - INFO - Verified VN network id 12 for VN ff511d9a-d439-487a-82ed-8866293a00d9 2025-09-19 06:29:45,538 - INFO - Verifications in API Server for VN ctest-vn4-13396117 passed 2025-09-19 06:29:45,538 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/ff511d9a-d439-487a-82ed-8866293a00d9 2025-09-19 06:29:45,546 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/6cb46f84-f5e5-4ea0-9b9a-aae4090beb8c 2025-09-19 06:29:45,552 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/6cb46f84-f5e5-4ea0-9b9a-aae4090beb8c 2025-09-19 06:29:45,558 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/9c312c48-c16b-45ac-87de-102659a1ce16 2025-09-19 06:29:45,568 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02527776:ctest-vn4-13396117', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-02527776', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18397518503607879802', 'uuid-lslong': '9434346766770766041'}, 'enable': 'true', 'created': '2025-09-19T06:29:44', 'last-modified': '2025-09-19T06:29:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.668477'} 2025-09-19 06:29:45,573 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-19 06:29:45,573 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-13396117 passed 2025-09-19 06:29:45,573 - DEBUG - ====Verifying policy data for ctest-vn4-13396117 in API_Server ====== 2025-09-19 06:29:45,573 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-09-19 06:29:45,578 - DEBUG - Requesting: http://10.0.0.65:8082/domain/cda59307-4118-49db-9871-4f16b76cf17c 2025-09-19 06:29:45,587 - DEBUG - Requesting: http://10.0.0.65:8082/project/b2b8759e-94e4-4163-a99b-4fd4a4cf1b51 2025-09-19 06:29:45,656 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/ff511d9a-d439-487a-82ed-8866293a00d9 2025-09-19 06:29:45,667 - DEBUG - ==>Verifying data for policy with id: b259b31f-fd83-444c-b730-ef612a651347, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-02527776', 'ctest-policy1-12569458'] 2025-09-19 06:29:45,667 - INFO - VN ctest-vn4-13396117 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-19 06:29:45,667 - DEBUG - Verifying the vn in opserver 2025-09-19 06:29:45,667 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02527776:ctest-vn4-13396117 virtual network link through opserver 10.0.0.65 2025-09-19 06:29:45,667 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks 2025-09-19 06:29:45,953 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks 2025-09-19 06:29:46,003 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02527776:ctest-vn4-13396117', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02527776:ctest-vn4-13396117?flat'} 2025-09-19 06:29:46,003 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02527776:ctest-vn4-13396117 is found in opserver 2025-09-19 06:29:46,012 - DEBUG - Do not have enough data to verify VN in agent 2025-09-19 06:29:46,017 - DEBUG - VRF ids for VN ctest-vn4-13396117: {} 2025-09-19 06:29:46,017 - DEBUG - ====Verifying data for ctest-policy1-12569458 in API_Server ====== 2025-09-19 06:29:46,017 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-09-19 06:29:46,022 - DEBUG - Requesting: http://10.0.0.65:8082/domain/cda59307-4118-49db-9871-4f16b76cf17c 2025-09-19 06:29:46,033 - DEBUG - Requesting: http://10.0.0.65:8082/project/b2b8759e-94e4-4163-a99b-4fd4a4cf1b51 2025-09-19 06:29:46,100 - DEBUG - Requesting: http://10.0.0.65:8082/network-policy/b259b31f-fd83-444c-b730-ef612a651347 2025-09-19 06:29:46,108 - INFO - Verified policy ctest-policy1-12569458 in API Server, Result: True 2025-09-19 06:29:46,109 - INFO - Done with setup and verification, moving onto test .. 2025-09-19 06:29:46,115 - INFO - Deleting VN ctest-vn4-13396117 2025-09-19 06:29:46,290 - DEBUG - Response for deleting network () 2025-09-19 06:29:46,290 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/6cb46f84-f5e5-4ea0-9b9a-aae4090beb8c 2025-09-19 06:29:46,295 - DEBUG - Response Code: 404 2025-09-19 06:29:46,295 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-09-19 06:29:46,300 - DEBUG - Requesting: http://10.0.0.65:8082/domain/cda59307-4118-49db-9871-4f16b76cf17c 2025-09-19 06:29:46,349 - DEBUG - Requesting: http://10.0.0.65:8082/project/b2b8759e-94e4-4163-a99b-4fd4a4cf1b51 2025-09-19 06:29:46,424 - INFO - Validated that VN ctest-vn4-13396117 is not found in API Server 2025-09-19 06:29:46,432 - DEBUG - VN ctest-vn4-13396117 is not present in Agent 10.0.0.65 2025-09-19 06:29:46,432 - INFO - Validated that VN ctest-vn4-13396117 is not in any agent 2025-09-19 06:29:46,444 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-13396117 info 2025-09-19 06:29:46,471 - INFO - Deleted policy ctest-policy1-12569458 2025-09-19 06:29:46,632 - DEBUG - policy ctest-policy1-12569458 is not found in API Server 2025-09-19 06:29:46,897 - DEBUG - No XMPP flaps were noticed during the test
2025-09-19 06:29:46,897 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:03]
2025-09-19 06:29:46,897 - INFO - -------------------------------------------------------------------------------- 2025-09-19 06:29:47,186 - DEBUG - No XMPP flaps were noticed during the test
2025-09-19 06:29:47,186 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2025-09-19 06:29:47,186 - INFO - -------------------------------------------------------------------------------- 2025-09-19 06:29:47,857 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-02527776, ID : b2b8759e-94e4-4163-a99b-4fd4a4cf1b51