2025-12-04 15:38:27,351 - INFO - Domain Default found not creating 2025-12-04 15:38:27,493 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-35206595 not found, creating it 2025-12-04 15:38:27,918 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-35206595, ID : c4e57a88-6bc0-41fe-9bce-6f18a5006064 2025-12-04 15:38:29,293 - INFO - ================================================================================ 2025-12-04 15:38:29,293 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-04 15:38:29,551 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.254': '0'}} with 2025-12-04 15:38:29,552 - INFO - Initial checks done. Running the testcase now 2025-12-04 15:38:29,552 - INFO - 2025-12-04 15:38:29,552 - INFO - ================================================================================ 2025-12-04 15:38:29,552 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-04 15:38:29,552 - 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-12-04 15:38:29,839 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.254': '0'}} with 2025-12-04 15:38:29,839 - INFO - Initial checks done. Running the testcase now 2025-12-04 15:38:29,839 - INFO - 2025-12-04 15:38:30,179 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35206595:ctest-vn4-79000038, 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-35206595:ctest-vn4-79000038, 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-35206595:ctest-vn4-79000038, 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-35206595:ctest-vn4-79000038, 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-12-04 15:38:30,670 - DEBUG - Response for create_network : {'network': {'id': '8132b5dd-940c-4de5-9e90-f4ea31ab0af2', 'name': 'ctest-vn4-79000038', 'tenant_id': 'c4e57a886bc041fe9bce6f18a5006064', 'project_id': 'c4e57a886bc041fe9bce6f18a5006064', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-35206595', 'ctest-vn4-79000038'], 'port_security_enabled': True, 'description': ''}} 2025-12-04 15:38:30,882 - DEBUG - Response for create_subnet : {'subnet': {'id': '5c22d452-fbf9-447f-8f9a-14217a5fe0c9', 'name': '', 'tenant_id': 'c4e57a886bc041fe9bce6f18a5006064', 'network_id': '8132b5dd-940c-4de5-9e90-f4ea31ab0af2', 'ip_version': 4, 'cidr': '67.178.221.192/26', 'allocation_pools': [{'start': '67.178.221.194', 'end': '67.178.221.254'}], 'gateway_ip': '67.178.221.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '67.178.221.194', 'tags': [], 'project_id': 'c4e57a886bc041fe9bce6f18a5006064'}} 2025-12-04 15:38:31,060 - DEBUG - Response for create_subnet : {'subnet': {'id': '0086bbff-90e1-4446-a582-952805af9bb3', 'name': '', 'tenant_id': 'c4e57a886bc041fe9bce6f18a5006064', 'network_id': '8132b5dd-940c-4de5-9e90-f4ea31ab0af2', 'ip_version': 6, 'cidr': '3337:5243:5ccf:9b:dfb1:6c6e::/96', 'allocation_pools': [{'start': '3337:5243:5ccf:9b:dfb1:6c6e:0:2', 'end': '3337:5243:5ccf:9b:dfb1:6c6e:ffff:fffe'}], 'gateway_ip': '3337:5243:5ccf:9b:dfb1:6c6e:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3337:5243:5ccf:9b:dfb1:6c6e:0:2', 'tags': [], 'project_id': 'c4e57a886bc041fe9bce6f18a5006064'}} 2025-12-04 15:38:31,080 - INFO - Created VN ctest-vn4-79000038 2025-12-04 15:38:31,131 - DEBUG - VN ctest-vn4-79000038 UUID is 8132b5dd-940c-4de5-9e90-f4ea31ab0af2 2025-12-04 15:38:31,299 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8132b5dd-940c-4de5-9e90-f4ea31ab0af2', 'name': 'ctest-vn4-79000038', 'tenant_id': 'c4e57a886bc041fe9bce6f18a5006064', 'project_id': 'c4e57a886bc041fe9bce6f18a5006064', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5c22d452-fbf9-447f-8f9a-14217a5fe0c9', '0086bbff-90e1-4446-a582-952805af9bb3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-35206595', 'ctest-vn4-79000038'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-35206595', 'ctest-policy1-93381185']], 'subnet_ipam': [{'subnet_cidr': '67.178.221.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3337:5243:5ccf:9b:dfb1:6c6e::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-12-04 15:38:31,455 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-12-04 15:38:31,747 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-12-04 15:38:31,774 - DEBUG - Requesting: http://10.0.0.249:8082/domain/992f5916-95ac-4ad6-803f-41c7f8ef38ab 2025-12-04 15:38:31,785 - DEBUG - Requesting: http://10.0.0.249:8082/project/c4e57a88-6bc0-41fe-9bce-6f18a5006064 2025-12-04 15:38:31,851 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/8132b5dd-940c-4de5-9e90-f4ea31ab0af2 2025-12-04 15:38:31,865 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/8132b5dd-940c-4de5-9e90-f4ea31ab0af2 2025-12-04 15:38:31,874 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/c857fbde-9fbf-4b04-b27d-fd826c48c49b 2025-12-04 15:38:31,880 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/c857fbde-9fbf-4b04-b27d-fd826c48c49b 2025-12-04 15:38:31,887 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/a6257b1d-16b0-4312-94b4-3763a5d4b41c 2025-12-04 15:38:31,893 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-04 15:38:31,893 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/8132b5dd-940c-4de5-9e90-f4ea31ab0af2 2025-12-04 15:38:31,901 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/c857fbde-9fbf-4b04-b27d-fd826c48c49b 2025-12-04 15:38:31,912 - INFO - Verified VN network id 12 for VN 8132b5dd-940c-4de5-9e90-f4ea31ab0af2 2025-12-04 15:38:31,913 - INFO - Verifications in API Server for VN ctest-vn4-79000038 passed 2025-12-04 15:38:31,913 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/8132b5dd-940c-4de5-9e90-f4ea31ab0af2 2025-12-04 15:38:31,920 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/c857fbde-9fbf-4b04-b27d-fd826c48c49b 2025-12-04 15:38:31,926 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/c857fbde-9fbf-4b04-b27d-fd826c48c49b 2025-12-04 15:38:31,931 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/a6257b1d-16b0-4312-94b4-3763a5d4b41c 2025-12-04 15:38:31,941 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35206595:ctest-vn4-79000038', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-35206595', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9309703343004470757', 'uuid-lslong': '11425901541331766002'}, 'enable': 'true', 'created': '2025-12-04T15:38:30', 'last-modified': '2025-12-04T15:38:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.661920'} 2025-12-04 15:38:31,946 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-04 15:38:31,946 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-79000038 passed 2025-12-04 15:38:31,946 - DEBUG - ====Verifying policy data for ctest-vn4-79000038 in API_Server ====== 2025-12-04 15:38:31,946 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-12-04 15:38:31,952 - DEBUG - Requesting: http://10.0.0.249:8082/domain/992f5916-95ac-4ad6-803f-41c7f8ef38ab 2025-12-04 15:38:31,963 - DEBUG - Requesting: http://10.0.0.249:8082/project/c4e57a88-6bc0-41fe-9bce-6f18a5006064 2025-12-04 15:38:32,028 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/8132b5dd-940c-4de5-9e90-f4ea31ab0af2 2025-12-04 15:38:32,038 - DEBUG - ==>Verifying data for policy with id: 457e9203-061f-43ff-8951-b7dd510e529f, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-35206595', 'ctest-policy1-93381185'] 2025-12-04 15:38:32,038 - INFO - VN ctest-vn4-79000038 Policy verification: verify_vn_policy_in_api_server, status: True 2025-12-04 15:38:32,038 - DEBUG - Verifying the vn in opserver 2025-12-04 15:38:32,038 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35206595:ctest-vn4-79000038 virtual network link through opserver 10.0.0.249 2025-12-04 15:38:32,038 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-12-04 15:38:32,333 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-12-04 15:38:32,387 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35206595:ctest-vn4-79000038', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35206595:ctest-vn4-79000038?flat'} 2025-12-04 15:38:32,387 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35206595:ctest-vn4-79000038 is found in opserver 2025-12-04 15:38:32,397 - DEBUG - Do not have enough data to verify VN in agent 2025-12-04 15:38:32,401 - DEBUG - VRF ids for VN ctest-vn4-79000038: {} 2025-12-04 15:38:32,402 - DEBUG - ====Verifying data for ctest-policy1-93381185 in API_Server ====== 2025-12-04 15:38:32,402 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-12-04 15:38:32,406 - DEBUG - Requesting: http://10.0.0.249:8082/domain/992f5916-95ac-4ad6-803f-41c7f8ef38ab 2025-12-04 15:38:32,415 - DEBUG - Requesting: http://10.0.0.249:8082/project/c4e57a88-6bc0-41fe-9bce-6f18a5006064 2025-12-04 15:38:32,488 - DEBUG - Requesting: http://10.0.0.249:8082/network-policy/457e9203-061f-43ff-8951-b7dd510e529f 2025-12-04 15:38:32,496 - INFO - Verified policy ctest-policy1-93381185 in API Server, Result: True 2025-12-04 15:38:32,496 - INFO - Done with setup and verification, moving onto test .. 2025-12-04 15:38:32,504 - INFO - Deleting VN ctest-vn4-79000038 2025-12-04 15:38:32,610 - DEBUG - Response for deleting network () 2025-12-04 15:38:32,610 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/c857fbde-9fbf-4b04-b27d-fd826c48c49b 2025-12-04 15:38:32,615 - DEBUG - Response Code: 404 2025-12-04 15:38:32,615 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-12-04 15:38:32,620 - DEBUG - Requesting: http://10.0.0.249:8082/domain/992f5916-95ac-4ad6-803f-41c7f8ef38ab 2025-12-04 15:38:32,672 - DEBUG - Requesting: http://10.0.0.249:8082/project/c4e57a88-6bc0-41fe-9bce-6f18a5006064 2025-12-04 15:38:32,738 - INFO - Validated that VN ctest-vn4-79000038 is not found in API Server 2025-12-04 15:38:32,746 - DEBUG - VN ctest-vn4-79000038 is not present in Agent 10.0.0.249 2025-12-04 15:38:32,746 - INFO - Validated that VN ctest-vn4-79000038 is not in any agent 2025-12-04 15:38:32,758 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-79000038 info 2025-12-04 15:38:32,777 - INFO - Deleted policy ctest-policy1-93381185 2025-12-04 15:38:32,939 - DEBUG - policy ctest-policy1-93381185 is not found in API Server 2025-12-04 15:38:33,191 - DEBUG - No XMPP flaps were noticed during the test 2025-12-04 15:38:33,191 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-12-04 15:38:33,191 - INFO - -------------------------------------------------------------------------------- 2025-12-04 15:38:33,480 - DEBUG - No XMPP flaps were noticed during the test 2025-12-04 15:38:33,480 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-12-04 15:38:33,480 - INFO - -------------------------------------------------------------------------------- 2025-12-04 15:38:34,129 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-35206595, ID : c4e57a88-6bc0-41fe-9bce-6f18a5006064