2025-08-04 02:16:33,508 - INFO - Domain Default found not creating 2025-08-04 02:16:33,658 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-51130233 not found, creating it 2025-08-04 02:16:34,131 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-51130233, ID : a48d6d6a-214d-42dc-87e6-12a3cf56373c 2025-08-04 02:16:35,537 - INFO - ================================================================================ 2025-08-04 02:16:35,537 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-04 02:16:35,794 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-08-04 02:16:35,794 - INFO - Initial checks done. Running the testcase now 2025-08-04 02:16:35,794 - INFO - 2025-08-04 02:16:35,794 - INFO - ================================================================================ 2025-08-04 02:16:35,795 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-04 02:16:35,795 - 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-08-04 02:16:36,084 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-08-04 02:16:36,084 - INFO - Initial checks done. Running the testcase now 2025-08-04 02:16:36,084 - INFO - 2025-08-04 02:16:36,428 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51130233:ctest-vn4-55130815, 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-51130233:ctest-vn4-55130815, 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-51130233:ctest-vn4-55130815, 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-51130233:ctest-vn4-55130815, 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-08-04 02:16:36,949 - DEBUG - Response for create_network : {'network': {'id': 'ad44f6f6-eea0-45e1-b6e6-00a9c64a0433', 'name': 'ctest-vn4-55130815', 'tenant_id': 'a48d6d6a214d42dc87e612a3cf56373c', 'project_id': 'a48d6d6a214d42dc87e612a3cf56373c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-51130233', 'ctest-vn4-55130815'], 'port_security_enabled': True, 'description': ''}} 2025-08-04 02:16:37,117 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c0a0e77e-8629-42f9-a2f6-06fc374f896f', 'name': '', 'tenant_id': 'a48d6d6a214d42dc87e612a3cf56373c', 'network_id': 'ad44f6f6-eea0-45e1-b6e6-00a9c64a0433', 'ip_version': 4, 'cidr': '39.83.80.0/26', 'allocation_pools': [{'start': '39.83.80.2', 'end': '39.83.80.62'}], 'gateway_ip': '39.83.80.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '39.83.80.2', 'tags': [], 'project_id': 'a48d6d6a214d42dc87e612a3cf56373c'}} 2025-08-04 02:16:37,269 - DEBUG - Response for create_subnet : {'subnet': {'id': '6fade3bd-19c1-409e-ab55-bd6a3211f45f', 'name': '', 'tenant_id': 'a48d6d6a214d42dc87e612a3cf56373c', 'network_id': 'ad44f6f6-eea0-45e1-b6e6-00a9c64a0433', 'ip_version': 6, 'cidr': '226d:1dd2:7385:5716:e28b:e93::/96', 'allocation_pools': [{'start': '226d:1dd2:7385:5716:e28b:e93:0:2', 'end': '226d:1dd2:7385:5716:e28b:e93:ffff:fffe'}], 'gateway_ip': '226d:1dd2:7385:5716:e28b:e93:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '226d:1dd2:7385:5716:e28b:e93:0:2', 'tags': [], 'project_id': 'a48d6d6a214d42dc87e612a3cf56373c'}} 2025-08-04 02:16:37,292 - INFO - Created VN ctest-vn4-55130815 2025-08-04 02:16:37,353 - DEBUG - VN ctest-vn4-55130815 UUID is ad44f6f6-eea0-45e1-b6e6-00a9c64a0433 2025-08-04 02:16:37,617 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ad44f6f6-eea0-45e1-b6e6-00a9c64a0433', 'name': 'ctest-vn4-55130815', 'tenant_id': 'a48d6d6a214d42dc87e612a3cf56373c', 'project_id': 'a48d6d6a214d42dc87e612a3cf56373c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c0a0e77e-8629-42f9-a2f6-06fc374f896f', '6fade3bd-19c1-409e-ab55-bd6a3211f45f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-51130233', 'ctest-vn4-55130815'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-51130233', 'ctest-policy1-41305412']], 'subnet_ipam': [{'subnet_cidr': '39.83.80.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '226d:1dd2:7385:5716:e28b:e93::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-04 02:16:37,785 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-04 02:16:38,078 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-04 02:16:38,107 - DEBUG - Requesting: http://10.0.0.254:8082/domain/9451a3d0-e32d-470e-b8cb-194241f421ee 2025-08-04 02:16:38,121 - DEBUG - Requesting: http://10.0.0.254:8082/project/a48d6d6a-214d-42dc-87e6-12a3cf56373c 2025-08-04 02:16:38,201 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ad44f6f6-eea0-45e1-b6e6-00a9c64a0433 2025-08-04 02:16:38,216 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ad44f6f6-eea0-45e1-b6e6-00a9c64a0433 2025-08-04 02:16:38,230 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/dfa03eba-243d-4bd8-9d09-2e555b75079d 2025-08-04 02:16:38,238 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/dfa03eba-243d-4bd8-9d09-2e555b75079d 2025-08-04 02:16:38,246 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/47bf3838-56b6-4217-861b-46c68b6835a8 2025-08-04 02:16:38,253 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-04 02:16:38,253 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ad44f6f6-eea0-45e1-b6e6-00a9c64a0433 2025-08-04 02:16:38,264 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/dfa03eba-243d-4bd8-9d09-2e555b75079d 2025-08-04 02:16:38,278 - INFO - Verified VN network id 12 for VN ad44f6f6-eea0-45e1-b6e6-00a9c64a0433 2025-08-04 02:16:38,279 - INFO - Verifications in API Server for VN ctest-vn4-55130815 passed 2025-08-04 02:16:38,279 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ad44f6f6-eea0-45e1-b6e6-00a9c64a0433 2025-08-04 02:16:38,290 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/dfa03eba-243d-4bd8-9d09-2e555b75079d 2025-08-04 02:16:38,298 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/dfa03eba-243d-4bd8-9d09-2e555b75079d 2025-08-04 02:16:38,305 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/47bf3838-56b6-4217-861b-46c68b6835a8 2025-08-04 02:16:38,321 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51130233:ctest-vn4-55130815', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-51130233', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12485375607403726305', 'uuid-lslong': '13179222088722547763'}, 'enable': 'true', 'created': '2025-08-04T02:16:36', 'last-modified': '2025-08-04T02:16:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.754802'} 2025-08-04 02:16:38,328 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-04 02:16:38,328 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-55130815 passed 2025-08-04 02:16:38,329 - DEBUG - ====Verifying policy data for ctest-vn4-55130815 in API_Server ====== 2025-08-04 02:16:38,329 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-04 02:16:38,335 - DEBUG - Requesting: http://10.0.0.254:8082/domain/9451a3d0-e32d-470e-b8cb-194241f421ee 2025-08-04 02:16:38,350 - DEBUG - Requesting: http://10.0.0.254:8082/project/a48d6d6a-214d-42dc-87e6-12a3cf56373c 2025-08-04 02:16:38,424 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ad44f6f6-eea0-45e1-b6e6-00a9c64a0433 2025-08-04 02:16:38,436 - DEBUG - ==>Verifying data for policy with id: 1ea8b421-4539-46c5-abb9-a0672df7e40c, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-51130233', 'ctest-policy1-41305412'] 2025-08-04 02:16:38,436 - INFO - VN ctest-vn4-55130815 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-04 02:16:38,436 - DEBUG - Verifying the vn in opserver 2025-08-04 02:16:38,436 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51130233:ctest-vn4-55130815 virtual network link through opserver 10.0.0.254 2025-08-04 02:16:38,436 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-08-04 02:16:38,732 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-08-04 02:16:38,788 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51130233:ctest-vn4-55130815', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51130233:ctest-vn4-55130815?flat'} 2025-08-04 02:16:38,788 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51130233:ctest-vn4-55130815 is found in opserver 2025-08-04 02:16:38,799 - DEBUG - Do not have enough data to verify VN in agent 2025-08-04 02:16:38,805 - DEBUG - VRF ids for VN ctest-vn4-55130815: {} 2025-08-04 02:16:38,805 - DEBUG - ====Verifying data for ctest-policy1-41305412 in API_Server ====== 2025-08-04 02:16:38,805 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-04 02:16:38,811 - DEBUG - Requesting: http://10.0.0.254:8082/domain/9451a3d0-e32d-470e-b8cb-194241f421ee 2025-08-04 02:16:38,835 - DEBUG - Requesting: http://10.0.0.254:8082/project/a48d6d6a-214d-42dc-87e6-12a3cf56373c 2025-08-04 02:16:38,920 - DEBUG - Requesting: http://10.0.0.254:8082/network-policy/1ea8b421-4539-46c5-abb9-a0672df7e40c 2025-08-04 02:16:38,932 - INFO - Verified policy ctest-policy1-41305412 in API Server, Result: True 2025-08-04 02:16:38,933 - INFO - Done with setup and verification, moving onto test .. 2025-08-04 02:16:38,941 - INFO - Deleting VN ctest-vn4-55130815 2025-08-04 02:16:39,070 - DEBUG - Response for deleting network () 2025-08-04 02:16:39,070 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/dfa03eba-243d-4bd8-9d09-2e555b75079d 2025-08-04 02:16:39,075 - DEBUG - Response Code: 404 2025-08-04 02:16:39,076 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-04 02:16:39,081 - DEBUG - Requesting: http://10.0.0.254:8082/domain/9451a3d0-e32d-470e-b8cb-194241f421ee 2025-08-04 02:16:39,135 - DEBUG - Requesting: http://10.0.0.254:8082/project/a48d6d6a-214d-42dc-87e6-12a3cf56373c 2025-08-04 02:16:39,211 - INFO - Validated that VN ctest-vn4-55130815 is not found in API Server 2025-08-04 02:16:39,222 - DEBUG - VN ctest-vn4-55130815 is not present in Agent 10.0.0.254 2025-08-04 02:16:39,222 - INFO - Validated that VN ctest-vn4-55130815 is not in any agent 2025-08-04 02:16:39,240 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-55130815 info 2025-08-04 02:16:39,270 - INFO - Deleted policy ctest-policy1-41305412 2025-08-04 02:16:39,432 - DEBUG - policy ctest-policy1-41305412 is not found in API Server 2025-08-04 02:16:39,687 - DEBUG - No XMPP flaps were noticed during the test