2025-09-23 12:25:22,936 - INFO - Domain Default found not creating 2025-09-23 12:25:23,111 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-67326097 not found, creating it 2025-09-23 12:25:23,626 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-67326097, ID : 734629bf-0bf5-4fb3-8aee-0da759fc12ef 2025-09-23 12:25:25,852 - INFO - ================================================================================ 2025-09-23 12:25:25,852 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-23 12:25:26,125 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.254': '0'}} with 2025-09-23 12:25:26,125 - INFO - Initial checks done. Running the testcase now 2025-09-23 12:25:26,125 - INFO - 2025-09-23 12:25:26,125 - INFO - ================================================================================ 2025-09-23 12:25:26,125 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-23 12:25:26,126 - 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-23 12:25:26,421 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.254': '0'}} with 2025-09-23 12:25:26,422 - INFO - Initial checks done. Running the testcase now 2025-09-23 12:25:26,422 - INFO - 2025-09-23 12:25:26,771 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-67326097:ctest-vn4-60177750, 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-67326097:ctest-vn4-60177750, 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-67326097:ctest-vn4-60177750, 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-67326097:ctest-vn4-60177750, 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-23 12:25:27,325 - DEBUG - Response for create_network : {'network': {'id': '36f8056b-ffc5-4e08-85d0-6e939d2286fc', 'name': 'ctest-vn4-60177750', 'tenant_id': '734629bf0bf54fb38aee0da759fc12ef', 'project_id': '734629bf0bf54fb38aee0da759fc12ef', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-67326097', 'ctest-vn4-60177750'], 'port_security_enabled': True, 'description': ''}} 2025-09-23 12:25:27,553 - DEBUG - Response for create_subnet : {'subnet': {'id': 'be8bfb05-988c-4747-a0e4-f426d81b4e56', 'name': '', 'tenant_id': '734629bf0bf54fb38aee0da759fc12ef', 'network_id': '36f8056b-ffc5-4e08-85d0-6e939d2286fc', 'ip_version': 4, 'cidr': '93.116.224.128/26', 'allocation_pools': [{'start': '93.116.224.130', 'end': '93.116.224.190'}], 'gateway_ip': '93.116.224.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '93.116.224.130', 'tags': [], 'project_id': '734629bf0bf54fb38aee0da759fc12ef'}} 2025-09-23 12:25:27,757 - DEBUG - Response for create_subnet : {'subnet': {'id': '9aa5251b-f412-40b2-adcd-4eb3da8efb4b', 'name': '', 'tenant_id': '734629bf0bf54fb38aee0da759fc12ef', 'network_id': '36f8056b-ffc5-4e08-85d0-6e939d2286fc', 'ip_version': 6, 'cidr': '3660:f4ae:3a5c:c39d:d7d8:eaf8::/96', 'allocation_pools': [{'start': '3660:f4ae:3a5c:c39d:d7d8:eaf8:0:2', 'end': '3660:f4ae:3a5c:c39d:d7d8:eaf8:ffff:fffe'}], 'gateway_ip': '3660:f4ae:3a5c:c39d:d7d8:eaf8:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3660:f4ae:3a5c:c39d:d7d8:eaf8:0:2', 'tags': [], 'project_id': '734629bf0bf54fb38aee0da759fc12ef'}} 2025-09-23 12:25:27,793 - INFO - Created VN ctest-vn4-60177750 2025-09-23 12:25:27,847 - DEBUG - VN ctest-vn4-60177750 UUID is 36f8056b-ffc5-4e08-85d0-6e939d2286fc 2025-09-23 12:25:28,116 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '36f8056b-ffc5-4e08-85d0-6e939d2286fc', 'name': 'ctest-vn4-60177750', 'tenant_id': '734629bf0bf54fb38aee0da759fc12ef', 'project_id': '734629bf0bf54fb38aee0da759fc12ef', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['be8bfb05-988c-4747-a0e4-f426d81b4e56', '9aa5251b-f412-40b2-adcd-4eb3da8efb4b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-67326097', 'ctest-vn4-60177750'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-67326097', 'ctest-policy1-76698422']], 'subnet_ipam': [{'subnet_cidr': '93.116.224.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3660:f4ae:3a5c:c39d:d7d8:eaf8::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-23 12:25:28,287 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-09-23 12:25:28,593 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-09-23 12:25:28,639 - DEBUG - Requesting: http://10.0.0.33:8082/domain/24e61fe2-ec6b-4a00-98f7-7be48c0359fb 2025-09-23 12:25:28,656 - DEBUG - Requesting: http://10.0.0.33:8082/project/734629bf-0bf5-4fb3-8aee-0da759fc12ef 2025-09-23 12:25:28,741 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/36f8056b-ffc5-4e08-85d0-6e939d2286fc 2025-09-23 12:25:28,756 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/36f8056b-ffc5-4e08-85d0-6e939d2286fc 2025-09-23 12:25:28,768 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/7128ba03-2332-4e2a-9cf0-8c15248cc404 2025-09-23 12:25:28,777 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/7128ba03-2332-4e2a-9cf0-8c15248cc404 2025-09-23 12:25:28,786 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/e47dd7fa-8b24-4629-816d-cbb90beeacab 2025-09-23 12:25:28,795 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-23 12:25:28,795 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/36f8056b-ffc5-4e08-85d0-6e939d2286fc 2025-09-23 12:25:28,809 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/7128ba03-2332-4e2a-9cf0-8c15248cc404 2025-09-23 12:25:28,830 - INFO - Verified VN network id 10 for VN 36f8056b-ffc5-4e08-85d0-6e939d2286fc 2025-09-23 12:25:28,831 - INFO - Verifications in API Server for VN ctest-vn4-60177750 passed 2025-09-23 12:25:28,831 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/36f8056b-ffc5-4e08-85d0-6e939d2286fc 2025-09-23 12:25:28,846 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/7128ba03-2332-4e2a-9cf0-8c15248cc404 2025-09-23 12:25:28,857 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/7128ba03-2332-4e2a-9cf0-8c15248cc404 2025-09-23 12:25:28,868 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/e47dd7fa-8b24-4629-816d-cbb90beeacab 2025-09-23 12:25:28,888 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-67326097:ctest-vn4-60177750', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-67326097', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3960921833683111432', 'uuid-lslong': '9642328382475765500'}, 'enable': 'true', 'created': '2025-09-23T12:25:27', 'last-modified': '2025-09-23T12:25:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.807670'} 2025-09-23 12:25:28,896 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-23 12:25:28,897 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-60177750 passed 2025-09-23 12:25:28,897 - DEBUG - ====Verifying policy data for ctest-vn4-60177750 in API_Server ====== 2025-09-23 12:25:28,897 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-09-23 12:25:28,904 - DEBUG - Requesting: http://10.0.0.33:8082/domain/24e61fe2-ec6b-4a00-98f7-7be48c0359fb 2025-09-23 12:25:28,918 - DEBUG - Requesting: http://10.0.0.33:8082/project/734629bf-0bf5-4fb3-8aee-0da759fc12ef 2025-09-23 12:25:29,004 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/36f8056b-ffc5-4e08-85d0-6e939d2286fc 2025-09-23 12:25:29,018 - DEBUG - ==>Verifying data for policy with id: 06e542ad-d051-402e-a777-977a634032a3, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-67326097', 'ctest-policy1-76698422'] 2025-09-23 12:25:29,018 - INFO - VN ctest-vn4-60177750 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-23 12:25:29,018 - DEBUG - Verifying the vn in opserver 2025-09-23 12:25:29,018 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-67326097:ctest-vn4-60177750 virtual network link through opserver 10.0.0.33 2025-09-23 12:25:29,018 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-09-23 12:25:29,319 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-09-23 12:25:29,380 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-67326097:ctest-vn4-60177750', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-67326097:ctest-vn4-60177750?flat'} 2025-09-23 12:25:29,380 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-67326097:ctest-vn4-60177750 is found in opserver 2025-09-23 12:25:29,391 - DEBUG - Do not have enough data to verify VN in agent 2025-09-23 12:25:29,396 - DEBUG - VRF ids for VN ctest-vn4-60177750: {} 2025-09-23 12:25:29,397 - DEBUG - ====Verifying data for ctest-policy1-76698422 in API_Server ====== 2025-09-23 12:25:29,397 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-09-23 12:25:29,403 - DEBUG - Requesting: http://10.0.0.33:8082/domain/24e61fe2-ec6b-4a00-98f7-7be48c0359fb 2025-09-23 12:25:29,414 - DEBUG - Requesting: http://10.0.0.33:8082/project/734629bf-0bf5-4fb3-8aee-0da759fc12ef 2025-09-23 12:25:29,500 - DEBUG - Requesting: http://10.0.0.33:8082/network-policy/06e542ad-d051-402e-a777-977a634032a3 2025-09-23 12:25:29,513 - INFO - Verified policy ctest-policy1-76698422 in API Server, Result: True 2025-09-23 12:25:29,514 - INFO - Done with setup and verification, moving onto test .. 2025-09-23 12:25:29,526 - INFO - Deleting VN ctest-vn4-60177750 2025-09-23 12:25:29,693 - DEBUG - Response for deleting network () 2025-09-23 12:25:29,693 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/7128ba03-2332-4e2a-9cf0-8c15248cc404 2025-09-23 12:25:29,700 - DEBUG - Response Code: 404 2025-09-23 12:25:29,700 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-09-23 12:25:29,706 - DEBUG - Requesting: http://10.0.0.33:8082/domain/24e61fe2-ec6b-4a00-98f7-7be48c0359fb 2025-09-23 12:25:29,761 - DEBUG - Requesting: http://10.0.0.33:8082/project/734629bf-0bf5-4fb3-8aee-0da759fc12ef 2025-09-23 12:25:29,841 - INFO - Validated that VN ctest-vn4-60177750 is not found in API Server 2025-09-23 12:25:29,855 - DEBUG - VN ctest-vn4-60177750 is not present in Agent 10.0.0.33 2025-09-23 12:25:29,855 - INFO - Validated that VN ctest-vn4-60177750 is not in any agent 2025-09-23 12:25:29,878 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-60177750 info 2025-09-23 12:25:29,918 - INFO - Deleted policy ctest-policy1-76698422 2025-09-23 12:25:30,103 - DEBUG - policy ctest-policy1-76698422 is not found in API Server 2025-09-23 12:25:30,381 - DEBUG - No XMPP flaps were noticed during the test