2025-08-20 11:29:38,419 - INFO - Domain Default found not creating 2025-08-20 11:29:38,547 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-94248414 not found, creating it 2025-08-20 11:29:38,975 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-94248414, ID : d9ea0f6b-b2d4-4b7d-a5af-eea7a38fcabd 2025-08-20 11:29:40,292 - INFO - ================================================================================ 2025-08-20 11:29:40,292 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-20 11:29:40,546 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2025-08-20 11:29:40,546 - INFO - Initial checks done. Running the testcase now 2025-08-20 11:29:40,546 - INFO - 2025-08-20 11:29:40,546 - INFO - ================================================================================ 2025-08-20 11:29:40,547 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-20 11:29:40,547 - 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-20 11:29:40,829 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2025-08-20 11:29:40,829 - INFO - Initial checks done. Running the testcase now 2025-08-20 11:29:40,829 - INFO - 2025-08-20 11:29:41,163 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94248414:ctest-vn4-33438071, 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-94248414:ctest-vn4-33438071, 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-94248414:ctest-vn4-33438071, 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-94248414:ctest-vn4-33438071, 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-20 11:29:41,658 - DEBUG - Response for create_network : {'network': {'id': 'bce7e9db-648b-4e76-87af-becf704c3a93', 'name': 'ctest-vn4-33438071', 'tenant_id': 'd9ea0f6bb2d44b7da5afeea7a38fcabd', 'project_id': 'd9ea0f6bb2d44b7da5afeea7a38fcabd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-94248414', 'ctest-vn4-33438071'], 'port_security_enabled': True, 'description': ''}} 2025-08-20 11:29:41,806 - DEBUG - Response for create_subnet : {'subnet': {'id': '02fe4306-6aa9-4ab8-beb8-fac5159fe140', 'name': '', 'tenant_id': 'd9ea0f6bb2d44b7da5afeea7a38fcabd', 'network_id': 'bce7e9db-648b-4e76-87af-becf704c3a93', 'ip_version': 4, 'cidr': '218.62.55.128/26', 'allocation_pools': [{'start': '218.62.55.130', 'end': '218.62.55.190'}], 'gateway_ip': '218.62.55.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '218.62.55.130', 'tags': [], 'project_id': 'd9ea0f6bb2d44b7da5afeea7a38fcabd'}} 2025-08-20 11:29:41,936 - DEBUG - Response for create_subnet : {'subnet': {'id': '56f96bb7-acde-4cc8-ac8a-9ed227de0e83', 'name': '', 'tenant_id': 'd9ea0f6bb2d44b7da5afeea7a38fcabd', 'network_id': 'bce7e9db-648b-4e76-87af-becf704c3a93', 'ip_version': 6, 'cidr': '2bf3:6249:4125:cde7:6502:c6e9::/96', 'allocation_pools': [{'start': '2bf3:6249:4125:cde7:6502:c6e9:0:2', 'end': '2bf3:6249:4125:cde7:6502:c6e9:ffff:fffe'}], 'gateway_ip': '2bf3:6249:4125:cde7:6502:c6e9:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2bf3:6249:4125:cde7:6502:c6e9:0:2', 'tags': [], 'project_id': 'd9ea0f6bb2d44b7da5afeea7a38fcabd'}} 2025-08-20 11:29:41,953 - INFO - Created VN ctest-vn4-33438071 2025-08-20 11:29:42,004 - DEBUG - VN ctest-vn4-33438071 UUID is bce7e9db-648b-4e76-87af-becf704c3a93 2025-08-20 11:29:42,183 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bce7e9db-648b-4e76-87af-becf704c3a93', 'name': 'ctest-vn4-33438071', 'tenant_id': 'd9ea0f6bb2d44b7da5afeea7a38fcabd', 'project_id': 'd9ea0f6bb2d44b7da5afeea7a38fcabd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['02fe4306-6aa9-4ab8-beb8-fac5159fe140', '56f96bb7-acde-4cc8-ac8a-9ed227de0e83'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-94248414', 'ctest-vn4-33438071'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-94248414', 'ctest-policy1-49598797']], 'subnet_ipam': [{'subnet_cidr': '218.62.55.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2bf3:6249:4125:cde7:6502:c6e9::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-20 11:29:42,348 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-08-20 11:29:42,637 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-08-20 11:29:42,661 - DEBUG - Requesting: http://10.0.0.50:8082/domain/262cf24e-f3fb-4bd5-b0d4-e45ff60b8837 2025-08-20 11:29:42,673 - DEBUG - Requesting: http://10.0.0.50:8082/project/d9ea0f6b-b2d4-4b7d-a5af-eea7a38fcabd 2025-08-20 11:29:42,744 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/bce7e9db-648b-4e76-87af-becf704c3a93 2025-08-20 11:29:42,756 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/bce7e9db-648b-4e76-87af-becf704c3a93 2025-08-20 11:29:42,765 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/32b0c096-e5b9-485d-8679-1454718eb1cc 2025-08-20 11:29:42,772 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/32b0c096-e5b9-485d-8679-1454718eb1cc 2025-08-20 11:29:42,777 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/aa8ef0df-4a95-43eb-a806-e4cd2537ee1f 2025-08-20 11:29:42,783 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-20 11:29:42,783 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/bce7e9db-648b-4e76-87af-becf704c3a93 2025-08-20 11:29:42,792 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/32b0c096-e5b9-485d-8679-1454718eb1cc 2025-08-20 11:29:42,803 - INFO - Verified VN network id 11 for VN bce7e9db-648b-4e76-87af-becf704c3a93 2025-08-20 11:29:42,803 - INFO - Verifications in API Server for VN ctest-vn4-33438071 passed 2025-08-20 11:29:42,803 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/bce7e9db-648b-4e76-87af-becf704c3a93 2025-08-20 11:29:42,812 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/32b0c096-e5b9-485d-8679-1454718eb1cc 2025-08-20 11:29:42,818 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/32b0c096-e5b9-485d-8679-1454718eb1cc 2025-08-20 11:29:42,824 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/aa8ef0df-4a95-43eb-a806-e4cd2537ee1f 2025-08-20 11:29:42,834 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94248414:ctest-vn4-33438071', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-94248414', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13612105527244574326', 'uuid-lslong': '9777243114196187795'}, 'enable': 'true', 'created': '2025-08-20T11:29:41', 'last-modified': '2025-08-20T11:29:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.678166'} 2025-08-20 11:29:42,841 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-20 11:29:42,841 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-33438071 passed 2025-08-20 11:29:42,841 - DEBUG - ====Verifying policy data for ctest-vn4-33438071 in API_Server ====== 2025-08-20 11:29:42,841 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-08-20 11:29:42,846 - DEBUG - Requesting: http://10.0.0.50:8082/domain/262cf24e-f3fb-4bd5-b0d4-e45ff60b8837 2025-08-20 11:29:42,856 - DEBUG - Requesting: http://10.0.0.50:8082/project/d9ea0f6b-b2d4-4b7d-a5af-eea7a38fcabd 2025-08-20 11:29:42,931 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/bce7e9db-648b-4e76-87af-becf704c3a93 2025-08-20 11:29:42,942 - DEBUG - ==>Verifying data for policy with id: 84af9ec8-33da-4ef9-8fb9-b7aa50c2d920, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-94248414', 'ctest-policy1-49598797'] 2025-08-20 11:29:42,942 - INFO - VN ctest-vn4-33438071 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-20 11:29:42,942 - DEBUG - Verifying the vn in opserver 2025-08-20 11:29:42,942 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94248414:ctest-vn4-33438071 virtual network link through opserver 10.0.0.50 2025-08-20 11:29:42,942 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-08-20 11:29:43,228 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-08-20 11:29:43,275 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94248414:ctest-vn4-33438071', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94248414:ctest-vn4-33438071?flat'} 2025-08-20 11:29:43,275 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94248414:ctest-vn4-33438071 is found in opserver 2025-08-20 11:29:43,285 - DEBUG - Do not have enough data to verify VN in agent 2025-08-20 11:29:43,290 - DEBUG - VRF ids for VN ctest-vn4-33438071: {} 2025-08-20 11:29:43,290 - DEBUG - ====Verifying data for ctest-policy1-49598797 in API_Server ====== 2025-08-20 11:29:43,290 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-08-20 11:29:43,295 - DEBUG - Requesting: http://10.0.0.50:8082/domain/262cf24e-f3fb-4bd5-b0d4-e45ff60b8837 2025-08-20 11:29:43,305 - DEBUG - Requesting: http://10.0.0.50:8082/project/d9ea0f6b-b2d4-4b7d-a5af-eea7a38fcabd 2025-08-20 11:29:43,376 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/84af9ec8-33da-4ef9-8fb9-b7aa50c2d920 2025-08-20 11:29:43,390 - INFO - Verified policy ctest-policy1-49598797 in API Server, Result: True 2025-08-20 11:29:43,390 - INFO - Done with setup and verification, moving onto test .. 2025-08-20 11:29:43,398 - INFO - Deleting VN ctest-vn4-33438071 2025-08-20 11:29:43,503 - DEBUG - Response for deleting network () 2025-08-20 11:29:43,503 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/32b0c096-e5b9-485d-8679-1454718eb1cc 2025-08-20 11:29:43,507 - DEBUG - Response Code: 404 2025-08-20 11:29:43,507 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-08-20 11:29:43,512 - DEBUG - Requesting: http://10.0.0.50:8082/domain/262cf24e-f3fb-4bd5-b0d4-e45ff60b8837 2025-08-20 11:29:43,564 - DEBUG - Requesting: http://10.0.0.50:8082/project/d9ea0f6b-b2d4-4b7d-a5af-eea7a38fcabd 2025-08-20 11:29:43,632 - INFO - Validated that VN ctest-vn4-33438071 is not found in API Server 2025-08-20 11:29:43,643 - DEBUG - VN ctest-vn4-33438071 is not present in Agent 10.0.0.50 2025-08-20 11:29:43,643 - INFO - Validated that VN ctest-vn4-33438071 is not in any agent 2025-08-20 11:29:43,657 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-33438071 info 2025-08-20 11:29:43,680 - INFO - Deleted policy ctest-policy1-49598797 2025-08-20 11:29:43,844 - DEBUG - policy ctest-policy1-49598797 is not found in API Server 2025-08-20 11:29:44,100 - DEBUG - No XMPP flaps were noticed during the test
2025-08-20 11:29:44,100 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-08-20 11:29:44,101 - INFO - -------------------------------------------------------------------------------- 2025-08-20 11:29:44,389 - DEBUG - No XMPP flaps were noticed during the test
2025-08-20 11:29:44,389 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-08-20 11:29:44,389 - INFO - -------------------------------------------------------------------------------- 2025-08-20 11:29:45,048 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-94248414, ID : d9ea0f6b-b2d4-4b7d-a5af-eea7a38fcabd