2025-07-23 15:56:24,941 - INFO - Domain Default found not creating 2025-07-23 15:56:25,111 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-36004391 not found, creating it 2025-07-23 15:56:25,574 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-36004391, ID : c62e2b3e-c603-4412-b4a8-767cf4defd3a 2025-07-23 15:56:27,332 - INFO - ================================================================================ 2025-07-23 15:56:27,333 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-07-23 15:56:27,589 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.192': '0'}} with 2025-07-23 15:56:27,589 - INFO - Initial checks done. Running the testcase now 2025-07-23 15:56:27,589 - INFO - 2025-07-23 15:56:27,589 - INFO - ================================================================================ 2025-07-23 15:56:27,589 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-07-23 15:56:27,589 - 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-23 15:56:27,883 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.192': '0'}} with 2025-07-23 15:56:27,883 - INFO - Initial checks done. Running the testcase now 2025-07-23 15:56:27,883 - INFO - 2025-07-23 15:56:28,211 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36004391:ctest-vn4-10427111, 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-36004391:ctest-vn4-10427111, 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-36004391:ctest-vn4-10427111, 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-36004391:ctest-vn4-10427111, 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-23 15:56:28,728 - DEBUG - Response for create_network : {'network': {'id': 'f3ac2092-ce9f-4065-b6e9-84aa93dd26ae', 'name': 'ctest-vn4-10427111', 'tenant_id': 'c62e2b3ec6034412b4a8767cf4defd3a', 'project_id': 'c62e2b3ec6034412b4a8767cf4defd3a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-36004391', 'ctest-vn4-10427111'], 'port_security_enabled': True, 'description': ''}} 2025-07-23 15:56:28,919 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a72b2588-f745-4a3e-bbf9-572478a13fa8', 'name': '', 'tenant_id': 'c62e2b3ec6034412b4a8767cf4defd3a', 'network_id': 'f3ac2092-ce9f-4065-b6e9-84aa93dd26ae', 'ip_version': 4, 'cidr': '2.34.79.0/26', 'allocation_pools': [{'start': '2.34.79.2', 'end': '2.34.79.62'}], 'gateway_ip': '2.34.79.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2.34.79.2', 'tags': [], 'project_id': 'c62e2b3ec6034412b4a8767cf4defd3a'}} 2025-07-23 15:56:29,114 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b847e2e6-9131-4018-9a2b-74e6aba5c3fc', 'name': '', 'tenant_id': 'c62e2b3ec6034412b4a8767cf4defd3a', 'network_id': 'f3ac2092-ce9f-4065-b6e9-84aa93dd26ae', 'ip_version': 6, 'cidr': '2960:f9c9:d9cb:f4a6:fa0b:e2b7::/96', 'allocation_pools': [{'start': '2960:f9c9:d9cb:f4a6:fa0b:e2b7:0:2', 'end': '2960:f9c9:d9cb:f4a6:fa0b:e2b7:ffff:fffe'}], 'gateway_ip': '2960:f9c9:d9cb:f4a6:fa0b:e2b7:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2960:f9c9:d9cb:f4a6:fa0b:e2b7:0:2', 'tags': [], 'project_id': 'c62e2b3ec6034412b4a8767cf4defd3a'}} 2025-07-23 15:56:29,141 - INFO - Created VN ctest-vn4-10427111 2025-07-23 15:56:29,195 - DEBUG - VN ctest-vn4-10427111 UUID is f3ac2092-ce9f-4065-b6e9-84aa93dd26ae 2025-07-23 15:56:29,419 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f3ac2092-ce9f-4065-b6e9-84aa93dd26ae', 'name': 'ctest-vn4-10427111', 'tenant_id': 'c62e2b3ec6034412b4a8767cf4defd3a', 'project_id': 'c62e2b3ec6034412b4a8767cf4defd3a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a72b2588-f745-4a3e-bbf9-572478a13fa8', 'b847e2e6-9131-4018-9a2b-74e6aba5c3fc'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-36004391', 'ctest-vn4-10427111'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-36004391', 'ctest-policy1-69031440']], 'subnet_ipam': [{'subnet_cidr': '2.34.79.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2960:f9c9:d9cb:f4a6:fa0b:e2b7::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-07-23 15:56:29,587 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-07-23 15:56:29,879 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-07-23 15:56:29,907 - DEBUG - Requesting: http://10.0.0.19:8082/domain/d65b1b04-0716-43bd-8fa5-c3e2338f0bd4 2025-07-23 15:56:29,921 - DEBUG - Requesting: http://10.0.0.19:8082/project/c62e2b3e-c603-4412-b4a8-767cf4defd3a 2025-07-23 15:56:29,995 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/f3ac2092-ce9f-4065-b6e9-84aa93dd26ae 2025-07-23 15:56:30,010 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/f3ac2092-ce9f-4065-b6e9-84aa93dd26ae 2025-07-23 15:56:30,024 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/bb40f3ec-d582-40f3-a587-99661e9ad614 2025-07-23 15:56:30,035 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/bb40f3ec-d582-40f3-a587-99661e9ad614 2025-07-23 15:56:30,045 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/74b9a9ab-a508-46c9-8a8a-ed4888c971f4 2025-07-23 15:56:30,055 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-23 15:56:30,055 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/f3ac2092-ce9f-4065-b6e9-84aa93dd26ae 2025-07-23 15:56:30,069 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/bb40f3ec-d582-40f3-a587-99661e9ad614 2025-07-23 15:56:30,088 - INFO - Verified VN network id 9 for VN f3ac2092-ce9f-4065-b6e9-84aa93dd26ae 2025-07-23 15:56:30,088 - INFO - Verifications in API Server for VN ctest-vn4-10427111 passed 2025-07-23 15:56:30,088 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/f3ac2092-ce9f-4065-b6e9-84aa93dd26ae 2025-07-23 15:56:30,107 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/bb40f3ec-d582-40f3-a587-99661e9ad614 2025-07-23 15:56:30,116 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/bb40f3ec-d582-40f3-a587-99661e9ad614 2025-07-23 15:56:30,124 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/74b9a9ab-a508-46c9-8a8a-ed4888c971f4 2025-07-23 15:56:30,137 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36004391:ctest-vn4-10427111', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-36004391', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17558444862114578533', 'uuid-lslong': '13180211652636518062'}, 'enable': 'true', 'created': '2025-07-23T15:56:28', 'last-modified': '2025-07-23T15:56:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.750127'} 2025-07-23 15:56:30,146 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-23 15:56:30,146 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-10427111 passed 2025-07-23 15:56:30,146 - DEBUG - ====Verifying policy data for ctest-vn4-10427111 in API_Server ====== 2025-07-23 15:56:30,146 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-07-23 15:56:30,154 - DEBUG - Requesting: http://10.0.0.19:8082/domain/d65b1b04-0716-43bd-8fa5-c3e2338f0bd4 2025-07-23 15:56:30,167 - DEBUG - Requesting: http://10.0.0.19:8082/project/c62e2b3e-c603-4412-b4a8-767cf4defd3a 2025-07-23 15:56:30,244 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/f3ac2092-ce9f-4065-b6e9-84aa93dd26ae 2025-07-23 15:56:30,260 - DEBUG - ==>Verifying data for policy with id: 20014689-cc99-4d4e-bcf6-36ab047ce549, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-36004391', 'ctest-policy1-69031440'] 2025-07-23 15:56:30,260 - INFO - VN ctest-vn4-10427111 Policy verification: verify_vn_policy_in_api_server, status: True 2025-07-23 15:56:30,260 - DEBUG - Verifying the vn in opserver 2025-07-23 15:56:30,261 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36004391:ctest-vn4-10427111 virtual network link through opserver 10.0.0.19 2025-07-23 15:56:30,261 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2025-07-23 15:56:30,556 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2025-07-23 15:56:30,630 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36004391:ctest-vn4-10427111', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36004391:ctest-vn4-10427111?flat'} 2025-07-23 15:56:30,630 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36004391:ctest-vn4-10427111 is found in opserver 2025-07-23 15:56:30,642 - DEBUG - Do not have enough data to verify VN in agent 2025-07-23 15:56:30,649 - DEBUG - VRF ids for VN ctest-vn4-10427111: {} 2025-07-23 15:56:30,650 - DEBUG - ====Verifying data for ctest-policy1-69031440 in API_Server ====== 2025-07-23 15:56:30,650 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-07-23 15:56:30,656 - DEBUG - Requesting: http://10.0.0.19:8082/domain/d65b1b04-0716-43bd-8fa5-c3e2338f0bd4 2025-07-23 15:56:30,669 - DEBUG - Requesting: http://10.0.0.19:8082/project/c62e2b3e-c603-4412-b4a8-767cf4defd3a 2025-07-23 15:56:30,747 - DEBUG - Requesting: http://10.0.0.19:8082/network-policy/20014689-cc99-4d4e-bcf6-36ab047ce549 2025-07-23 15:56:30,758 - INFO - Verified policy ctest-policy1-69031440 in API Server, Result: True 2025-07-23 15:56:30,759 - INFO - Done with setup and verification, moving onto test .. 2025-07-23 15:56:30,768 - INFO - Deleting VN ctest-vn4-10427111 2025-07-23 15:56:30,901 - DEBUG - Response for deleting network () 2025-07-23 15:56:30,901 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/bb40f3ec-d582-40f3-a587-99661e9ad614 2025-07-23 15:56:30,907 - DEBUG - Response Code: 404 2025-07-23 15:56:30,908 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-07-23 15:56:30,914 - DEBUG - Requesting: http://10.0.0.19:8082/domain/d65b1b04-0716-43bd-8fa5-c3e2338f0bd4 2025-07-23 15:56:30,969 - DEBUG - Requesting: http://10.0.0.19:8082/project/c62e2b3e-c603-4412-b4a8-767cf4defd3a 2025-07-23 15:56:31,047 - INFO - Validated that VN ctest-vn4-10427111 is not found in API Server 2025-07-23 15:56:31,061 - DEBUG - VN ctest-vn4-10427111 is not present in Agent 10.0.0.19 2025-07-23 15:56:31,062 - INFO - Validated that VN ctest-vn4-10427111 is not in any agent 2025-07-23 15:56:31,083 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-10427111 info 2025-07-23 15:56:31,118 - INFO - Deleted policy ctest-policy1-69031440 2025-07-23 15:56:31,303 - DEBUG - policy ctest-policy1-69031440 is not found in API Server 2025-07-23 15:56:31,561 - DEBUG - No XMPP flaps were noticed during the test 2025-07-23 15:56:31,561 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-07-23 15:56:31,561 - INFO - -------------------------------------------------------------------------------- 2025-07-23 15:56:31,853 - DEBUG - No XMPP flaps were noticed during the test 2025-07-23 15:56:31,853 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-07-23 15:56:31,853 - INFO - -------------------------------------------------------------------------------- 2025-07-23 15:56:32,538 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-36004391, ID : c62e2b3e-c603-4412-b4a8-767cf4defd3a