2025-09-18 01:50:00,703 - INFO - Domain Default found not creating 2025-09-18 01:50:00,850 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-51767791 not found, creating it 2025-09-18 01:50:01,272 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-51767791, ID : 6b36760c-0c1b-4d75-8782-1572c7d5831c 2025-09-18 01:50:02,638 - INFO - ================================================================================ 2025-09-18 01:50:02,638 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-18 01:50:02,890 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.254': '0'}} with 2025-09-18 01:50:02,890 - INFO - Initial checks done. Running the testcase now 2025-09-18 01:50:02,890 - INFO - 2025-09-18 01:50:02,890 - INFO - ================================================================================ 2025-09-18 01:50:02,890 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-18 01:50:02,891 - 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-18 01:50:03,182 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.254': '0'}} with 2025-09-18 01:50:03,182 - INFO - Initial checks done. Running the testcase now 2025-09-18 01:50:03,182 - INFO - 2025-09-18 01:50:03,536 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51767791:ctest-vn4-77097616, 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-51767791:ctest-vn4-77097616, 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-51767791:ctest-vn4-77097616, 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-51767791:ctest-vn4-77097616, 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-18 01:50:04,026 - DEBUG - Response for create_network : {'network': {'id': '58941fcc-c1b4-4a13-8a41-0696989b93e6', 'name': 'ctest-vn4-77097616', 'tenant_id': '6b36760c0c1b4d7587821572c7d5831c', 'project_id': '6b36760c0c1b4d7587821572c7d5831c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-51767791', 'ctest-vn4-77097616'], 'port_security_enabled': True, 'description': ''}} 2025-09-18 01:50:04,215 - DEBUG - Response for create_subnet : {'subnet': {'id': '76547c89-940a-471e-80a2-821eba0ed23b', 'name': '', 'tenant_id': '6b36760c0c1b4d7587821572c7d5831c', 'network_id': '58941fcc-c1b4-4a13-8a41-0696989b93e6', 'ip_version': 4, 'cidr': '135.91.99.0/26', 'allocation_pools': [{'start': '135.91.99.2', 'end': '135.91.99.62'}], 'gateway_ip': '135.91.99.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '135.91.99.2', 'tags': [], 'project_id': '6b36760c0c1b4d7587821572c7d5831c'}} 2025-09-18 01:50:04,351 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bdcfa1e7-5ddf-4586-abee-49d183b9ff1e', 'name': '', 'tenant_id': '6b36760c0c1b4d7587821572c7d5831c', 'network_id': '58941fcc-c1b4-4a13-8a41-0696989b93e6', 'ip_version': 6, 'cidr': '33fd:5b9e:a8e3:35e0:8119:6db5::/96', 'allocation_pools': [{'start': '33fd:5b9e:a8e3:35e0:8119:6db5:0:2', 'end': '33fd:5b9e:a8e3:35e0:8119:6db5:ffff:fffe'}], 'gateway_ip': '33fd:5b9e:a8e3:35e0:8119:6db5:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '33fd:5b9e:a8e3:35e0:8119:6db5:0:2', 'tags': [], 'project_id': '6b36760c0c1b4d7587821572c7d5831c'}} 2025-09-18 01:50:04,371 - INFO - Created VN ctest-vn4-77097616 2025-09-18 01:50:04,421 - DEBUG - VN ctest-vn4-77097616 UUID is 58941fcc-c1b4-4a13-8a41-0696989b93e6 2025-09-18 01:50:04,624 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '58941fcc-c1b4-4a13-8a41-0696989b93e6', 'name': 'ctest-vn4-77097616', 'tenant_id': '6b36760c0c1b4d7587821572c7d5831c', 'project_id': '6b36760c0c1b4d7587821572c7d5831c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['76547c89-940a-471e-80a2-821eba0ed23b', 'bdcfa1e7-5ddf-4586-abee-49d183b9ff1e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-51767791', 'ctest-vn4-77097616'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-51767791', 'ctest-policy1-83045725']], 'subnet_ipam': [{'subnet_cidr': '135.91.99.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '33fd:5b9e:a8e3:35e0:8119:6db5::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-18 01:50:04,789 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-09-18 01:50:05,082 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-09-18 01:50:05,109 - DEBUG - Requesting: http://10.0.0.19:8082/domain/f150ecda-b6d6-4e81-b4f4-7b8830876085 2025-09-18 01:50:05,120 - DEBUG - Requesting: http://10.0.0.19:8082/project/6b36760c-0c1b-4d75-8782-1572c7d5831c 2025-09-18 01:50:05,187 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/58941fcc-c1b4-4a13-8a41-0696989b93e6 2025-09-18 01:50:05,197 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/58941fcc-c1b4-4a13-8a41-0696989b93e6 2025-09-18 01:50:05,204 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/f416864b-bd16-4d51-bd77-83e94f25ad84 2025-09-18 01:50:05,213 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/f416864b-bd16-4d51-bd77-83e94f25ad84 2025-09-18 01:50:05,219 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/692bedc9-5430-44c2-b32e-101bd829cca6 2025-09-18 01:50:05,224 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-18 01:50:05,224 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/58941fcc-c1b4-4a13-8a41-0696989b93e6 2025-09-18 01:50:05,232 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/f416864b-bd16-4d51-bd77-83e94f25ad84 2025-09-18 01:50:05,243 - INFO - Verified VN network id 12 for VN 58941fcc-c1b4-4a13-8a41-0696989b93e6 2025-09-18 01:50:05,243 - INFO - Verifications in API Server for VN ctest-vn4-77097616 passed 2025-09-18 01:50:05,243 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/58941fcc-c1b4-4a13-8a41-0696989b93e6 2025-09-18 01:50:05,250 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/f416864b-bd16-4d51-bd77-83e94f25ad84 2025-09-18 01:50:05,255 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/f416864b-bd16-4d51-bd77-83e94f25ad84 2025-09-18 01:50:05,260 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/692bedc9-5430-44c2-b32e-101bd829cca6 2025-09-18 01:50:05,269 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51767791:ctest-vn4-77097616', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-51767791', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6382761536174443027', 'uuid-lslong': '9962251094595441638'}, 'enable': 'true', 'created': '2025-09-18T01:50:04', 'last-modified': '2025-09-18T01:50:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.667231'} 2025-09-18 01:50:05,273 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-18 01:50:05,274 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-77097616 passed 2025-09-18 01:50:05,274 - DEBUG - ====Verifying policy data for ctest-vn4-77097616 in API_Server ====== 2025-09-18 01:50:05,274 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-09-18 01:50:05,278 - DEBUG - Requesting: http://10.0.0.19:8082/domain/f150ecda-b6d6-4e81-b4f4-7b8830876085 2025-09-18 01:50:05,286 - DEBUG - Requesting: http://10.0.0.19:8082/project/6b36760c-0c1b-4d75-8782-1572c7d5831c 2025-09-18 01:50:05,353 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/58941fcc-c1b4-4a13-8a41-0696989b93e6 2025-09-18 01:50:05,362 - DEBUG - ==>Verifying data for policy with id: ef775adc-2a57-47df-a580-1549f177e94b, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-51767791', 'ctest-policy1-83045725'] 2025-09-18 01:50:05,362 - INFO - VN ctest-vn4-77097616 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-18 01:50:05,362 - DEBUG - Verifying the vn in opserver 2025-09-18 01:50:05,362 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51767791:ctest-vn4-77097616 virtual network link through opserver 10.0.0.19 2025-09-18 01:50:05,362 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2025-09-18 01:50:05,653 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2025-09-18 01:50:05,702 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51767791:ctest-vn4-77097616', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51767791:ctest-vn4-77097616?flat'} 2025-09-18 01:50:05,702 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51767791:ctest-vn4-77097616 is found in opserver 2025-09-18 01:50:05,710 - DEBUG - Do not have enough data to verify VN in agent 2025-09-18 01:50:05,714 - DEBUG - VRF ids for VN ctest-vn4-77097616: {} 2025-09-18 01:50:05,714 - DEBUG - ====Verifying data for ctest-policy1-83045725 in API_Server ====== 2025-09-18 01:50:05,714 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-09-18 01:50:05,719 - DEBUG - Requesting: http://10.0.0.19:8082/domain/f150ecda-b6d6-4e81-b4f4-7b8830876085 2025-09-18 01:50:05,727 - DEBUG - Requesting: http://10.0.0.19:8082/project/6b36760c-0c1b-4d75-8782-1572c7d5831c 2025-09-18 01:50:05,792 - DEBUG - Requesting: http://10.0.0.19:8082/network-policy/ef775adc-2a57-47df-a580-1549f177e94b 2025-09-18 01:50:05,799 - INFO - Verified policy ctest-policy1-83045725 in API Server, Result: True 2025-09-18 01:50:05,799 - INFO - Done with setup and verification, moving onto test .. 2025-09-18 01:50:05,807 - INFO - Deleting VN ctest-vn4-77097616 2025-09-18 01:50:05,903 - DEBUG - Response for deleting network () 2025-09-18 01:50:05,904 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/f416864b-bd16-4d51-bd77-83e94f25ad84 2025-09-18 01:50:05,908 - DEBUG - Response Code: 404 2025-09-18 01:50:05,908 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-09-18 01:50:05,912 - DEBUG - Requesting: http://10.0.0.19:8082/domain/f150ecda-b6d6-4e81-b4f4-7b8830876085 2025-09-18 01:50:05,965 - DEBUG - Requesting: http://10.0.0.19:8082/project/6b36760c-0c1b-4d75-8782-1572c7d5831c 2025-09-18 01:50:06,032 - INFO - Validated that VN ctest-vn4-77097616 is not found in API Server 2025-09-18 01:50:06,040 - DEBUG - VN ctest-vn4-77097616 is not present in Agent 10.0.0.19 2025-09-18 01:50:06,040 - INFO - Validated that VN ctest-vn4-77097616 is not in any agent 2025-09-18 01:50:06,052 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-77097616 info 2025-09-18 01:50:06,074 - INFO - Deleted policy ctest-policy1-83045725 2025-09-18 01:50:06,237 - DEBUG - policy ctest-policy1-83045725 is not found in API Server 2025-09-18 01:50:06,491 - DEBUG - No XMPP flaps were noticed during the test
2025-09-18 01:50:06,491 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-09-18 01:50:06,491 - INFO - -------------------------------------------------------------------------------- 2025-09-18 01:50:06,777 - DEBUG - No XMPP flaps were noticed during the test
2025-09-18 01:50:06,777 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-09-18 01:50:06,777 - INFO - -------------------------------------------------------------------------------- 2025-09-18 01:50:07,485 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-51767791, ID : 6b36760c-0c1b-4d75-8782-1572c7d5831c